(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},"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;r<e;r++)n[r-1]=arguments[r];console[t].apply(console,n)}function a(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var s=e.shift();if(i())return e.push(e.pop().replace("at ","uni-app:///")),console[s].apply(console,e);var a=e.map((function(t){var e=Object.prototype.toString.call(t).toLowerCase();if("[object object]"===e||"[object array]"===e)try{t="---BEGIN:JSON---"+JSON.stringify(t,o)+"---END:JSON---"}catch(i){t=e}else if(null===t)t="---NULL---";else if(void 0===t)t="---UNDEFINED---";else{var n=r(t).toUpperCase();t="NUMBER"===n||"BOOLEAN"===n?"---BEGIN:"+n+"---"+t+"---END:"+n+"---":String(t)}return t})),u="";if(a.length>1){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},"1d6e":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=[]},"244a":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=[]},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;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimation=d;var c=function(){function t(e,n){s(this,t),this.options=e,this.animation=uni.createAnimation(e),this.currentStepAnimates={},this.next=0,this.$=n}return u(t,[{key:"_nvuePushAnimates",value:function(t,e){var n=this.currentStepAnimates[this.next],r={};if(r=n||{styles:{},config:{}},l.includes(t)){r.styles.transform||(r.styles.transform="");var i="";"rotate"===t&&(i="deg"),r.styles.transform+="".concat(t,"(").concat(e+i,") ")}else r.styles[t]="".concat(e);this.currentStepAnimates[this.next]=r}},{key:"_animateRun",value:function(){var t=arguments.length>0&&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=[];++b<e;)d&&d[b].run();b=-1,e=p.length}d=null,g=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var l,f,h=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var d,p=[],g=!1,b=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new u(t,e)),1!==p.length||g||i(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){function r(t,e){for(var n in t)e[n]=t[n]}function i(t,e,n){return s(t,e,n)}var o=n(14),s=o.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=o:(r(o,e),e.Buffer=i),r(s,i),i.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return s(t,e,n)},i.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=s(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return s(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},function(t,e,n){(function(t){function n(t){return Array.isArray?Array.isArray(t):"[object Array]"===b(t)}function r(t){return"boolean"==typeof t}function i(t){return null===t}function o(t){return null==t}function s(t){return"number"==typeof t}function a(t){return"string"==typeof t}function u(t){return"symbol"==typeof t}function c(t){return void 0===t}function l(t){return"[object RegExp]"===b(t)}function f(t){return"object"==typeof t&&null!==t}function h(t){return"[object Date]"===b(t)}function d(t){return"[object Error]"===b(t)||t instanceof Error}function p(t){return"function"==typeof t}function g(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function b(t){return Object.prototype.toString.call(t)}e.isArray=n,e.isBoolean=r,e.isNull=i,e.isNullOrUndefined=o,e.isNumber=s,e.isString=a,e.isSymbol=u,e.isUndefined=c,e.isRegExp=l,e.isObject=f,e.isDate=h,e.isError=d,e.isFunction=p,e.isPrimitive=g,e.isBuffer=t.isBuffer}).call(e,n(14).Buffer)},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function o(t){return"number"==typeof t}function s(t){return"object"==typeof t&&null!==t}function a(t){return void 0===t}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(t){if(!o(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},r.prototype.emit=function(t){var e,n,r,o,u,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}if(n=this._events[t],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),n.apply(this,o)}else if(s(n))for(o=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,u=0;u<r;u++)c[u].apply(this,o);return!0},r.prototype.addListener=function(t,n){var o;if(!i(n))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,i(n.listener)?n.listener:n),this._events[t]?s(this._events[t])?this._events[t].push(n):this._events[t]=[this._events[t],n]:this._events[t]=n,s(this._events[t])&&!this._events[t].warned&&(o=a(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&o>0&&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<f.length;h++){var d=f[h];r.prototype[d]||(r.prototype[d]=l.prototype[d])}Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),r.prototype._destroy=function(t,e){this.push(null),this.end(),s.nextTick(e,t)}},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(o,this)}function o(t){t.end()}var s=n(13),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(35),l=n(37);u.inherits(r,c);for(var f=a(l.prototype),h=0;h<f.length;h++){var d=f[h];r.prototype[d]||(r.prototype[d]=l.prototype[d])}Object.defineProperty(r.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),r.prototype._destroy=function(t,e){this.push(null),this.end(),s(e,t)}},function(t,e,n){"use strict";function r(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function i(t){var e=r(t);if("string"!=typeof e&&(v.isEncoding===y||!y(t)))throw new Error("Unknown encoding: "+t);return e||t}function o(t){var e;switch(this.encoding=i(t),this.encoding){case"utf16le":this.text=h,this.end=d,e=4;break;case"utf8":this.fillLast=c,e=4;break;case"base64":this.text=p,this.end=g,e=3;break;default:return this.write=b,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=v.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:-1}function a(t,e,n){var r=e.length-1;if(r<n)return 0;var i=s(e[r]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--r<n?0:(i=s(e[r]))>=0?(i>0&&(t.lastNeed=i-2),i):--r<n?0:(i=s(e[r]),i>=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<t.length?e?e+this.text(t,n):this.text(t,n):e||""},o.prototype.end=f,o.prototype.text=l,o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},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(10),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(48),l=n(49);u.inherits(r,c);for(var f=a(l.prototype),h=0;h<f.length;h++){var d=f[h];r.prototype[d]||(r.prototype[d]=l.prototype[d])}Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),r.prototype._destroy=function(t,e){this.push(null),this.end(),s.nextTick(e,t)}},function(t,e,n){"use strict";(function(e){function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return e.nextTick((function(){t.apply(null,o)}))}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:n}:t.exports=e}).call(e,n(0))},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";(function(e){function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return e.nextTick((function(){t.apply(null,o)}))}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:n}:t.exports=e}).call(e,n(0))},function(t,e,n){"use strict";(function(e){function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return e.nextTick((function(){t.apply(null,o)}))}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports=n:t.exports=e.nextTick}).call(e,n(0))},function(t,e,n){"use strict";(function(t){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return s(this,t,e,n)}function s(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?h(t,e,n,r):"string"==typeof e?l(t,e,n):d(t,e)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e,n,r){return a(e),e<=0?i(t,e):void 0!==n?"string"==typeof r?i(t,e).fill(n,r):i(t,e).fill(n):i(t,e)}function c(t,e){if(a(e),t=i(t,e<0?0:0|p(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function l(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|b(e,n);t=i(t,r);var s=t.write(e,n);return s!==r&&(t=t.slice(0,s)),t}function f(t,e){var n=e.length<0?0:0|p(e.length);t=i(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function h(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=f(t,e),t}function d(t,e){if(o.isBuffer(e)){var n=0|p(e.length);return t=i(t,n),0===t.length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||Q(e.length)?i(t,0):f(t,e);if("Buffer"===e.type&&X(e.data))return f(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(t){if(t>=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;s<u;s++)if(o(t,s)===o(e,-1===l?0:s-l)){if(-1===l&&(l=s),s-l+1===c)return l*a}else-1!==l&&(s-=s-l),l=-1}else for(n+c>u&&(n=u-c),s=n;s>=0;s--){for(var f=!0,h=0;h<c;h++)if(o(t,s+h)!==o(e,h)){f=!1;break}if(f)return s}return-1}function w(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(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;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function S(t,e,n,r){return V(H(e,t.length-n),t,n,r)}function k(t,e,n,r){return V(z(e),t,n,r)}function x(t,e,n,r){return k(t,e,n,r)}function E(t,e,n,r){return V(K(e),t,n,r)}function C(t,e,n,r){return V(Y(e,t.length-n),t,n,r)}function O(t,e,n){return 0===e&&n===t.length?G.fromByteArray(t):G.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,s,a,u,c=t[i],l=null,f=c>239?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;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=Z));return n}function j(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function M(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function A(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=F(t[o]);return i}function R(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)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||e<s)throw new RangeError('"value" argument is out of bounds');if(n+r>t.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<o;++i)t[n+i]=(e&255<<8*(r?i:1-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<o;++i)t[n+i]=e>>>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;s<r;++s){if((n=t.charCodeAt(s))>55295&&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<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Y(t,e){for(var n,r,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=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<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Q(t){return t!==t}
|
*/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);i<s;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!X(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=o.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!o.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},o.byteLength=b,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?T(this,0,t):m.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+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;f<u;++f)if(c[f]!==l[f]){s=c[f],a=l[f];break}return s<a?-1:a<s?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},o.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(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),e<t&&(e=t),o.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=o.prototype;else{var i=e-t;n=new o(i,void 0);for(var s=0;s<i;++s)n[s]=this[s+t]}return n},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(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<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=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<n&&(i*=256);)this[e+o]=t/i&255;return e+n},o.prototype.writeUIntBE=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=n-1,o=1;for(this[e+i]=255&t;--i>=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<n&&(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.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<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=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<r-n&&(r=t.length-e+n);var i,s=r-n;if(this===t&&n<e&&e<r)for(i=s-1;i>=0;--i)t[i+e]=this[i+n];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<s;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+s),e);return s},o.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var s;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(s=e;s<n;++s)this[s]=t;else{var a=o.isBuffer(t)?t:H(new o(t,r).toString()),u=a.length;for(s=0;s<n-e;++s)this[s+e]=a[s%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(4))},function(t,e,n){"use strict";function r(t,e){function n(n){e.rejectUnauthorized&&t.emit("error",n),r.end()}var r;return e.port=e.port||8883,e.host=e.hostname||e.host||"localhost",e.rejectUnauthorized=!1!==e.rejectUnauthorized,delete e.path,r=i.connect(e),r.on("secureConnect",(function(){e.rejectUnauthorized&&!r.authorized?r.emit("error",new Error("TLS not authorized")):r.removeListener("error",n)})),r.on("error",n),r}var i=n(84);t.exports=r},function(t,e,n){function r(t,e){this._id=t,this._clearFn=e}var i=Function.prototype.apply;e.setTimeout=function(){return new r(i.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(i.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=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<arguments.length;e++){var n=arguments[e];for(var i in n)r.call(n,i)&&(t[i]=n[i])}return t}t.exports=n;var r=Object.prototype.hasOwnProperty},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.default=new(function(){function t(){r(this,t),this.listeners=new Map}return i(t,[{key:"addListener",value:function(t,e,n){return"function"==typeof e&&(this.listeners.has(t)||this.listeners.set(t,[]),this.listeners.get(t).push({callback:e,vm:n}),!0)}},{key:"removeListener",value:function(t,e,n){var r=this.listeners.get(t),i=void 0;return!!(r&&r.length&&(i=r.reduce((function(t,r,i){return"function"==typeof r.callback&&r.callback===e&&r.vm===n?t=i:t}),-1))>-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;i<n;i++)r[i-1]=arguments[i];var o=!1;return this.listeners.forEach((function(n,i){e.eq(t,i)&&n&&n.length&&(n.forEach((function(e){var n;(n=e.callback).call.apply(n,[e.vm].concat(r,[t]))})),o=!0)})),o}},{key:"eq",value:function(t,e){var n=t.split("/"),r=e.split("/");if(!t.includes("#")&&!e.includes("#")&&n.length!==r.length)return!1;r.length<n.length&&(r=t.split("/"),n=e.split("/"));var i=!0;return n.forEach((function(t,e){"+"===t||"#"===t||r[e]&&"+"===r[e]||r[e]&&"#"===r[e]||r[e]&&r[e]===t||(i=!1)})),i}}]),t}())},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(10);t.exports={destroy:r,undestroy:i}},function(t,e,n){t.exports=n(5).EventEmitter},function(t,e,n){var r=n(64),i=function(){},o=function(t){return t.setHeader&&"function"==typeof t.abort},s=function(t){return t.stdio&&Array.isArray(t.stdio)&&3===t.stdio.length},a=function t(e,n,a){if("function"==typeof n)return t(e,null,n);n||(n={}),a=r(a||i);var u=e._writableState,c=e._readableState,l=n.readable||!1!==n.readable&&e.readable,f=n.writable||!1!==n.writable&&e.writable,h=function(){e.writable||d()},d=function(){f=!1,l||a.call(e)},p=function(){l=!1,f||a.call(e)},g=function(t){a.call(e,t?new Error("exited with error code: "+t):null)},b=function(t){a.call(e,t)},m=function(){return(!l||c&&c.ended)&&(!f||u&&u.ended)?void 0:a.call(e,new Error("premature close"))},v=function(){e.req.on("finish",d)};return o(e)?(e.on("complete",d),e.on("abort",m),e.req?v():e.on("request",v)):f&&!u&&(e.on("end",h),e.on("close",h)),s(e)&&e.on("exit",g),e.on("end",p),e.on("finish",d),!1!==n.error&&e.on("error",b),e.on("close",m),function(){e.removeListener("complete",d),e.removeListener("abort",m),e.removeListener("request",v),e.req&&e.req.removeListener("finish",d),e.removeListener("end",h),e.removeListener("close",h),e.removeListener("finish",d),e.removeListener("exit",g),e.removeListener("end",p),e.removeListener("error",b),e.removeListener("close",m)}};t.exports=a},function(t,e,n){"use strict";function r(t){return[0,1,2].map((function(e){return[0,1].map((function(n){return[0,1].map((function(r){var s=new i(1);return s.writeUInt8(o.codes[t]<<o.CMD_SHIFT|(n?o.DUP_MASK:0)|e<<o.QOS_SHIFT|r,0,!0),s}))}))}))}var i=n(2).Buffer,o=t.exports;for(var s in o.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"reserved"},o.codes={},o.types){var a=o.types[s];o.codes[a]=s}o.CMD_SHIFT=4,o.CMD_MASK=240,o.DUP_MASK=8,o.QOS_MASK=3,o.QOS_SHIFT=1,o.RETAIN_MASK=1,o.LENGTH_MASK=127,o.LENGTH_FIN_MASK=128,o.SESSIONPRESENT_MASK=1,o.SESSIONPRESENT_HEADER=i.from([o.SESSIONPRESENT_MASK]),o.CONNACK_HEADER=i.from([o.codes.connack<<o.CMD_SHIFT]),o.USERNAME_MASK=128,o.PASSWORD_MASK=64,o.WILL_RETAIN_MASK=32,o.WILL_QOS_MASK=24,o.WILL_QOS_SHIFT=3,o.WILL_FLAG_MASK=4,o.CLEAN_SESSION_MASK=2,o.CONNECT_HEADER=i.from([o.codes.connect<<o.CMD_SHIFT]),o.PUBLISH_HEADER=r("publish"),o.SUBSCRIBE_HEADER=r("subscribe"),o.UNSUBSCRIBE_HEADER=r("unsubscribe"),o.ACKS={unsuback:r("unsuback"),puback:r("puback"),pubcomp:r("pubcomp"),pubrel:r("pubrel"),pubrec:r("pubrec")},o.SUBACK_HEADER=i.from([o.codes.suback<<o.CMD_SHIFT]),o.VERSION3=i.from([3]),o.VERSION4=i.from([4]),o.QOS=[0,1,2].map((function(t){return i.from([t])})),o.EMPTY={pingreq:i.from([o.codes.pingreq<<4,0]),pingresp:i.from([o.codes.pingresp<<4,0]),disconnect:i.from([o.codes.disconnect<<4,0])}},function(t,e,n){"use strict";function r(t,e){switch(e.cork&&(e.cork(),O(i,e)),A&&(A=!1,j()),t.cmd){case"connect":return o(t,e);case"connack":return s(t,e);case"publish":return a(t,e);case"puback":case"pubrec":case"pubrel":case"pubcomp":case"unsuback":return u(t,e);case"subscribe":return c(t,e);case"suback":return l(t,e);case"unsubscribe":return f(t,e);case"pingreq":case"pingresp":case"disconnect":return h(t,e);default:return e.emit("error",new Error("Unknown command")),!1}}function i(t){t.uncork()}function o(t,e){var n=t||{},r=n.protocolId||"MQTT",i=n.protocolVersion||4,o=n.will,s=n.clean,a=n.keepalive||0,u=n.clientId||"",c=n.username,l=n.password;void 0===s&&(s=!0);var f=0;if(!r||"string"!=typeof r&&!k.isBuffer(r))return e.emit("error",new Error("Invalid protocolId")),!1;if(f+=r.length+2,3!==i&&4!==i)return e.emit("error",new Error("Invalid protocol version")),!1;if(f+=1,"string"!=typeof u&&!k.isBuffer(u)||!u&&4!==i||!u&&!s){if(i<4)return e.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(1*s==0)return e.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1}else f+=u.length+2;if("number"!=typeof a||a<0||a>65535||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<<S.WILL_QOS_SHIFT:0,d|=o?S.WILL_FLAG_MASK:0,d|=s?S.CLEAN_SESSION_MASK:0,e.write(k.from([d])),M(e,a),y(e,u),o&&(b(e,o.topic),y(e,o.payload)),null!=c&&y(e,c),null!=l&&y(e,l),!0}function s(t,e){var n=t||{},r=n.returnCode;return"number"!=typeof r?(e.emit("error",new Error("Invalid return code")),!1):(e.write(S.CONNACK_HEADER),g(e,2),e.write(t.sessionPresent?S.SESSIONPRESENT_HEADER:E),e.write(k.from([r])))}function a(t,e){var n=t||{},r=n.qos||0,i=n.retain?S.RETAIN_MASK:0,o=n.topic,s=n.payload||x,a=n.messageId,u=0;if("string"==typeof o)u+=k.byteLength(o)+2;else{if(!k.isBuffer(o))return e.emit("error",new Error("Invalid topic")),!1;u+=o.length+2}return k.isBuffer(s)?u+=s.length:u+=k.byteLength(s),r&&"number"!=typeof a?(e.emit("error",new Error("Invalid messageId")),!1):(r&&(u+=2),e.write(S.PUBLISH_HEADER[r][t.dup?1:0][i?1:0]),g(e,u),M(e,_(o)),e.write(o),r>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<o.length;a+=1){var u=o[a].topic,c=o[a].qos;if("string"!=typeof u)return e.emit("error",new Error("Invalid subscriptions - invalid topic")),!1;if("number"!=typeof c)return e.emit("error",new Error("Invalid subscriptions - invalid qos")),!1;s+=k.byteLength(u)+2+1}e.write(S.SUBSCRIBE_HEADER[1][r?1:0][0]),g(e,s),M(e,i);for(var l=!0,f=0;f<o.length;f++){var h=o[f],d=h.topic,p=h.qos;b(e,d),l=e.write(S.QOS[p])}return l}function l(t,e){var n=t||{},r=n.messageId,i=n.granted,o=0;if("number"!=typeof r)return e.emit("error",new Error("Invalid messageId")),!1;if(o+=2,"object"!=typeof i||!i.length)return e.emit("error",new Error("Invalid qos vector")),!1;for(var s=0;s<i.length;s+=1){if("number"!=typeof i[s])return e.emit("error",new Error("Invalid qos vector")),!1;o+=1}return e.write(S.SUBACK_HEADER),g(e,o),M(e,r),e.write(k.from(i))}function f(t,e){var n=t||{},r=n.messageId,i=n.dup?S.DUP_MASK:0,o=n.unsubscriptions,s=0;if("number"!=typeof r)return e.emit("error",new Error("Invalid messageId")),!1;if(s+=2,"object"!=typeof o||!o.length)return e.emit("error",new Error("Invalid unsubscriptions")),!1;for(var a=0;a<o.length;a+=1){if("string"!=typeof o[a])return e.emit("error",new Error("Invalid unsubscriptions")),!1;s+=k.byteLength(o[a])+2}e.write(S.UNSUBSCRIBE_HEADER[1][i?1:0][0]),g(e,s),M(e,r);for(var u=!0,c=0;c<o.length;c++)u=b(e,o[c]);return u}function h(t,e){return e.write(S.EMPTY[t.cmd])}function d(t){return t>=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;e<f.length;e++)i(f[e]);f=[],r.onopen&&r.onopen.apply(r,arguments)})),n.onSocketMessage((function(t){r.onmessage&&r.onmessage.apply(r,arguments)})),n.onSocketClose((function(){r.onclose&&r.onclose.apply(r,arguments),r.readyState=r.CLOSED,l=!1})),n.onSocketError((function(){r.onerror&&r.onerror.apply(r,arguments),r.readyState=r.CLOSED,l=!1})),r}function s(t,e){var n="wxs"===t.protocol?"wss":"ws",r=n+"://"+t.hostname+t.path;return t.port&&80!==t.port&&443!==t.port&&(r=n+"://"+t.hostname+":"+t.port+t.path),"function"==typeof t.transformWsUrl&&(r=t.transformWsUrl(r,t,e)),r}function a(t){t.hostname||(t.hostname="localhost"),t.path||(t.path="/"),t.wsOptions||(t.wsOptions={})}function u(t,e){var n="MQIsdp"===e.protocolId&&3===e.protocolVersion?"mqttv3.1":"mqtt";a(e);var r=s(e,t);return h(o(r,[n]))}function c(t,e){if(e.hostname=e.hostname||e.host,!e.hostname)throw new Error("Could not determine host. Specify host manually.");return u(t,e)}var l=!1,f=[],h=r(42);t.exports=c},function(t,e,n){"use strict";(function(e){function r(t){if(!(this instanceof r))return new r(t);this.options=t||{},this.options=i(a,t),this._inflights={}}var i=n(18),o=n(34).Readable,s={objectMode:!0},a={clean:!0};r.prototype.put=function(t,e){return this._inflights[t.messageId]=t,e&&e(),this},r.prototype.createStream=function(){var t=new o(s),n=this._inflights,r=Object.keys(this._inflights),i=!1,a=0;return t._read=function(){!i&&a<r.length?this.push(n[r[a++]]):this.push(null)},t.destroy=function(){if(!i){var t=this;i=!0,e.nextTick((function(){t.emit("close")}))}},t},r.prototype.del=function(t,e){return t=this._inflights[t.messageId],t?(delete this._inflights[t.messageId],e(null,t)):e&&e(new Error("missing packet")),this},r.prototype.get=function(t,e){return t=this._inflights[t.messageId],t?e(null,t):e&&e(new Error("missing packet")),this},r.prototype.close=function(t){this.options.clean&&(this._inflights=null),t&&t()},t.exports=r}).call(e,n(0))},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(6),t=t||{};var r=e instanceof R;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,o=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:s,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(6),!(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<t.highWaterMark||0===t.length)}function d(t){return t>=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.highWaterMark&&(N("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function _(t){return function(){var e=t._readableState;N("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&$(t,"data")&&(e.flowing=!0,x(t))}}function w(t){N("readable nexttick read 0"),t.read(0)}function S(t,e){e.resumeScheduled||(e.resumeScheduled=!0,A.nextTick(k,t,e))}function k(t,e){e.reading||(N("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),x(t),e.flowing&&!e.reading&&t.read(0)}function x(t){var e=t._readableState;for(N("flow",e.flowing);e.flowing&&null!==t.read(););}function E(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=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 t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?O(t,e):T(t,e),r}function O(t,e){var n=e.head,r=1,i=n.data;for(t-=i.length;n=n.next;){var o=n.data,s=t>o.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<r;n++)if(t[n]===e)return n;return-1}var A=n(12);t.exports=u;var R,P=n(11);u.ReadableState=a;var $=(n(5).EventEmitter,function(t,e){return t.listeners(e).length}),L=n(33),B=n(2).Buffer,U=e.Uint8Array||function(){},D=n(3);D.inherits=n(1);var q=n(85),N=void 0;N=q&&q.debuglog?q.debuglog("stream"):function(){};var W,F=n(63),H=n(32);D.inherits(u,L);var z=["error","close","destroy","pause","resume"];Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),u.prototype.destroy=H.destroy,u.prototype._undestroy=H.undestroy,u.prototype._destroy=function(t,e){this.push(null),e(t)},u.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=B.from(t,e),e=""),n=!0),c(this,t,e,!1,n)},u.prototype.unshift=function(t){return c(this,t,null,!0,!1)},u.prototype.isPaused=function(){return!1===this._readableState.flowing},u.prototype.setEncoding=function(t){return W||(W=n(8).StringDecoder),this._readableState.decoder=new W(t),this._readableState.encoding=t,this};var Y=8388608;u.prototype.read=function(t){N("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=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-t<e.highWaterMark)&&(i=!0,N("length less than watermark",i)),e.ended||e.reading?(i=!1,N("reading or ended",i)):i&&(N("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=p(n,e))),r=t>0?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<i;o++)r[o].emit("unpipe",this,n);return this}var s=M(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},u.prototype.on=function(t,e){var n=L.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&b(this):A.nextTick(w,this))}return n},u.prototype.addListener=u.prototype.on,u.prototype.resume=function(){var t=this._readableState;return t.flowing||(N("resume"),t.flowing=!0,S(this,t)),this},u.prototype.pause=function(){return N("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(N("pause"),this._readableState.flowing=!1,this.emit("pause")),this},u.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(N("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){N("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<z.length;o++)t.on(z[o],this.emit.bind(this,z[o]));return this._read=function(e){N("wrapped _read",e),r&&(r=!1,t.resume())},this},Object.defineProperty(u.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),u._fromList=E}).call(e,n(4),n(0))},function(t,e,n){"use strict";function r(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function i(t){if(!(this instanceof i))return new i(t);a.call(this,t),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",o)}function o(){var t=this;"function"==typeof this._flush?this._flush((function(e,n){s(t,e,n)})):s(this,null,null)}function s(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}t.exports=i;var a=n(6),u=n(3);u.inherits=n(1),u.inherits(i,a),i.prototype.push=function(t,e){return this._transformState.needTransform=!1,a.prototype.push.call(this,t,e)},i.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},i.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},i.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},i.prototype._destroy=function(t,e){var n=this;a.prototype._destroy.call(this,t,(function(t){e(t),n.emit("close")}))}},function(t,e,n){"use strict";(function(e,r,i){function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){O(e,t)}}function s(t){return $.from(t)}function a(t){return $.isBuffer(t)||t instanceof L}function u(){}function c(t,e){I=I||n(6),t=t||{};var r=e instanceof I;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,s=t.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===t.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){v(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function l(t){if(I=I||n(6),!(A.call(l,this)||this instanceof I))return new l(t);this._writableState=new c(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),P.call(this)}function f(t,e){var n=new Error("write after end");t.emit("error",n),T.nextTick(e,n)}function h(t,e,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),T.nextTick(r,o),i=!1),i}function d(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=$.from(e,n)),e}function p(t,e,n,r,i,o){if(!n){var s=d(e,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=e.objectMode?1:r.length;e.length+=a;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else g(t,e,!1,a,r,i,o);return u}function g(t,e,n,r,i,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function b(t,e,n,r,i){--e.pendingcb,n?(T.nextTick(i,r),T.nextTick(E,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),E(t,e))}function m(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function v(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(m(n),e)b(t,n,r,e,i);else{var o=S(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(t,n),r?j(y,t,n,o,i):y(t,n,o,i)}}function y(t,e,n,r){n||_(t,e),e.pendingcb--,r(),E(t,e)}function _(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function w(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),s=e.corkedRequestsFree;s.entry=n;for(var a=0,u=!0;n;)i[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;i.allBuffers=u,g(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(g(t,e,!1,e.objectMode?1:c.length,c,l,f),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function S(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function k(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),E(t,e)}))}function x(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,T.nextTick(k,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function E(t,e){var n=S(e);return n&&(x(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}function C(t,e,n){e.ending=!0,E(t,e),n&&(e.finished?T.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function O(t,e,n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}var T=n(12);t.exports=l;var I,j=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-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<t.highWaterMark||0===t.length)}function d(t){return t>=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.highWaterMark&&(N("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function _(t){return function(){var e=t._readableState;N("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&$(t,"data")&&(e.flowing=!0,x(t))}}function w(t){N("readable nexttick read 0"),t.read(0)}function S(t,e){e.resumeScheduled||(e.resumeScheduled=!0,A(k,t,e))}function k(t,e){e.reading||(N("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),x(t),e.flowing&&!e.reading&&t.read(0)}function x(t){var e=t._readableState;for(N("flow",e.flowing);e.flowing&&null!==t.read(););}function E(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=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 t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?O(t,e):T(t,e),r}function O(t,e){var n=e.head,r=1,i=n.data;for(t-=i.length;n=n.next;){var o=n.data,s=t>o.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<r;n++)if(t[n]===e)return n;return-1}var A=n(13);t.exports=u;var R,P=n(11);u.ReadableState=a;var $=(n(5).EventEmitter,function(t,e){return t.listeners(e).length}),L=n(39),B=n(2).Buffer,U=e.Uint8Array||function(){},D=n(3);D.inherits=n(1);var q=n(87),N=void 0;N=q&&q.debuglog?q.debuglog("stream"):function(){};var W,F=n(70),H=n(38);D.inherits(u,L);var z=["error","close","destroy","pause","resume"];Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),u.prototype.destroy=H.destroy,u.prototype._undestroy=H.undestroy,u.prototype._destroy=function(t,e){this.push(null),e(t)},u.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=B.from(t,e),e=""),n=!0),c(this,t,e,!1,n)},u.prototype.unshift=function(t){return c(this,t,null,!0,!1)},u.prototype.isPaused=function(){return!1===this._readableState.flowing},u.prototype.setEncoding=function(t){return W||(W=n(8).StringDecoder),this._readableState.decoder=new W(t),this._readableState.encoding=t,this};var Y=8388608;u.prototype.read=function(t){N("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=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-t<e.highWaterMark)&&(i=!0,N("length less than watermark",i)),e.ended||e.reading?(i=!1,N("reading or ended",i)):i&&(N("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=p(n,e))),r=t>0?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<i;o++)r[o].emit("unpipe",this,n);return this}var s=M(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},u.prototype.on=function(t,e){var n=L.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&b(this):A(w,this))}return n},u.prototype.addListener=u.prototype.on,u.prototype.resume=function(){var t=this._readableState;return t.flowing||(N("resume"),t.flowing=!0,S(this,t)),this},u.prototype.pause=function(){return N("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(N("pause"),this._readableState.flowing=!1,this.emit("pause")),this},u.prototype.wrap=function(t){var e=this._readableState,n=!1,r=this;for(var i in t.on("end",(function(){if(N("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&r.push(t)}r.push(null)})),t.on("data",(function(i){N("wrapped data"),e.decoder&&(i=e.decoder.write(i)),(!e.objectMode||null!==i&&void 0!==i)&&(e.objectMode||i&&i.length)&&(r.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<z.length;o++)t.on(z[o],r.emit.bind(r,z[o]));return r._read=function(e){N("wrapped _read",e),n&&(n=!1,t.resume())},r},u._fromList=E}).call(e,n(4),n(0))},function(t,e,n){"use strict";function r(t){this.afterTransform=function(e,n){return i(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function i(t,e,n){var r=t._transformState;r.transforming=!1;var i=r.writecb;if(!i)return t.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&t.push(n),i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);a.call(this,t),this._transformState=new r(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(t,n){s(e,t,n)})):s(e)}))}function s(t,e,n){if(e)return t.emit("error",e);null!==n&&void 0!==n&&t.push(n);var r=t._writableState,i=t._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(i.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}t.exports=o;var a=n(7),u=n(3);u.inherits=n(1),u.inherits(o,a),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,a.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var n=this;a.prototype._destroy.call(this,t,(function(t){e(t),n.emit("close")}))}},function(t,e,n){"use strict";(function(e,r,i){function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){O(e,t)}}function s(t){return $.from(t)}function a(t){return $.isBuffer(t)||t instanceof L}function u(){}function c(t,e){I=I||n(7),t=t||{},this.objectMode=!!t.objectMode,e instanceof I&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){v(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function l(t){if(I=I||n(7),!(A.call(l,this)||this instanceof I))return new l(t);this._writableState=new c(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),P.call(this)}function f(t,e){var n=new Error("write after end");t.emit("error",n),T(e,n)}function h(t,e,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),T(r,o),i=!1),i}function d(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=$.from(e,n)),e}function p(t,e,n,r,i,o){if(!n){var s=d(e,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=e.objectMode?1:r.length;e.length+=a;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else g(t,e,!1,a,r,i,o);return u}function g(t,e,n,r,i,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function b(t,e,n,r,i){--e.pendingcb,n?(T(i,r),T(E,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),E(t,e))}function m(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function v(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(m(n),e)b(t,n,r,e,i);else{var o=S(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(t,n),r?j(y,t,n,o,i):y(t,n,o,i)}}function y(t,e,n,r){n||_(t,e),e.pendingcb--,r(),E(t,e)}function _(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function w(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),s=e.corkedRequestsFree;s.entry=n;for(var a=0,u=!0;n;)i[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;i.allBuffers=u,g(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new o(e)}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(g(t,e,!1,e.objectMode?1:c.length,c,l,f),n=n.next,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=n,e.bufferProcessing=!1}function S(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function k(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),E(t,e)}))}function x(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,T(k,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function E(t,e){var n=S(e);return n&&(x(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}function C(t,e,n){e.ending=!0,E(t,e),n&&(e.finished?T(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function O(t,e,n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}var T=n(13);t.exports=l;var I,j=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-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&&r<t.indexOf("#")?"?":"#",o=t.split(i),s=/\\/g;o[0]=o[0].replace(s,"/"),t=o.join(i);var a=t;if(a=a.trim(),!n&&1===t.split("#").length){var f=h.exec(a);if(f)return this.path=a,this.href=a,this.pathname=f[1],f[2]?(this.search=f[2],this.query=e?k.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var d=l.exec(a);if(d){d=d[0];var p=d.toLowerCase();this.protocol=p,a=a.substr(d.length)}if(n||d||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var x="//"===a.substr(0,2);!x||d&&w[d]||(a=a.substr(2),this.slashes=!0)}if(!w[d]&&(x||d&&!S[d])){for(var E=-1,C=0;C<m.length;C++){var O=a.indexOf(m[C]);-1!==O&&(-1===E||O<E)&&(E=O)}var T,I;I=-1===E?a.lastIndexOf("@"):a.lastIndexOf("@",E),-1!==I&&(T=a.slice(0,I),a=a.slice(I+1),this.auth=decodeURIComponent(T)),E=-1;for(C=0;C<b.length;C++){O=a.indexOf(b[C]);-1!==O&&(-1===E||O<E)&&(E=O)}-1===E&&(E=a.length),this.host=a.slice(0,E),a=a.slice(E),this.parseHost(),this.hostname=this.hostname||"";var j="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!j)for(var M=this.hostname.split(/\./),A=(C=0,M.length);C<A;C++){var R=M[C];if(R&&!R.match(v)){for(var P="",$=0,L=R.length;$<L;$++)R.charCodeAt($)>127?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;C<A;C++){var W=g[C];if(-1!==a.indexOf(W)){var F=encodeURIComponent(W);F===W&&(F=escape(W)),a=a.split(W).join(F)}}var H=a.indexOf("#");-1!==H&&(this.hash=a.substr(H),a=a.slice(0,H));var z=a.indexOf("?");if(-1!==z?(this.search=a.substr(z),this.query=a.substr(z+1),e&&(this.query=k.parse(this.query)),a=a.slice(0,z)):e&&(this.search="",this.query={}),a&&(this.pathname=a),S[p]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){q=this.pathname||"";var Y=this.search||"";this.path=q+Y}return this.href=this.format(),this},r.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&c.isObject(this.query)&&Object.keys(this.query).length&&(o=k.stringify(this.query));var s=this.search||o&&"?"+o||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||S[e])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})),s=s.replace("#","%23"),e+i+n+s+r},r.prototype.resolve=function(t){return this.resolveObject(i(t,!1,!0)).format()},r.prototype.resolveObject=function(t){if(c.isString(t)){var e=new r;e.parse(t,!1,!0),t=e}for(var n=new r,i=Object.keys(this),o=0;o<i.length;o++){var s=i[o];n[s]=this[s]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var a=Object.keys(t),u=0;u<a.length;u++){var l=a[u];"protocol"!==l&&(n[l]=t[l])}return S[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!S[t.protocol]){for(var f=Object.keys(t),h=0;h<f.length;h++){var d=f[h];n[d]=t[d]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||w[t.protocol])n.pathname=t.pathname;else{for(var p=(t.pathname||"").split("/");p.length&&!(t.host=p.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var g=n.pathname||"",b=n.search||"";n.path=g+b}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var m=n.pathname&&"/"===n.pathname.charAt(0),v=t.host||t.pathname&&"/"===t.pathname.charAt(0),y=v||m||n.host&&t.pathname,_=y,k=n.pathname&&n.pathname.split("/")||[],x=(p=t.pathname&&t.pathname.split("/")||[],n.protocol&&!S[n.protocol]);if(x&&(n.hostname="",n.port=null,n.host&&(""===k[0]?k[0]=n.host:k.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),y=y&&(""===p[0]||""===k[0])),v)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,k=p;else if(p.length)k||(k=[]),k.pop(),k=k.concat(p),n.search=t.search,n.query=t.query;else if(!c.isNullOrUndefined(t.search)){if(x){n.hostname=n.host=k.shift();var E=!!(n.host&&n.host.indexOf("@")>0)&&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;r<t.length;r++)"string"==typeof t[r].chunk?n[r]=c.from(t[r],"utf8"):n[r]=t[r].chunk;this._write(c.concat(n),"binary",e)}var v,y,_="browser"===e.title,w=!!r.WebSocket,S=_?l:s;n&&!Array.isArray(n)&&"object"==typeof n&&(o=n,n=null,("string"==typeof o.protocol||Array.isArray(o.protocol))&&(n=o.protocol)),o||(o={}),void 0===o.objectMode&&(o.objectMode=!(!0===o.binary||void 0===o.binary));var k=i(o,S,f);o.objectMode||(k._writev=m);var x=o.browserBufferSize||524288,E=o.browserBufferTimeout||1e3;"object"==typeof t?y=t:(y=w&&_?new u(t,n):new u(t,n,o),y.binaryType="arraybuffer"),y.readyState===y.OPEN?v=k:(v=a.obj(),y.onopen=h),v.socket=y,y.onclose=d,y.onerror=p,y.onmessage=g,k.on("close",b);var C=!o.objectMode;return v}var s=n(40).Transform,a=n(51),u=n(79),c=n(2).Buffer;t.exports=o}).call(e,n(0),n(4))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(44),o=r(i),s=n(19),a=r(s);e.default={install:function(t,e,n){if(!e)throw new Error("[Vue-Mqtt] cannot locate connection");var r=new o.default(e,n);t.prototype.$mqtt=r.Mqtt,t.mixin({created:function(){var t=this,e=this.$options.mqtt;this.$options.mqtt=new Proxy({},{set:function(e,n,r){return a.default.addListener(n,r,t),e[n]=r,!0},deleteProperty:function(e,n){return a.default.removeListener(n,t.$options.mqtt[n],t),delete e.key,!0}}),e&&Object.keys(e).forEach((function(n){t.$options.mqtt[n]=e[n]}))},beforeDestroy:function(){var t=this,e=this.$options.mqtt;e&&Object.keys(e).forEach((function(e){delete t.$options.mqtt[e]}))}})}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),s=r(o),a=n(60),u=r(a),c=function t(e,n){i(this,t),this.Mqtt="string"==typeof e?u.default.connect(e,n):e,this.Mqtt.on("message",(function(t,e,n){s.default.emit(t,e)}))};e.default=c},function(t,e,n){"use strict";function r(t){var e=t.length;if(e%4>0)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<n;e+=4)i=l[t.charCodeAt(e)]<<18|l[t.charCodeAt(e+1)]<<12|l[t.charCodeAt(e+2)]<<6|l[t.charCodeAt(e+3)],s[u++]=i>>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;o<n;o+=3)r=(t[o]<<16)+(t[o+1]<<8)+t[o+2],i.push(s(r));return i.join("")}function u(t){for(var e,n=t.length,r=n%3,i="",o=[],s=0,u=n-r;s<u;s+=16383)o.push(a(t,s,s+16383>u?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;d<p;++d)c[d]=h[d],l[h.charCodeAt(d)]=d;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},function(t,e,n){function r(t){if(!(this instanceof r))return new r(t);if(this._bufs=[],this.length=0,"function"==typeof t){this._callback=t;var e=function(t){this._callback&&(this._callback(t),this._callback=null)}.bind(this);this.on("pipe",(function(t){t.on("error",e)})),this.on("unpipe",(function(t){t.removeListener("error",e)}))}else this.append(t);i.call(this)}var i=n(47),o=n(77),s=n(2).Buffer;o.inherits(r,i),r.prototype._offset=function(t){var e,n=0,r=0;if(0===t)return[0,0];for(;r<this._bufs.length;r++){if(e=n+this._bufs[r].length,t<e||r==this._bufs.length-1)return[r,t-n];n=e}},r.prototype.append=function(t){var e=0;if(s.isBuffer(t))this._appendBuffer(t);else if(Array.isArray(t))for(;e<t.length;e++)this.append(t[e]);else if(t instanceof r)for(;e<t._bufs.length;e++)this.append(t._bufs[e]);else null!=t&&("number"==typeof t&&(t=t.toString()),this._appendBuffer(s.from(t)));return this},r.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length},r.prototype._write=function(t,e,n){this._appendBuffer(t),"function"==typeof n&&n()},r.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)},r.prototype.end=function(t){i.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)},r.prototype.get=function(t){return this.slice(t,t+1)[0]},r.prototype.slice=function(t,e){return"number"==typeof t&&t<0&&(t+=this.length),"number"==typeof e&&e<0&&(e+=this.length),this.copy(null,0,t,e)},r.prototype.copy=function(t,e,n,r){if(("number"!=typeof n||n<0)&&(n=0),("number"!=typeof r||r>this.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;o<this._bufs.length;o++)this._bufs[o].copy(t,f),f+=this._bufs[o].length;return t}if(l<=this._bufs[u[0]].length-h)return a?this._bufs[u[0]].copy(t,e,h,h+l):this._bufs[u[0]].slice(h,h+l);for(a||(t=s.allocUnsafe(c)),o=u[0];o<this._bufs.length;o++){if(i=this._bufs[o].length-h,!(l>i)){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;t<this._bufs.length;t++)e.append(this._bufs[t]);return e},r.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)},function(){var t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var e in t)!function(e){r.prototype[e]=function(n){return this.slice(n,n+t[e])[e](0)}}(e)}(),t.exports=r},function(t,e,n){t.exports=n(9)},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(9),t=t||{};var r=e instanceof R;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,o=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:s,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(9),!(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<t.highWaterMark||0===t.length)}function d(t){return t>=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.highWaterMark&&(N("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function _(t){return function(){var e=t._readableState;N("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&$(t,"data")&&(e.flowing=!0,x(t))}}function w(t){N("readable nexttick read 0"),t.read(0)}function S(t,e){e.resumeScheduled||(e.resumeScheduled=!0,A.nextTick(k,t,e))}function k(t,e){e.reading||(N("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),x(t),e.flowing&&!e.reading&&t.read(0)}function x(t){var e=t._readableState;for(N("flow",e.flowing);e.flowing&&null!==t.read(););}function E(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=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 t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?O(t,e):T(t,e),r}function O(t,e){var n=e.head,r=1,i=n.data;for(t-=i.length;n=n.next;){var o=n.data,s=t>o.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<r;n++)if(t[n]===e)return n;return-1}var A=n(10);t.exports=u;var R,P=n(11);u.ReadableState=a;var $=(n(5).EventEmitter,function(t,e){return t.listeners(e).length}),L=n(21),B=n(2).Buffer,U=e.Uint8Array||function(){},D=n(3);D.inherits=n(1);var q=n(81),N=void 0;N=q&&q.debuglog?q.debuglog("stream"):function(){};var W,F=n(50),H=n(20);D.inherits(u,L);var z=["error","close","destroy","pause","resume"];Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),u.prototype.destroy=H.destroy,u.prototype._undestroy=H.undestroy,u.prototype._destroy=function(t,e){this.push(null),e(t)},u.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=B.from(t,e),e=""),n=!0),c(this,t,e,!1,n)},u.prototype.unshift=function(t){return c(this,t,null,!0,!1)},u.prototype.isPaused=function(){return!1===this._readableState.flowing},u.prototype.setEncoding=function(t){return W||(W=n(8).StringDecoder),this._readableState.decoder=new W(t),this._readableState.encoding=t,this};var Y=8388608;u.prototype.read=function(t){N("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=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-t<e.highWaterMark)&&(i=!0,N("length less than watermark",i)),e.ended||e.reading?(i=!1,N("reading or ended",i)):i&&(N("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=p(n,e))),r=t>0?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<i;o++)r[o].emit("unpipe",this,n);return this}var s=M(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},u.prototype.on=function(t,e){var n=L.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&b(this):A.nextTick(w,this))}return n},u.prototype.addListener=u.prototype.on,u.prototype.resume=function(){var t=this._readableState;return t.flowing||(N("resume"),t.flowing=!0,S(this,t)),this},u.prototype.pause=function(){return N("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(N("pause"),this._readableState.flowing=!1,this.emit("pause")),this},u.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(N("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){N("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<z.length;o++)t.on(z[o],this.emit.bind(this,z[o]));return this._read=function(e){N("wrapped _read",e),r&&(r=!1,t.resume())},this},Object.defineProperty(u.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),u._fromList=E}).call(e,n(4),n(0))},function(t,e,n){"use strict";(function(e,r,i){function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){O(e,t)}}function s(t){return $.from(t)}function a(t){return $.isBuffer(t)||t instanceof L}function u(){}function c(t,e){I=I||n(9),t=t||{};var r=e instanceof I;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,s=t.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===t.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){v(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function l(t){if(I=I||n(9),!(A.call(l,this)||this instanceof I))return new l(t);this._writableState=new c(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),P.call(this)}function f(t,e){var n=new Error("write after end");t.emit("error",n),T.nextTick(e,n)}function h(t,e,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),T.nextTick(r,o),i=!1),i}function d(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=$.from(e,n)),e}function p(t,e,n,r,i,o){if(!n){var s=d(e,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=e.objectMode?1:r.length;e.length+=a;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else g(t,e,!1,a,r,i,o);return u}function g(t,e,n,r,i,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function b(t,e,n,r,i){--e.pendingcb,n?(T.nextTick(i,r),T.nextTick(E,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),E(t,e))}function m(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function v(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(m(n),e)b(t,n,r,e,i);else{var o=S(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(t,n),r?j(y,t,n,o,i):y(t,n,o,i)}}function y(t,e,n,r){n||_(t,e),e.pendingcb--,r(),E(t,e)}function _(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function w(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),s=e.corkedRequestsFree;s.entry=n;for(var a=0,u=!0;n;)i[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;i.allBuffers=u,g(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(g(t,e,!1,e.objectMode?1:c.length,c,l,f),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function S(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function k(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),E(t,e)}))}function x(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,T.nextTick(k,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function E(t,e){var n=S(e);return n&&(x(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}function C(t,e,n){e.ending=!0,E(t,e),n&&(e.finished?T.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function O(t,e,n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}var T=n(10);t.exports=l;var I,j=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-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<<a)-1,c=u>>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<<c)-1,f=l>>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<<i|a,c+=i;c>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<i.length&&void 0!==i[t];t++)"string"!=typeof i[t]?r[t]=i[t].length:r[t]=o.byteLength(i[t]),n+=r[t];for(e=o.allocUnsafe(n),t=0;t<i.length&&void 0!==i[t];t++)"string"!=typeof i[t]?(i[t].copy(e,s),s+=r[t]):(e.write(i[t],s),s+=r[t]);return e},t.exports=r},function(t,e,n){"use strict";e.parser=n(58),e.generate=n(53),e.writeToStream=n(24)},function(t,e,n){"use strict";(function(e){function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return e.nextTick((function(){t.apply(null,o)}))}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:n}:t.exports=e}).call(e,n(0))},function(t,e,n){"use strict";function r(t){var e=o.allocUnsafe(2);return e.writeUInt8(t>>8,0),e.writeUInt8(255&t,1),e}function i(){for(var t=0;t<s;t++)a[t]=r(t)}var o=n(2).Buffer,s=65536,a={};t.exports={cache:a,generateCache:i,generateNumber:r}},function(t,e){function n(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}t.exports=n},function(t,e,n){"use strict";function r(){if(!(this instanceof r))return new r;this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState()}var i=n(46),o=n(1),s=n(5).EventEmitter,a=n(57),u=n(23);o(r,s),r.prototype._resetState=function(){this.packet=new a,this.error=null,this._list=i(),this._stateCounter=0},r.prototype.parse=function(t){for(this.error&&this._resetState(),this._list.append(t);(-1!==this.packet.length||this._list.length>0)&&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._pos<n.length;){if(null===(t=this._parseString()))return this._emitError(new Error("Cannot parse topic"));e=this._list.readUInt8(this._pos++),n.subscriptions.push({topic:t,qos:e})}},r.prototype._parseSuback=function(){if(this.packet.granted=[],this._parseMessageId())for(;this._pos<this.packet.length;)this.packet.granted.push(this._list.readUInt8(this._pos++))},r.prototype._parseUnsubscribe=function(){var t=this.packet;if(t.unsubscriptions=[],this._parseMessageId())for(;this._pos<t.length;){var e;if(null===(e=this._parseString()))return this._emitError(new Error("Cannot parse topic"));t.unsubscriptions.push(e)}},r.prototype._parseUnsuback=function(){if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"))},r.prototype._parseMessageId=function(){var t=this.packet;return t.messageId=this._parseNum(),null!==t.messageId||(this._emitError(new Error("Cannot parse messageId")),!1)},r.prototype._parseString=function(t){var e,n=this._parseNum(),r=n+this._pos;return-1===n||r>this._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]<a.qos||!c._resubscribeTopics.hasOwnProperty(t)||o)&&r.push({topic:t,qos:a.qos})})):Object.keys(i).forEach((function(t){(c._resubscribeTopics[t]<i[t]||!c._resubscribeTopics.hasOwnProperty(t)||o)&&r.push({topic:t,qos:i[t]})})),t={cmd:"subscribe",subscriptions:r,qos:1,retain:!1,dup:!1,messageId:this._nextId()},r.length){if(this.options.resubscribe){var l=[];r.forEach((function(t){c.options.reconnectPeriod>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;i<n.length;i+=1)r[i].qos=n[i];s(t,r)},this._sendPacket(t),this}s(null,[])},c.prototype.unsubscribe=function(t,e){var n={cmd:"unsubscribe",qos:1,messageId:this._nextId()},r=this;return e=e||u,this._checkDisconnecting(e)||("string"==typeof t?n.unsubscriptions=[t]:"object"==typeof t&&t.length&&(n.unsubscriptions=t),this.options.resubscribe&&n.unsubscriptions.forEach((function(t){delete r._resubscribeTopics[t]})),this.outgoing[n.messageId]=e,this._sendPacket(n)),this},c.prototype.end=function(t,e){function n(){i.disconnected=!0,i.incomingStore.close((function(){i.outgoingStore.close((function(){e&&e.apply(null,arguments),i.emit("end")}))})),i._deferredReconnect&&i._deferredReconnect()}function r(){i._cleanUp(t,y.bind(null,n))}var i=this;return"function"==typeof t&&(e=t,t=!1),this.disconnecting||(this._clearReconnect(),this.disconnecting=!0,!t&&Object.keys(this.outgoing).length>0?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;n<e.length;n++)if("+"!==e[n]){if("#"===e[n])return n===e.length-1;if(-1!==e[n].indexOf("+")||-1!==e[n].indexOf("#"))return!1}return!0}function i(t){if(0===t.length)return"empty_topic_list";for(var e=0;e<t.length;e++)if(!r(t[e]))return t[e];return null}t.exports={validateTopics:i}},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);i.call(this,t)}t.exports=r;var i=n(30),o=n(3);o.inherits=n(1),o.inherits(r,i),r.prototype._transform=function(t,e,n){n(null,t)}},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(86);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 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<o;)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(n=t.charCodeAt(i++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--)):r.push(e);return r}function c(t){return s(t,(function(t){var e="";return t>65535&&(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<n;++r)t.charCodeAt(r)>=128&&o("not-basic"),g.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<b;){for(s=m,a=1,u=y;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,!(f<d);u+=y)p=y-d,a>A(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<b;++a)(g=t[a])<128&&O.push(R(g));for(r=i=O.length,i&&O.push(C);r<b;){for(c=v,a=0;a<b;++a)(g=t[a])>=e&&g<c&&(c=g);for(m=r+1,c-e>A((v-n)/m)&&o("overflow"),n+=(c-e)*m,e=c,a=0;a<b;++a)if(g=t[a],g<e&&++n>v&&o("overflow"),g==e){for(l=n,d=y;p=d<=s?_:d>=s+w?w:d-s,!(l<p);d+=y)k=l-p,S=y-p,O.push(R(f(p+k%S,0))),l=A(k/S);O.push(R(f(l,0))),s=h(n,m,r==i),n=0,++r}++n,++e}return O.join("")}function g(t){return a(t,(function(t){return O.test(t)?d(t.slice(4).toLowerCase()):t}))}function b(t){return a(t,(function(t){return T.test(t)?"xn--"+p(t):t}))}"object"==typeof e&&e&&e.nodeType,"object"==typeof t&&t&&t.nodeType;var m,v=2147483647,y=36,_=1,w=26,S=38,k=700,x=72,E=128,C="-",O=/^xn--/,T=/[^\x20-\x7E]/,I=/[\x2E\u3002\uFF0E\uFF61]/g,j={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 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<c;++l){var f,h,d,p,g=t[l].replace(a,"%20"),b=g.indexOf(n);b>=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;r<t.length;r++)n.push(e(t[r],r));return n}var i=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,a){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?r(s(t),(function(s){var a=encodeURIComponent(i(s))+n;return o(t[s])?r(t[s],(function(t){return a+encodeURIComponent(i(t))})).join(e):a+encodeURIComponent(i(t[s]))})).join(e):a?encodeURIComponent(i(a))+n+encodeURIComponent(i(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},s=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},function(t,e,n){"use strict";e.decode=e.parse=n(66),e.encode=e.stringify=n(67)},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);i.call(this,t)}t.exports=r;var i=n(36),o=n(3);o.inherits=n(1),o.inherits(r,i),r.prototype._transform=function(t,e,n){n(null,t)}},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;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}()},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<t.length;e++)t[e]=arguments[e+2]}return new r(arguments[0],arguments[1],t)}t.exports=i},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return c[u]=r,a(u),u++}function i(t){delete c[t]}function o(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function s(t){if(l)setTimeout(s,0,t);else{var e=c[t];if(e){l=!0;try{o(e)}finally{i(t),l=!1}}}}if(!t.setImmediate){var a,u=1,c={},l=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?function(){a=function(t){e.nextTick((function(){s(t)}))}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&s(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),a=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){s(t.data)},a=function(e){t.port2.postMessage(e)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var t=f.documentElement;a=function(e){var n=f.createElement("script");n.onreadystatechange=function(){s(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){a=function(t){setTimeout(s,0,t)}}(),h.setImmediate=r,h.clearImmediate=i}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(4),n(0))},function(t,e){function n(t){var e=t._readableState;return e?e.objectMode?t.read():t.read(r(e)):null}function r(t){return t.buffer.length?t.buffer.head?t.buffer.head.data.length:t.buffer[0].length:t.length}t.exports=n},function(t,e,n){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,n,r){(function(t,i){function o(t,e){var r={seen:[],stylize:a};return arguments.length>=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<a;++s)A(e,String(s))?o.push(d(t,e,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(t,e,n,r,i,!0))})),o}function d(t,e,n,r,i,o){var s,a,u;if(u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},u.get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),A(r,i)||(s="["+i+"]"),a||(t.seen.indexOf(u.value)<0?(a=m(n)?c(t,u.value,null):c(t,u.value,n-1),a.indexOf("\n")>-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<arguments.length;n++)e.push(o(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(t).replace(R,(function(t){if("%%"===t)return"%";if(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];n<i;a=r[++n])m(a)||!x(a)?s+=" "+a:s+=" "+o(a);return s},n.deprecate=function(r,o){function s(){if(!a){if(i.throwDeprecation)throw new Error(o);i.traceDeprecation?console.trace(o):e("error",o," at node_modules/vue-mqtt/dist/build.js:7"),a=!0}return r.apply(this,arguments)}if(S(t.process))return function(){return n.deprecate(r,o).apply(this,arguments)};if(!0===i.noDeprecation)return r;var a=!1;return s};var P,$={};n.debuglog=function(t){if(S(P)&&(P=i.env.NODE_DEBUG||""),t=t.toUpperCase(),!$[t])if(new RegExp("\\b"+t+"\\b","i").test(P)){var r=i.pid;$[t]=function(){var i=n.format.apply(n,arguments);e("error","%s %d: %s",t,r,i," at node_modules/vue-mqtt/dist/build.js:7")}}else $[t]=function(){};return $[t]},n.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=g,n.isBoolean=b,n.isNull=m,n.isNullOrUndefined=v,n.isNumber=y,n.isString=_,n.isSymbol=w,n.isUndefined=S,n.isRegExp=k,n.isObject=x,n.isDate=E,n.isError=C,n.isFunction=O,n.isPrimitive=T,n.isBuffer=r(76);var L=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];n.log=function(){e("log","%s - %s",M(),n.format.apply(n,arguments)," at node_modules/vue-mqtt/dist/build.js:7")},n.inherits=r(75),n._extend=function(t,e){if(!e||!x(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}}).call(n,r(4),r(0))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){var n=null;"undefined"!=typeof WebSocket?n=WebSocket:"undefined"!=typeof MozWebSocket?n=MozWebSocket:"undefined"!=typeof window&&(n=window.WebSocket||window.MozWebSocket),t.exports=n},function(t,e){function n(t,e){function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach((function(t){r[t]=i[t]})),r}if(t&&e)return n(t)(e);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r}t.exports=n},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){t.exports=n(43)}])}))}).call(this,n("0de9")["default"],n("fe07")["default"])},5996:function(t,e,n){"use strict";n.r(e);var r=n("638c"),i=n("c259");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,"fbce20e0",null,!1,r["a"],s);e["default"]=u.exports},"5a46":function(t,e,n){"use strict";n.r(e);var r=n("11b8"),i=n("3b77");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,"653830e9",null,!1,r["a"],s);e["default"]=u.exports},"5ccf":function(t,e){t.exports="/static/icon.png"},"5d55":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={onLaunch:function(){t("warn","\u5f53\u524d\u7ec4\u4ef6\u4ec5\u652f\u6301 uni_modules \u76ee\u5f55\u7ed3\u6784 \uff0c\u8bf7\u5347\u7ea7 HBuilderX \u5230 3.1.0 \u7248\u672c\u4ee5\u4e0a\uff01"," at App.vue:4"),t("log","App Launch"," at App.vue:5")},onShow:function(){t("log","App Show"," at App.vue:8")},onHide:function(){t("log","App Hide"," at App.vue:11")}};e.default=n}).call(this,n("0de9")["default"])},"618c":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("div",{staticClass:t._$s(0,"sc","ip-input-container"),attrs:{_i:0}},t._l(t._$s(1,"f",{forItems:t.segments}),(function(e,r,i,o){return n("div",{key:t._$s(1,"f",{forIndex:i,key:r}),staticClass:t._$s("1-"+o,"sc","ip-segment"),attrs:{_i:"1-"+o}},[n("input",{staticClass:t._$s("2-"+o,"sc","ip-segment-input"),attrs:{value:t._$s("2-"+o,"a-value",e),placeholder:t._$s("2-"+o,"a-placeholder",t.placeholder),disabled:t._$s("2-"+o,"a-disabled",t.disabled),_i:"2-"+o},on:{keydown:function(e){return t.onInputKeydown(e,r)},input:function(e){return t.onInput(e,r)},blur:function(e){return t.onInputBlur()},paste:function(e){return t.onPaste(e,r)}}}),n("i",{directives:[{name:"show",rawName:"v-show",value:t._$s("3-"+o,"v-show",r!=t.segments.length-1),expression:"_$s((\"3-\"+$30),'v-show',index != segments.length - 1)"}],attrs:{_i:"3-"+o}})])})),0)},o=[]},"638c":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-searchbar"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","uni-searchbar__box"),style:t._$s(1,"s",{borderRadius:t.radius+"px",backgroundColor:t.bgColor}),attrs:{_i:1},on:{click:t.searchClick}},[n("view",{staticClass:t._$s(2,"sc","uni-searchbar__box-icon-search"),attrs:{_i:2}},[t._t("searchIcon",[n("uni-icons",{attrs:{color:"#999999",size:"18",type:"search",_i:4}})],{_i:3})],2),t._$s(5,"i",t.show||t.searchVal)?n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchVal,expression:"searchVal"}],staticClass:t._$s(5,"sc","uni-searchbar__box-search-input"),attrs:{focus:t._$s(5,"a-focus",t.showSync),placeholder:t._$s(5,"a-placeholder",t.placeholder),maxlength:t._$s(5,"a-maxlength",t.maxlength),_i:5},domProps:{value:t._$s(5,"v-model",t.searchVal)},on:{confirm:t.confirm,blur:t.blur,focus:t.emitFocus,input:function(e){e.target.composing||(t.searchVal=e.target.value)}}}):n("text",{staticClass:t._$s(6,"sc","uni-searchbar__text-placeholder"),attrs:{_i:6}},[t._v(t._$s(6,"t0-0",t._s(t.placeholder)))]),t._$s(7,"i",t.show&&("always"===t.clearButton||"auto"===t.clearButton&&""!==t.searchVal))?n("view",{staticClass:t._$s(7,"sc","uni-searchbar__box-icon-clear"),attrs:{_i:7},on:{click:t.clear}},[t._t("clearIcon",[n("uni-icons",{attrs:{color:"#c0c4cc",size:"15",type:"clear",_i:9}})],{_i:8})],2):t._e()]),t._$s(10,"i","always"===t.cancelButton||t.show&&"auto"===t.cancelButton)?n("text",{staticClass:t._$s(10,"sc","uni-searchbar__cancel"),attrs:{_i:10},on:{click:t.cancel}},[t._v(t._$s(10,"t0-0",t._s(t.cancelText)))]):t._e()])},o=[]},7582:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"UniPopupMessage",props:{type:{type:String,default:"success"},message:{type:String,default:""},duration:{type:Number,default:3e3}},inject:["popup"],data:function(){return{}},created:function(){this.popup.childrenMsg=this},methods:{open:function(){var t=this;0!==this.duration&&(clearTimeout(this.popuptimer),this.popuptimer=setTimeout((function(){t.popup.close()}),this.duration))},close:function(){clearTimeout(this.popuptimer)}}};e.default=r},"79fa":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("bbb4"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return u(t)||a(t,e)||f(t,e)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done);r=!0)if(n.push(s.value),e&&n.length===e)break}catch(u){i=!0,o=u}finally{try{r||null==a["return"]||a["return"]()}finally{if(i)throw o}}return n}}function u(t){if(Array.isArray(t))return t}function c(t){return d(t)||h(t)||f(t)||l()}function l(){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 f(t,e){if(t){if("string"===typeof t)return p(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)?p(t,e):void 0}}function h(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function d(t){if(Array.isArray(t))return p(t)}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var g={data:function(){return{href:"https://uniapp.dcloud.io/component/README?id=uniui",searchVal:"",status:"more",daysArr:[],channelSet:new Set,showActionSheet:{show:!1,maskClosable:!0,tips:"\u8bf7\u9009\u62e9\u7533\u8bf7\u8282\u70b9\u8eab\u4efd\uff0c\u4e0d\u540c\u7684\u8282\u70b9\u6d88\u8017\u798f\u5361\u4e0d\u540c",itemList:["\u5168\u90e8\u8bbe\u5907"],color:"#9a9a9a",size:26,isCancel:!0}}},components:{bottomDrawer:r.default},mounted:function(){try{var t=uni.getStorageSync("list");""!=t&&(this.daysArr=t);var e=uni.getStorageSync("channelSet");this.showActionSheet.itemList=["\u5168\u90e8\u8bbe\u5907"].concat(c(e)),this.channelSet=new Set(e)}catch(n){}this.$mqtt.subscribe("MIDDOL-TEST")},mqtt:{"MIDDOL-TEST":function(e){var n=JSON.parse(e),r=n.updateTime.split(" "),i=o(r,2),s=i[0],a=i[1];t("log","\u6765\u4e86\u4e00\u6761\u65b0\u7684",n.id," at pages/index/index.vue:130");var u=this.daysArr.find((function(t){return t.day==s}));void 0==u?this.daysArr.push({day:s,items:[{id:n.id,time:a,date:s,pos:n.cameraAddr,name:n.taskName,warningLevel:n.alarmRules[0].alarmLevel,imgUrl:n.picMaxUrl[0]}]}):u.items.unshift({id:n.id,time:a,date:s,pos:n.cameraAddr,name:n.taskName,warningLevel:n.alarmRules[0].alarmLevel,imgUrl:n.picMaxUrl[0]}),this.channelSet.has(n.cameraAddr)||this.channelSet.add(n.cameraAddr);try{uni.setStorage("list",this.daysArr),uni.setStorage("channelSet",c(this.channelSet))}catch(l){t("log","errrrrr",l," at pages/index/index.vue:166")}}},methods:{goFrontPage:function(){uni.navigateTo({url:"pages/index/index"})},goToSetting:function(){uni.navigateTo({url:"../setting/setting"})},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}},showAllChannel:function(){this.showActionSheet.show=!0,this.showActionSheet.itemList=["\u5168\u90e8\u8bbe\u5907"].concat(c(this.channelSet))},toSearch:function(){var t=this;this.daysArr.forEach((function(e){e.items=e.items.filter((function(e){return e.pos.includes(t.searchVal.trim())||e.name.includes(t.searchVal.trim())}))}))},slectDevice:function(e){t("log","fase",e.index," at pages/index/index.vue:211");var n=this.showActionSheet.itemList[e.index];try{this.daysArr=uni.getStorageSync("list")}catch(r){}"\u5168\u90e8\u8bbe\u5907"==n||this.daysArr.forEach((function(t){t.items=t.items.filter((function(t){return t.pos==n}))}))},chooseCancel:function(){this.showActionSheet.show=!1},toDetail:function(e){e.isRead=!0,t("log",this.$refs[e.id]," at pages/index/index.vue:231"),getApp().globalData.curPageDetail=e,uni.navigateTo({url:"../detail/detail?id=".concat(e.id)})},clearInput:function(e){t("log","\u8d70\u8fd9\u91cc2"," at pages/index/index.vue:240");try{this.daysArr=uni.getStorageSync("list"),t("log","thisssss",this.daysArr," at pages/index/index.vue:243")}catch(n){t("log","errrrrr",n," at pages/index/index.vue:245")}},inputMethod:function(e){if(""==e.trim()){t("log","\u8d70\u8fd9\u91cc1"," at pages/index/index.vue:250");try{this.daysArr=uni.getStorageSync("list"),t("log","thisssss",this.daysArr," at pages/index/index.vue:253")}catch(n){t("log","errrrrr",n," at pages/index/index.vue:255")}}}}};e.default=g}).call(this,n("0de9")["default"])},"7aa4":function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,setTimeout((function(){r=uni.getSystemInfoSync().platform}),16);var i={name:"UniLoadMore",props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"\u4e0a\u62c9\u663e\u793a\u66f4\u591a",contentrefresh:"\u6b63\u5728\u52a0\u8f7d...",contentnomore:"\u6ca1\u6709\u66f4\u591a\u6570\u636e\u4e86"}}}},data:function(){return{webviewHide:!1,platform:r}},computed:{iconSnowWidth:function(){return 2*(Math.floor(this.iconSize/24)||1)}},mounted:function(){var t=this,e=getCurrentPages(),n=e[e.length-1],r=n.$getAppWebview();r.addEventListener("hide",(function(){t.webviewHide=!0})),r.addEventListener("show",(function(){t.webviewHide=!1}))},methods:{onClick:function(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}};e.default=i},"7b46":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={data:function(){return{}},props:{imgSrc:{type:String,default:"../static/pic3.jpg"},show:{type:Boolean,default:!1}},methods:{handleClickMask:function(){this.handleClickCancel()},handleClickCancel:function(){this.$emit("hideImgPopper")}}};e.default=r},"7ec2":function(t,e,n){"use strict";n.r(e);var r=n("618c"),i=n("8e06");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,"7884fb38",null,!1,r["a"],s);e["default"]=u.exports},"806b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"UniSearchBar",props:{placeholder:{type:String,default:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9"},radius:{type:[Number,String],default:5},clearButton:{type:String,default:"auto"},cancelButton:{type:String,default:"auto"},cancelText:{type:String,default:"\u53d6\u6d88"},bgColor:{type:String,default:"#F8F8F8"},maxlength:{type:[Number,String],default:100},value:{type:[Number,String],default:""},focus:{type:Boolean,default:!1}},data:function(){return{show:!1,showSync:!1,searchVal:""}},watch:{value:{immediate:!0,handler:function(t){this.searchVal=t,t&&(this.show=!0)}},focus:{immediate:!0,handler:function(t){var e=this;t&&(this.show=!0,this.$nextTick((function(){e.showSync=!0})))}},searchVal:function(t,e){this.$emit("input",t)}},methods:{searchClick:function(){var t=this;this.show||(this.show=!0,this.$nextTick((function(){t.showSync=!0})))},clear:function(){this.$emit("clear",{value:this.searchVal}),this.searchVal=""},cancel:function(){this.$emit("cancel",{value:this.searchVal}),this.searchVal="",this.show=!1,this.showSync=!1,plus.key.hideSoftKeybord()},confirm:function(){plus.key.hideSoftKeybord(),this.$emit("confirm",{value:this.searchVal})},blur:function(){plus.key.hideSoftKeybord(),this.$emit("blur",{value:this.searchVal})},emitFocus:function(t){this.$emit("focus",t.detail)}}};e.default=r},"80a1":function(t,e,n){"use strict";n.r(e);var r=n("244a"),i=n("945f");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},8169:function(t,e,n){"use strict";n.r(e);var r=n("81c5"),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},"81c5":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("0477"));function i(t){return t&&t.__esModule?t:{default:t}}var o={name:"UniIcons",props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customIcons:{type:String,default:""}},data:function(){return{icons:r.default}},methods:{_onClick:function(){this.$emit("click")}}};e.default=o},8380:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={created:function(){"message"===this.type&&(this.maskShow=!1,this.childrenMsg=null)},methods:{customOpen:function(){this.childrenMsg&&this.childrenMsg.open()},customClose:function(){this.childrenMsg&&this.childrenMsg.close()}}};e.default=r},"8bbf":function(t,e){t.exports=Vue},"8d0a":function(t,e,n){"use strict";n.r(e);var r=n("53a3"),i=n("0bd3");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,"2715c882",null,!1,r["a"],s);e["default"]=u.exports},"8e06":function(t,e,n){"use strict";n.r(e);var r=n("b061"),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},"923f":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",[n("view",{staticClass:t._$s(1,"sc","img-box"),class:t._$s(1,"c",[t.show?"pic-show":""]),attrs:{_i:1}},[n("image",{attrs:{src:t._$s(2,"a-src",t.imgSrc),_i:2}})]),n("view",{staticClass:t._$s(3,"sc","tui-actionsheet-mask"),class:t._$s(3,"c",[t.show?"tui-mask-show":""]),attrs:{_i:3},on:{click:t.handleClickMask}})])},o=[]},"945f":function(t,e,n){"use strict";n.r(e);var r=n("79fa"),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},"96c1":function(t,e,n){"use strict";n.r(e);var r=n("f231"),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},"99e2":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("text",{staticClass:t._$s(0,"sc","uni-icons"),class:t._$s(0,"c",[t.customIcons,t.customIcons?t.type:""]),style:t._$s(0,"s",{color:t.color,"font-size":t.size+"px"}),attrs:{_i:0},on:{click:t._onClick}},[t._v(t._$s(0,"t0-0",t._s(t.icons[t.type])))])},o=[]},"9d4d":function(t,e,n){"use strict";n.r(e);var r=n("ffd4"),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},"9d4e":function(t,e,n){"use strict";n.r(e);var r=n("d8c1"),i=n("16dd");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},a021: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",[n("view",{staticClass:t._$s(1,"sc","tui-actionsheet-class tui-actionsheet"),class:t._$s(1,"c",[t.show?"tui-actionsheet-show":""]),attrs:{_i:1}},[n("view",{staticClass:t._$s(2,"sc","close-and-confirm"),attrs:{_i:2}},[n("view",{staticClass:t._$s(3,"sc","close-btn"),attrs:{_i:3},on:{click:t.handleClickMask}}),n("view",{staticClass:t._$s(4,"sc","title"),attrs:{_i:4}}),n("view",{staticClass:t._$s(5,"sc","close-btn"),attrs:{_i:5},on:{click:t.handleConfirm}})]),n("view",{class:t._$s(6,"c",[t.isCancel?"tui-operate-box":""]),attrs:{_i:6}},[t._l(t._$s(7,"f",{forItems:t.itemList}),(function(e,r,i,o){return[n("view",{key:t._$s(7,"f",{forIndex:i,keyIndex:0,key:r+"_0"}),staticClass:t._$s("8-"+o,"sc","tui-actionsheet-btn tui-actionsheet-divider"),class:t._$s("8-"+o,"c",t.curIndex==r?"item-active":""),attrs:{"data-index":t._$s("8-"+o,"a-data-index",r),_i:"8-"+o},on:{click:t.handleClickItem}},[t._v(t._$s("8-"+o,"t0-0",t._s(e)))])]}))],2)]),n("view",{staticClass:t._$s(9,"sc","tui-actionsheet-mask"),class:t._$s(9,"c",[t.show?"tui-mask-show":""]),attrs:{_i:9},on:{click:t.handleClickMask}})])},o=[]},a57b:function(t,e,n){"use strict";n.r(e);var r=n("5d55"),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},b061:function(t,e,n){"use strict";function r(t){var e,n,r,i,o,s={};return t.setSelectionRange?(s.begin=t.selectionStart,s.end=t.selectionEnd,s.result=t.value.substring(s.begin,s.end)):document.selection&&("input"===t.tagName.toLowerCase()?(e=document.selection.createRange(),n=t.createTextRange(),n.collapse(!0),n.select(),r=document.selection.createRange(),r.setEndPoint("EndToEnd",e),s.begin=r.text.length-e.text.length,s.end=r.text.length,s.result=e.text,e.select()):"textarea"===t.tagName.toLowerCase()&&(i=document.selection.createRange(),o=i.duplicate(),o.moveToElementText(t),o.setEndPoint("EndToEnd",i),s.begin=o.text.length-i.text.length,s.end=o.text.length,s.result=i.text)),t.focus(),s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{ip:{type:String,defalut:""},item:{},placeholder:String,onChange:Function,onBlur:Function,onItemChange:Function,disabled:{type:Boolean,default:!1}},data:function(){return{segments:["","","",""]}},watch:{ip:function(t){this.syncIp(t)}},methods:{onInputKeydown:function(t,e){var n=t.keyCode||t.which,i=t.target.value;8===n||37===n?(0===i.length||0===r(t.target).end)&&e>0&&(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("1d6e"),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,"2b3669e5",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.$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);n<e;n++)r[n]=t[n];return r}function l(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 f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={name:"uniTransition",props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:function(){return"fade"}},duration:{type:Number,default:300},styles:{type:Object,default:function(){return{}}},customClass:{type:String,default:""}},data:function(){return{isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}},watch:{show:{handler:function(t){t?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject:function(){var t=f(f({},this.styles),{},{"transition-duration":this.duration/1e3+"s"}),e="";for(var n in t){var r=this.toLine(n);e+=r+":"+t[n]+";"}return e},transformStyles:function(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created:function(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init:function(){var t=arguments.length>0&&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;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}r.default.config.productionTip=!1;var l={clientId:"WebClient-"+parseInt(1e5*Math.random()),username:"admin",password:"admin123",useSSL:!1,mqttVersion:4,timeout:3};r.default.use(o.default,"ws://192.168.20.189:15675/ws",l),i.default.mpType="app";var f=new r.default(u({},i.default));f.$mount()},fe07:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.Behavior=It,e.Component=Tt,e.Page=Ct,e.nextTick=e.default=void 0;var r,i=o(n("8bbf"));function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){return h(t)||f(t,e)||c(t,e)||u()}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,e){if(t){if("string"===typeof t)return l(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)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done);r=!0)if(n.push(s.value),e&&n.length===e)break}catch(u){i=!0,o=u}finally{try{r||null==a["return"]||a["return"]()}finally{if(i)throw o}}return n}}function h(t){if(Array.isArray(t))return t}function d(t,e){t&&(e.mpOptions.data=t)}function p(e){e.components=t.__wxVueOptions.components}var g=Object.prototype.toString,b=Object.prototype.hasOwnProperty;function m(t){return"function"===typeof t}function v(t){return"[object Object]"===g.call(t)}function y(t,e){return b.call(t,e)}function _(){}function w(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var S=/-(\w)/g,k=w((function(t){return t.replace(S,(function(t,e){return e?e.toUpperCase():""}))})),x="__data__",E={created:"onServiceCreated",attached:"onServiceAttached",ready:"mounted",moved:"moved",detached:"destroyed"},C=Object.keys(E),O={show:"onPageShow",hide:"onPageHide",resize:"onPageResize"},T=Object.keys(O),I=["onLoad","onShow","onReady","onHide","onUnload","onPullDownRefresh","onReachBottom","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function j(t,e){var n=Object.create(null);Object.keys(t).forEach((function(e){var r=t[e];m(r)&&-1===I.indexOf(e)&&(n[e]=r)})),e.methods=n}function M(t,e){Object.keys(t).forEach((function(n){-1!==I.indexOf(n)&&(e[n]=t[n])}))}function A(t){var e={mixins:[],mpOptions:{}};return p(e),d(t.data,e),j(t,e),M(t,e),e}function R(t,e){t&&(e.mpOptions.properties=t)}function P(t,e){t&&(e.mpOptions.options=t)}function $(t,e){t&&(t.$emit&&(console.warn('Method "$emit" conflicts with an existing Vue instance method'),delete t.$emit),e.methods=t)}function L(t,e){C.forEach((function(n){y(t,n)&&(e[E[n]]||(e[E[n]]=[])).push(t[n])}))}var B={"wx://form-field":{},"wx://component-export":{}};function U(t){var e=t.behaviors,n=t.definitionFilter,r=[];if(Array.isArray(e)&&e.forEach((function(e){e="string"===typeof e?B[e]:e,e.definitionFilter&&(r.push(e.definitionFilter),e.definitionFilter.call(null,t,[]))})),m(n))return function(t){n(t,r)}}function D(t,e){U(t)}function q(t){var e=t.data,n=t.methods,r=t.behaviors,i=t.properties,o={watch:{},mpOptions:{mpObservers:[]}};return d(e,o),$(n,o),W(r,o),R(i,o),L(t,o),D(t),o}var N={"wx://form-field":{beforeCreate:function(){var t=this.$options.mpOptions;t.properties||(t.properties=Object.create(null));var e=t.properties;y(e,"name")||(e.name={type:String}),y(e,"value")||(e.value={type:String})}}};function W(t,e){t&&t.forEach((function(t){"string"===typeof t?N[t]&&e.mixins.push(N[t]):e.mixins.push(q(t))}))}function F(t){return t.split(".")}function H(t){return t.split(",").map((function(t){return F(t)}))}function z(t,e){if(t){var n=e.mpOptions.mpObservers;Object.keys(t).forEach((function(e){n.push({paths:H(e),observer:t[e]})}))}}function Y(t,e){0===e.indexOf("/")&&(t="");var n=t.split("/"),r=e.split("/");n.pop();while(r.length){var i=r.shift();""!==i&&"."!==i&&(".."!==i?n.push(i):n.pop())}return n.join("/")}function K(e,n){e&&(Object.keys(e).forEach((function(n){var r=e[n];r.name=n,r.target=r.target?String(r.target):Y(t.__wxRoute,n)})),n.mpOptions.relations=e)}function V(t,e){t&&(Array.isArray(t)||(t=[t]),e.mpOptions.externalClasses=t,e.mpOptions.properties||(e.mpOptions.properties=Object.create(null)),t.forEach((function(t){e.mpOptions.properties[k(t)]={type:String,value:""}})))}function Q(t,e){t&&L(t,e)}function G(t,e){t&&T.forEach((function(n){var r=t[n];m(r)&&(e[O[n]]=r)}))}function J(t){var e=t.data,n=t.options,r=t.methods,i=t.behaviors,o=t.lifetimes,s=t.observers,a=t.relations,u=t.properties,c=t.pageLifetimes,l=t.externalClasses,f={mixins:[],props:{},watch:{},mpOptions:{mpObservers:[]}};return p(f),d(e,f),P(n,f),$(r,f),W(i,f),Q(o,f),z(s,f),K(a,f),R(u,f),G(c,f),V(l,f),L(t,f),D(t),f}function X(t,e,n,r){if(e){var i="_$".concat(t,"Handlers");(r[i]||(r[i]=[])).push((function(){e.call(r,n)}))}}function Z(t,e,n){var r="linked",i=t.name,o=n._$relationNodes||(n._$relationNodes=Object.create(null));(o[i]||(o[i]=[])).push(e),X(r,t[r],e,n)}function tt(t,e,n){var r="unlinked";X(r,t[r],e,n)}function et(t,e,n){var r=t&&t.$options.mpOptions&&t.$options.mpOptions.relations;if(!r)return[];var i=Object.keys(r).find((function(t){var i=r[t];return i.target===e&&i.type===n}));return i?[r[i],t]:[]}function nt(t,e,n){var r=n(t,t.$options.mpOptions.path),i=a(r,2),o=i[0],s=i[1];o&&(Z(o,t,s),Z(e,s,t),tt(o,t,s),tt(e,s,t))}function rt(t,e){var n=t.type;"parent"===n?nt(e,t,(function(t,e){return et(t.$parent,e,"child")})):"ancestor"===n&&nt(e,t,(function(t,e){var n=t.$parent;while(n){var r=et(n,e,"descendant");if(r.length)return r;n=n.$parent}return[]}))}function it(t){var e=t.$options.mpOptions||{},n=e.relations;n&&Object.keys(n).forEach((function(e){rt(n[e],t)}))}function ot(t,e){var n=t["_$".concat(e,"Handlers")];n&&n.forEach((function(t){return t()}))}var st={enumerable:!0,configurable:!0,get:_,set:_};function at(t,e,n){st.get=function(){return this[e][n]},st.set=function(t){this[e][n]=t},Object.defineProperty(t,n,st)}function ut(t,e,n){var r=t.replace(/\[(\d+?)\]/g,".$1").split(".");return r.reduce((function(t,n,i){if(i!==r.length-1)return"undefined"===typeof t[n]&&(t[n]={}),t[n];t[n]=e}),n),1===r.length}function ct(t,e){var n=this;v(t)&&(Object.keys(t).forEach((function(e){ut(e,t[e],n.data)&&!y(n,e)&&at(n,x,e)})),this.$forceUpdate(),m(e)&&this.$nextTick(e))}var lt=Object.prototype.toString,ft=function t(){var e=arguments.length>0&&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"]]]);
|