(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"01cc":function(t,e,n){"use strict";n.r(e);var r=n("4df2"),i=n("9d4d");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var s,a=n("f0c5"),u=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,"ec731fda",null,!1,r["a"],s);e["default"]=u.exports},"0204":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uniNavBar:n("4f7a").default,uniSearchBar:n("5996").default,uniIcons:n("066e").default,uniLoadMore:n("8d0a").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",{staticClass:t._$s(0,"sc","container"),attrs:{_i:0}},[r("view",{staticClass:t._$s(1,"sc","status_bar"),attrs:{_i:1}}),r("uni-nav-bar",{staticClass:t._$s(2,"sc","header-bar"),attrs:{leftText:"\u9996\u9875",rightIcon:"gear",fixed:"true",_i:2},on:{clickLeft:t.goFrontPage,clickRight:t.goToSetting}},[r("view",[r("uni-search-bar",{attrs:{cancelButton:"none",placeholder:"\u573a\u666f\u540d\u79f0 \u6444\u50cf\u673a\u5730\u5740",_i:4},on:{confirm:t.toSearch,clear:t.clearInput,input:t.inputMethod},model:{value:t._$s(4,"v-model",t.searchVal),callback:function(e){t.searchVal=e},expression:"searchVal"}})],1)]),r("view",{staticClass:t._$s(5,"sc","intro"),attrs:{_i:5}},[r("view",{staticClass:t._$s(6,"sc","top"),attrs:{_i:6}},[r("view",{staticClass:t._$s(7,"sc","banner"),attrs:{_i:7}},[r("view",{staticClass:t._$s(8,"sc","banner-img"),attrs:{_i:8}},[r("image",{attrs:{src:t._$s(9,"a-src",n("5ccf")),_i:9}})]),r("view",[r("view",{staticClass:t._$s(11,"sc","title"),attrs:{_i:11}}),r("view",{staticClass:t._$s(12,"sc","desc"),attrs:{_i:12}})])]),r("view",{staticClass:t._$s(13,"sc","top-title"),attrs:{_i:13}},[r("view",{staticClass:t._$s(14,"sc","t"),attrs:{_i:14}}),r("button",{staticClass:t._$s(15,"sc","select-channel-btn"),attrs:{_i:15},on:{click:t.showAllChannel}},[r("uni-icons",{staticClass:t._$s(16,"sc","down-icon"),attrs:{type:"arrowdown",size:"11",_i:16}})],1)])]),r("view",{staticClass:t._$s(17,"sc","total-list"),attrs:{_i:17}},t._l(t._$s(18,"f",{forItems:t.daysArr}),(function(e,n,i,o){return r("view",{key:t._$s(18,"f",{forIndex:i,key:n})},[r("view",{staticClass:t._$s("19-"+o,"sc","day-time"),attrs:{_i:"19-"+o}},[t._v(t._$s("19-"+o,"t0-0",t._s(e.day)))]),t._l(t._$s("20-"+o,"f",{forItems:e.items}),(function(e,n,i,s){return r("view",{key:t._$s("20-"+o,"f",{forIndex:i,key:"20-"+o+"-"+s}),staticClass:t._$s("20-"+o+"-"+s,"sc","list-item"),attrs:{_i:"20-"+o+"-"+s},on:{click:function(n){return t.toDetail(e)}}},[r("view",{staticClass:t._$s("21-"+o+"-"+s,"sc","left-img"),attrs:{_i:"21-"+o+"-"+s}},[r("image",{attrs:{src:t._$s("22-"+o+"-"+s,"a-src","/httpImage/"+e.imgUrl),_i:"22-"+o+"-"+s}})]),r("view",{staticClass:t._$s("23-"+o+"-"+s,"sc","right-desc"),attrs:{_i:"23-"+o+"-"+s}},[t._$s("24-"+o+"-"+s,"i",!e.isRead)?r("div",{ref:t._$s("24-"+o+"-"+s,"ref",e.id),refInFor:!0,staticClass:t._$s("24-"+o+"-"+s,"sc","triangle-topright"),attrs:{_i:"24-"+o+"-"+s}},[r("div",{staticClass:t._$s("25-"+o+"-"+s,"sc","word"),attrs:{_i:"25-"+o+"-"+s}})]):t._e(),r("view",{staticClass:t._$s("26-"+o+"-"+s,"sc","first"),attrs:{_i:"26-"+o+"-"+s}},[r("view",{staticClass:t._$s("27-"+o+"-"+s,"sc","name"),attrs:{_i:"27-"+o+"-"+s}},[t._v(t._$s("27-"+o+"-"+s,"t0-0",t._s(e.name)))]),r("view",{staticClass:t._$s("28-"+o+"-"+s,"sc","level"),attrs:{_i:"28-"+o+"-"+s}},[r("view",{class:t._$s("29-"+o+"-"+s,"c","\u4e00\u7ea7"==e.warningLevel?"level-label-top":"level-label-no-top"),attrs:{_i:"29-"+o+"-"+s}}),r("text",{staticClass:t._$s("30-"+o+"-"+s,"sc","level-name"),attrs:{_i:"30-"+o+"-"+s}},[t._v(t._$s("30-"+o+"-"+s,"t0-0",t._s(e.warningLevel)))])])]),r("view",{staticClass:t._$s("31-"+o+"-"+s,"sc","second"),attrs:{_i:"31-"+o+"-"+s}},[r("view",{staticClass:t._$s("32-"+o+"-"+s,"sc","pos"),attrs:{_i:"32-"+o+"-"+s}},[t._v(t._$s("32-"+o+"-"+s,"t0-0",t._s(e.pos)))]),r("view",{staticClass:t._$s("33-"+o+"-"+s,"sc","time"),attrs:{_i:"33-"+o+"-"+s}},[t._v(t._$s("33-"+o+"-"+s,"t0-0",t._s(e.time)))])])])])}))],2)})),0),r("bottomDrawer",{attrs:{tips:t.showActionSheet.tips,itemList:t.showActionSheet.itemList,show:t.showActionSheet.show,maskClosable:t.showActionSheet.maskClosable,isCancel:t.showActionSheet.isCancel,_i:34},on:{chooseCancel:t.chooseCancel,slectDevice:t.slectDevice}})],1),r("uni-load-more",{attrs:{status:t.status,_i:35}})],1)},o=[]},"0477":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={pulldown:"\ue588",refreshempty:"\ue461",back:"\ue471",forward:"\ue470",more:"\ue507","more-filled":"\ue537",scan:"\ue612",qq:"\ue264",weibo:"\ue260",weixin:"\ue261",pengyouquan:"\ue262",loop:"\ue565",refresh:"\ue407","refresh-filled":"\ue437",arrowthindown:"\ue585",arrowthinleft:"\ue586",arrowthinright:"\ue587",arrowthinup:"\ue584","undo-filled":"\ue7d6",undo:"\ue406",redo:"\ue405","redo-filled":"\ue7d9",bars:"\ue563",chatboxes:"\ue203",camera:"\ue301","chatboxes-filled":"\ue233","camera-filled":"\ue7ef","cart-filled":"\ue7f4",cart:"\ue7f5","checkbox-filled":"\ue442",checkbox:"\ue7fa",arrowleft:"\ue582",arrowdown:"\ue581",arrowright:"\ue583","smallcircle-filled":"\ue801",arrowup:"\ue580",circle:"\ue411","eye-filled":"\ue568","eye-slash-filled":"\ue822","eye-slash":"\ue823",eye:"\ue824","flag-filled":"\ue825",flag:"\ue508","gear-filled":"\ue532",reload:"\ue462",gear:"\ue502","hand-thumbsdown-filled":"\ue83b","hand-thumbsdown":"\ue83c","hand-thumbsup-filled":"\ue83d","heart-filled":"\ue83e","hand-thumbsup":"\ue83f",heart:"\ue840",home:"\ue500",info:"\ue504","home-filled":"\ue530","info-filled":"\ue534","circle-filled":"\ue441","chat-filled":"\ue847",chat:"\ue263","mail-open-filled":"\ue84d","email-filled":"\ue231","mail-open":"\ue84e",email:"\ue201",checkmarkempty:"\ue472",list:"\ue562","locked-filled":"\ue856",locked:"\ue506","map-filled":"\ue85c","map-pin":"\ue85e","map-pin-ellipse":"\ue864",map:"\ue364","minus-filled":"\ue440","mic-filled":"\ue332",minus:"\ue410",micoff:"\ue360",mic:"\ue302",clear:"\ue434",smallcircle:"\ue868",close:"\ue404",closeempty:"\ue460",paperclip:"\ue567",paperplane:"\ue503","paperplane-filled":"\ue86e","person-filled":"\ue131","contact-filled":"\ue130",person:"\ue101",contact:"\ue100","images-filled":"\ue87a",phone:"\ue200",images:"\ue87b",image:"\ue363","image-filled":"\ue877","location-filled":"\ue333",location:"\ue303","plus-filled":"\ue439",plus:"\ue409",plusempty:"\ue468","help-filled":"\ue535",help:"\ue505","navigate-filled":"\ue884",navigate:"\ue501","mic-slash-filled":"\ue892",search:"\ue466",settings:"\ue560",sound:"\ue590","sound-filled":"\ue8a1","spinner-cycle":"\ue465","download-filled":"\ue8a4","personadd-filled":"\ue132","videocam-filled":"\ue8af",personadd:"\ue102",upload:"\ue402","upload-filled":"\ue8b1",starhalf:"\ue463","star-filled":"\ue438",star:"\ue408",trash:"\ue401","phone-filled":"\ue230",compose:"\ue400",videocam:"\ue300","trash-filled":"\ue8dc",download:"\ue403","chatbubble-filled":"\ue232",chatbubble:"\ue202","cloud-download":"\ue8e4","cloud-upload-filled":"\ue8e5","cloud-upload":"\ue8e6","cloud-download-filled":"\ue8e9",headphones:"\ue8bf",shop:"\ue609"};e.default=r},"066e":function(t,e,n){"use strict";n.r(e);var r=n("99e2"),i=n("8169");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var s,a=n("f0c5"),u=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,"55418c22",null,!1,r["a"],s);e["default"]=u.exports},"0bd3":function(t,e,n){"use strict";n.r(e);var r=n("7aa4"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"0dd7":function(t,e,n){"use strict";n.r(e);var r=n("923f"),i=n("c245");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var s,a=n("f0c5"),u=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],s);e["default"]=u.exports},"0de9":function(t,e,n){"use strict";function r(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function i(){return"string"===typeof __channelId__&&__channelId__}function o(t,e){switch(r(e)){case"Function":return"function() { [native code] }";default:return e}}function s(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r1){var c=a.pop();u=a.join("---COMMA---"),0===c.indexOf(" at ")?u+=c:u+="---COMMA---"+c}else u=a[0];console[s](u)}n.r(e),n.d(e,"log",(function(){return s})),n.d(e,"default",(function(){return a}))},"0ed3":function(t,e,n){"use strict";n.r(e);var r=n("7582"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"11b8":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","uni-status-bar"),style:t._$s(0,"s",{height:t.statusBarHeight}),attrs:{_i:0}},[t._t("default",null,{_i:1})],2)},o=[]},"16dd":function(t,e,n){"use strict";n.r(e);var r=n("f4e4"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"1cfb":function(t,e,n){"use strict";n.r(e);var r=n("3540"),i=n("0ed3");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var s,a=n("f0c5"),u=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,"3e439ab5",null,!1,r["a"],s);e["default"]=u.exports},"296c":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uniNavBar:n("4f7a").default,uniPopup:n("b67c").default,uniPopupMessage:n("1cfb").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","content"),attrs:{_i:0}},[n("uni-nav-bar",{attrs:{"left-icon":"back","left-text":"\u8fd4\u56de",title:"\u901a\u7528\u8bbe\u7f6e",_i:1},on:{clickLeft:t.goBack}}),n("view",{staticClass:t._$s(2,"sc","setting-content"),attrs:{_i:2}},[n("view",{staticClass:t._$s(3,"sc","title"),attrs:{_i:3}}),n("view",{staticClass:t._$s(4,"sc","uni-form-item uni-column"),attrs:{_i:4}},[n("view",{staticClass:t._$s(5,"sc","title"),attrs:{_i:5}}),n("IPInput",{attrs:{ip:t.sys_ip,_i:6},on:{"on-blur":function(e){t.sys_ip=arguments[0]}}})],1),n("view",{staticClass:t._$s(7,"sc","uni-form-item uni-column"),attrs:{_i:7}},[n("view",{staticClass:t._$s(8,"sc","title"),attrs:{_i:8}}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.port,expression:"port"}],staticClass:t._$s(9,"sc","uni-input"),attrs:{_i:9},domProps:{value:t._$s(9,"v-model",t.port)},on:{input:function(e){e.target.composing||(t.port=e.target.value)}}})])]),n("button",{attrs:{_i:10},on:{click:t.commit}}),n("uni-popup",{ref:"popup",attrs:{type:"message",_i:11}},[n("uni-popup-message",{attrs:{type:"success",message:"\u4fee\u6539\u6210\u529f",duration:2e3,_i:12}})],1)],1)},o=[]},3540:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","uni-popup-message"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","uni-popup-message__box fixforpc-width"),class:t._$s(1,"c","uni-popup__"+[t.type]),attrs:{_i:1}},[n("text",{staticClass:t._$s(2,"sc","uni-popup-message-text"),class:t._$s(2,"c","uni-popup__"+[t.type]+"-text"),attrs:{_i:2}},[t._v(t._$s(2,"t0-0",t._s(t.message)))])])])},o=[]},"3b77":function(t,e,n){"use strict";n.r(e);var r=n("405f"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"405f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=uni.getSystemInfoSync().statusBarHeight+"px",i={name:"UniStatusBar",data:function(){return{statusBarHeight:r}}};e.default=i},"41b6":function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.$.$refs["ani"].ref;if(n)return new Promise((function(r,o){nvueAnimation.transition(n,i({styles:t},e),(function(t){r()}))}))}},{key:"_nvueNextAnimate",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,i=t[n];if(i){var o=i.styles,s=i.config;this._animateRun(o,s).then((function(){n+=1,e._nvueNextAnimate(t,n,r)}))}else this.currentStepAnimates={},"function"===typeof r&&r(),this.isEnd=!0}},{key:"step",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(t),this}},{key:"run",value:function(t){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof t&&t()}),this.$.durationTime)}}]),t}(),l=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"],f=["opacity","backgroundColor"],h=["width","height","left","right","top","bottom"];function d(t,e){if(e)return clearTimeout(e.timer),new c(t,e)}l.concat(f,h).forEach((function(t){c.prototype[t]=function(){var e;return(e=this.animation)[t].apply(e,arguments),this}}))},4287:function(t,e,n){"use strict";n.r(e);var r=n("ecdd"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"42e9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("d691"));function i(t){return t&&t.__esModule?t:{default:t}}var o={name:"UniPopup",components:{},props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},maskClick:{type:Boolean,default:!0}},provide:function(){return{popup:this}},mixins:[r.default],watch:{type:{handler:function(t){this[this.config[t]]()},immediate:!0},isDesktop:{handler:function(t){this[this.config[this.type]]()},immediate:!0},maskClick:{handler:function(t){this.mkclick=t},immediate:!0}},data:function(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:this.isDesktop?"fixforpc-top":"top"}},created:function(){this.mkclick=this.maskClick,this.animation?this.duration=300:this.duration=0},methods:{clear:function(t){t.stopPropagation()},open:function(){var t=this;this.showPopup=!0,this.$nextTick((function(){new Promise((function(e){clearTimeout(t.timer),t.timer=setTimeout((function(){t.showTrans=!0,t.$nextTick((function(){e()}))}),50)})).then((function(e){clearTimeout(t.msgtimer),t.msgtimer=setTimeout((function(){t.customOpen&&t.customOpen()}),100),t.$emit("change",{show:!0,type:t.type})}))}))},close:function(t){var e=this;this.showTrans=!1,this.$nextTick((function(){e.$emit("change",{show:!1,type:e.type}),clearTimeout(e.timer),e.customOpen&&e.customClose(),e.timer=setTimeout((function(){e.showPopup=!1}),300)}))},onTap:function(){this.mkclick&&this.close()},top:function(){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0}},bottom:function(){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0}},center:function(){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"}}}};e.default=o},"4aa6":function(t,e,n){"use strict";n.r(e);var r=n("42e9"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"4df2":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uniNavBar:n("4f7a").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","content"),attrs:{_i:0}},[n("uni-nav-bar",{attrs:{"left-icon":"back","left-text":"\u8fd4\u56de",title:"\u8be6\u60c5",_i:1},on:{clickLeft:t.goBack}}),n("view",{staticClass:t._$s(2,"sc","video-box"),attrs:{_i:2}},[n("video",{attrs:{id:"myVideo",src:t._$s(3,"a-src","/httpImage/"+t.videoUrl),_i:3}})]),n("view",{staticClass:t._$s(4,"sc","desc-box"),attrs:{_i:4}},[n("view",{staticClass:t._$s(5,"sc","first"),attrs:{_i:5}},[n("view",{staticClass:t._$s(6,"sc","time"),attrs:{_i:6}},[t._v(t._$s(6,"t0-0",t._s(t.curInfo.date))+t._$s(6,"t0-1",t._s(t.curInfo.time)))]),n("view",{staticClass:t._$s(7,"sc","level"),attrs:{_i:7}},[n("view",{staticClass:t._$s(8,"sc","level-label"),attrs:{_i:8}}),n("text",{staticClass:t._$s(9,"sc","level-text"),attrs:{_i:9}},[t._v(t._$s(9,"t0-0",t._s(t.curInfo.warningLevel)))])])]),n("view",{staticClass:t._$s(10,"sc","second"),attrs:{_i:10}},[t._v(t._$s(10,"t0-0",t._s(t.curInfo.pos)))])]),n("button",{attrs:{_i:11},on:{click:t.showImg}}),n("imagePopper",{attrs:{show:t.showImgPopper.show,imgSrc:"/httpImage/"+t.curInfo.imgUrl,_i:12},on:{hideImgPopper:t.hideImgPopper}})],1)},o=[]},"4f7a":function(t,e,n){"use strict";n.r(e);var r=n("e549"),i=n("96c1");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var s,a=n("f0c5"),u=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,"03bf6c84",null,!1,r["a"],s);e["default"]=u.exports},"53a3":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","uni-load-more"),attrs:{_i:0},on:{click:t.onClick}},[t._$s(1,"i",!t.webviewHide&&("circle"===t.iconType||"auto"===t.iconType&&"android"===t.platform)&&"loading"===t.status&&t.showIcon)?n("view",{staticClass:t._$s(1,"sc","uni-load-more__img uni-load-more__img--android-MP"),style:t._$s(1,"s",{width:t.iconSize+"px",height:t.iconSize+"px"}),attrs:{_i:1}},[n("view",{style:t._$s(2,"s",{borderTopColor:t.color,borderTopWidth:t.iconSize/12}),attrs:{_i:2}}),n("view",{style:t._$s(3,"s",{borderTopColor:t.color,borderTopWidth:t.iconSize/12}),attrs:{_i:3}}),n("view",{style:t._$s(4,"s",{borderTopColor:t.color,borderTopWidth:t.iconSize/12}),attrs:{_i:4}})]):t._$s(5,"e",!t.webviewHide&&"loading"===t.status&&t.showIcon)?n("view",{staticClass:t._$s(5,"sc","uni-load-more__img uni-load-more__img--ios-H5"),style:t._$s(5,"s",{width:t.iconSize+"px",height:t.iconSize+"px"}),attrs:{_i:5}},[n("image",{attrs:{_i:6}})]):t._e(),n("text",{staticClass:t._$s(7,"sc","uni-load-more__text"),style:t._$s(7,"s",{color:t.color}),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s("more"===t.status?t.contentText.contentdown:"loading"===t.status?t.contentText.contentrefresh:t.contentText.contentnomore)))])])},o=[]},5817:function(t,e,n){(function(e,n){!function(e,n){t.exports=n()}(0,(function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=88)}([function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function s(){g&&d&&(g=!1,d.length?p=d.concat(p):b=-1,p.length&&a())}function a(){if(!g){var t=i(s);g=!0;for(var e=p.length;e;){for(d=p,p=[];++b1)for(var n=1;n0&&this._events[t].length>o&&(this._events[t].warned=!0,e("error","(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length," at node_modules/vue-mqtt/dist/build.js:1"),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(t,e){function n(){this.removeListener(t,n),r||(r=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var r=!1;return n.listener=e,this.on(t,n),this},r.prototype.removeListener=function(t,e){var n,r,o,a;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],o=n.length,r=-1,n===e||i(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(s(n)){for(a=o;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},r.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],i(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},r.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},r.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},r.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);c.call(this,t),l.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||s.nextTick(o,this)}function o(t){t.end()}var s=n(12),a=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=r;var u=n(3);u.inherits=n(1);var c=n(29),l=n(31);u.inherits(r,c);for(var f=a(l.prototype),h=0;h>5==6?2:t>>4==14?3:t>>3==30?4:-1}function a(t,e,n){var r=e.length-1;if(r=0?(i>0&&(t.lastNeed=i-1),i):--r=0?(i>0&&(t.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0)}function u(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"\ufffd".repeat(n);if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"\ufffd".repeat(n+1);if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"\ufffd".repeat(n+2)}}function c(t){var e=this.lastTotal-this.lastNeed,n=u(this,t,e);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){var n=a(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\ufffd".repeat(this.lastTotal-this.lastNeed):e}function h(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function d(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function p(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function g(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function b(t){return t.toString(this.encoding)}function m(t){return t&&t.length?this.write(t):""}var v=n(2).Buffer,y=v.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),o.alloc(+t)}function b(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(t).length;default:if(r)return H(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return A(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return j(this,e,n);case"latin1":case"binary":return M(this,e,n);case"base64":return O(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function v(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:_(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):_(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,n,r,i){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var s,a=1,u=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,u/=2,c/=2,n/=2}if(i){var l=-1;for(s=n;su&&(n=u-c),s=n;s>=0;s--){for(var f=!0,h=0;hi&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:o=t[i+1],128==(192&o)&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return I(r)}function I(t){var e=t.length;if(e<=Z)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function $(t,e,n,r,i,s){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function L(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function B(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function U(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,r,i){return i||U(t,e,n,4,34028234663852886e22,-34028234663852886e22),J.write(t,e,n,r,23,4),n+4}function q(t,e,n,r,i){return i||U(t,e,n,8,17976931348623157e292,-17976931348623157e292),J.write(t,e,n,r,52,8),n+8}function N(t){if(t=W(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function W(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function F(t){return t<16?"0"+t.toString(16):t.toString(16)}function H(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],s=0;s55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function K(t){return G.toByteArray(N(t))}function V(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Q(t){return t!==t} /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var G=n(45),J=n(52),X=n(11);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return s(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return u(null,t,e,n)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,s=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},o.prototype.compare=function(t,e,n,r,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var s=i-r,a=n-e,u=Math.min(s,a),c=this.slice(r,i),l=t.slice(e,n),f=0;fi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return S(this,t,e,n);case"ascii":return k(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return E(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),J.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),J.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),J.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),J.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||$(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||$(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||$(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||$(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||$(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||$(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);$(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);$(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||$(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||$(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||$(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||$(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||$(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return q(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return q(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(s=e;s=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(72),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,n,r){(function(n){function r(t,n){function r(){if(!o){if(i("throwDeprecation"))throw new Error(n);i("traceDeprecation")?console.trace(n):e("warn",n," at node_modules/vue-mqtt/dist/build.js:7"),o=!0}return t.apply(this,arguments)}if(i("noDeprecation"))return t;var o=!1;return r}function i(t){try{if(!n.localStorage)return!1}catch(t){return!1}var e=n.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=r}).call(n,r(4))},function(t,e){function n(){for(var t={},e=0;e-1)&&(r.splice(i,1),this.listeners.set(t,r),!0)}},{key:"emit",value:function(t){for(var e=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i65535||a%1!=0)return e.emit("error",new Error("Invalid keepalive")),!1;if(f+=2,f+=1,o){if("object"!=typeof o)return e.emit("error",new Error("Invalid will")),!1;if(!o.topic||"string"!=typeof o.topic)return e.emit("error",new Error("Invalid will topic")),!1;if(f+=k.byteLength(o.topic)+2,o.payload&&o.payload){if(!(o.payload.length>=0))return e.emit("error",new Error("Invalid will payload")),!1;"string"==typeof o.payload?f+=k.byteLength(o.payload)+2:f+=o.payload.length+2}else f+=2}var h=!1;if(null!=c){if(!w(c))return e.emit("error",new Error("Invalid username")),!1;h=!0,f+=k.byteLength(c)+2}if(null!=l){if(!h)return e.emit("error",new Error("Username is required to use password")),!1;if(!w(l))return e.emit("error",new Error("Invalid password")),!1;f+=_(l)+2}e.write(S.CONNECT_HEADER),g(e,f),y(e,r),e.write(4===i?S.VERSION4:S.VERSION3);var d=0;return d|=null!=c?S.USERNAME_MASK:0,d|=null!=l?S.PASSWORD_MASK:0,d|=o&&o.retain?S.WILL_RETAIN_MASK:0,d|=o&&o.qos?o.qos<0&&M(e,a),e.write(s))}function u(t,e){var n=t||{},r=n.cmd||"puback",i=n.messageId,o=n.dup&&"pubrel"===r?S.DUP_MASK:0,s=0;return"pubrel"===r&&(s=1),"number"!=typeof i?(e.emit("error",new Error("Invalid messageId")),!1):(e.write(S.ACKS[r][s][o][0]),g(e,2),M(e,i))}function c(t,e){var n=t||{},r=n.dup?S.DUP_MASK:0,i=n.messageId,o=n.subscriptions,s=0;if("number"!=typeof i)return e.emit("error",new Error("Invalid messageId")),!1;if(s+=2,"object"!=typeof o||!o.length)return e.emit("error",new Error("Invalid subscriptions")),!1;for(var a=0;a=0&&t<128?1:t>=128&&t<16384?2:t>=16384&&t<2097152?3:t>=2097152&&t<268435456?4:0}function p(t){var e=0,n=0,r=k.allocUnsafe(d(t));do{e=t%128|0,t=t/128|0,t>0&&(e|=128),r.writeUInt8(e,n++)}while(t>0);return r}function g(t,e){var n=R[e];n||(n=p(e),e<16384&&(R[e]=n)),t.write(n)}function b(t,e){var n=k.byteLength(e);M(t,n),t.write(e,"utf8")}function m(t,e){return t.write(T[e])}function v(t,e){return t.write(I(e))}function y(t,e){"string"==typeof e?b(t,e):e?(M(t,e.length),t.write(e)):M(t,0)}function _(t){return t?t instanceof k?t.length:k.byteLength(t):0}function w(t){return"string"==typeof t||t instanceof k}var S=n(23),k=n(2).Buffer,x=k.allocUnsafe(0),E=k.from([0]),C=n(56),O=n(55).nextTick,T=C.cache,I=C.generateNumber,j=C.generateCache,M=m,A=!0;Object.defineProperty(r,"cacheNumbers",{get:function(){return M===m},set:function(t){t?(T&&0!==Object.keys(T).length||(A=!0),M=m):(A=!1,M=v)}});var R={};t.exports=r},function(t,e,n){"use strict";function r(t,e){var n,r;return e.port=e.port||1883,e.hostname=e.hostname||e.host||"localhost",n=e.port,r=e.hostname,i.createConnection(n,r)}var i=n(83);t.exports=r},function(t,e,n){"use strict";(function(e){function r(t,e){var n=t.protocol+"://"+t.hostname+":"+t.port+t.path;return"function"==typeof t.transformWsUrl&&(n=t.transformWsUrl(n,t,e)),n}function i(t){t.hostname||(t.hostname="localhost"),t.port||("wss"===t.protocol?t.port=443:t.port=80),t.path||(t.path="/"),t.wsOptions||(t.wsOptions={}),f||"wss"!==t.protocol||l.forEach((function(e){t.hasOwnProperty(e)&&!t.wsOptions.hasOwnProperty(e)&&(t.wsOptions[e]=t[e])}))}function o(t,e){var n="MQIsdp"===e.protocolId&&3===e.protocolVersion?"mqttv3.1":"mqtt";i(e);var o=r(e,t);return u(o,[n],e.wsOptions)}function s(t,e){return o(t,e)}function a(t,e){if(e.hostname||(e.hostname=e.host),!e.hostname){if("undefined"==typeof document)throw new Error("Could not determine host. Specify host manually.");var n=c.parse(document.URL);e.hostname=n.hostname,e.port||(e.port=n.port)}return o(t,e)}var u=n(42),c=n(41),l=["rejectUnauthorized","ca","cert","key","pfx","passphrase"],f="browser"===e.title;t.exports=f?a:s}).call(e,n(0))},function(t,e,r){"use strict";function i(t){l?n.sendSocketMessage({data:t.buffer||t}):f.push(t)}function o(t,e){var r={OPEN:1,CLOSING:2,CLOSED:3,readyState:l?1:0,send:i,close:n.closeSocket,onopen:null,onmessage:null,onclose:null,onerror:null};return n.connectSocket({url:t,protocols:e}),n.onSocketOpen((function(t){r.readyState=r.OPEN,l=!0;for(var e=0;e0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===B.prototype||(e=i(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):l(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?l(t,a,e,!1):v(t,a)):l(t,a,e,!1))):r||(a.reading=!1));return h(a)}function l(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&b(t)),v(t,e)}function f(t,e){var n;return o(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function h(t){return!t.ended&&(t.needReadable||t.length=Y?t=Y:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function p(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=d(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function g(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,b(t)}}function b(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(N("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?A.nextTick(m,t):m(t))}function m(t){N("emit readable"),t.emit("readable"),x(t)}function v(t,e){e.readingMore||(e.readingMore=!0,A.nextTick(y,t,e))}function y(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=C(t,e.buffer,e.decoder),n);var n}function C(t,e,n){var r;return to.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),0===(t-=s)){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}return e.length-=r,i}function T(t,e){var n=B.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),0===(t-=s)){s===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++i}return e.length-=i,n}function I(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,A.nextTick(j,e,t))}function j(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function M(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return N("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?I(this):b(this),null;if(0===(t=p(t,e))&&e.ended)return 0===e.length&&I(this),null;var r,i=e.needReadable;return N("need readable",i),(0===e.length||e.length-t0?E(t,e):null,null===r?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&I(this)),null!==r&&this.emit("data",r),r},u.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(t,e){function n(t,e){N("onunpipe"),t===h&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,o())}function i(){N("onend"),t.end()}function o(){N("cleanup"),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("drain",b),t.removeListener("error",u),t.removeListener("unpipe",n),h.removeListener("end",i),h.removeListener("end",f),h.removeListener("data",a),m=!0,!d.awaitDrain||t._writableState&&!t._writableState.needDrain||b()}function a(e){N("ondata"),v=!1,!1!==t.write(e)||v||((1===d.pipesCount&&d.pipes===t||d.pipesCount>1&&-1!==M(d.pipes,t))&&!m&&(N("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,v=!0),h.pause())}function u(e){N("onerror",e),f(),t.removeListener("error",u),0===$(t,"error")&&t.emit("error",e)}function c(){t.removeListener("finish",l),f()}function l(){N("onfinish"),t.removeListener("close",c),f()}function f(){N("unpipe"),h.unpipe(t)}var h=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=t;break;case 1:d.pipes=[d.pipes,t];break;default:d.pipes.push(t)}d.pipesCount+=1,N("pipe count=%d opts=%j",d.pipesCount,e);var p=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,g=p?i:f;d.endEmitted?A.nextTick(g):h.once("end",g),t.on("unpipe",n);var b=_(h);t.on("drain",b);var m=!1,v=!1;return h.on("data",a),s(t,"error",u),t.once("close",c),t.once("finish",l),t.emit("pipe",h),d.flowing||(N("pipe resume"),h.resume()),t},u.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o-1?r:T.nextTick;l.WritableState=c;var M=n(3);M.inherits=n(1);var A,R={deprecate:n(17)},P=n(33),$=n(2).Buffer,L=i.Uint8Array||function(){},B=n(32);M.inherits(l,P),c.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(c.prototype,"buffer",{get:R.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(A=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value:function(t){return!!A.call(this,t)||this===l&&t&&t._writableState instanceof c}})):A=function(t){return t instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(t,e,n){var r=this._writableState,i=!1,o=!r.objectMode&&a(t);return o&&!$.isBuffer(t)&&(t=s(t)),"function"==typeof e&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=u),r.ended?f(this,n):(o||h(this,r,t,n))&&(r.pendingcb++,i=p(this,r,o,t,e,n)),i},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||w(this,t))},l.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),l.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||C(this,r,n)},Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),l.prototype.destroy=B.destroy,l.prototype._undestroy=B.undestroy,l.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,n(0),n(16).setImmediate,n(4))},function(t,e,n){"use strict";function r(t,e){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||s.nextTick(o,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(s.nextTick(o,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)})),this)}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(t,e){t.emit("error",e)}var s=n(12);t.exports={destroy:r,undestroy:i}},function(t,e,n){t.exports=n(5).EventEmitter},function(t,e,n){e=t.exports=n(29),e.Stream=e,e.Readable=e,e.Writable=n(31),e.Duplex=n(6),e.Transform=n(30),e.PassThrough=n(62)},function(t,e,n){"use strict";(function(e,r){function i(t){return B.from(t)}function o(t){return B.isBuffer(t)||t instanceof U}function s(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?P(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function a(t,e){R=R||n(7),t=t||{},this.objectMode=!!t.objectMode,e instanceof R&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new F,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(W||(W=n(8).StringDecoder),this.decoder=new W(t.encoding),this.encoding=t.encoding)}function u(t){if(R=R||n(7),!(this instanceof u))return new u(t);this._readableState=new a(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),L.call(this)}function c(t,e,n,r,o){var s,a=t._readableState;null===e?(a.reading=!1,g(t,a)):(o||(s=f(a,e)),s?t.emit("error",s):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===B.prototype||(e=i(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):l(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?l(t,a,e,!1):v(t,a)):l(t,a,e,!1))):r||(a.reading=!1));return h(a)}function l(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&b(t)),v(t,e)}function f(t,e){var n;return o(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function h(t){return!t.ended&&(t.needReadable||t.length=Y?t=Y:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function p(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=d(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function g(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,b(t)}}function b(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(N("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?A(m,t):m(t))}function m(t){N("emit readable"),t.emit("readable"),x(t)}function v(t,e){e.readingMore||(e.readingMore=!0,A(y,t,e))}function y(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=C(t,e.buffer,e.decoder),n);var n}function C(t,e,n){var r;return to.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),0===(t-=s)){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}return e.length-=r,i}function T(t,e){var n=B.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),0===(t-=s)){s===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++i}return e.length-=i,n}function I(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,A(j,e,t))}function j(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function M(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return N("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?I(this):b(this),null;if(0===(t=p(t,e))&&e.ended)return 0===e.length&&I(this),null;var r,i=e.needReadable;return N("need readable",i),(0===e.length||e.length-t0?E(t,e):null,null===r?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&I(this)),null!==r&&this.emit("data",r),r},u.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(t,e){function n(t,e){N("onunpipe"),t===h&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,o())}function i(){N("onend"),t.end()}function o(){N("cleanup"),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("drain",b),t.removeListener("error",u),t.removeListener("unpipe",n),h.removeListener("end",i),h.removeListener("end",f),h.removeListener("data",a),m=!0,!d.awaitDrain||t._writableState&&!t._writableState.needDrain||b()}function a(e){N("ondata"),v=!1,!1!==t.write(e)||v||((1===d.pipesCount&&d.pipes===t||d.pipesCount>1&&-1!==M(d.pipes,t))&&!m&&(N("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,v=!0),h.pause())}function u(e){N("onerror",e),f(),t.removeListener("error",u),0===$(t,"error")&&t.emit("error",e)}function c(){t.removeListener("finish",l),f()}function l(){N("onfinish"),t.removeListener("close",c),f()}function f(){N("unpipe"),h.unpipe(t)}var h=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=t;break;case 1:d.pipes=[d.pipes,t];break;default:d.pipes.push(t)}d.pipesCount+=1,N("pipe count=%d opts=%j",d.pipesCount,e);var p=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,g=p?i:f;d.endEmitted?A(g):h.once("end",g),t.on("unpipe",n);var b=_(h);t.on("drain",b);var m=!1,v=!1;return h.on("data",a),s(t,"error",u),t.once("close",c),t.once("finish",l),t.emit("pipe",h),d.flowing||(N("pipe resume"),h.resume()),t},u.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o-1?r:T;l.WritableState=c;var M=n(3);M.inherits=n(1);var A,R={deprecate:n(17)},P=n(39),$=n(2).Buffer,L=i.Uint8Array||function(){},B=n(38);M.inherits(l,P),c.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(c.prototype,"buffer",{get:R.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(A=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value:function(t){return!!A.call(this,t)||t&&t._writableState instanceof c}})):A=function(t){return t instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(t,e,n){var r=this._writableState,i=!1,o=a(t)&&!r.objectMode;return o&&!$.isBuffer(t)&&(t=s(t)),"function"==typeof e&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=u),r.ended?f(this,n):(o||h(this,r,t,n))&&(r.pendingcb++,i=p(this,r,o,t,e,n)),i},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||w(this,t))},l.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},l.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||C(this,r,n)},Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),l.prototype.destroy=B.destroy,l.prototype._undestroy=B.undestroy,l.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,n(0),n(16).setImmediate,n(4))},function(t,e,n){"use strict";function r(t,e){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;r||i?e?e(t):!t||this._writableState&&this._writableState.errorEmitted||s(o,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(s(o,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)})))}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(t,e){t.emit("error",e)}var s=n(13);t.exports={destroy:r,undestroy:i}},function(t,e,n){t.exports=n(5).EventEmitter},function(t,e,n){e=t.exports=n(35),e.Stream=e,e.Readable=e,e.Writable=n(37),e.Duplex=n(7),e.Transform=n(36),e.PassThrough=n(69)},function(t,e,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(t,e,n){if(t&&c.isObject(t)&&t instanceof r)return t;var i=new r;return i.parse(t,e,n),i}function o(t){return c.isString(t)&&(t=i(t)),t instanceof r?t.format():r.prototype.format.call(t)}function s(t,e){return i(t,!1,!0).resolve(e)}function a(t,e){return t?i(t,!1,!0).resolveObject(e):e}var u=n(65),c=n(74);e.parse=i,e.resolve=s,e.resolveObject=a,e.format=o,e.Url=r;var l=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,h=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r","\n","\t"],p=["{","}","|","\\","^","`"].concat(d),g=["'"].concat(p),b=["%","/","?",";","#"].concat(g),m=["/","?","#"],v=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},k=n(68);r.prototype.parse=function(t,e,n){if(!c.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t.indexOf("?"),i=-1!==r&&r127?P+="x":P+=R[$];if(!P.match(v)){var B=M.slice(0,C),U=M.slice(C+1),D=R.match(y);D&&(B.push(D[1]),U.unshift(D[2])),U.length&&(a="/"+U.join(".")+a),this.hostname=B.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=u.toASCII(this.hostname));var q=this.port?":"+this.port:"",N=this.hostname||"";this.host=N+q,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!_[p])for(C=0,A=g.length;C0)&&n.host.split("@");E&&(n.auth=E.shift(),n.host=n.hostname=E.shift())}return n.search=t.search,n.query=t.query,c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=k.slice(-1)[0],O=(n.host||t.host||k.length>1)&&("."===C||".."===C)||""===C,T=0,I=k.length;I>=0;I--)C=k[I],"."===C?k.splice(I,1):".."===C?(k.splice(I,1),T++):T&&(k.splice(I,1),T--);if(!y&&!_)for(;T--;T)k.unshift("..");!y||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),O&&"/"!==k.join("/").substr(-1)&&k.push("");var j=""===k[0]||k[0]&&"/"===k[0].charAt(0);if(x){n.hostname=n.host=j?"":k.length?k.shift():"";E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");E&&(n.auth=E.shift(),n.host=n.hostname=E.shift())}return y=y||n.host&&k.length,y&&!j&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var t=this.host,e=f.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,n){"use strict";(function(e,r){function i(t,e,n){var r=new s({objectMode:t.objectMode});return r._write=e,r._flush=n,r}function o(t,n,o){function s(t,e,n){y.readyState===y.OPEN?(C&&"string"==typeof t&&(t=c.from(t,"utf8")),y.send(t,n)):n()}function l(t,e,n){if(y.bufferedAmount>x)setTimeout(l,E,t,e,n);else{C&&"string"==typeof t&&(t=c.from(t,"utf8"));try{y.send(t)}catch(t){return n(t)}n()}}function f(t){y.close(),t()}function h(){v.setReadable(k),v.setWritable(k),v.emit("connect")}function d(){v.end(),v.destroy()}function p(t){v.destroy(t)}function g(t){var e=t.data;e=e instanceof ArrayBuffer?c.from(e):c.from(e,"utf8"),k.push(e)}function b(){y.close()}function m(t,e){for(var n=new Array(t.length),r=0;r0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return 3*t.length/4-r(t)}function o(t){var e,n,i,o,s,a=t.length;o=r(t),s=new f(3*a/4-o),n=o>0?a-4:a;var u=0;for(e=0;e>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,s[u++]=255&i):1===o&&(i=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}function s(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function a(t,e,n){for(var r,i=[],o=e;ou?u:s+16383));return 1===r?(e=t[n-1],i+=c[e>>2],i+=c[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=c[e>>10],i+=c[e>>4&63],i+=c[e<<2&63],i+="="),o.push(i),o.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=u;for(var c=[],l=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,p=h.length;dthis.length)&&(r=this.length),n>=this.length)return t||s.alloc(0);if(r<=0)return t||s.alloc(0);var i,o,a=!!t,u=this._offset(n),c=r-n,l=c,f=a&&e||0,h=u[1];if(0===n&&r==this.length){if(!a)return 1===this._bufs.length?this._bufs[0]:s.concat(this._bufs,this.length);for(o=0;oi)){this._bufs[o].copy(t,f,h,h+l);break}this._bufs[o].copy(t,f,h),f+=i,l-=i,h&&(h=0)}return t},r.prototype.shallowSlice=function(t,e){t=t||0,e=e||this.length,t<0&&(t+=this.length),e<0&&(e+=this.length);var n=this._offset(t),i=this._offset(e),o=this._bufs.slice(n[0],i[0]+1);return 0==i[1]?o.pop():o[o.length-1]=o[o.length-1].slice(0,i[1]),0!=n[1]&&(o[0]=o[0].slice(n[1])),new r(o)},r.prototype.toString=function(t,e,n){return this.slice(e,n).toString(t)},r.prototype.consume=function(t){for(;this._bufs.length;){if(!(t>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},r.prototype.duplicate=function(){for(var t=0,e=new r;t0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===B.prototype||(e=i(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):l(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?l(t,a,e,!1):v(t,a)):l(t,a,e,!1))):r||(a.reading=!1));return h(a)}function l(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&b(t)),v(t,e)}function f(t,e){var n;return o(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function h(t){return!t.ended&&(t.needReadable||t.length=Y?t=Y:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function p(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=d(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function g(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,b(t)}}function b(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(N("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?A.nextTick(m,t):m(t))}function m(t){N("emit readable"),t.emit("readable"),x(t)}function v(t,e){e.readingMore||(e.readingMore=!0,A.nextTick(y,t,e))}function y(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=C(t,e.buffer,e.decoder),n);var n}function C(t,e,n){var r;return to.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),0===(t-=s)){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}return e.length-=r,i}function T(t,e){var n=B.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),0===(t-=s)){s===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++i}return e.length-=i,n}function I(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,A.nextTick(j,e,t))}function j(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function M(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return N("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?I(this):b(this),null;if(0===(t=p(t,e))&&e.ended)return 0===e.length&&I(this),null;var r,i=e.needReadable;return N("need readable",i),(0===e.length||e.length-t0?E(t,e):null,null===r?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&I(this)),null!==r&&this.emit("data",r),r},u.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(t,e){function n(t,e){N("onunpipe"),t===h&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,o())}function i(){N("onend"),t.end()}function o(){N("cleanup"),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("drain",b),t.removeListener("error",u),t.removeListener("unpipe",n),h.removeListener("end",i),h.removeListener("end",f),h.removeListener("data",a),m=!0,!d.awaitDrain||t._writableState&&!t._writableState.needDrain||b()}function a(e){N("ondata"),v=!1,!1!==t.write(e)||v||((1===d.pipesCount&&d.pipes===t||d.pipesCount>1&&-1!==M(d.pipes,t))&&!m&&(N("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,v=!0),h.pause())}function u(e){N("onerror",e),f(),t.removeListener("error",u),0===$(t,"error")&&t.emit("error",e)}function c(){t.removeListener("finish",l),f()}function l(){N("onfinish"),t.removeListener("close",c),f()}function f(){N("unpipe"),h.unpipe(t)}var h=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=t;break;case 1:d.pipes=[d.pipes,t];break;default:d.pipes.push(t)}d.pipesCount+=1,N("pipe count=%d opts=%j",d.pipesCount,e);var p=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,g=p?i:f;d.endEmitted?A.nextTick(g):h.once("end",g),t.on("unpipe",n);var b=_(h);t.on("drain",b);var m=!1,v=!1;return h.on("data",a),s(t,"error",u),t.once("close",c),t.once("finish",l),t.emit("pipe",h),d.flowing||(N("pipe resume"),h.resume()),t},u.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o-1?r:T.nextTick;l.WritableState=c;var M=n(3);M.inherits=n(1);var A,R={deprecate:n(17)},P=n(21),$=n(2).Buffer,L=i.Uint8Array||function(){},B=n(20);M.inherits(l,P),c.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(c.prototype,"buffer",{get:R.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(A=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value:function(t){return!!A.call(this,t)||this===l&&t&&t._writableState instanceof c}})):A=function(t){return t instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(t,e,n){var r=this._writableState,i=!1,o=!r.objectMode&&a(t);return o&&!$.isBuffer(t)&&(t=s(t)),"function"==typeof e&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=u),r.ended?f(this,n):(o||h(this,r,t,n))&&(r.pendingcb++,i=p(this,r,o,t,e,n)),i},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||w(this,t))},l.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),l.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||C(this,r,n)},Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),l.prototype.destroy=B.destroy,l.prototype._undestroy=B.undestroy,l.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,n(0),n(16).setImmediate,n(4))},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n){t.copy(e,n)}var o=n(2).Buffer,s=n(82);t.exports=function(){function t(){r(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),n=this.head,r=0;n;)i(n.data,e,r),r+=n.data.length,n=n.next;return e},t}(),s&&s.inspect&&s.inspect.custom&&(t.exports.prototype[s.inspect.custom]=function(){var t=s.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e,n){(function(e,r){var i=n(40),o=n(22),s=n(1),a=n(73),u=e.from&&e.from!==Uint8Array.from?e.from([0]):new e([0]),c=function(t,e){t._corked?t.once("uncork",e):e()},l=function(t,e){t._autoDestroy&&t.destroy(e)},f=function(t,e){return function(n){n?l(t,"premature close"===n.message?null:n):e&&!t._ended&&t.end()}},h=function(t,e){return t?t._writableState&&t._writableState.finished?e():t._writableState?t.end(e):(t.end(),void e()):e()},d=function(t){return new i.Readable({objectMode:!0,highWaterMark:16}).wrap(t)},p=function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);i.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||!1!==r.autoDestroy,this._forwardDestroy=!r||!1!==r.destroy,this._forwardEnd=!r||!1!==r.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),n&&this.setReadable(n)};s(p,i.Duplex),p.obj=function(t,e,n){return n||(n={}),n.objectMode=!0,n.highWaterMark=16,new p(t,e,n)},p.prototype.cork=function(){1==++this._corked&&this.emit("cork")},p.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},p.prototype.setWritable=function(t){if(this._unwrite&&this._unwrite(),this.destroyed)t&&t.destroy&&t.destroy();else if(null!==t&&!1!==t){var e=this,n=o(t,{writable:!0,readable:!1},f(this,this._forwardEnd)),i=function(){var t=e._ondrain;e._ondrain=null,t&&t()},s=function(){e._writable.removeListener("drain",i),n()};this._unwrite&&r.nextTick(i),this._writable=t,this._writable.on("drain",i),this._unwrite=s,this.uncork()}else this.end()},p.prototype.setReadable=function(t){if(this._unread&&this._unread(),this.destroyed)t&&t.destroy&&t.destroy();else{if(null===t||!1===t)return this.push(null),void this.resume();var e=this,n=o(t,{writable:!1,readable:!0},f(this)),r=function(){e._forward()},i=function(){e.push(null)},s=function(){e._readable2.removeListener("readable",r),e._readable2.removeListener("end",i),n()};this._drained=!0,this._readable=t,this._readable2=t._readableState?t:d(t),this._readable2.on("readable",r),this._readable2.on("end",i),this._unread=s,this._forward()}},p.prototype._read=function(){this._drained=!0,this._forward()},p.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){this._forwarding=!0;for(var t;this._drained&&null!==(t=a(this._readable2));)this.destroyed||(this._drained=this.push(t));this._forwarding=!1}},p.prototype.destroy=function(t){if(!this.destroyed){this.destroyed=!0;var e=this;r.nextTick((function(){e._destroy(t)}))}},p.prototype._destroy=function(t){if(t){var e=this._ondrain;this._ondrain=null,e?e(t):this.emit("error",t)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},p.prototype._write=function(t,e,n){return this.destroyed?n():this._corked?c(this,this._write.bind(this,t,e,n)):t===u?this._finish(n):this._writable?void(!1===this._writable.write(t)?this._ondrain=n:n()):n()},p.prototype._finish=function(t){var e=this;this.emit("preend"),c(this,(function(){h(e._forwardEnd&&e._writable,(function(){!1===e._writableState.prefinished&&(e._writableState.prefinished=!0),e.emit("prefinish"),c(e,t)}))}))},p.prototype.end=function(t,e,n){return"function"==typeof t?this.end(null,null,t):"function"==typeof e?this.end(t,null,e):(this._ended=!0,t&&this.write(t),this._writableState.ending||this.write(u),i.Writable.prototype.end.call(this,n))},t.exports=p}).call(e,n(14).Buffer,n(0))},function(t,e){e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<>1,l=-7,f=n?i-1:0,h=n?-1:1,d=t[e+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=c}return(d?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+f>=1?h/u:h*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<0;t[n+d]=255&s,d+=p,s/=256,c-=8);t[n+d-p]|=128*g}},function(t,e,n){"use strict";function r(t){var e=new i;return s(t,e),e.concat()}function i(){this._array=new Array(20),this._i=0}var o=n(2).Buffer,s=n(24),a=n(5).EventEmitter;n(1)(i,a),i.prototype.write=function(t){return this._array[this._i++]=t,!0},i.prototype.concat=function(){var t,e,n=0,r=new Array(this._array.length),i=this._array,s=0;for(t=0;t>8,0),e.writeUInt8(255&t,1),e}function i(){for(var t=0;t0)&&this[this._states[this._stateCounter]]()&&!this.error;)++this._stateCounter>=this._states.length&&(this._stateCounter=0);return this._list.length},r.prototype._parseHeader=function(){var t=this._list.readUInt8(0);return this.packet.cmd=u.types[t>>u.CMD_SHIFT],this.packet.retain=0!=(t&u.RETAIN_MASK),this.packet.qos=t>>u.QOS_SHIFT&u.QOS_MASK,this.packet.dup=0!=(t&u.DUP_MASK),this._list.consume(1),!0},r.prototype._parseLength=function(){for(var t,e=0,n=1,r=0,i=!0;e<5&&(t=this._list.readUInt8(e++),r+=n*(t&u.LENGTH_MASK),n*=128,0!=(t&u.LENGTH_FIN_MASK));)if(this._list.length<=e){i=!1;break}return i&&(this.packet.length=r,this._list.consume(e)),i},r.prototype._parsePayload=function(){var t=!1;if(0===this.packet.length||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseMessageId();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":case"disconnect":break;default:this._emitError(new Error("Not supported"))}t=!0}return t},r.prototype._parseConnect=function(){var t,e,n,r,i,o,s={},a=this.packet;if(null===(t=this._parseString()))return this._emitError(new Error("Cannot parse protocolId"));if("MQTT"!==t&&"MQIsdp"!==t)return this._emitError(new Error("Invalid protocolId"));if(a.protocolId=t,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(a.protocolVersion=this._list.readUInt8(this._pos),3!==a.protocolVersion&&4!==a.protocolVersion)return this._emitError(new Error("Invalid protocol version"));if(++this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(s.username=this._list.readUInt8(this._pos)&u.USERNAME_MASK,s.password=this._list.readUInt8(this._pos)&u.PASSWORD_MASK,s.will=this._list.readUInt8(this._pos)&u.WILL_FLAG_MASK,s.will&&(a.will={},a.will.retain=0!=(this._list.readUInt8(this._pos)&u.WILL_RETAIN_MASK),a.will.qos=(this._list.readUInt8(this._pos)&u.WILL_QOS_MASK)>>u.WILL_QOS_SHIFT),a.clean=0!=(this._list.readUInt8(this._pos)&u.CLEAN_SESSION_MASK),this._pos++,a.keepalive=this._parseNum(),-1===a.keepalive)return this._emitError(new Error("Packet too short"));if(null===(e=this._parseString()))return this._emitError(new Error("Packet too short"));if(a.clientId=e,s.will){if(null===(n=this._parseString()))return this._emitError(new Error("Cannot parse will topic"));if(a.will.topic=n,null===(r=this._parseBuffer()))return this._emitError(new Error("Cannot parse will payload"));a.will.payload=r}if(s.username){if(null===(o=this._parseString()))return this._emitError(new Error("Cannot parse username"));a.username=o}if(s.password){if(null===(i=this._parseBuffer()))return this._emitError(new Error("Cannot parse password"));a.password=i}return a},r.prototype._parseConnack=function(){var t=this.packet;return this._list.length<2?null:(t.sessionPresent=!!(this._list.readUInt8(this._pos++)&u.SESSIONPRESENT_MASK),t.returnCode=this._list.readUInt8(this._pos),-1===t.returnCode?this._emitError(new Error("Cannot parse return code")):void 0)},r.prototype._parsePublish=function(){var t=this.packet;if(t.topic=this._parseString(),null===t.topic)return this._emitError(new Error("Cannot parse topic"));t.qos>0&&!this._parseMessageId()||(t.payload=this._list.slice(this._pos,t.length))},r.prototype._parseSubscribe=function(){var t,e,n=this.packet;if(1!==n.qos)return this._emitError(new Error("Wrong subscribe header"));if(n.subscriptions=[],this._parseMessageId())for(;this._posthis._list.length||r>this.packet.length?null:(e=this._list.toString("utf8",this._pos,r),this._pos+=n,e)},r.prototype._parseBuffer=function(){var t,e=this._parseNum(),n=e+this._pos;return-1===e||n>this._list.length||n>this.packet.length?null:(t=this._list.slice(this._pos,n),this._pos+=e,t)},r.prototype._parseNum=function(){if(this._list.length-this._pos<2)return-1;var t=this._list.readUInt16BE(this._pos);return this._pos+=2,t},r.prototype._newPacket=function(){return this.packet&&(this._list.consume(this.packet.length),this.emit("packet",this.packet)),this.packet=new a,!0},r.prototype._emitError=function(t){this.error=t,this.emit("error",t)},t.exports=r},function(t,e,n){"use strict";(function(e,r){function i(){return"mqttjs_"+Math.random().toString(16).substr(2,8)}function o(t,e,n){t.emit("packetsend",e),!d.writeToStream(e,t.stream)&&n?t.stream.once("drain",n):n&&n()}function s(t){t&&Object.keys(t).forEach((function(e){"function"==typeof t[e]&&(t[e](new Error("Connection closed")),delete t[e])}))}function a(t,e,n){t.outgoingStore.put(e,(function(r){if(r)return n&&n(r);o(t,e,n)}))}function u(){}function c(t,e){var n,r=this;if(!(this instanceof c))return new c(t,e);for(n in this.options=e||{},_)void 0===this.options[n]?this.options[n]=_[n]:this.options[n]=e[n];this.options.clientId="string"==typeof this.options.clientId?this.options.clientId:i(),this.streamBuilder=t,this.outgoingStore=this.options.outgoingStore||new f,this.incomingStore=this.options.incomingStore||new f,this.queueQoSZero=void 0===this.options.queueQoSZero||this.options.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this.nextId=Math.max(1,Math.floor(65535*Math.random())),this.outgoing={},this.on("connect",(function(){if(!this.disconnected){this.connected=!0;var t=null;t=this.outgoingStore.createStream(),t.once("readable",(function(){function e(){var n,i=t.read(1);i&&(!r.disconnecting&&!r.reconnectTimer&&r.options.reconnectPeriod>0?(t.read(0),n=r.outgoing[i.messageId],r.outgoing[i.messageId]=function(t,r){n&&n(t,r),e()},r._sendPacket(i)):t.destroy&&t.destroy())}e()})).on("error",this.emit.bind(this,"error"))}})),this.on("close",(function(){this.connected=!1,clearTimeout(this.connackTimer)})),this.on("connect",this._setupPingTimer),this.on("connect",(function(){function t(){var n=e.shift(),i=null;n&&(i=n.packet,r._sendPacket(i,(function(e){n.cb&&n.cb(e),t()})))}var e=this.queue;t()}));var o=!0;this.on("connect",(function(){!o&&this.options.clean&&Object.keys(this._resubscribeTopics).length>0&&(this.options.resubscribe?(this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics)):this._resubscribeTopics={}),o=!1})),this.on("close",(function(){null!==r.pingTimer&&(r.pingTimer.clear(),r.pingTimer=null)})),this.on("close",this._setupReconnect),l.EventEmitter.call(this),this._setupStream()}var l=n(5),f=n(28),h=n(22),d=n(54),p=n(34).Writable,g=n(1),b=n(71),m=n(61),v=n(18),y=e.setImmediate||function(t){r.nextTick(t)},_={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0};g(c,l.EventEmitter),c.prototype._setupStream=function(){function t(){r.nextTick(e)}function e(){var e=l.shift(),n=c;e?i._handlePacket(e,t):(c=null,n())}var n,i=this,s=new p,a=d.parser(this.options),c=null,l=[];this._clearReconnect(),this.stream=this.streamBuilder(this),a.on("packet",(function(t){l.push(t)})),s._write=function(t,n,r){c=r,a.parse(t),e()},this.stream.pipe(s),this.stream.on("error",u),h(this.stream,this.emit.bind(this,"close")),n=Object.create(this.options),n.cmd="connect",o(this,n),a.on("error",this.emit.bind(this,"error")),this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout((function(){i._cleanUp(!0)}),this.options.connectTimeout)},c.prototype._handlePacket=function(t,e){switch(this.emit("packetreceive",t),t.cmd){case"publish":this._handlePublish(t,e);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":this._handleAck(t),e();break;case"pubrel":this._handlePubrel(t,e);break;case"connack":this._handleConnack(t),e();break;case"pingresp":this._handlePingresp(t),e()}},c.prototype._checkDisconnecting=function(t){return this.disconnecting&&(t?t(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting},c.prototype.publish=function(t,e,n,r){var i;if("function"==typeof n&&(r=n,n=null),n=v({qos:0,retain:!1,dup:!1},n),this._checkDisconnecting(r))return this;switch(i={cmd:"publish",topic:t,payload:e,qos:n.qos,retain:n.retain,messageId:this._nextId(),dup:n.dup},n.qos){case 1:case 2:this.outgoing[i.messageId]=r||u,this._sendPacket(i);break;default:this._sendPacket(i,r)}return this},c.prototype.subscribe=function(){var t,e,n=Array.prototype.slice.call(arguments),r=[],i=n.shift(),o=i.resubscribe,s=n.pop()||u,a=n.pop(),c=this;if(delete i.resubscribe,"string"==typeof i&&(i=[i]),"function"!=typeof s&&(a=s,s=u),null!==(e=m.validateTopics(i)))return y(s,new Error("Invalid topic "+e)),this;if(this._checkDisconnecting(s))return this;if(a=v({qos:0},a),Array.isArray(i)?i.forEach((function(t){(c._resubscribeTopics[t]0&&(c._resubscribeTopics[t.topic]=t.qos,l.push(t.topic))})),c.messageIdToTopic[t.messageId]=l}return this.outgoing[t.messageId]=function(t,e){if(!t)for(var n=e.granted,i=0;i0?this.once("outgoingEmpty",setTimeout.bind(null,r,10)):r()),this},c.prototype.removeOutgoingMessage=function(t){var e=this.outgoing[t];return delete this.outgoing[t],this.outgoingStore.del({messageId:t},(function(){e(new Error("Message removed"))})),this},c.prototype.reconnect=function(t){var e=this,n=function(){t?(e.options.incomingStore=t.incomingStore,e.options.outgoingStore=t.outgoingStore):(e.options.incomingStore=null,e.options.outgoingStore=null),e.incomingStore=e.options.incomingStore||new f,e.outgoingStore=e.options.outgoingStore||new f,e.disconnecting=!1,e.disconnected=!1,e._deferredReconnect=null,e._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=n:n(),this},c.prototype._reconnect=function(){this.emit("reconnect"),this._setupStream()},c.prototype._setupReconnect=function(){var t=this;!t.disconnecting&&!t.reconnectTimer&&t.options.reconnectPeriod>0&&(this.reconnecting||(this.emit("offline"),this.reconnecting=!0),t.reconnectTimer=setInterval((function(){t._reconnect()}),t.options.reconnectPeriod))},c.prototype._clearReconnect=function(){this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)},c.prototype._cleanUp=function(t,e){e&&this.stream.on("close",e),t?(0===this.options.reconnectPeriod&&this.options.clean&&s(this.outgoing),this.stream.destroy()):this._sendPacket({cmd:"disconnect"},y.bind(null,this.stream.end.bind(this.stream))),this.disconnecting||(this._clearReconnect(),this._setupReconnect()),null!==this.pingTimer&&(this.pingTimer.clear(),this.pingTimer=null),e&&!this.connected&&(this.stream.removeListener("close",e),e())},c.prototype._sendPacket=function(t,e){if(this.connected)if(this._shiftPingInterval(),"publish"===t.cmd)switch(t.qos){case 2:case 1:a(this,t,e);break;case 0:default:o(this,t,e)}else o(this,t,e);else 0===(t.qos||0)&&this.queueQoSZero||"publish"!==t.cmd?this.queue.push({packet:t,cb:e}):t.qos>0?(e=this.outgoing[t.messageId],this.outgoingStore.put(t,(function(t){if(t)return e&&e(t)}))):e&&e(new Error("No connection to broker"))},c.prototype._setupPingTimer=function(){var t=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=b((function(){t._checkPing()}),1e3*this.options.keepalive))},c.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(1e3*this.options.keepalive)},c.prototype._checkPing=function(){this.pingResp?(this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):this._cleanUp(!0)},c.prototype._handlePingresp=function(){this.pingResp=!0},c.prototype._handleConnack=function(t){var e=t.returnCode,n=["","Unacceptable protocol version","Identifier rejected","Server unavailable","Bad username or password","Not authorized"];if(clearTimeout(this.connackTimer),0===e)this.reconnecting=!1,this.emit("connect",t);else if(e>0){var r=new Error("Connection refused: "+n[e]);r.code=e,this.emit("error",r)}},c.prototype._handlePublish=function(t,e){var n=t.topic.toString(),r=t.payload,i=t.qos,o=t.messageId,s=this;switch(i){case 2:this.incomingStore.put(t,(function(){s._sendPacket({cmd:"pubrec",messageId:o},e)}));break;case 1:this.emit("message",n,r,t),this.handleMessage(t,(function(t){if(t)return e&&e(t);s._sendPacket({cmd:"puback",messageId:o},e)}));break;case 0:this.emit("message",n,r,t),this.handleMessage(t,e)}},c.prototype.handleMessage=function(t,e){e()},c.prototype._handleAck=function(t){var e=t.messageId,n=t.cmd,r=null,i=this.outgoing[e],o=this;if(i){switch(n){case"pubcomp":case"puback":delete this.outgoing[e],this.outgoingStore.del(t,i);break;case"pubrec":r={cmd:"pubrel",qos:2,messageId:e},this._sendPacket(r);break;case"suback":if(delete this.outgoing[e],1===t.granted.length&&0!=(128&t.granted[0])){var s=this.messageIdToTopic[e];s&&s.forEach((function(t){delete o._resubscribeTopics[t]}))}i(null,t);break;case"unsuback":delete this.outgoing[e],i(null);break;default:o.emit("error",new Error("unrecognized packet type"))}this.disconnecting&&0===Object.keys(this.outgoing).length&&this.emit("outgoingEmpty")}},c.prototype._handlePubrel=function(t,e){var n=t.messageId,r=this,i={cmd:"pubcomp",messageId:n};r.incomingStore.get(t,(function(n,o){n||"pubrel"===o.cmd?r._sendPacket(i,e):(r.emit("message",o.topic,o.payload,o),r.incomingStore.put(t),r.handleMessage(o,(function(t){if(t)return e&&e(t);r._sendPacket(i,e)})))}))},c.prototype._nextId=function(){var t=this.nextId++;return 65536===this.nextId&&(this.nextId=1),t},c.prototype.getLastMessageId=function(){return 1===this.nextId?65535:this.nextId-1},t.exports=c}).call(e,n(4),n(0))},function(t,e,n){"use strict";(function(e){function r(t){var e;t.auth&&(e=t.auth.match(/^(.+):(.+)$/),e?(t.username=e[1],t.password=e[2]):t.username=t.auth)}function i(t,e){function n(t){return e.servers&&(t._reconnectCount&&t._reconnectCount!==e.servers.length||(t._reconnectCount=0),e.host=e.servers[t._reconnectCount].host,e.port=e.servers[t._reconnectCount].port,e.protocol=e.servers[t._reconnectCount].protocol?e.servers[t._reconnectCount].protocol:e.defaultProtocol,e.hostname=e.host,t._reconnectCount++),c[e.protocol](t,e)}if("object"!=typeof t||e||(e=t,t=null),e=e||{},t){var i=a.parse(t,!0);if(null!=i.port&&(i.port=Number(i.port)),e=u(i,e),null===e.protocol)throw new Error("Missing protocol");e.protocol=e.protocol.replace(/:$/,"")}if(r(e),e.query&&"string"==typeof e.query.clientId&&(e.clientId=e.query.clientId),e.cert&&e.key){if(!e.protocol)throw new Error("Missing secure protocol key");if(-1===["mqtts","wss","wxs"].indexOf(e.protocol))switch(e.protocol){case"mqtt":e.protocol="mqtts";break;case"ws":e.protocol="wss";break;case"wx":e.protocol="wxs";break;default:throw new Error('Unknown protocol for secure connection: "'+e.protocol+'"!')}}if(!c[e.protocol]){var s=-1!==["mqtts","wss"].indexOf(e.protocol);e.protocol=["mqtt","mqtts","ws","wss","wx","wxs"].filter((function(t,e){return(!s||e%2!=0)&&"function"==typeof c[t]}))[0]}if(!1===e.clean&&!e.clientId)throw new Error("Missing clientId for unclean clients");return e.protocol&&(e.defaultProtocol=e.protocol),new o(n,e)}var o=n(59),s=n(28),a=n(41),u=n(18),c={};"browser"!==e.title?(c.mqtt=n(25),c.tcp=n(25),c.ssl=n(15),c.tls=n(15),c.mqtts=n(15)):(c.wx=n(27),c.wxs=n(27)),c.ws=n(26),c.wss=n(26),t.exports=i,t.exports.connect=i,t.exports.MqttClient=o,t.exports.Store=s}).call(e,n(0))},function(t,e,n){"use strict";function r(t){for(var e=t.split("/"),n=0;n0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),n=this.head,r=0;n;)i(n.data,e,r),r+=n.data.length,n=n.next;return e},t}(),s&&s.inspect&&s.inspect.custom&&(t.exports.prototype[s.inspect.custom]=function(){var t=s.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e,n){function r(t){var e=function e(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function i(t){var e=function e(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},n=t.name||"Function wrapped with `once`";return e.onceError=n+" shouldn't be called more than once",e.called=!1,e}var o=n(80);t.exports=o(r),t.exports.strict=o(i),r.proto=r((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})}))},function(t,e,n){(function(t,r){var i;!function(r){function o(t){throw new RangeError(j[t])}function s(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function a(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(I,"."),r+s(t.split("."),e).join(".")}function u(t){for(var e,n,r=[],i=0,o=t.length;i=55296&&e<=56319&&i65535&&(t-=65536,e+=R(t>>>10&1023|55296),t=56320|1023&t),e+R(t)})).join("")}function l(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:y}function f(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function h(t,e,n){var r=0;for(t=n?A(t/k):t>>1,t+=A(t/e);t>M*w>>1;r+=y)t=A(t/M);return A(r+(M+1)*t/(t+S))}function d(t){var e,n,r,i,s,a,u,f,d,p,g=[],b=t.length,m=0,S=E,k=x;for(n=t.lastIndexOf(C),n<0&&(n=0),r=0;r=128&&o("not-basic"),g.push(t.charCodeAt(r));for(i=n>0?n+1:0;i=b&&o("invalid-input"),f=l(t.charCodeAt(i++)),(f>=y||f>A((v-m)/a))&&o("overflow"),m+=f*a,d=u<=k?_:u>=k+w?w:u-k,!(fA(v/p)&&o("overflow"),a*=p;e=g.length+1,k=h(m-s,e,0==s),A(m/e)>v-S&&o("overflow"),S+=A(m/e),m%=e,g.splice(m++,0,S)}return c(g)}function p(t){var e,n,r,i,s,a,c,l,d,p,g,b,m,S,k,O=[];for(t=u(t),b=t.length,e=E,n=0,s=x,a=0;a=e&&gA((v-n)/m)&&o("overflow"),n+=(c-e)*m,e=c,a=0;av&&o("overflow"),g==e){for(l=n,d=y;p=d<=s?_:d>=s+w?w:d-s,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=y-_,A=Math.floor,R=String.fromCharCode;m={version:"1.4.1",ucs2:{decode:u,encode:c},decode:d,encode:p,toASCII:b,toUnicode:g},void 0!==(i=function(){return m}.call(e,n,e,t))&&(t.exports=i)}()}).call(e,n(78)(t),n(4))},function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,o){e=e||"&",n=n||"=";var s={};if("string"!=typeof t||0===t.length)return s;var a=/\+/g;t=t.split(e);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=t.length;u>0&&c>u&&(c=u);for(var l=0;l=0?(f=g.substr(0,b),h=g.substr(b+1)):(f=g,h=""),d=decodeURIComponent(f),p=decodeURIComponent(h),r(s,d)?i(s[d])?s[d].push(p):s[d]=[s[d],p]:s[d]=p}return s};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";function r(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),n=this.head,r=0;n;)i(n.data,e,r),r+=n.data.length,n=n.next;return e},t}()},function(t,e,n){"use strict";function r(t,e,n){var r=this;this._callback=t,this._args=n,this._interval=setInterval(t,e,this._args),this.reschedule=function(t){t||(t=r._interval),r._interval&&clearInterval(r._interval),r._interval=setInterval(r._callback,t,r._args)},this.clear=function(){r._interval&&(clearInterval(r._interval),r._interval=void 0)},this.destroy=function(){r._interval&&clearInterval(r._interval),r._callback=void 0,r._interval=void 0,r._args=void 0}}function i(){if("function"!=typeof arguments[0])throw new Error("callback needed");if("number"!=typeof arguments[1])throw new Error("interval needed");var t;if(arguments.length>0){t=new Array(arguments.length-2);for(var e=0;e=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),b(e)?r.showHidden=e:e&&n._extend(r,e),S(r.showHidden)&&(r.showHidden=!1),S(r.depth)&&(r.depth=2),S(r.colors)&&(r.colors=!1),S(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),c(r,t,r.depth)}function s(t,e){var n=o.styles[e];return n?"\x1b["+o.colors[n][0]+"m"+t+"\x1b["+o.colors[n][1]+"m":t}function a(t,e){return t}function u(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}function c(t,e,r){if(t.customInspect&&e&&O(e.inspect)&&e.inspect!==n.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(r,t);return _(i)||(i=c(t,i,r)),i}var o=l(t,e);if(o)return o;var s=Object.keys(e),a=u(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(e)),C(e)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(e);if(0===s.length){if(O(e)){var b=e.name?": "+e.name:"";return t.stylize("[Function"+b+"]","special")}if(k(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(E(e))return t.stylize(Date.prototype.toString.call(e),"date");if(C(e))return f(e)}var m,v="",y=!1,w=["{","}"];return g(e)&&(y=!0,w=["[","]"]),O(e)&&(v=" [Function"+(e.name?": "+e.name:"")+"]"),k(e)&&(v=" "+RegExp.prototype.toString.call(e)),E(e)&&(v=" "+Date.prototype.toUTCString.call(e)),C(e)&&(v=" "+f(e)),0!==s.length||y&&0!=e.length?r<0?k(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),m=y?h(t,e,r,a,s):s.map((function(n){return d(t,e,r,a,n,y)})),t.seen.pop(),p(m,v,w)):w[0]+v+w[1]}function l(t,e){if(S(e))return t.stylize("undefined","undefined");if(_(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return y(e)?t.stylize(""+e,"number"):b(e)?t.stylize(""+e,"boolean"):m(e)?t.stylize("null","null"):void 0}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,r,i){for(var o=[],s=0,a=e.length;s-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n"))):a=t.stylize("[Circular]","special")),S(s)){if(o&&i.match(/^\d+$/))return a;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function p(t,e,n){return t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function g(t){return Array.isArray(t)}function b(t){return"boolean"==typeof t}function m(t){return null===t}function v(t){return null==t}function y(t){return"number"==typeof t}function _(t){return"string"==typeof t}function w(t){return"symbol"==typeof t}function S(t){return void 0===t}function k(t){return x(t)&&"[object RegExp]"===I(t)}function x(t){return"object"==typeof t&&null!==t}function E(t){return x(t)&&"[object Date]"===I(t)}function C(t){return x(t)&&("[object Error]"===I(t)||t instanceof Error)}function O(t){return"function"==typeof t}function T(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function I(t){return Object.prototype.toString.call(t)}function j(t){return t<10?"0"+t.toString(10):t.toString(10)}function M(){var t=new Date,e=[j(t.getHours()),j(t.getMinutes()),j(t.getSeconds())].join(":");return[t.getDate(),L[t.getMonth()],e].join(" ")}function A(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var R=/%[sdj%]/g;n.format=function(t){if(!_(t)){for(var e=[],n=0;n=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),a=r[n];nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&(this.$el.getElementsByTagName("input")[e-1].focus(),t.preventDefault()):39===n&&110===n&&r(t.target).end===i.length&&e<3&&this.$el.getElementsByTagName("input")[e+1].focus()},onInput:function(t,e){var n=t.target.value;t.target.value=this.segments[e];var r=Number(n);isNaN(r)||(""===n?this.segments.splice(e,1,""):r>255||r<0?this.segments.splice(e,1,255):this.segments.splice(e,1,r),(3===n.length&&e<3||"."===n[n.length-1])&&this.$el.getElementsByTagName("input")[e+1].focus())},onInputBlur:function(){var t=this;setTimeout((function(){t.$emit("on-blur",t.segments.join(".")),t.onBlur&&t.onBlur(t.segments.join(".")),t.onItemChange&&t.onItemChange(t.segments.join("."),t.item)}),50)},onPaste:function(t,e){var n=this,r=t.clipboardData.getData("text/plain"),i=r.split(".");i.forEach((function(t,r){e+r<4&&!isNaN(t)&&t>=0&&t<=255&&n.segments.splice(e+r,1,t)})),t.preventDefault()},syncIp:function(t){var e=this;t&&-1!==t.indexOf(".")&&t.split(".").map((function(t,n){return(isNaN(t)||t<0||t>255)&&(t=255),e.segments.splice(n,1,t),t}))}},mounted:function(){var t=this;this.syncIp(this.ip),this.$watch((function(){return t.segments.join(".")}),(function(e,n){e!==n&&("..."===e&&(e=""),t.onChange&&t.onChange(e))}))}};e.default=i},b67c:function(t,e,n){"use strict";n.r(e);var r=n("db85"),i=n("4aa6");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var s,a=n("f0c5"),u=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,"05d37b98",null,!1,r["a"],s);e["default"]=u.exports},bbb4:function(t,e,n){"use strict";n.r(e);var r=n("a021"),i=n("4287");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var s,a=n("f0c5"),u=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],s);e["default"]=u.exports},c245:function(t,e,n){"use strict";n.r(e);var r=n("7b46"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},c259:function(t,e,n){"use strict";n.r(e);var r=n("806b"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},cd7b:function(t,e,n){"use strict";n.r(e);var r=n("296c"),i=n("df9f");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var s,a=n("f0c5"),u=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,"7910377f",null,!1,r["a"],s);e["default"]=u.exports},d41c:function(t,e,n){"undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/index/index",(function(){return Vue.extend(n("80a1").default)})),__definePage("pages/detail/detail",(function(){return Vue.extend(n("01cc").default)})),__definePage("pages/setting/setting",(function(){return Vue.extend(n("cd7b").default)}))},d691:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("8380"));function i(t){return t&&t.__esModule?t:{default:t}}var o={top:"top",bottom:"bottom",center:"center",message:"top",dialog:"center",share:"bottom"},s={data:function(){return{config:o,popupWidth:0,popupHeight:0}},mixins:[r.default],computed:{isDesktop:function(){return this.popupWidth>=500&&this.popupHeight>=500}},mounted:function(){var t=this,e=function(){var e=uni.getSystemInfoSync(),n=e.windowWidth,r=e.windowHeight,i=e.windowTop;t.popupWidth=n,t.popupHeight=r+i};e()}};e.default=s},d8c1:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t._$s(0,"i",t.isShow)?n("view",{ref:"ani",class:t._$s(0,"c",t.customClass),style:t._$s(0,"s",t.transformStyles),attrs:{animation:t._$s(0,"a-animation",t.animationData),_i:0},on:{click:t.onClick}},[t._t("default",null,{_i:1})],2):t._e()},o=[]},db85:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uniTransition:n("9d4e").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t._$s(0,"i",t.showPopup)?n("view",{staticClass:t._$s(0,"sc","uni-popup"),class:t._$s(0,"c",[t.popupstyle,t.isDesktop?"fixforpc-z-index":""]),attrs:{_i:0},on:{touchmove:function(e){return e.stopPropagation(),e.preventDefault(),t.clear(e)}}},[t._$s(1,"i",t.maskShow)?n("uni-transition",{staticClass:t._$s(1,"sc","uni-mask--hook"),attrs:{"mode-class":["fade"],styles:t.maskClass,duration:t.duration,show:t.showTrans,_i:1},on:{click:t.onTap}}):t._e(),n("uni-transition",{attrs:{"mode-class":t.ani,styles:t.transClass,duration:t.duration,show:t.showTrans,_i:2},on:{click:t.onTap}},[n("view",{staticClass:t._$s(3,"sc","uni-popup__wrapper-box"),attrs:{_i:3},on:{click:function(e){return e.stopPropagation(),t.clear(e)}}},[t._t("default",null,{_i:4})],2)])],1):t._e()},o=[]},df9f:function(t,e,n){"use strict";n.r(e);var r=n("ec8b"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},e549:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uniIcons:n("066e").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","uni-navbar"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","uni-navbar__content"),class:t._$s(1,"c",{"uni-navbar--fixed":t.fixed,"uni-navbar--shadow":t.shadow,"uni-navbar--border":t.border}),style:t._$s(1,"s",{"background-color":t.backgroundColor}),attrs:{_i:1}},[t._$s(2,"i",t.statusBar)?n("status-bar",{attrs:{_i:2}}):t._e(),n("view",{staticClass:t._$s(3,"sc","uni-navbar__header uni-navbar__content_view"),style:t._$s(3,"s",{color:t.color,backgroundColor:t.backgroundColor}),attrs:{_i:3}},[n("view",{staticClass:t._$s(4,"sc","uni-navbar__header-btns uni-navbar__header-btns-left uni-navbar__content_view"),attrs:{_i:4},on:{click:t.onClickLeft}},[t._$s(5,"i",t.leftIcon.length)?n("view",{staticClass:t._$s(5,"sc","uni-navbar__content_view"),attrs:{_i:5}},[n("uni-icons",{attrs:{color:t.color,type:t.leftIcon,size:"24",_i:6}})],1):t._e(),t._$s(7,"i",t.leftText.length)?n("view",{staticClass:t._$s(7,"sc","uni-navbar-btn-text uni-navbar__content_view"),class:t._$s(7,"c",{"uni-navbar-btn-icon-left":!t.leftIcon.length}),attrs:{_i:7}},[n("text",{style:t._$s(8,"s",{color:t.color,fontSize:"14px"}),attrs:{_i:8}},[t._v(t._$s(8,"t0-0",t._s(t.leftText)))])]):t._e(),t._t("left",null,{_i:9})],2),n("view",{staticClass:t._$s(10,"sc","uni-navbar__header-container uni-navbar__content_view"),attrs:{_i:10},on:{click:t.onClickTitle}},[t._$s(11,"i",t.title.length)?n("view",{staticClass:t._$s(11,"sc","uni-navbar__header-container-inner uni-navbar__content_view"),attrs:{_i:11}},[n("text",{staticClass:t._$s(12,"sc","uni-nav-bar-text"),style:t._$s(12,"s",{color:t.color}),attrs:{_i:12}},[t._v(t._$s(12,"t0-0",t._s(t.title)))])]):t._e(),t._t("default",null,{_i:13})],2),n("view",{staticClass:t._$s(14,"sc","uni-navbar__header-btns uni-navbar__content_view"),class:t._$s(14,"c",t.title.length?"uni-navbar__header-btns-right":""),attrs:{_i:14},on:{click:t.onClickRight}},[t._$s(15,"i",t.rightIcon.length)?n("view",{staticClass:t._$s(15,"sc","uni-navbar__content_view"),attrs:{_i:15}},[n("uni-icons",{attrs:{color:t.color,type:t.rightIcon,size:"24",_i:16}})],1):t._e(),t._$s(17,"i",t.rightText.length&&!t.rightIcon.length)?n("view",{staticClass:t._$s(17,"sc","uni-navbar-btn-text uni-navbar__content_view"),attrs:{_i:17}},[n("text",{staticClass:t._$s(18,"sc","uni-nav-bar-right-text"),attrs:{_i:18}},[t._v(t._$s(18,"t0-0",t._s(t.rightText)))])]):t._e(),t._t("right",null,{_i:19})],2)])],1),t._$s(20,"i",t.fixed)?n("view",{staticClass:t._$s(20,"sc","uni-navbar__placeholder"),attrs:{_i:20}},[t._$s(21,"i",t.statusBar)?n("status-bar",{attrs:{_i:21}}):t._e(),n("view",{staticClass:t._$s(22,"sc","uni-navbar__placeholder-view"),attrs:{_i:22}})],1):t._e()])},o=[]},ec8b:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("0dd7")),i=o(n("7ec2"));function o(t){return t&&t.__esModule?t:{default:t}}var s={components:{imagePopper:r.default,IPInput:i.default},data:function(){return{sys_ip:"",port:""}},mounted:function(){},onBackPress:function(e){t("log",e," at pages/setting/setting.vue:42"),uni.navigateTo({url:"/pages/index/index"})},methods:{goBack:function(){uni.navigateTo({url:"../index/index"})},commit:function(){this.$mqtt.options.hostname="".concat(this.sys_ip),this.$mqtt.options.port="".concat(this.port),this.$mqtt.reconnect(),this.$refs.popup.open("top")}}};e.default=s}).call(this,n("0de9")["default"])},ecdd:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"tuiActionsheet",data:function(){return{curIndex:-1}},props:{maskClosable:{type:Boolean,default:!0},show:{type:Boolean,default:!1},itemList:{type:Array},tips:{type:String,default:""},color:{type:String,default:"#9a9a9a"},size:{type:Number,default:26},isCancel:{type:Boolean,default:!0}},methods:{handleClickMask:function(){this.maskClosable&&this.handleClickCancel()},handleClickItem:function(e){if(this.show){var n=e.currentTarget.dataset;t("log",n," at components/bottomDrawer.vue:79"),this.curIndex=n.index}},handleClickCancel:function(){this.$emit("chooseCancel")},handleConfirm:function(){this.handleClickCancel(),this.$emit("slectDevice",{index:this.curIndex})}}};e.default=n}).call(this,n("0de9")["default"])},f0c5:function(t,e,n){"use strict";function r(t,e,n,r,i,o,s,a,u,c){var l,f="function"===typeof t?t.options:t;if(u){f.components||(f.components={});var h=Object.prototype.hasOwnProperty;for(var d in u)h.call(u,d)&&!h.call(f.components,d)&&(f.components[d]=u[d])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(f.mixins||(f.mixins=[])).push(c)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),o&&(f._scopeId="data-v-"+o),s?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},f._ssrRegister=l):i&&(l=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(f.functional){f._injectStyles=l;var p=f.render;f.render=function(t,e){return l.call(e),p(t,e)}}else{var g=f.beforeCreate;f.beforeCreate=g?[].concat(g,l):[l]}return{exports:t,options:f}}n.d(e,"a",(function(){return r}))},f1ba:function(t,e,n){"use strict";n.r(e);var r=n("a57b");for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);var o,s,a,u,c=n("f0c5"),l=Object(c["a"])(r["default"],o,s,!1,null,null,null,!1,a,u);e["default"]=l.exports},f231:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("5a46"));function i(t){return t&&t.__esModule?t:{default:t}}var o={name:"UniNavBar",components:{statusBar:r.default},props:{title:{type:String,default:""},leftText:{type:String,default:""},rightText:{type:String,default:""},leftIcon:{type:String,default:""},rightIcon:{type:String,default:""},fixed:{type:[Boolean,String],default:!1},color:{type:String,default:"#000000"},backgroundColor:{type:String,default:"#FFFFFF"},statusBar:{type:[Boolean,String],default:!1},shadow:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0}},mounted:function(){uni.report&&""!==this.title&&uni.report("title",this.title)},methods:{onClickLeft:function(){this.$emit("clickLeft")},onClickRight:function(){this.$emit("clickRight")},onClickTitle:function(){this.$emit("clickTitle")}}};e.default=o},f4e4:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("41b6");function i(t){return u(t)||a(t)||s(t)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){if(t){if("string"===typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function a(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function u(t){if(Array.isArray(t))return c(t)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{};t.duration&&(this.durationTime=t.duration),this.animation=(0,r.createAnimation)(Object.assign(this.config,t))},onClick:function(){this.$emit("click",{detail:this.isShow})},step:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.animation){for(var r in e)try{var o;if("object"===typeof e[r])(o=this.animation)[r].apply(o,i(e[r]));else this.animation[r](e[r])}catch(s){t("error","\u65b9\u6cd5 ".concat(r," \u4e0d\u5b58\u5728")," at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:138")}return this.animation.step(n),this}},run:function(t){this.animation&&this.animation.run(t)},open:function(){var t=this;clearTimeout(this.timer),this.transform="",this.isShow=!0;var e=this.styleInit(!1),n=e.opacity,i=e.transform;"undefined"!==typeof n&&(this.opacity=n),this.transform=i,this.$nextTick((function(){t.timer=setTimeout((function(){t.animation=(0,r.createAnimation)(t.config,t),t.tranfromInit(!1).step(),t.animation.run(),t.$emit("change",{detail:t.isShow})}),20)}))},close:function(t){var e=this;this.animation&&this.tranfromInit(!0).step().run((function(){e.isShow=!1,e.animationData=null,e.animation=null;var t=e.styleInit(!1),n=t.opacity,r=t.transform;e.opacity=n||1,e.transform=r,e.$emit("change",{detail:e.isShow})}))},styleInit:function(t){var e=this,n={transform:""},r=function(t,r){"fade"===r?n.opacity=e.animationType(t)[r]:n.transform+=e.animationType(t)[r]+" "};return"string"===typeof this.modeClass?r(t,this.modeClass):this.modeClass.forEach((function(e){r(t,e)})),n},tranfromInit:function(t){var e=this,n=function(t,n){var r=null;"fade"===n?r=t?0:1:(r=t?"-100%":"0","zoom-in"===n&&(r=t?.8:1),"zoom-out"===n&&(r=t?1.2:1),"slide-right"===n&&(r=t?"100%":"0"),"slide-bottom"===n&&(r=t?"100%":"0")),e.animation[e.animationMode()[n]](r)};return"string"===typeof this.modeClass?n(t,this.modeClass):this.modeClass.forEach((function(e){n(t,e)})),this.animation},animationType:function(t){return{fade:t?1:0,"slide-top":"translateY(".concat(t?"0":"-100%",")"),"slide-right":"translateX(".concat(t?"0":"100%",")"),"slide-bottom":"translateY(".concat(t?"0":"100%",")"),"slide-left":"translateX(".concat(t?"0":"-100%",")"),"zoom-in":"scaleX(".concat(t?1:.8,") scaleY(").concat(t?1:.8,")"),"zoom-out":"scaleX(".concat(t?1:1.2,") scaleY(").concat(t?1:1.2,")")}},animationMode:function(){return{fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}},toLine:function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}}};e.default=d}).call(this,n("0de9")["default"])},fb94:function(t,e,n){"use strict";n("d41c");var r=s(n("8bbf")),i=s(n("f1ba")),o=s(n("5817"));function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=lt.call(n);if("[object Array]"===r)return e=n.slice(0),e;if("[object Object]"===r){for(var i in n)e[i]=t(e[i],n[i]);return e}if("[object Date]"===r)return new Date(n.getTime());if("[object RegExp]"===r){var o=String(n),s=o.lastIndexOf("/");return new RegExp(o.slice(1,s),o.slice(s+1))}return n},ht=function(t){return ft("[object Array]"===lt.call(t)?[]:{},t)},dt=(r={},s(r,String,""),s(r,Number,0),s(r,Boolean,!1),s(r,Object,null),s(r,Array,[]),s(r,null,null),r);function pt(t){return dt[t]}function gt(t){return v(t)?y(t,"value")?t.value:pt(t.type):pt(t)}function bt(t){return v(t)?t.type:t}function mt(t,e,n,r){var i=n[t];if(void 0!==i){var o=e[t],s=bt(o);i=vt(i,s);var a=o&&o.observer;return a&&setTimeout((function(){yt(a,r,i)}),4),i}return gt(e[t])}function vt(t,e){return e===Boolean?!!t:e===String?String(t):t}function yt(t,e,n,r){try{"function"===typeof t?t.call(e,n,r):"string"===typeof t&&"function"===typeof e[t]&&e[t](n,r)}catch(i){console.error("execute observer ".concat(t," callback fail! err: ").concat(i))}}function _t(t,e){var n=t.$options.mpOptions.properties;if(n){var r=ht(t.$options.propsData)||{},i=function(i){var o=!!v(n[i])&&n[i].observer,s=mt(i,n,r,t);Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){var n=s;e===s||e!==e&&s!==s||(s=Array.isArray(e)?e.slice(0):e,o&&yt(o,t,e,n),t.$forceUpdate())}})};for(var o in n)i(o)}}function wt(t){var e=t.$options.mpOptions&&t.$options.mpOptions.properties,n=t.$options.propsData;n&&e&&Object.keys(e).forEach((function(r){y(n,r)&&(t[r]=vt(n[r],bt(e[r])))}))}function St(t){var e=JSON.parse(JSON.stringify(t.$options.mpOptions.data||{}));t[x]=e;var n={get:function(){return t[x]},set:function(e){t[x]=e}};Object.defineProperties(t,{data:n,properties:n}),t.setData=ct,_t(t,e),Object.keys(e).forEach((function(e){at(t,x,e)}))}function kt(t){var e=t.$emit;t.triggerEvent=function(n,r,i){var o={dataset:t.$el.dataset},s={target:o,currentTarget:o,detail:r,preventDefault:_,stopPropagation:_};e.call(t,n,s)},t.$emit=function(){t.triggerEvent.apply(t,arguments)},t.getRelationNodes=function(e){return(t._$relationNodes&&t._$relationNodes[e]||[]).filter((function(t){return!t._isDestroyed}))},t._$updateProperties=wt}function xt(t){var e=t.$options.watch;e&&Object.keys(e).forEach((function(n){var r=e[n];if(r.mounted){var i=t[n],o=r.handler;"string"===typeof o&&(o=t[o]),o&&o.call(t,i,i)}}))}var Et={beforeCreate:function(){this._renderProxy=this,this._$self=this,this._$noop=_},created:function(){St(this),kt(this),it(this)},mounted:function(){xt(this)},destroyed:function(){ot(this,"unlinked")}};function Ct(e){var n=A(e);n.mixins.unshift(Et),n.mpOptions.path=t.__wxRoute,t.__wxComponents[t.__wxRoute]=n}function Ot(t){t.onServiceAttached||(t.onServiceAttached=[]),t.onServiceAttached.push((function(){ot(this,"linked")}))}function Tt(e){var n=J(e);n.mixins.unshift(Et),n.mpOptions.path=t.__wxRoute,Ot(n),t.__wxComponents[t.__wxRoute]=n}function It(t){return t}t.__wxRoute="",t.__wxComponents=Object.create(null),t.__wxVueOptions=Object.create(null);var jt=i.default.nextTick;e.nextTick=jt;var Mt=uni.__$wx__,At=Mt;e.default=At}).call(this,n("c8ba"))},ffd4:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("0dd7"));function i(t){return t&&t.__esModule?t:{default:t}}var o={components:{imagePopper:r.default},data:function(){return{warningLevel:1,showImgPopper:{show:!1,imgSrc:""},curInfo:{},videoUrl:""}},onBackPress:function(e){t("log",e," at pages/detail/detail.vue:49"),uni.navigateTo({url:"/pages/index/index"})},mounted:function(){var e=this;this.curInfo=getApp().globalData.curPageDetail,uni.request({url:"http://192.168.20.10:9000/video/"+this.curInfo.id,success:function(n){t("log","request success",n.data.data.videoUrl," at pages/detail/detail.vue:60"),e.videoUrl=n.data.data.videoUrl}})},methods:{goBack:function(){uni.navigateTo({url:"../index/index"})},showImg:function(){this.showImgPopper.show=!0},hideImgPopper:function(){this.showImgPopper.show=!1},getLevel:function(t){switch(t){case 1:return"\u4e00\u7ea7";case 2:return"\u4e8c\u7ea7";case 3:return"\u4e09\u7ea7";case 4:return"\u56db\u7ea7";default:break}}}};e.default=o}).call(this,n("0de9")["default"])}},[["fb94","app-config"]]]);