2025-06-30 09:38:03 +08:00

22 lines
453 KiB
JavaScript
Raw Blame History

(function(e,v){typeof exports=="object"&&typeof module<"u"?module.exports=v(require("vue"),require("axios")):typeof define=="function"&&define.amd?define(["vue","axios"],v):(e=typeof globalThis<"u"?globalThis:e||self,e.AvueData=v(e.Vue,e.axios))})(this,function(vue,axios$1){"use strict";var __vite_style__=document.createElement("style");__vite_style__.textContent=`.loading-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;background-color:#151a26}.loading-wrapper .loading-box{position:fixed;left:calc(50% - 250px);top:calc(50% - 100px);margin:0 auto;width:500px;height:200px;text-align:center;vertical-align:center;font-weight:700;color:#87888e;font-size:35px}.loading-wrapper .loading-box>span{opacity:.4;display:inline-block;animation:bouncingLoader 1s infinite alternate}.loading-wrapper .loading-box>span:nth-child(2){animation-delay:.1s}.loading-wrapper .loading-box>span:nth-child(3){animation-delay:.2s}.loading-wrapper .loading-box>span:nth-child(4){animation-delay:.3s}.loading-wrapper .loading-box>span:nth-child(5){animation-delay:.4s}.loading-wrapper .loading-box>span:nth-child(6){animation-delay:.5s}.loading-wrapper .loading-box>span:nth-child(7){animation-delay:.6s}@keyframes bouncingLoader{0%{transform:translateY(0)}50%{transform:translateY(25px)}to{transform:translateY(0)}}.loading-wrapper .loading_title{font-weight:700;z-index:1002;position:absolute;top:50%;margin-top:15px;color:#87888e;font-size:18px;width:100%;height:30px;text-align:center;opacity:.4;line-height:30px}.carousel .el-carousel__container{height:100%}.imgTabs__list[data-v-f2da302f]{margin-bottom:30px;display:flex;justify-content:space-around;align-items:center}.imgTabs__carousel[data-v-f2da302f]{margin:0 auto;background-color:#b4b5c61a;background-clip:padding-box;opacity:1;filter:blur(0px);border-image-source:url(/img/border/border1.png);border-image-slice:10 16 15 10 fill;border-width:10px 16px 15px 10px;border-style:solid;box-sizing:border-box}.imgTabs__item[data-v-f2da302f]{width:100%;height:40px;background-image:url(/img/banner/banner4.png);background-size:100% 100%;border-color:#fff;border-style:solid;border-width:0px;margin:0 8px;font-size:20px;color:#4dffff;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.imgTabs--active[data-v-f2da302f]{background-image:url(/img/banner/banner5.png);color:#4dffff}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.avue-echart-video{position:relative}.avue-echart-video__img{position:absolute;top:0;left:0;z-index:-1024}.avue-echart-tabs .el-select{width:100%}.avue-echart-tabs .el-select,.avue-echart-tabs .el-input,.avue-echart-tabs input{height:100%}.avue-echart-tabs .el-input{font-size:inherit}.avue-echart-tabs__list{display:flex;justify-content:space-around;align-items:center;height:100%}.avue-echart-tabs__icon{margin-right:10px}.avue-echart-tabs__item{width:100%;height:100%;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.avue-echart-iframe iframe{border:none;width:100%;height:100%}.avue-echart-text{overflow:hidden}.avue-echart-text__box{width:100%;height:100%}.avue-echart-text__text{display:block;text-decoration:none}.avue-echart-swiper .el-carousel,.avue-echart-swiper .el-carousel__container{height:100%}.avue-echart-swiper img{width:100%;height:100%;-webkit-user-select:none;user-select:none}.avue-echart-pie__title{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.avue-echart-table{height:100%}.avue-echart-table .el-table{background-color:transparent}.avue-echart-table .el-table__inner-wrapper:before{display:none}.avue-echart-table .el-table:before{display:none}.avue-echart-table .el-table colgroup.gutter,.avue-echart-table .el-table th.gutter{display:none!important}.avue-echart-table .el-table td,.avue-echart-table .el-table th.is-leaf{border-bottom:none}.avue-echart-table .el-table tbody tr:hover>td{background-color:transparent}.avue-echart-table .el-table__body-wrapper::-webkit-scrollbar{width:0px}.avue-echart-header{padding:10px}.avue-echart-header--center{text-align:center}.avue-echart-header--right{text-align:right}.avue-echart-header__title{margin-right:5px;font-size:18px;font-weight:400;color:#333;text-decoration:none}.avue-echart-header__info{display:inline-block}.avue-echart-progress{position:relative}.avue-echart-progress__text--circle{position:absolute;width:100%;top:50%;transform:translateY(-50%);text-align:center}.avue-echart-progress__text--line{margin-bottom:20px;position:relative;display:flex;align-items:center;justify-content:space-between}.avue-echart-progress__text--line p{margin-right:5px}.avue-echart-img--rotate{animation:rotating 0s linear infinite}.avue-echart-flop__list{justify-content:flex-start;display:flex;flex-wrap:wrap;width:100%;height:100%}.avue-echart-flop__number{width:100%;height:100%;display:flex;align-items:center;justify-content:space-between}.avue-echart-map{position:relative}.avue-echart-map__bg{position:absolute;top:0;left:0}.avue-echart-map__box{position:relative}.avue-echart-map__location{position:absolute;background-color:red;width:10px;height:10px}.avue-echart-map__location:hover{background-color:green}.avue-echart-time,.avue-echart-notice,.avue-echart-audio{display:flex;align-items:center;justify-content:center}.avue-echart-time i,.avue-echart-notice i,.avue-echart-audio i{font-size:48px;color:#fff}.avue-echart-data{display:flex;align-items:center;justify-content:center}.avue-echart-data i{font-size:48px;color:#fff}.avue-echart-group{position:relative}.build{position:relative;width:100%;height:100%}.build .flex{display:flex;align-items:center}.build .app{width:100%;height:calc(100% - 85px);display:flex;box-sizing:border-box}.build .selectall{position:absolute;border:1px dotted #409EFF;z-index:10000}.build .icon{font-size:20px;margin-right:10px}.build .selectbg{width:100%;height:100%;position:absolute;z-index:9999}.build .selectflag{width:100%;height:100%;position:absolute;z-index:9999;cursor:move}.build .el-menu--horizontal .el-menu .el-menu-item,.build .el-menu--horizontal .el-menu .el-submenu__title{font-size:12px}.build .el-empty__image svg{width:100px;height:100px}.build .menu{position:relative;width:200px;box-sizing:border-box;height:100%;color:#bcc8d4}.build .menu__drag{width:3px;height:100%;position:absolute;background-color:#18181c;right:0;z-index:1}.build .menu__drag:hover{background-color:#2681ff;cursor:col-resize}.build .menu_header{position:absolute;top:0;width:100%;z-index:1}.build .menu__scrollbar{padding-top:50px;height:100%;box-sizing:border-box}.build .menu__list{padding-left:10px;padding-top:5px;box-sizing:border-box}.build .menu_item input,.build .menu_ul input{box-sizing:border-box;padding:5px;width:calc(100% - 80px);outline:none;background-color:#36373b;border:none;color:#ffffffd1;border-radius:5px}.build .menu__item{width:100%;margin-bottom:8px;box-sizing:border-box;border-radius:5px;display:flex;align-items:center;padding:5px;position:relative;background:#1b1f25;color:#fff;cursor:pointer;border:1px solid #1b1f25;flex:none;font-size:12px}.build .menu__item.is-over,.build .menu__item:hover{background:#313132;cursor:pointer}.build .menu__item.is-over .menu__menu i,.build .menu__item:hover .menu__menu i{display:inline-block}.build .menu__item.ghost{opacity:.6;color:#fff;background:#409EFF!important;cursor:move}.build .menu__item.is-active{border:1px solid #409EFF;background-color:#2f3f62}.build .menu__menu{position:absolute;right:3px}.build .menu__menu i{color:#ccc;margin:0 3px;font-size:14px;display:none}.build .menu__menu .is-active{color:#409eff;display:inline-block}.build .menu__label{width:calc(100% - 100px);overflow:hidden}.build .menu__button{display:flex}.build .menu__button li{margin:0 5px;list-style:none}.build .menu__icon{color:#409eff;margin-right:8px;width:50px;min-width:50px;height:30px;line-height:30px;text-align:center;display:block;background-color:#1b2127;border:1px solid #373739;border-radius:5px}.build .menu__item--folder{position:relative;width:100%;box-sizing:border-box;display:flex;align-items:center;padding:6px;color:#bcc9d4;font-size:12px;border-radius:3px}.build .menu__item--folder .icon-folder{font-size:16px;margin-right:5px}.build .menu__item--folder .icon-fold{font-size:12px;margin-right:10px;transform:rotate(90deg);display:inline-block;font-weight:700}.build .menu__item--folder .icon-fold.is-active{transform:rotate(180deg)}.build .menu__item--folder.is-active{color:#fff;background:rgba(143,225,255,.1)}.build .menu__item--folder.is-over,.build .menu__item--folder:hover{color:#fff;background:rgba(143,225,255,.1);cursor:pointer}.build .menu__folder{margin-bottom:8px}.build .menu__folder.ghost{opacity:.6;color:#fff;background:#409EFF!important;cursor:move}.build .menu__folder:hover>.menu__item--folder>.menu__menu i{display:inline-block}.build .menu__name{width:calc(100% - 80px);overflow:hidden}.build .menu_ul--simple .menu__icon{display:none}.build .menu_ul--simple .menu__label{width:calc(100% - 40px);overflow:hidden}.build .top{padding:10px 20px;position:fixed;top:0;left:0;width:100%;z-index:9999;background-color:#fff6}.build .section{flex:1;overflow:hidden;position:relative}.build .refer-line-img{position:absolute;left:0;z-index:5;width:20px;height:20px;display:flex;align-items:center;justify-content:center;opacity:.6}.build .refer-line-img img{width:100%}.build .screens{position:absolute;top:0;left:0;width:100%;height:100%;overflow:auto}.build .screens-drag{cursor:pointer}.build .screen-container{position:relative;width:5000px;height:3000px;background:url(/img/screen.png) repeat}.build .canvas{position:absolute;transform-origin:0 0;top:50%;left:50%}.build .footer__menu{padding-top:8px;margin-right:370px;float:right;width:300px}.build .app--none{padding:0;height:100%}.build .app--none .wrapper{position:relative;padding:0;margin:0 auto;width:100%}.build .app--none .content{width:100%;height:100%;border:none}.build .container{-webkit-user-select:none;user-select:none;transform-origin:0 0;position:relative}.build .grade{width:100%;height:100%;background-size:30px 30px,30px 30px;background-image:linear-gradient(rgba(255,255,255,.1) 1px,transparent 0px),linear-gradient(90deg,rgba(255,255,255,.1) 1px,transparent 0px);position:absolute;top:0;bottom:0;left:0;right:0}.build .title{padding:0 10px;box-sizing:border-box;margin-bottom:5px;line-height:40px;height:40px;text-align:center;font-size:12px;background-color:#2a2a2b;border:1px solid #18181c;color:#fff}.build .title--left{text-align:left}.build .title_box{display:flex;align-items:center;justify-content:space-between}.build .title_menu{display:flex}.build .params{width:330px}.views,.views .wrapper{overflow:hidden}.dialog{width:100%;height:100%;position:fixed;left:0;top:0;background-color:#000c;z-index:9999}.dialog__title{font-size:26px;color:#fff;text-align:center;line-height:60px}
`,document.head.appendChild(__vite_style__);const common$1={COMPNAME:"avue-echart-",NAME:"list",DEAFNAME:"item"},website=window.$website,url=""+website.url;website.mqttUrl;const themeList={1:{id:1,name:"明亮",color:["rgb(73, 146, 255)","rgb(124, 255, 178)","rgb(253, 221, 96)","rgb(255, 110, 118)","rgb(88, 217, 249)","rgb(5, 192, 145)"],data:[]},2:{id:2,name:"暗淡",color:["rgb(84, 112, 198)","rgb(145, 204, 117)","rgb(250, 200, 88)","rgb(238, 102, 102)","rgb(115, 192, 222)","rgb(59, 162, 114)"],data:[]},3:{id:3,name:"马卡龙",color:["rgb(46, 199, 201)","rgb(182, 162, 222)","rgb(90, 177, 239)","rgb(255, 185, 128)","rgb(216, 122, 128)","rgb(141, 152, 179)"],data:[]},4:{id:4,name:"深色",color:["rgb(193, 46, 52)","rgb(230, 182, 0)","rgb(0, 152, 217)","rgb(43, 130, 29)","rgb(0, 94, 170)","rgb(51, 156, 168)"],data:[]},5:{id:5,name:"罗马红",color:["rgb(224, 31, 84)","rgb(94, 78, 165)","rgb(245, 232, 200)","rgb(184, 210, 199)","rgb(198, 179, 142)","rgb(164, 216, 194)"],data:[]}},config$1={width:1920,height:1080,query:`function(){
return window.$glob.params || {}
}`,header:`function(){
return window.$glob.params || {}
}`,screen:"x",mark:{show:!1,text:"",fontSize:20,color:"rgba(100,100,100,0.2)",degree:-20},scale:1,backgroundImage:"/img/bg/bg.png",url:"",group:[],glob:[],theme:themeList,themeId:"",filters:{},style:"",before:"",overflow:!1,styles:{show:!1,contrast:100,saturate:100,brightness:100,opacity:100,grayscale:0,hueRotate:0,invert:0,blur:0},gradeShow:!1,gradeLen:30};["data","vue","common","datav","text","wordcloud","img","tabs","map","video","clapper","pie","pictorialbar","iframe","swiper","flop","bar","line","progress","table","gauge","funnel","scatter","radar","img","imgborder","imgList","imgTabs","rectangle","code"].concat(website.componentsList.filter(e=>e.data===!0).map(e=>e.name));const loading_vue_vue_type_style_index_0_lang="",_export_sfc$1=(e,v)=>{const s=e.__vccOpts||e;for(const[g,w]of v)s[g]=w;return s},_sfc_main$M={data(){return{reload:!1}},methods:{show(){this.reload=!0},hide(){this.reload=!1}}},_hoisted_1$g={key:0,class:"loading-wrapper"},_hoisted_2$8=vue.createElementVNode("div",{class:"loading-box"},[vue.createElementVNode("span",null,"JNPF-DATA"),vue.createElementVNode("span",null,"大"),vue.createElementVNode("span",null,"屏"),vue.createElementVNode("span",null,"设"),vue.createElementVNode("span",null,"计"),vue.createElementVNode("span",null,"器")],-1),_hoisted_3$3=vue.createElementVNode("div",{class:"loading_title"},"加载中…",-1),_hoisted_4$1=[_hoisted_2$8,_hoisted_3$3];function _sfc_render$J(e,v,s,g,w,m){return w.reload?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,_hoisted_4$1)):vue.createCommentVNode("",!0)}const loading=_export_sfc$1(_sfc_main$M,[["render",_sfc_render$J]]),_sfc_main$L={props:{step:Number,index:[Number,String],zIndex:[Number,String],id:String,scale:Number,disabled:Boolean,line:Boolean,tool:Boolean,item:{type:Object,default:()=>({})}},data(){return{type:"folder",active:!1,list:[],width:0,height:0,left:0,top:0}},watch:{"item.left"(e){this.left=e},"item.top"(e){this.top=e}},mounted(){this.setPosition()},methods:{setActive(e,v){this.setPosition(),this.active=e,this.$refs.main.setActive(e,v)},setOverActive(e){this.setPosition(),this.$refs.main.setOverActive(e)},handleMove(e){let{index:v,left:s,top:g}=e;this.active&&this.list.forEach(w=>{v!==w.index&&(w.left=w.left+s,w.top=w.top+g)}),this.$emit("move",e)},handleOut(e){this.placement=!1,this.$emit("out",e)},handleOver(e){this.setPosition(),this.$emit("over",e)},handleFocus(e){this.$emit("focus",e)},handleBlur(e){e.type="folder",this.$emit("blur",e)},setPosition(){this.list=[];let e=[],v=[],s=[],g=[],w=10;const m=t=>{t.forEach(a=>{a.children?m(a.children):(this.list.push(a),e.push(a.left-w),v.push(a.top-w),s.push(a.left+a.component.width+w),g.push(a.top+a.component.height+w))})};m(this.item.children);const u=Math.min.apply(null,e),c=Math.max.apply(null,s),l=Math.min.apply(null,v),r=Math.max.apply(null,g);this.width=c-u,this.height=r-l,this.left=u,this.$set(this.item,"top",this.top),this.$set(this.item,"left",this.left),this.$set(this.item,"component",{width:this.width,height:this.height})},deepItem(e){const v=s=>{s.forEach(g=>{e&e(g),g.children&&v(g.children)})};v([this.item])},setLock(e){this.deepItem(v=>{v.lock=e})},setDisplay(e){this.deepItem(v=>{v.display=e})}}};function _sfc_render$I(e,v,s,g,w,m){const u=vue.resolveComponent("avue-draggable");return vue.openBlock(),vue.createBlock(u,vue.mergeProps({onMove:m.handleMove,onOver:m.handleOver,onOut:m.handleOut,onDblclick:e.handleDbClick,onFocus:m.handleFocus,onBlur:m.handleBlur,folder:""},s.item,{"z-index":s.disabled?-9999:s.item.zIndex,id:s.index,ref:"main",tool:s.tool,line:s.line,range:!1,width:w.width,left:w.left,top:w.top,scale:s.scale,step:s.step,disabled:s.disabled,height:w.height}),{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},16,["onMove","onOver","onOut","onDblclick","onFocus","onBlur","z-index","id","tool","line","width","left","top","scale","step","disabled","height"])}const folder=_export_sfc$1(_sfc_main$L,[["render",_sfc_render$I]]),addParam=e=>{let v=[];for(let s in e)v.push(`${s}=${e[s]}`);return v.length==0?"":`?${v.join("&")}`},getObjType=e=>{var v=Object.prototype.toString,s={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return e instanceof Element?"element":s[v.call(e)]},deepClone=e=>{var v=getObjType(e),s;if(v==="array")s=[];else if(v==="object")s={};else return e;if(v==="array")for(var g=0,w=e.length;g<w;g++)e[g]=(()=>(e[g]===0,e[g]))(),e[g]&&delete e[g].$parent,s.push(deepClone(e[g]));else if(v==="object")for(var m in e)e&&delete e.$parent,s[m]=deepClone(e[m]);return s};function validatenull(e){if(e&&parseInt(e)===0)return!1;const v=["$parent"];if(e instanceof Date||typeof e=="boolean"||typeof e=="number")return!1;if(e instanceof Array){if(e.length===0)return!0}else if(e instanceof Object){e=deepClone(e),v.forEach(g=>{delete e[g]});for(var s in e)return!1;return!0}else return e==="null"||e==null||e==="undefined"||e===void 0||e==="";return!1}const setPx=(e,v="")=>(validatenull(e)&&(e=v),validatenull(e)?"":(e=e+"",e.indexOf("%")===-1&&(e=e+"px"),e)),loadFont=(e="")=>{function v(w){const m=document.fonts.values();let u=!1,c=m.next();for(;!c.done&&!u;)return c.value.family===w&&(u=!0),u}const s=".ttf";if(e.indexOf(s)==-1)return;let g=e.substr(e.lastIndexOf("/")+1).replace(s,"");return document.fonts&&!v(g)&&new FontFace(g,`local('${g}'),url('${e}')`).load().then(m=>document.fonts.add(m)),g},uuid=()=>{for(var e=[],v="0123456789abcdef",s=0;s<36;s++)e[s]=v.substr(Math.floor(Math.random()*16),1);e[14]="4",e[19]=v.substr(e[19]&3|8,1),e[8]=e[13]=e[18]=e[23]="-";var g=e.join("");return g},funEval=e=>new Function("return "+e+";")(),getFunction=(e,v)=>{if(validatenull(e)){if(v)return()=>{}}else try{return funEval(e)}catch{return()=>{}}},checkUrl=e=>{var v=/http(s)?:\/\/([\w-.]+)+(:[0-9]+)?.*$/;return!!v.test(e)},getUrlParam=e=>{let v=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),s=window.location.search.substr(1).match(v);return s!=null?unescape(s[2]):null};var _a;const isClient=typeof window<"u",isString$1=e=>typeof e=="string",noop=()=>{};isClient&&((_a=window==null?void 0:window.navigator)!=null&&_a.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref(e){return typeof e=="function"?e():vue.unref(e)}function identity(e){return e}function tryOnScopeDispose(e){return vue.getCurrentScope()?(vue.onScopeDispose(e),!0):!1}function tryOnMounted(e,v=!0){vue.getCurrentInstance()?vue.onMounted(e):v?e():vue.nextTick(e)}function useTimeoutFn(e,v,s={}){const{immediate:g=!0}=s,w=vue.ref(!1);let m=null;function u(){m&&(clearTimeout(m),m=null)}function c(){w.value=!1,u()}function l(...r){u(),w.value=!0,m=setTimeout(()=>{w.value=!1,m=null,e(...r)},resolveUnref(v))}return g&&(w.value=!0,isClient&&l()),tryOnScopeDispose(c),{isPending:vue.readonly(w),start:l,stop:c}}function unrefElement(e){var v;const s=resolveUnref(e);return(v=s==null?void 0:s.$el)!=null?v:s}const defaultWindow=isClient?window:void 0;function useEventListener(...e){let v,s,g,w;if(isString$1(e[0])||Array.isArray(e[0])?([s,g,w]=e,v=defaultWindow):[v,s,g,w]=e,!v)return noop;Array.isArray(s)||(s=[s]),Array.isArray(g)||(g=[g]);const m=[],u=()=>{m.forEach(t=>t()),m.length=0},c=(t,a,o,n)=>(t.addEventListener(a,o,n),()=>t.removeEventListener(a,o,n)),l=vue.watch(()=>[unrefElement(v),resolveUnref(w)],([t,a])=>{u(),t&&m.push(...s.flatMap(o=>g.map(n=>c(t,o,n,a))))},{immediate:!0,flush:"post"}),r=()=>{l(),u()};return tryOnScopeDispose(r),r}function useSupported(e,v=!1){const s=vue.ref(),g=()=>s.value=!!e();return g(),tryOnMounted(g,v),s}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};var __getOwnPropSymbols$g=Object.getOwnPropertySymbols,__hasOwnProp$g=Object.prototype.hasOwnProperty,__propIsEnum$g=Object.prototype.propertyIsEnumerable,__objRest$2=(e,v)=>{var s={};for(var g in e)__hasOwnProp$g.call(e,g)&&v.indexOf(g)<0&&(s[g]=e[g]);if(e!=null&&__getOwnPropSymbols$g)for(var g of __getOwnPropSymbols$g(e))v.indexOf(g)<0&&__propIsEnum$g.call(e,g)&&(s[g]=e[g]);return s};function useResizeObserver(e,v,s={}){const g=s,{window:w=defaultWindow}=g,m=__objRest$2(g,["window"]);let u;const c=useSupported(()=>w&&"ResizeObserver"in w),l=()=>{u&&(u.disconnect(),u=void 0)},r=vue.watch(()=>unrefElement(e),a=>{l(),c.value&&w&&a&&(u=new ResizeObserver(v),u.observe(a,m))},{immediate:!0,flush:"post"}),t=()=>{l(),r()};return tryOnScopeDispose(t),{isSupported:c,stop:t}}var SwipeDirection;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,v,s)=>v in e?__defProp(e,v,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[v]=s,__spreadValues=(e,v)=>{for(var s in v||(v={}))__hasOwnProp.call(v,s)&&__defNormalProp(e,s,v[s]);if(__getOwnPropSymbols)for(var s of __getOwnPropSymbols(v))__propIsEnum.call(v,s)&&__defNormalProp(e,s,v[s]);return e};const _TransitionPresets={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};__spreadValues({linear:identity},_TransitionPresets);const hasOwnProperty$4=Object.prototype.hasOwnProperty,hasOwn=(e,v)=>hasOwnProperty$4.call(e,v),isFunction$1=e=>typeof e=="function",isString=e=>typeof e=="string",isObject$1=e=>e!==null&&typeof e=="object";var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol$1=root$1.Symbol;const Symbol$2=Symbol$1;var objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty,nativeObjectToString$1=objectProto$4.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(e){var v=hasOwnProperty$3.call(e,symToStringTag$1),s=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var g=!0}catch{}var w=nativeObjectToString$1.call(e);return g&&(v?e[symToStringTag$1]=s:delete e[symToStringTag$1]),w}var objectProto$3=Object.prototype,nativeObjectToString=objectProto$3.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return e!=null&&typeof e=="object"}var symbolTag="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&baseGetTag(e)==symbolTag}function arrayMap(e,v){for(var s=-1,g=e==null?0:e.length,w=Array(g);++s<g;)w[s]=v(e[s],s,e);return w}var isArray=Array.isArray;const isArray$1=isArray;var INFINITY$1=1/0,symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString(e){if(typeof e=="string")return e;if(isArray$1(e))return arrayMap(e,baseToString)+"";if(isSymbol(e))return symbolToString?symbolToString.call(e):"";var v=e+"";return v=="0"&&1/e==-INFINITY$1?"-0":v}function isObject(e){var v=typeof e;return e!=null&&(v=="object"||v=="function")}var asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject(e))return!1;var v=baseGetTag(e);return v==funcTag||v==genTag||v==asyncTag||v==proxyTag}var coreJsData=root$1["__core-js_shared__"];const coreJsData$1=coreJsData;var maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource(e){if(e!=null){try{return funcToString$1.call(e)}catch{}try{return e+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$2=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$2=objectProto$2.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$2).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!isObject(e)||isMasked(e))return!1;var v=isFunction(e)?reIsNative:reIsHostCtor;return v.test(toSource(e))}function getValue(e,v){return e==null?void 0:e[v]}function getNative(e,v){var s=getValue(e,v);return baseIsNative(s)?s:void 0}function eq(e,v){return e===v||e!==e&&v!==v}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(e,v){if(isArray$1(e))return!1;var s=typeof e;return s=="number"||s=="symbol"||s=="boolean"||e==null||isSymbol(e)?!0:reIsPlainProp.test(e)||!reIsDeepProp.test(e)||v!=null&&e in Object(v)}var nativeCreate=getNative(Object,"create");const nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete(e){var v=this.has(e)&&delete this.__data__[e];return this.size-=v?1:0,v}var HASH_UNDEFINED$1="__lodash_hash_undefined__",objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function hashGet(e){var v=this.__data__;if(nativeCreate$1){var s=v[e];return s===HASH_UNDEFINED$1?void 0:s}return hasOwnProperty$1.call(v,e)?v[e]:void 0}var objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function hashHas(e){var v=this.__data__;return nativeCreate$1?v[e]!==void 0:hasOwnProperty.call(v,e)}var HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet(e,v){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=nativeCreate$1&&v===void 0?HASH_UNDEFINED:v,this}function Hash(e){var v=-1,s=e==null?0:e.length;for(this.clear();++v<s;){var g=e[v];this.set(g[0],g[1])}}Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(e,v){for(var s=e.length;s--;)if(eq(e[s][0],v))return s;return-1}var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var v=this.__data__,s=assocIndexOf(v,e);if(s<0)return!1;var g=v.length-1;return s==g?v.pop():splice.call(v,s,1),--this.size,!0}function listCacheGet(e){var v=this.__data__,s=assocIndexOf(v,e);return s<0?void 0:v[s][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,v){var s=this.__data__,g=assocIndexOf(s,e);return g<0?(++this.size,s.push([e,v])):s[g][1]=v,this}function ListCache(e){var v=-1,s=e==null?0:e.length;for(this.clear();++v<s;){var g=e[v];this.set(g[0],g[1])}}ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet;var Map$1=getNative(root$1,"Map");const Map$2=Map$1;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache),string:new Hash}}function isKeyable(e){var v=typeof e;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?e!=="__proto__":e===null}function getMapData$1(e,v){var s=e.__data__;return isKeyable(v)?s[typeof v=="string"?"string":"hash"]:s.map}function mapCacheDelete(e){var v=getMapData$1(this,e).delete(e);return this.size-=v?1:0,v}function mapCacheGet(e){return getMapData$1(this,e).get(e)}function mapCacheHas(e){return getMapData$1(this,e).has(e)}function mapCacheSet(e,v){var s=getMapData$1(this,e),g=s.size;return s.set(e,v),this.size+=s.size==g?0:1,this}function MapCache(e){var v=-1,s=e==null?0:e.length;for(this.clear();++v<s;){var g=e[v];this.set(g[0],g[1])}}MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT="Expected a function";function memoize(e,v){if(typeof e!="function"||v!=null&&typeof v!="function")throw new TypeError(FUNC_ERROR_TEXT);var s=function(){var g=arguments,w=v?v.apply(this,g):g[0],m=s.cache;if(m.has(w))return m.get(w);var u=e.apply(this,g);return s.cache=m.set(w,u)||m,u};return s.cache=new(memoize.Cache||MapCache),s}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(e){var v=memoize(e,function(g){return s.size===MAX_MEMOIZE_SIZE&&s.clear(),g}),s=v.cache;return v}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(e){var v=[];return e.charCodeAt(0)===46&&v.push(""),e.replace(rePropName,function(s,g,w,m){v.push(w?m.replace(reEscapeChar,"$1"):g||s)}),v});const stringToPath$1=stringToPath;function toString(e){return e==null?"":baseToString(e)}function castPath(e,v){return isArray$1(e)?e:isKey(e,v)?[e]:stringToPath$1(toString(e))}var INFINITY=1/0;function toKey(e){if(typeof e=="string"||isSymbol(e))return e;var v=e+"";return v=="0"&&1/e==-INFINITY?"-0":v}function baseGet(e,v){v=castPath(v,e);for(var s=0,g=v.length;e!=null&&s<g;)e=e[toKey(v[s++])];return s&&s==g?e:void 0}function get(e,v,s){var g=e==null?void 0:baseGet(e,v);return g===void 0?s:g}function fromPairs(e){for(var v=-1,s=e==null?0:e.length,g={};++v<s;){var w=e[v];g[w[0]]=w[1]}return g}const isUndefined=e=>e===void 0,isBoolean=e=>typeof e=="boolean",isNumber=e=>typeof e=="number",isElement=e=>typeof Element>"u"?!1:e instanceof Element,isStringNumber=e=>isString(e)?!Number.isNaN(Number(e)):!1,keysOf=e=>Object.keys(e);function addUnit(e,v="px"){if(!e)return"";if(isNumber(e)||isStringNumber(e))return`${e}${v}`;if(isString(e))return e}/*! Element Plus Icons Vue v2.3.1 */var circle_close_filled_vue_vue_type_script_setup_true_lang_default=vue.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(v,s)=>(vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[vue.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),circle_close_filled_default=circle_close_filled_vue_vue_type_script_setup_true_lang_default,close_vue_vue_type_script_setup_true_lang_default=vue.defineComponent({name:"Close",__name:"close",setup(e){return(v,s)=>(vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[vue.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),close_default=close_vue_vue_type_script_setup_true_lang_default,info_filled_vue_vue_type_script_setup_true_lang_default=vue.defineComponent({name:"InfoFilled",__name:"info-filled",setup(e){return(v,s)=>(vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[vue.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),info_filled_default=info_filled_vue_vue_type_script_setup_true_lang_default,success_filled_vue_vue_type_script_setup_true_lang_default=vue.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(e){return(v,s)=>(vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[vue.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),success_filled_default=success_filled_vue_vue_type_script_setup_true_lang_default,warning_filled_vue_vue_type_script_setup_true_lang_default=vue.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(v,s)=>(vue.openBlock(),vue.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[vue.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),warning_filled_default=warning_filled_vue_vue_type_script_setup_true_lang_default;const epPropKey="__epPropKey",definePropType=e=>e,isEpProp=e=>isObject$1(e)&&!!e[epPropKey],buildProp=(e,v)=>{if(!isObject$1(e)||isEpProp(e))return e;const{values:s,required:g,default:w,type:m,validator:u}=e,l={type:m,required:!!g,validator:s||u?r=>{let t=!1,a=[];if(s&&(a=Array.from(s),hasOwn(e,"default")&&a.push(w),t||(t=a.includes(r))),u&&(t||(t=u(r))),!t&&a.length>0){const o=[...new Set(a)].map(n=>JSON.stringify(n)).join(", ");vue.warn(`Invalid prop: validation failed${v?` for prop "${v}"`:""}. Expected one of [${o}], got value ${JSON.stringify(r)}.`)}return t}:void 0,[epPropKey]:!0};return hasOwn(e,"default")&&(l.default=w),l},buildProps=e=>fromPairs(Object.entries(e).map(([v,s])=>[v,buildProp(s,v)])),iconPropType=definePropType([String,Object,Function]),TypeComponents={Close:close_default,SuccessFilled:success_filled_default,InfoFilled:info_filled_default,WarningFilled:warning_filled_default,CircleCloseFilled:circle_close_filled_default},TypeComponentsMap={success:success_filled_default,warning:warning_filled_default,error:circle_close_filled_default,info:info_filled_default},withInstall=(e,v)=>{if(e.install=s=>{for(const g of[e,...Object.values(v??{})])s.component(g.name,g)},v)for(const[s,g]of Object.entries(v))e[s]=g;return e},withInstallFunction=(e,v)=>(e.install=s=>{e._context=s._context,s.config.globalProperties[v]=e},e),EVENT_CODE={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},componentSizes=["","default","small","large"],mutable=e=>e;var English={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const buildTranslator=e=>(v,s)=>translate(v,s,vue.unref(e)),translate=(e,v,s)=>get(s,e,e).replace(/\{(\w+)\}/g,(g,w)=>{var m;return`${(m=v==null?void 0:v[w])!=null?m:`{${w}}`}`}),buildLocaleContext=e=>{const v=vue.computed(()=>vue.unref(e).name),s=vue.isRef(e)?e:vue.ref(e);return{lang:v,locale:s,t:buildTranslator(e)}},localeContextKey=Symbol("localeContextKey"),useLocale=e=>{const v=e||vue.inject(localeContextKey,vue.ref());return buildLocaleContext(vue.computed(()=>v.value||English))},defaultNamespace="el",statePrefix="is-",_bem=(e,v,s,g,w)=>{let m=`${e}-${v}`;return s&&(m+=`-${s}`),g&&(m+=`__${g}`),w&&(m+=`--${w}`),m},namespaceContextKey=Symbol("namespaceContextKey"),useGetDerivedNamespace=e=>{const v=e||(vue.getCurrentInstance()?vue.inject(namespaceContextKey,vue.ref(defaultNamespace)):vue.ref(defaultNamespace));return vue.computed(()=>vue.unref(v)||defaultNamespace)},useNamespace=(e,v)=>{const s=useGetDerivedNamespace(v);return{namespace:s,b:(d="")=>_bem(s.value,e,d,"",""),e:d=>d?_bem(s.value,e,"",d,""):"",m:d=>d?_bem(s.value,e,"","",d):"",be:(d,h)=>d&&h?_bem(s.value,e,d,h,""):"",em:(d,h)=>d&&h?_bem(s.value,e,"",d,h):"",bm:(d,h)=>d&&h?_bem(s.value,e,d,"",h):"",bem:(d,h,y)=>d&&h&&y?_bem(s.value,e,d,h,y):"",is:(d,...h)=>{const y=h.length>=1?h[0]:!0;return d&&y?`${statePrefix}${d}`:""},cssVar:d=>{const h={};for(const y in d)d[y]&&(h[`--${s.value}-${y}`]=d[y]);return h},cssVarName:d=>`--${s.value}-${d}`,cssVarBlock:d=>{const h={};for(const y in d)d[y]&&(h[`--${s.value}-${e}-${y}`]=d[y]);return h},cssVarBlockName:d=>`--${s.value}-${e}-${d}`}},initial={current:0},zIndex=vue.ref(0),defaultInitialZIndex=2e3,ZINDEX_INJECTION_KEY=Symbol("elZIndexContextKey"),zIndexContextKey=Symbol("zIndexContextKey"),useZIndex=e=>{const v=vue.getCurrentInstance()?vue.inject(ZINDEX_INJECTION_KEY,initial):initial,s=e||(vue.getCurrentInstance()?vue.inject(zIndexContextKey,void 0):void 0),g=vue.computed(()=>{const u=vue.unref(s);return isNumber(u)?u:defaultInitialZIndex}),w=vue.computed(()=>g.value+zIndex.value),m=()=>(v.current++,zIndex.value=v.current,w.value);return!isClient&&vue.inject(ZINDEX_INJECTION_KEY),{initialZIndex:g,currentZIndex:w,nextZIndex:m}},useSizeProp=buildProp({type:String,values:componentSizes,required:!1}),SIZE_INJECTION_KEY=Symbol("size"),emptyValuesContextKey=Symbol("emptyValuesContextKey"),useEmptyValuesProps=buildProps({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>isFunction$1(e)?!e():!e}}),configProviderContextKey=Symbol(),globalConfig=vue.ref();function useGlobalConfig(e,v=void 0){const s=vue.getCurrentInstance()?vue.inject(configProviderContextKey,globalConfig):globalConfig;return e?vue.computed(()=>{var g,w;return(w=(g=s.value)==null?void 0:g[e])!=null?w:v}):s}function useGlobalComponentSettings(e,v){const s=useGlobalConfig(),g=useNamespace(e,vue.computed(()=>{var c;return((c=s.value)==null?void 0:c.namespace)||defaultNamespace})),w=useLocale(vue.computed(()=>{var c;return(c=s.value)==null?void 0:c.locale})),m=useZIndex(vue.computed(()=>{var c;return((c=s.value)==null?void 0:c.zIndex)||defaultInitialZIndex})),u=vue.computed(()=>{var c;return vue.unref(v)||((c=s.value)==null?void 0:c.size)||""});return provideGlobalConfig(vue.computed(()=>vue.unref(s)||{})),{ns:g,locale:w,zIndex:m,size:u}}const provideGlobalConfig=(e,v,s=!1)=>{var g;const w=!!vue.getCurrentInstance(),m=w?useGlobalConfig():void 0,u=(g=v==null?void 0:v.provide)!=null?g:w?vue.provide:void 0;if(!u)return;const c=vue.computed(()=>{const l=vue.unref(e);return m!=null&&m.value?mergeConfig(m.value,l):l});return u(configProviderContextKey,c),u(localeContextKey,vue.computed(()=>c.value.locale)),u(namespaceContextKey,vue.computed(()=>c.value.namespace)),u(zIndexContextKey,vue.computed(()=>c.value.zIndex)),u(SIZE_INJECTION_KEY,{size:vue.computed(()=>c.value.size||"")}),u(emptyValuesContextKey,vue.computed(()=>({emptyValues:c.value.emptyValues,valueOnClear:c.value.valueOnClear}))),(s||!globalConfig.value)&&(globalConfig.value=c.value),c},mergeConfig=(e,v)=>{const s=[...new Set([...keysOf(e),...keysOf(v)])],g={};for(const w of s)g[w]=v[w]!==void 0?v[w]:e[w];return g},configProviderProps=buildProps({a11y:{type:Boolean,default:!0},locale:{type:definePropType(Object)},size:useSizeProp,button:{type:definePropType(Object)},experimentalFeatures:{type:definePropType(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:definePropType(Object)},zIndex:Number,namespace:{type:String,default:"el"},...useEmptyValuesProps}),messageConfig={};vue.defineComponent({name:"ElConfigProvider",props:configProviderProps,setup(e,{slots:v}){vue.watch(()=>e.message,g=>{Object.assign(messageConfig,g??{})},{immediate:!0,deep:!0});const s=provideGlobalConfig(e);return()=>vue.renderSlot(v,"default",{config:s==null?void 0:s.value})}});var _export_sfc=(e,v)=>{const s=e.__vccOpts||e;for(const[g,w]of v)s[g]=w;return s};const iconProps=buildProps({size:{type:definePropType([Number,String])},color:{type:String}}),__default__$2=vue.defineComponent({name:"ElIcon",inheritAttrs:!1}),_sfc_main$K=vue.defineComponent({...__default__$2,props:iconProps,setup(e){const v=e,s=useNamespace("icon"),g=vue.computed(()=>{const{size:w,color:m}=v;return!w&&!m?{}:{fontSize:isUndefined(w)?void 0:addUnit(w),"--color":m}});return(w,m)=>(vue.openBlock(),vue.createElementBlock("i",vue.mergeProps({class:vue.unref(s).b(),style:vue.unref(g)},w.$attrs),[vue.renderSlot(w.$slots,"default")],16))}});var Icon=_export_sfc(_sfc_main$K,[["__file","icon.vue"]]);const ElIcon=withInstall(Icon),badgeProps=buildProps({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:definePropType([String,Object,Array])},offset:{type:definePropType(Array),default:[0,0]},badgeClass:{type:String}}),__default__$1=vue.defineComponent({name:"ElBadge"}),_sfc_main$J=vue.defineComponent({...__default__$1,props:badgeProps,setup(e,{expose:v}){const s=e,g=useNamespace("badge"),w=vue.computed(()=>s.isDot?"":isNumber(s.value)&&isNumber(s.max)?s.max<s.value?`${s.max}+`:s.value===0&&!s.showZero?"":`${s.value}`:`${s.value}`),m=vue.computed(()=>{var u,c,l,r,t;return[{backgroundColor:s.color,marginRight:addUnit(-((c=(u=s.offset)==null?void 0:u[0])!=null?c:0)),marginTop:addUnit((r=(l=s.offset)==null?void 0:l[1])!=null?r:0)},(t=s.badgeStyle)!=null?t:{}]});return v({content:w}),(u,c)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(vue.unref(g).b())},[vue.renderSlot(u.$slots,"default"),vue.createVNode(vue.Transition,{name:`${vue.unref(g).namespace.value}-zoom-in-center`,persisted:""},{default:vue.withCtx(()=>[vue.withDirectives(vue.createElementVNode("sup",{class:vue.normalizeClass([vue.unref(g).e("content"),vue.unref(g).em("content",u.type),vue.unref(g).is("fixed",!!u.$slots.default),vue.unref(g).is("dot",u.isDot),u.badgeClass]),style:vue.normalizeStyle(vue.unref(m)),textContent:vue.toDisplayString(vue.unref(w))},null,14,["textContent"]),[[vue.vShow,!u.hidden&&(vue.unref(w)||u.isDot)]])]),_:1},8,["name"])],2))}});var Badge=_export_sfc(_sfc_main$J,[["__file","badge.vue"]]);const ElBadge=withInstall(Badge);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var v=e.default;if(typeof v=="function"){var s=function g(){return this instanceof g?Reflect.construct(v,arguments,this.constructor):v.apply(this,arguments)};s.prototype=v.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(g){var w=Object.getOwnPropertyDescriptor(e,g);Object.defineProperty(s,g,w.get?w:{enumerable:!0,get:function(){return e[g]}})}),s}const messageTypes=["success","info","warning","error"],messageDefaults=mutable({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:isClient?document.body:void 0}),messageProps=buildProps({customClass:{type:String,default:messageDefaults.customClass},center:{type:Boolean,default:messageDefaults.center},dangerouslyUseHTMLString:{type:Boolean,default:messageDefaults.dangerouslyUseHTMLString},duration:{type:Number,default:messageDefaults.duration},icon:{type:iconPropType,default:messageDefaults.icon},id:{type:String,default:messageDefaults.id},message:{type:definePropType([String,Object,Function]),default:messageDefaults.message},onClose:{type:definePropType(Function),default:messageDefaults.onClose},showClose:{type:Boolean,default:messageDefaults.showClose},type:{type:String,values:messageTypes,default:messageDefaults.type},plain:{type:Boolean,default:messageDefaults.plain},offset:{type:Number,default:messageDefaults.offset},zIndex:{type:Number,default:messageDefaults.zIndex},grouping:{type:Boolean,default:messageDefaults.grouping},repeatNum:{type:Number,default:messageDefaults.repeatNum}}),messageEmits={destroy:()=>!0},instances=vue.shallowReactive([]),getInstance=e=>{const v=instances.findIndex(w=>w.id===e),s=instances[v];let g;return v>0&&(g=instances[v-1]),{current:s,prev:g}},getLastOffset=e=>{const{prev:v}=getInstance(e);return v?v.vm.exposed.bottom.value:0},getOffsetOrSpace=(e,v)=>instances.findIndex(g=>g.id===e)>0?16:v,__default__=vue.defineComponent({name:"ElMessage"}),_sfc_main$I=vue.defineComponent({...__default__,props:messageProps,emits:messageEmits,setup(e,{expose:v}){const s=e,{Close:g}=TypeComponents,{ns:w,zIndex:m}=useGlobalComponentSettings("message"),{currentZIndex:u,nextZIndex:c}=m,l=vue.ref(),r=vue.ref(!1),t=vue.ref(0);let a;const o=vue.computed(()=>s.type?s.type==="error"?"danger":s.type:"info"),n=vue.computed(()=>{const E=s.type;return{[w.bm("icon",E)]:E&&TypeComponentsMap[E]}}),i=vue.computed(()=>s.icon||TypeComponentsMap[s.type]||""),d=vue.computed(()=>getLastOffset(s.id)),h=vue.computed(()=>getOffsetOrSpace(s.id,s.offset)+d.value),y=vue.computed(()=>t.value+h.value),b=vue.computed(()=>({top:`${h.value}px`,zIndex:u.value}));function f(){s.duration!==0&&({stop:a}=useTimeoutFn(()=>{$()},s.duration))}function x(){a==null||a()}function $(){r.value=!1}function B({code:E}){E===EVENT_CODE.esc&&$()}return vue.onMounted(()=>{f(),c(),r.value=!0}),vue.watch(()=>s.repeatNum,()=>{x(),f()}),useEventListener(document,"keydown",B),useResizeObserver(l,()=>{t.value=l.value.getBoundingClientRect().height}),v({visible:r,bottom:y,close:$}),(E,N)=>(vue.openBlock(),vue.createBlock(vue.Transition,{name:vue.unref(w).b("fade"),onBeforeLeave:E.onClose,onAfterLeave:U=>E.$emit("destroy"),persisted:""},{default:vue.withCtx(()=>[vue.withDirectives(vue.createElementVNode("div",{id:E.id,ref_key:"messageRef",ref:l,class:vue.normalizeClass([vue.unref(w).b(),{[vue.unref(w).m(E.type)]:E.type},vue.unref(w).is("center",E.center),vue.unref(w).is("closable",E.showClose),vue.unref(w).is("plain",E.plain),E.customClass]),style:vue.normalizeStyle(vue.unref(b)),role:"alert",onMouseenter:x,onMouseleave:f},[E.repeatNum>1?(vue.openBlock(),vue.createBlock(vue.unref(ElBadge),{key:0,value:E.repeatNum,type:vue.unref(o),class:vue.normalizeClass(vue.unref(w).e("badge"))},null,8,["value","type","class"])):vue.createCommentVNode("v-if",!0),vue.unref(i)?(vue.openBlock(),vue.createBlock(vue.unref(ElIcon),{key:1,class:vue.normalizeClass([vue.unref(w).e("icon"),vue.unref(n)])},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(i))))]),_:1},8,["class"])):vue.createCommentVNode("v-if",!0),vue.renderSlot(E.$slots,"default",{},()=>[E.dangerouslyUseHTMLString?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),vue.createElementVNode("p",{class:vue.normalizeClass(vue.unref(w).e("content")),innerHTML:E.message},null,10,["innerHTML"])],2112)):(vue.openBlock(),vue.createElementBlock("p",{key:0,class:vue.normalizeClass(vue.unref(w).e("content"))},vue.toDisplayString(E.message),3))]),E.showClose?(vue.openBlock(),vue.createBlock(vue.unref(ElIcon),{key:2,class:vue.normalizeClass(vue.unref(w).e("closeBtn")),onClick:vue.withModifiers($,["stop"])},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(g))]),_:1},8,["class","onClick"])):vue.createCommentVNode("v-if",!0)],46,["id"]),[[vue.vShow,r.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var MessageConstructor=_export_sfc(_sfc_main$I,[["__file","message.vue"]]);let seed=1;const normalizeOptions=e=>{const v=!e||isString(e)||vue.isVNode(e)||isFunction$1(e)?{message:e}:e,s={...messageDefaults,...v};if(!s.appendTo)s.appendTo=document.body;else if(isString(s.appendTo)){let g=document.querySelector(s.appendTo);isElement(g)||(g=document.body),s.appendTo=g}return isBoolean(messageConfig.grouping)&&!s.grouping&&(s.grouping=messageConfig.grouping),isNumber(messageConfig.duration)&&s.duration===3e3&&(s.duration=messageConfig.duration),isNumber(messageConfig.offset)&&s.offset===16&&(s.offset=messageConfig.offset),isBoolean(messageConfig.showClose)&&!s.showClose&&(s.showClose=messageConfig.showClose),s},closeMessage=e=>{const v=instances.indexOf(e);if(v===-1)return;instances.splice(v,1);const{handler:s}=e;s.close()},createMessage=({appendTo:e,...v},s)=>{const g=`message_${seed++}`,w=v.onClose,m=document.createElement("div"),u={...v,id:g,onClose:()=>{w==null||w(),closeMessage(t)},onDestroy:()=>{vue.render(null,m)}},c=vue.createVNode(MessageConstructor,u,isFunction$1(u.message)||vue.isVNode(u.message)?{default:isFunction$1(u.message)?u.message:()=>u.message}:null);c.appContext=s||message._context,vue.render(c,m),e.appendChild(m.firstElementChild);const l=c.component,t={id:g,vnode:c,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:c.component.props};return t},message=(e={},v)=>{if(!isClient)return{close:()=>{}};const s=normalizeOptions(e);if(s.grouping&&instances.length){const w=instances.find(({vnode:m})=>{var u;return((u=m.props)==null?void 0:u.message)===s.message});if(w)return w.props.repeatNum+=1,w.props.type=s.type,w.handler}if(isNumber(messageConfig.max)&&instances.length>=messageConfig.max)return{close:()=>{}};const g=createMessage(s,v);return instances.push(g),g.handler};messageTypes.forEach(e=>{message[e]=(v={},s)=>{const g=normalizeOptions(v);return message({...g,type:e},s)}});function closeAll(e){for(const v of instances)(!e||e===v.props.type)&&v.handler.close()}message.closeAll=closeAll,message._context=null;const ElMessage=withInstallFunction(message,"$message");window.$glob={url:"",group:"",themeId:"",theme:{},params:{},query:{},header:{}};var query=window.location.search.substring(1);query!=""&&(query=query.split("&"),query.forEach(e=>{var v=e.split("=");window.$glob.params[v[0]]=v[1]})),axios$1.defaults.timeout=1e5,axios$1.defaults.validateStatus=function(e){return e>=200&&e<=500},axios$1.interceptors.request.use(e=>{let v=e.url;var s=v.match(/\$\{(.+?)\}/g);(s||[]).forEach(c=>{let l=c.replace("${","").replace("}","");v=v.replace(c,window.$glob[l])}),e.url=v,checkUrl(e.url)||(e.url=window.$glob.url+e.url);let g=window.$glob.header||{};e.headers=Object.assign(e.headers,g);let w=window.$glob.query||{},m;if(["get","delete"].includes(e.method)?m="params":["post","put"].includes(e.method)&&(m="data"),typeof e[m]=="object"&&(e[m]=Object.assign(e[m]||{},w)),e.headers.proxy){let c={};for(let r in e.headers)typeof e.headers[r]!="object"&&(c[r]=e.headers[r]);let l={url:e.url,method:e.method,headers:c};l[m]=e[m],e.url=url+"/visual/proxy",e.method="post",e.data=l}const u=localStorage.getItem("token")||"";return e.headers.Authorization=e.headers.Authorization?e.headers.Authorization:u,e},e=>Promise.reject(e)),axios$1.interceptors.response.use(e=>{const v=e.data;return v&&v.code&&v.code!==200?(ElMessage({message:v.msg||"请求出错,请重试",type:"error",duration:1500}),Promise.reject(new Error(v.msg||"Error"))):e},e=>Promise.reject(new Error(e)));const baseUrl$4=url+"/db",dynamicSql=e=>axios$1({url:baseUrl$4+"/dynamic-query",method:"post",headers:{"Content-Type":"application/json"},data:e}),baseUrl$3=url+"/map",getMapData=e=>axios$1({url:baseUrl$3+"/data",method:"get",params:{id:e}}),baseUrl$2=url+"/record",getObj$1=e=>axios$1({url:baseUrl$2+"/detail",method:"get",params:{id:e}}),_sfc_main$H={inject:["contain","container"],props:{item:Object,parent:Object},data(){return{mapFormatter:getMapData,sqlFormatter:dynamicSql,recordFormatter:getObj$1,common:common$1}},methods:{getStyle(){let e=[],v=[],s=10;const g=u=>{u.forEach(c=>{c.children?g(c.children):(e.push(c.left-s),v.push(c.top-s))})};g([this.parent]);const w=Math.min.apply(null,e),m=Math.min.apply(null,v);return{position:"absolute",top:this.setPx(this.item.top-m),left:this.setPx(this.item.left-w)}},remoteChange(e){e.id.remoteContent=e.content}}};function _sfc_render$H(e,v,s,g,w,m){return vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(w.common.COMPNAME+s.item.component.name),vue.mergeProps({id:w.common.NAME+s.item.index,ref:"temp"},s.item,{style:s.parent&&m.getStyle(s.parent,s.item),component:s.item.component,transfer:m.container.transfer,initialize:m.container.isBuild,"filter-list":m.contain.config.filters,"data-formatter-str":s.item.dataFormatter,"click-formatter-str":s.item.clickFormatter,"dbl-click-formatter-str":s.item.dblClickFormatter,"mouse-enter-formatter-str":s.item.mouseEnterFormatter,"mouse-leave-formatter-str":s.item.mouseLeaveFormatter,"data-before-formatter-str":s.item.dataBeforeFormatter,"data-after-formatter-str":s.item.dataAfterFormatter,"echart-formatter-str":s.item.echartFormatter,"label-formatter-str":s.item.labelFormatter,"styles-formatter-str":s.item.stylesFormatter,"formatter-str":s.item.formatter,"sql-formatter":w.sqlFormatter,"map-formatter":w.mapFormatter,"record-formatter":w.recordFormatter,width:s.item.component.width,height:s.item.component.height,disabled:!m.contain.menuFlag,scale:m.container.stepScale,onRemoteChange:m.remoteChange,title:""}),null,16,["id","style","component","transfer","initialize","filter-list","data-formatter-str","click-formatter-str","dbl-click-formatter-str","mouse-enter-formatter-str","mouse-leave-formatter-str","data-before-formatter-str","data-after-formatter-str","echart-formatter-str","label-formatter-str","styles-formatter-str","formatter-str","sql-formatter","map-formatter","record-formatter","width","height","disabled","scale","onRemoteChange"])}const temp=_export_sfc$1(_sfc_main$H,[["render",_sfc_render$H]]);var cryptoJs={exports:{}};function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(e,v){(function(s,g){e.exports=g()})(commonjsGlobal,function(){var s=s||function(g,w){var m;if(typeof window<"u"&&window.crypto&&(m=window.crypto),typeof self<"u"&&self.crypto&&(m=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(m=globalThis.crypto),!m&&typeof window<"u"&&window.msCrypto&&(m=window.msCrypto),!m&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(m=commonjsGlobal.crypto),!m&&typeof commonjsRequire=="function")try{m=require$$0}catch{}var u=function(){if(m){if(typeof m.getRandomValues=="function")try{return m.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof m.randomBytes=="function")try{return m.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},c=Object.create||function(){function b(){}return function(f){var x;return b.prototype=f,x=new b,b.prototype=null,x}}(),l={},r=l.lib={},t=r.Base=function(){return{extend:function(b){var f=c(this);return b&&f.mixIn(b),(!f.hasOwnProperty("init")||this.init===f.init)&&(f.init=function(){f.$super.init.apply(this,arguments)}),f.init.prototype=f,f.$super=this,f},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var f in b)b.hasOwnProperty(f)&&(this[f]=b[f]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=r.WordArray=t.extend({init:function(b,f){b=this.words=b||[],f!=w?this.sigBytes=f:this.sigBytes=b.length*4},toString:function(b){return(b||n).stringify(this)},concat:function(b){var f=this.words,x=b.words,$=this.sigBytes,B=b.sigBytes;if(this.clamp(),$%4)for(var E=0;E<B;E++){var N=x[E>>>2]>>>24-E%4*8&255;f[$+E>>>2]|=N<<24-($+E)%4*8}else for(var U=0;U<B;U+=4)f[$+U>>>2]=x[U>>>2];return this.sigBytes+=B,this},clamp:function(){var b=this.words,f=this.sigBytes;b[f>>>2]&=4294967295<<32-f%4*8,b.length=g.ceil(f/4)},clone:function(){var b=t.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var f=[],x=0;x<b;x+=4)f.push(u());return new a.init(f,b)}}),o=l.enc={},n=o.Hex={stringify:function(b){for(var f=b.words,x=b.sigBytes,$=[],B=0;B<x;B++){var E=f[B>>>2]>>>24-B%4*8&255;$.push((E>>>4).toString(16)),$.push((E&15).toString(16))}return $.join("")},parse:function(b){for(var f=b.length,x=[],$=0;$<f;$+=2)x[$>>>3]|=parseInt(b.substr($,2),16)<<24-$%8*4;return new a.init(x,f/2)}},i=o.Latin1={stringify:function(b){for(var f=b.words,x=b.sigBytes,$=[],B=0;B<x;B++){var E=f[B>>>2]>>>24-B%4*8&255;$.push(String.fromCharCode(E))}return $.join("")},parse:function(b){for(var f=b.length,x=[],$=0;$<f;$++)x[$>>>2]|=(b.charCodeAt($)&255)<<24-$%4*8;return new a.init(x,f)}},d=o.Utf8={stringify:function(b){try{return decodeURIComponent(escape(i.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return i.parse(unescape(encodeURIComponent(b)))}},h=r.BufferedBlockAlgorithm=t.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=d.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var f,x=this._data,$=x.words,B=x.sigBytes,E=this.blockSize,N=E*4,U=B/N;b?U=g.ceil(U):U=g.max((U|0)-this._minBufferSize,0);var R=U*E,C=g.min(R*4,B);if(R){for(var k=0;k<R;k+=E)this._doProcessBlock($,k);f=$.splice(0,R),x.sigBytes-=C}return new a.init(f,C)},clone:function(){var b=t.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});r.Hasher=h.extend({cfg:t.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var f=this._doFinalize();return f},blockSize:16,_createHelper:function(b){return function(f,x){return new b.init(x).finalize(f)}},_createHmacHelper:function(b){return function(f,x){return new y.HMAC.init(b,x).finalize(f)}}});var y=l.algo={};return l}(Math);return s})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(e,v){(function(s,g){e.exports=g(requireCore())})(commonjsGlobal,function(s){return function(g){var w=s,m=w.lib,u=m.Base,c=m.WordArray,l=w.x64={};l.Word=u.extend({init:function(r,t){this.high=r,this.low=t}}),l.WordArray=u.extend({init:function(r,t){r=this.words=r||[],t!=g?this.sigBytes=t:this.sigBytes=r.length*8},toX32:function(){for(var r=this.words,t=r.length,a=[],o=0;o<t;o++){var n=r[o];a.push(n.high),a.push(n.low)}return c.create(a,this.sigBytes)},clone:function(){for(var r=u.clone.call(this),t=r.words=this.words.slice(0),a=t.length,o=0;o<a;o++)t[o]=t[o].clone();return r}})}(),s})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(e,v){(function(s,g){e.exports=g(requireCore())})(commonjsGlobal,function(s){return function(){if(typeof ArrayBuffer=="function"){var g=s,w=g.lib,m=w.WordArray,u=m.init,c=m.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var r=l.byteLength,t=[],a=0;a<r;a++)t[a>>>2]|=l[a]<<24-a%4*8;u.call(this,t,r)}else u.apply(this,arguments)};c.prototype=m}}(),s.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(e,v){(function(s,g){e.exports=g(requireCore())})(commonjsGlobal,function(s){return function(){var g=s,w=g.lib,m=w.WordArray,u=g.enc;u.Utf16=u.Utf16BE={stringify:function(l){for(var r=l.words,t=l.sigBytes,a=[],o=0;o<t;o+=2){var n=r[o>>>2]>>>16-o%4*8&65535;a.push(String.fromCharCode(n))}return a.join("")},parse:function(l){for(var r=l.length,t=[],a=0;a<r;a++)t[a>>>1]|=l.charCodeAt(a)<<16-a%2*16;return m.create(t,r*2)}},u.Utf16LE={stringify:function(l){for(var r=l.words,t=l.sigBytes,a=[],o=0;o<t;o+=2){var n=c(r[o>>>2]>>>16-o%4*8&65535);a.push(String.fromCharCode(n))}return a.join("")},parse:function(l){for(var r=l.length,t=[],a=0;a<r;a++)t[a>>>1]|=c(l.charCodeAt(a)<<16-a%2*16);return m.create(t,r*2)}};function c(l){return l<<8&4278255360|l>>>8&16711935}}(),s.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(e,v){(function(s,g){e.exports=g(requireCore())})(commonjsGlobal,function(s){return function(){var g=s,w=g.lib,m=w.WordArray,u=g.enc;u.Base64={stringify:function(l){var r=l.words,t=l.sigBytes,a=this._map;l.clamp();for(var o=[],n=0;n<t;n+=3)for(var i=r[n>>>2]>>>24-n%4*8&255,d=r[n+1>>>2]>>>24-(n+1)%4*8&255,h=r[n+2>>>2]>>>24-(n+2)%4*8&255,y=i<<16|d<<8|h,b=0;b<4&&n+b*.75<t;b++)o.push(a.charAt(y>>>6*(3-b)&63));var f=a.charAt(64);if(f)for(;o.length%4;)o.push(f);return o.join("")},parse:function(l){var r=l.length,t=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o<t.length;o++)a[t.charCodeAt(o)]=o}var n=t.charAt(64);if(n){var i=l.indexOf(n);i!==-1&&(r=i)}return c(l,r,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function c(l,r,t){for(var a=[],o=0,n=0;n<r;n++)if(n%4){var i=t[l.charCodeAt(n-1)]<<n%4*2,d=t[l.charCodeAt(n)]>>>6-n%4*2,h=i|d;a[o>>>2]|=h<<24-o%4*8,o++}return m.create(a,o)}}(),s.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(e,v){(function(s,g){e.exports=g(requireCore())})(commonjsGlobal,function(s){return function(){var g=s,w=g.lib,m=w.WordArray,u=g.enc;u.Base64url={stringify:function(l,r=!0){var t=l.words,a=l.sigBytes,o=r?this._safe_map:this._map;l.clamp();for(var n=[],i=0;i<a;i+=3)for(var d=t[i>>>2]>>>24-i%4*8&255,h=t[i+1>>>2]>>>24-(i+1)%4*8&255,y=t[i+2>>>2]>>>24-(i+2)%4*8&255,b=d<<16|h<<8|y,f=0;f<4&&i+f*.75<a;f++)n.push(o.charAt(b>>>6*(3-f)&63));var x=o.charAt(64);if(x)for(;n.length%4;)n.push(x);return n.join("")},parse:function(l,r=!0){var t=l.length,a=r?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var n=0;n<a.length;n++)o[a.charCodeAt(n)]=n}var i=a.charAt(64);if(i){var d=l.indexOf(i);d!==-1&&(t=d)}return c(l,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function c(l,r,t){for(var a=[],o=0,n=0;n<r;n++)if(n%4){var i=t[l.charCodeAt(n-1)]<<n%4*2,d=t[l.charCodeAt(n)]>>>6-n%4*2,h=i|d;a[o>>>2]|=h<<24-o%4*8,o++}return m.create(a,o)}}(),s.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(e,v){(function(s,g){e.exports=g(requireCore())})(commonjsGlobal,function(s){return function(g){var w=s,m=w.lib,u=m.WordArray,c=m.Hasher,l=w.algo,r=[];(function(){for(var d=0;d<64;d++)r[d]=g.abs(g.sin(d+1))*4294967296|0})();var t=l.MD5=c.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(d,h){for(var y=0;y<16;y++){var b=h+y,f=d[b];d[b]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360}var x=this._hash.words,$=d[h+0],B=d[h+1],E=d[h+2],N=d[h+3],U=d[h+4],R=d[h+5],C=d[h+6],k=d[h+7],T=d[h+8],S=d[h+9],A=d[h+10],L=d[h+11],F=d[h+12],q=d[h+13],I=d[h+14],D=d[h+15],M=x[0],P=x[1],z=x[2],H=x[3];M=a(M,P,z,H,$,7,r[0]),H=a(H,M,P,z,B,12,r[1]),z=a(z,H,M,P,E,17,r[2]),P=a(P,z,H,M,N,22,r[3]),M=a(M,P,z,H,U,7,r[4]),H=a(H,M,P,z,R,12,r[5]),z=a(z,H,M,P,C,17,r[6]),P=a(P,z,H,M,k,22,r[7]),M=a(M,P,z,H,T,7,r[8]),H=a(H,M,P,z,S,12,r[9]),z=a(z,H,M,P,A,17,r[10]),P=a(P,z,H,M,L,22,r[11]),M=a(M,P,z,H,F,7,r[12]),H=a(H,M,P,z,q,12,r[13]),z=a(z,H,M,P,I,17,r[14]),P=a(P,z,H,M,D,22,r[15]),M=o(M,P,z,H,B,5,r[16]),H=o(H,M,P,z,C,9,r[17]),z=o(z,H,M,P,L,14,r[18]),P=o(P,z,H,M,$,20,r[19]),M=o(M,P,z,H,R,5,r[20]),H=o(H,M,P,z,A,9,r[21]),z=o(z,H,M,P,D,14,r[22]),P=o(P,z,H,M,U,20,r[23]),M=o(M,P,z,H,S,5,r[24]),H=o(H,M,P,z,I,9,r[25]),z=o(z,H,M,P,N,14,r[26]),P=o(P,z,H,M,T,20,r[27]),M=o(M,P,z,H,q,5,r[28]),H=o(H,M,P,z,E,9,r[29]),z=o(z,H,M,P,k,14,r[30]),P=o(P,z,H,M,F,20,r[31]),M=n(M,P,z,H,R,4,r[32]),H=n(H,M,P,z,T,11,r[33]),z=n(z,H,M,P,L,16,r[34]),P=n(P,z,H,M,I,23,r[35]),M=n(M,P,z,H,B,4,r[36]),H=n(H,M,P,z,U,11,r[37]),z=n(z,H,M,P,k,16,r[38]),P=n(P,z,H,M,A,23,r[39]),M=n(M,P,z,H,q,4,r[40]),H=n(H,M,P,z,$,11,r[41]),z=n(z,H,M,P,N,16,r[42]),P=n(P,z,H,M,C,23,r[43]),M=n(M,P,z,H,S,4,r[44]),H=n(H,M,P,z,F,11,r[45]),z=n(z,H,M,P,D,16,r[46]),P=n(P,z,H,M,E,23,r[47]),M=i(M,P,z,H,$,6,r[48]),H=i(H,M,P,z,k,10,r[49]),z=i(z,H,M,P,I,15,r[50]),P=i(P,z,H,M,R,21,r[51]),M=i(M,P,z,H,F,6,r[52]),H=i(H,M,P,z,N,10,r[53]),z=i(z,H,M,P,A,15,r[54]),P=i(P,z,H,M,B,21,r[55]),M=i(M,P,z,H,T,6,r[56]),H=i(H,M,P,z,D,10,r[57]),z=i(z,H,M,P,C,15,r[58]),P=i(P,z,H,M,q,21,r[59]),M=i(M,P,z,H,U,6,r[60]),H=i(H,M,P,z,L,10,r[61]),z=i(z,H,M,P,E,15,r[62]),P=i(P,z,H,M,S,21,r[63]),x[0]=x[0]+M|0,x[1]=x[1]+P|0,x[2]=x[2]+z|0,x[3]=x[3]+H|0},_doFinalize:function(){var d=this._data,h=d.words,y=this._nDataBytes*8,b=d.sigBytes*8;h[b>>>5]|=128<<24-b%32;var f=g.floor(y/4294967296),x=y;h[(b+64>>>9<<4)+15]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,h[(b+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,d.sigBytes=(h.length+1)*4,this._process();for(var $=this._hash,B=$.words,E=0;E<4;E++){var N=B[E];B[E]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}return $},clone:function(){var d=c.clone.call(this);return d._hash=this._hash.clone(),d}});function a(d,h,y,b,f,x,$){var B=d+(h&y|~h&b)+f+$;return(B<<x|B>>>32-x)+h}function o(d,h,y,b,f,x,$){var B=d+(h&b|y&~b)+f+$;return(B<<x|B>>>32-x)+h}function n(d,h,y,b,f,x,$){var B=d+(h^y^b)+f+$;return(B<<x|B>>>32-x)+h}function i(d,h,y,b,f,x,$){var B=d+(y^(h|~b))+f+$;return(B<<x|B>>>32-x)+h}w.MD5=c._createHelper(t),w.HmacMD5=c._createHmacHelper(t)}(Math),s.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(e,v){(function(s,g){e.exports=g(requireCore())})(commonjsGlobal,function(s){return function(){var g=s,w=g.lib,m=w.WordArray,u=w.Hasher,c=g.algo,l=[],r=c.SHA1=u.extend({_doReset:function(){this._hash=new m.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,a){for(var o=this._hash.words,n=o[0],i=o[1],d=o[2],h=o[3],y=o[4],b=0;b<80;b++){if(b<16)l[b]=t[a+b]|0;else{var f=l[b-3]^l[b-8]^l[b-14]^l[b-16];l[b]=f<<1|f>>>31}var x=(n<<5|n>>>27)+y+l[b];b<20?x+=(i&d|~i&h)+1518500249:b<40?x+=(i^d^h)+1859775393:b<60?x+=(i&d|i&h|d&h)-1894007588:x+=(i^d^h)-899497514,y=h,h=d,d=i<<30|i>>>2,i=n,n=x}o[0]=o[0]+n|0,o[1]=o[1]+i|0,o[2]=o[2]+d|0,o[3]=o[3]+h|0,o[4]=o[4]+y|0},_doFinalize:function(){var t=this._data,a=t.words,o=this._nDataBytes*8,n=t.sigBytes*8;return a[n>>>5]|=128<<24-n%32,a[(n+64>>>9<<4)+14]=Math.floor(o/4294967296),a[(n+64>>>9<<4)+15]=o,t.sigBytes=a.length*4,this._process(),this._hash},clone:function(){var t=u.clone.call(this);return t._hash=this._hash.clone(),t}});g.SHA1=u._createHelper(r),g.HmacSHA1=u._createHmacHelper(r)}(),s.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(e,v){(function(s,g){e.exports=g(requireCore())})(commonjsGlobal,function(s){return function(g){var w=s,m=w.lib,u=m.WordArray,c=m.Hasher,l=w.algo,r=[],t=[];(function(){function n(y){for(var b=g.sqrt(y),f=2;f<=b;f++)if(!(y%f))return!1;return!0}function i(y){return(y-(y|0))*4294967296|0}for(var d=2,h=0;h<64;)n(d)&&(h<8&&(r[h]=i(g.pow(d,1/2))),t[h]=i(g.pow(d,1/3)),h++),d++})();var a=[],o=l.SHA256=c.extend({_doReset:function(){this._hash=new u.init(r.slice(0))},_doProcessBlock:function(n,i){for(var d=this._hash.words,h=d[0],y=d[1],b=d[2],f=d[3],x=d[4],$=d[5],B=d[6],E=d[7],N=0;N<64;N++){if(N<16)a[N]=n[i+N]|0;else{var U=a[N-15],R=(U<<25|U>>>7)^(U<<14|U>>>18)^U>>>3,C=a[N-2],k=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;a[N]=R+a[N-7]+k+a[N-16]}var T=x&$^~x&B,S=h&y^h&b^y&b,A=(h<<30|h>>>2)^(h<<19|h>>>13)^(h<<10|h>>>22),L=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),F=E+L+T+t[N]+a[N],q=A+S;E=B,B=$,$=x,x=f+F|0,f=b,b=y,y=h,h=F+q|0}d[0]=d[0]+h|0,d[1]=d[1]+y|0,d[2]=d[2]+b|0,d[3]=d[3]+f|0,d[4]=d[4]+x|0,d[5]=d[5]+$|0,d[6]=d[6]+B|0,d[7]=d[7]+E|0},_doFinalize:function(){var n=this._data,i=n.words,d=this._nDataBytes*8,h=n.sigBytes*8;return i[h>>>5]|=128<<24-h%32,i[(h+64>>>9<<4)+14]=g.floor(d/4294967296),i[(h+64>>>9<<4)+15]=d,n.sigBytes=i.length*4,this._process(),this._hash},clone:function(){var n=c.clone.call(this);return n._hash=this._hash.clone(),n}});w.SHA256=c._createHelper(o),w.HmacSHA256=c._createHmacHelper(o)}(Math),s.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireSha256())})(commonjsGlobal,function(s){return function(){var g=s,w=g.lib,m=w.WordArray,u=g.algo,c=u.SHA256,l=u.SHA224=c.extend({_doReset:function(){this._hash=new m.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var r=c._doFinalize.call(this);return r.sigBytes-=4,r}});g.SHA224=c._createHelper(l),g.HmacSHA224=c._createHmacHelper(l)}(),s.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireX64Core())})(commonjsGlobal,function(s){return function(){var g=s,w=g.lib,m=w.Hasher,u=g.x64,c=u.Word,l=u.WordArray,r=g.algo;function t(){return c.create.apply(c,arguments)}var a=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],o=[];(function(){for(var i=0;i<80;i++)o[i]=t()})();var n=r.SHA512=m.extend({_doReset:function(){this._hash=new l.init([new c.init(1779033703,4089235720),new c.init(3144134277,2227873595),new c.init(1013904242,4271175723),new c.init(2773480762,1595750129),new c.init(1359893119,2917565137),new c.init(2600822924,725511199),new c.init(528734635,4215389547),new c.init(1541459225,327033209)])},_doProcessBlock:function(i,d){for(var h=this._hash.words,y=h[0],b=h[1],f=h[2],x=h[3],$=h[4],B=h[5],E=h[6],N=h[7],U=y.high,R=y.low,C=b.high,k=b.low,T=f.high,S=f.low,A=x.high,L=x.low,F=$.high,q=$.low,I=B.high,D=B.low,M=E.high,P=E.low,z=N.high,H=N.low,W=U,G=R,X=C,Y=k,p=T,_=S,O=A,j=L,V=F,K=q,Q=I,J=D,Z=M,ee=P,te=z,se=H,oe=0;oe<80;oe++){var ie,re,ne=o[oe];if(oe<16)re=ne.high=i[d+oe*2]|0,ie=ne.low=i[d+oe*2+1]|0;else{var ue=o[oe-15],ce=ue.high,fe=ue.low,Se=(ce>>>1|fe<<31)^(ce>>>8|fe<<24)^ce>>>7,pe=(fe>>>1|ce<<31)^(fe>>>8|ce<<24)^(fe>>>7|ce<<25),me=o[oe-2],he=me.high,de=me.low,Ee=(he>>>19|de<<13)^(he<<3|de>>>29)^he>>>6,ve=(de>>>19|he<<13)^(de<<3|he>>>29)^(de>>>6|he<<26),ge=o[oe-7],Te=ge.high,Be=ge.low,be=o[oe-16],Oe=be.high,ye=be.low;ie=pe+Be,re=Se+Te+(ie>>>0<pe>>>0?1:0),ie=ie+ve,re=re+Ee+(ie>>>0<ve>>>0?1:0),ie=ie+ye,re=re+Oe+(ie>>>0<ye>>>0?1:0),ne.high=re,ne.low=ie}var $e=V&Q^~V&Z,_e=K&J^~K&ee,Ne=W&X^W&p^X&p,Ae=G&Y^G&_^Y&_,Pe=(W>>>28|G<<4)^(W<<30|G>>>2)^(W<<25|G>>>7),xe=(G>>>28|W<<4)^(G<<30|W>>>2)^(G<<25|W>>>7),Me=(V>>>14|K<<18)^(V>>>18|K<<14)^(V<<23|K>>>9),Ie=(K>>>14|V<<18)^(K>>>18|V<<14)^(K<<23|V>>>9),we=a[oe],ze=we.high,Ce=we.low,ae=se+Ie,le=te+Me+(ae>>>0<se>>>0?1:0),ae=ae+_e,le=le+$e+(ae>>>0<_e>>>0?1:0),ae=ae+Ce,le=le+ze+(ae>>>0<Ce>>>0?1:0),ae=ae+ie,le=le+re+(ae>>>0<ie>>>0?1:0),ke=xe+Ae,Re=Pe+Ne+(ke>>>0<xe>>>0?1:0);te=Z,se=ee,Z=Q,ee=J,Q=V,J=K,K=j+ae|0,V=O+le+(K>>>0<j>>>0?1:0)|0,O=p,j=_,p=X,_=Y,X=W,Y=G,G=ae+ke|0,W=le+Re+(G>>>0<ae>>>0?1:0)|0}R=y.low=R+G,y.high=U+W+(R>>>0<G>>>0?1:0),k=b.low=k+Y,b.high=C+X+(k>>>0<Y>>>0?1:0),S=f.low=S+_,f.high=T+p+(S>>>0<_>>>0?1:0),L=x.low=L+j,x.high=A+O+(L>>>0<j>>>0?1:0),q=$.low=q+K,$.high=F+V+(q>>>0<K>>>0?1:0),D=B.low=D+J,B.high=I+Q+(D>>>0<J>>>0?1:0),P=E.low=P+ee,E.high=M+Z+(P>>>0<ee>>>0?1:0),H=N.low=H+se,N.high=z+te+(H>>>0<se>>>0?1:0)},_doFinalize:function(){var i=this._data,d=i.words,h=this._nDataBytes*8,y=i.sigBytes*8;d[y>>>5]|=128<<24-y%32,d[(y+128>>>10<<5)+30]=Math.floor(h/4294967296),d[(y+128>>>10<<5)+31]=h,i.sigBytes=d.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var i=m.clone.call(this);return i._hash=this._hash.clone(),i},blockSize:1024/32});g.SHA512=m._createHelper(n),g.HmacSHA512=m._createHmacHelper(n)}(),s.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(s){return function(){var g=s,w=g.x64,m=w.Word,u=w.WordArray,c=g.algo,l=c.SHA512,r=c.SHA384=l.extend({_doReset:function(){this._hash=new u.init([new m.init(3418070365,3238371032),new m.init(1654270250,914150663),new m.init(2438529370,812702999),new m.init(355462360,4144912697),new m.init(1731405415,4290775857),new m.init(2394180231,1750603025),new m.init(3675008525,1694076839),new m.init(1203062813,3204075428)])},_doFinalize:function(){var t=l._doFinalize.call(this);return t.sigBytes-=16,t}});g.SHA384=l._createHelper(r),g.HmacSHA384=l._createHmacHelper(r)}(),s.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireX64Core())})(commonjsGlobal,function(s){return function(g){var w=s,m=w.lib,u=m.WordArray,c=m.Hasher,l=w.x64,r=l.Word,t=w.algo,a=[],o=[],n=[];(function(){for(var h=1,y=0,b=0;b<24;b++){a[h+5*y]=(b+1)*(b+2)/2%64;var f=y%5,x=(2*h+3*y)%5;h=f,y=x}for(var h=0;h<5;h++)for(var y=0;y<5;y++)o[h+5*y]=y+(2*h+3*y)%5*5;for(var $=1,B=0;B<24;B++){for(var E=0,N=0,U=0;U<7;U++){if($&1){var R=(1<<U)-1;R<32?N^=1<<R:E^=1<<R-32}$&128?$=$<<1^113:$<<=1}n[B]=r.create(E,N)}})();var i=[];(function(){for(var h=0;h<25;h++)i[h]=r.create()})();var d=t.SHA3=c.extend({cfg:c.cfg.extend({outputLength:512}),_doReset:function(){for(var h=this._state=[],y=0;y<25;y++)h[y]=new r.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(h,y){for(var b=this._state,f=this.blockSize/2,x=0;x<f;x++){var $=h[y+2*x],B=h[y+2*x+1];$=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360;var E=b[x];E.high^=B,E.low^=$}for(var N=0;N<24;N++){for(var U=0;U<5;U++){for(var R=0,C=0,k=0;k<5;k++){var E=b[U+5*k];R^=E.high,C^=E.low}var T=i[U];T.high=R,T.low=C}for(var U=0;U<5;U++)for(var S=i[(U+4)%5],A=i[(U+1)%5],L=A.high,F=A.low,R=S.high^(L<<1|F>>>31),C=S.low^(F<<1|L>>>31),k=0;k<5;k++){var E=b[U+5*k];E.high^=R,E.low^=C}for(var q=1;q<25;q++){var R,C,E=b[q],I=E.high,D=E.low,M=a[q];M<32?(R=I<<M|D>>>32-M,C=D<<M|I>>>32-M):(R=D<<M-32|I>>>64-M,C=I<<M-32|D>>>64-M);var P=i[o[q]];P.high=R,P.low=C}var z=i[0],H=b[0];z.high=H.high,z.low=H.low;for(var U=0;U<5;U++)for(var k=0;k<5;k++){var q=U+5*k,E=b[q],W=i[q],G=i[(U+1)%5+5*k],X=i[(U+2)%5+5*k];E.high=W.high^~G.high&X.high,E.low=W.low^~G.low&X.low}var E=b[0],Y=n[N];E.high^=Y.high,E.low^=Y.low}},_doFinalize:function(){var h=this._data,y=h.words;this._nDataBytes*8;var b=h.sigBytes*8,f=this.blockSize*32;y[b>>>5]|=1<<24-b%32,y[(g.ceil((b+1)/f)*f>>>5)-1]|=128,h.sigBytes=y.length*4,this._process();for(var x=this._state,$=this.cfg.outputLength/8,B=$/8,E=[],N=0;N<B;N++){var U=x[N],R=U.high,C=U.low;R=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,E.push(C),E.push(R)}return new u.init(E,$)},clone:function(){for(var h=c.clone.call(this),y=h._state=this._state.slice(0),b=0;b<25;b++)y[b]=y[b].clone();return h}});w.SHA3=c._createHelper(d),w.HmacSHA3=c._createHmacHelper(d)}(Math),s.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(e,v){(function(s,g){e.exports=g(requireCore())})(commonjsGlobal,function(s){/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(g){var w=s,m=w.lib,u=m.WordArray,c=m.Hasher,l=w.algo,r=u.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),t=u.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),a=u.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),o=u.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),n=u.create([0,1518500249,1859775393,2400959708,2840853838]),i=u.create([1352829926,1548603684,1836072691,2053994217,0]),d=l.RIPEMD160=c.extend({_doReset:function(){this._hash=u.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(B,E){for(var N=0;N<16;N++){var U=E+N,R=B[U];B[U]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var C=this._hash.words,k=n.words,T=i.words,S=r.words,A=t.words,L=a.words,F=o.words,q,I,D,M,P,z,H,W,G,X;z=q=C[0],H=I=C[1],W=D=C[2],G=M=C[3],X=P=C[4];for(var Y,N=0;N<80;N+=1)Y=q+B[E+S[N]]|0,N<16?Y+=h(I,D,M)+k[0]:N<32?Y+=y(I,D,M)+k[1]:N<48?Y+=b(I,D,M)+k[2]:N<64?Y+=f(I,D,M)+k[3]:Y+=x(I,D,M)+k[4],Y=Y|0,Y=$(Y,L[N]),Y=Y+P|0,q=P,P=M,M=$(D,10),D=I,I=Y,Y=z+B[E+A[N]]|0,N<16?Y+=x(H,W,G)+T[0]:N<32?Y+=f(H,W,G)+T[1]:N<48?Y+=b(H,W,G)+T[2]:N<64?Y+=y(H,W,G)+T[3]:Y+=h(H,W,G)+T[4],Y=Y|0,Y=$(Y,F[N]),Y=Y+X|0,z=X,X=G,G=$(W,10),W=H,H=Y;Y=C[1]+D+G|0,C[1]=C[2]+M+X|0,C[2]=C[3]+P+z|0,C[3]=C[4]+q+H|0,C[4]=C[0]+I+W|0,C[0]=Y},_doFinalize:function(){var B=this._data,E=B.words,N=this._nDataBytes*8,U=B.sigBytes*8;E[U>>>5]|=128<<24-U%32,E[(U+64>>>9<<4)+14]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,B.sigBytes=(E.length+1)*4,this._process();for(var R=this._hash,C=R.words,k=0;k<5;k++){var T=C[k];C[k]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return R},clone:function(){var B=c.clone.call(this);return B._hash=this._hash.clone(),B}});function h(B,E,N){return B^E^N}function y(B,E,N){return B&E|~B&N}function b(B,E,N){return(B|~E)^N}function f(B,E,N){return B&N|E&~N}function x(B,E,N){return B^(E|~N)}function $(B,E){return B<<E|B>>>32-E}w.RIPEMD160=c._createHelper(d),w.HmacRIPEMD160=c._createHmacHelper(d)}(),s.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(e,v){(function(s,g){e.exports=g(requireCore())})(commonjsGlobal,function(s){(function(){var g=s,w=g.lib,m=w.Base,u=g.enc,c=u.Utf8,l=g.algo;l.HMAC=m.extend({init:function(r,t){r=this._hasher=new r.init,typeof t=="string"&&(t=c.parse(t));var a=r.blockSize,o=a*4;t.sigBytes>o&&(t=r.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),i=this._iKey=t.clone(),d=n.words,h=i.words,y=0;y<a;y++)d[y]^=1549556828,h[y]^=909522486;n.sigBytes=i.sigBytes=o,this.reset()},reset:function(){var r=this._hasher;r.reset(),r.update(this._iKey)},update:function(r){return this._hasher.update(r),this},finalize:function(r){var t=this._hasher,a=t.finalize(r);t.reset();var o=t.finalize(this._oKey.clone().concat(a));return o}})})()})}(hmac)),hmac.exports}var pbkdf2={exports:{}},hasRequiredPbkdf2;function requirePbkdf2(){return hasRequiredPbkdf2||(hasRequiredPbkdf2=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(s){return function(){var g=s,w=g.lib,m=w.Base,u=w.WordArray,c=g.algo,l=c.SHA1,r=c.HMAC,t=c.PBKDF2=m.extend({cfg:m.extend({keySize:128/32,hasher:l,iterations:1}),init:function(a){this.cfg=this.cfg.extend(a)},compute:function(a,o){for(var n=this.cfg,i=r.create(n.hasher,a),d=u.create(),h=u.create([1]),y=d.words,b=h.words,f=n.keySize,x=n.iterations;y.length<f;){var $=i.update(o).finalize(h);i.reset();for(var B=$.words,E=B.length,N=$,U=1;U<x;U++){N=i.finalize(N),i.reset();for(var R=N.words,C=0;C<E;C++)B[C]^=R[C]}d.concat($),b[0]++}return d.sigBytes=f*4,d}});g.PBKDF2=function(a,o,n){return t.create(n).compute(a,o)}}(),s.PBKDF2})}(pbkdf2)),pbkdf2.exports}var evpkdf={exports:{}},hasRequiredEvpkdf;function requireEvpkdf(){return hasRequiredEvpkdf||(hasRequiredEvpkdf=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(s){return function(){var g=s,w=g.lib,m=w.Base,u=w.WordArray,c=g.algo,l=c.MD5,r=c.EvpKDF=m.extend({cfg:m.extend({keySize:128/32,hasher:l,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,a){for(var o,n=this.cfg,i=n.hasher.create(),d=u.create(),h=d.words,y=n.keySize,b=n.iterations;h.length<y;){o&&i.update(o),o=i.update(t).finalize(a),i.reset();for(var f=1;f<b;f++)o=i.finalize(o),i.reset();d.concat(o)}return d.sigBytes=y*4,d}});g.EvpKDF=function(t,a,o){return r.create(o).compute(t,a)}}(),s.EvpKDF})}(evpkdf)),evpkdf.exports}var cipherCore={exports:{}},hasRequiredCipherCore;function requireCipherCore(){return hasRequiredCipherCore||(hasRequiredCipherCore=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireEvpkdf())})(commonjsGlobal,function(s){s.lib.Cipher||function(g){var w=s,m=w.lib,u=m.Base,c=m.WordArray,l=m.BufferedBlockAlgorithm,r=w.enc;r.Utf8;var t=r.Base64,a=w.algo,o=a.EvpKDF,n=m.Cipher=l.extend({cfg:u.extend(),createEncryptor:function(R,C){return this.create(this._ENC_XFORM_MODE,R,C)},createDecryptor:function(R,C){return this.create(this._DEC_XFORM_MODE,R,C)},init:function(R,C,k){this.cfg=this.cfg.extend(k),this._xformMode=R,this._key=C,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(R){return this._append(R),this._process()},finalize:function(R){R&&this._append(R);var C=this._doFinalize();return C},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function R(C){return typeof C=="string"?U:B}return function(C){return{encrypt:function(k,T,S){return R(T).encrypt(C,k,T,S)},decrypt:function(k,T,S){return R(T).decrypt(C,k,T,S)}}}}()});m.StreamCipher=n.extend({_doFinalize:function(){var R=this._process(!0);return R},blockSize:1});var i=w.mode={},d=m.BlockCipherMode=u.extend({createEncryptor:function(R,C){return this.Encryptor.create(R,C)},createDecryptor:function(R,C){return this.Decryptor.create(R,C)},init:function(R,C){this._cipher=R,this._iv=C}}),h=i.CBC=function(){var R=d.extend();R.Encryptor=R.extend({processBlock:function(k,T){var S=this._cipher,A=S.blockSize;C.call(this,k,T,A),S.encryptBlock(k,T),this._prevBlock=k.slice(T,T+A)}}),R.Decryptor=R.extend({processBlock:function(k,T){var S=this._cipher,A=S.blockSize,L=k.slice(T,T+A);S.decryptBlock(k,T),C.call(this,k,T,A),this._prevBlock=L}});function C(k,T,S){var A,L=this._iv;L?(A=L,this._iv=g):A=this._prevBlock;for(var F=0;F<S;F++)k[T+F]^=A[F]}return R}(),y=w.pad={},b=y.Pkcs7={pad:function(R,C){for(var k=C*4,T=k-R.sigBytes%k,S=T<<24|T<<16|T<<8|T,A=[],L=0;L<T;L+=4)A.push(S);var F=c.create(A,T);R.concat(F)},unpad:function(R){var C=R.words[R.sigBytes-1>>>2]&255;R.sigBytes-=C}};m.BlockCipher=n.extend({cfg:n.cfg.extend({mode:h,padding:b}),reset:function(){var R;n.reset.call(this);var C=this.cfg,k=C.iv,T=C.mode;this._xformMode==this._ENC_XFORM_MODE?R=T.createEncryptor:(R=T.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==R?this._mode.init(this,k&&k.words):(this._mode=R.call(T,this,k&&k.words),this._mode.__creator=R)},_doProcessBlock:function(R,C){this._mode.processBlock(R,C)},_doFinalize:function(){var R,C=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(C.pad(this._data,this.blockSize),R=this._process(!0)):(R=this._process(!0),C.unpad(R)),R},blockSize:128/32});var f=m.CipherParams=u.extend({init:function(R){this.mixIn(R)},toString:function(R){return(R||this.formatter).stringify(this)}}),x=w.format={},$=x.OpenSSL={stringify:function(R){var C,k=R.ciphertext,T=R.salt;return T?C=c.create([1398893684,1701076831]).concat(T).concat(k):C=k,C.toString(t)},parse:function(R){var C,k=t.parse(R),T=k.words;return T[0]==1398893684&&T[1]==1701076831&&(C=c.create(T.slice(2,4)),T.splice(0,4),k.sigBytes-=16),f.create({ciphertext:k,salt:C})}},B=m.SerializableCipher=u.extend({cfg:u.extend({format:$}),encrypt:function(R,C,k,T){T=this.cfg.extend(T);var S=R.createEncryptor(k,T),A=S.finalize(C),L=S.cfg;return f.create({ciphertext:A,key:k,iv:L.iv,algorithm:R,mode:L.mode,padding:L.padding,blockSize:R.blockSize,formatter:T.format})},decrypt:function(R,C,k,T){T=this.cfg.extend(T),C=this._parse(C,T.format);var S=R.createDecryptor(k,T).finalize(C.ciphertext);return S},_parse:function(R,C){return typeof R=="string"?C.parse(R,this):R}}),E=w.kdf={},N=E.OpenSSL={execute:function(R,C,k,T){T||(T=c.random(64/8));var S=o.create({keySize:C+k}).compute(R,T),A=c.create(S.words.slice(C),k*4);return S.sigBytes=C*4,f.create({key:S,iv:A,salt:T})}},U=m.PasswordBasedCipher=B.extend({cfg:B.cfg.extend({kdf:N}),encrypt:function(R,C,k,T){T=this.cfg.extend(T);var S=T.kdf.execute(k,R.keySize,R.ivSize);T.iv=S.iv;var A=B.encrypt.call(this,R,C,S.key,T);return A.mixIn(S),A},decrypt:function(R,C,k,T){T=this.cfg.extend(T),C=this._parse(C,T.format);var S=T.kdf.execute(k,R.keySize,R.ivSize,C.salt);T.iv=S.iv;var A=B.decrypt.call(this,R,C,S.key,T);return A}})}()})}(cipherCore)),cipherCore.exports}var modeCfb={exports:{}},hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.mode.CFB=function(){var g=s.lib.BlockCipherMode.extend();g.Encryptor=g.extend({processBlock:function(m,u){var c=this._cipher,l=c.blockSize;w.call(this,m,u,l,c),this._prevBlock=m.slice(u,u+l)}}),g.Decryptor=g.extend({processBlock:function(m,u){var c=this._cipher,l=c.blockSize,r=m.slice(u,u+l);w.call(this,m,u,l,c),this._prevBlock=r}});function w(m,u,c,l){var r,t=this._iv;t?(r=t.slice(0),this._iv=void 0):r=this._prevBlock,l.encryptBlock(r,0);for(var a=0;a<c;a++)m[u+a]^=r[a]}return g}(),s.mode.CFB})}(modeCfb)),modeCfb.exports}var modeCtr={exports:{}},hasRequiredModeCtr;function requireModeCtr(){return hasRequiredModeCtr||(hasRequiredModeCtr=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.mode.CTR=function(){var g=s.lib.BlockCipherMode.extend(),w=g.Encryptor=g.extend({processBlock:function(m,u){var c=this._cipher,l=c.blockSize,r=this._iv,t=this._counter;r&&(t=this._counter=r.slice(0),this._iv=void 0);var a=t.slice(0);c.encryptBlock(a,0),t[l-1]=t[l-1]+1|0;for(var o=0;o<l;o++)m[u+o]^=a[o]}});return g.Decryptor=w,g}(),s.mode.CTR})}(modeCtr)),modeCtr.exports}var modeCtrGladman={exports:{}},hasRequiredModeCtrGladman;function requireModeCtrGladman(){return hasRequiredModeCtrGladman||(hasRequiredModeCtrGladman=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return s.mode.CTRGladman=function(){var g=s.lib.BlockCipherMode.extend();function w(c){if((c>>24&255)===255){var l=c>>16&255,r=c>>8&255,t=c&255;l===255?(l=0,r===255?(r=0,t===255?t=0:++t):++r):++l,c=0,c+=l<<16,c+=r<<8,c+=t}else c+=1<<24;return c}function m(c){return(c[0]=w(c[0]))===0&&(c[1]=w(c[1])),c}var u=g.Encryptor=g.extend({processBlock:function(c,l){var r=this._cipher,t=r.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),m(o);var n=o.slice(0);r.encryptBlock(n,0);for(var i=0;i<t;i++)c[l+i]^=n[i]}});return g.Decryptor=u,g}(),s.mode.CTRGladman})}(modeCtrGladman)),modeCtrGladman.exports}var modeOfb={exports:{}},hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.mode.OFB=function(){var g=s.lib.BlockCipherMode.extend(),w=g.Encryptor=g.extend({processBlock:function(m,u){var c=this._cipher,l=c.blockSize,r=this._iv,t=this._keystream;r&&(t=this._keystream=r.slice(0),this._iv=void 0),c.encryptBlock(t,0);for(var a=0;a<l;a++)m[u+a]^=t[a]}});return g.Decryptor=w,g}(),s.mode.OFB})}(modeOfb)),modeOfb.exports}var modeEcb={exports:{}},hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.mode.ECB=function(){var g=s.lib.BlockCipherMode.extend();return g.Encryptor=g.extend({processBlock:function(w,m){this._cipher.encryptBlock(w,m)}}),g.Decryptor=g.extend({processBlock:function(w,m){this._cipher.decryptBlock(w,m)}}),g}(),s.mode.ECB})}(modeEcb)),modeEcb.exports}var padAnsix923={exports:{}},hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.pad.AnsiX923={pad:function(g,w){var m=g.sigBytes,u=w*4,c=u-m%u,l=m+c-1;g.clamp(),g.words[l>>>2]|=c<<24-l%4*8,g.sigBytes+=c},unpad:function(g){var w=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=w}},s.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.pad.Iso10126={pad:function(g,w){var m=w*4,u=m-g.sigBytes%m;g.concat(s.lib.WordArray.random(u-1)).concat(s.lib.WordArray.create([u<<24],1))},unpad:function(g){var w=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=w}},s.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.pad.Iso97971={pad:function(g,w){g.concat(s.lib.WordArray.create([2147483648],1)),s.pad.ZeroPadding.pad(g,w)},unpad:function(g){s.pad.ZeroPadding.unpad(g),g.sigBytes--}},s.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.pad.ZeroPadding={pad:function(g,w){var m=w*4;g.clamp(),g.sigBytes+=m-(g.sigBytes%m||m)},unpad:function(g){for(var w=g.words,m=g.sigBytes-1,m=g.sigBytes-1;m>=0;m--)if(w[m>>>2]>>>24-m%4*8&255){g.sigBytes=m+1;break}}},s.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return s.pad.NoPadding={pad:function(){},unpad:function(){}},s.pad.NoPadding})}(padNopadding)),padNopadding.exports}var formatHex={exports:{}},hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireCipherCore())})(commonjsGlobal,function(s){return function(g){var w=s,m=w.lib,u=m.CipherParams,c=w.enc,l=c.Hex,r=w.format;r.Hex={stringify:function(t){return t.ciphertext.toString(l)},parse:function(t){var a=l.parse(t);return u.create({ciphertext:a})}}}(),s.format.Hex})}(formatHex)),formatHex.exports}var aes={exports:{}},hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(s){return function(){var g=s,w=g.lib,m=w.BlockCipher,u=g.algo,c=[],l=[],r=[],t=[],a=[],o=[],n=[],i=[],d=[],h=[];(function(){for(var f=[],x=0;x<256;x++)x<128?f[x]=x<<1:f[x]=x<<1^283;for(var $=0,B=0,x=0;x<256;x++){var E=B^B<<1^B<<2^B<<3^B<<4;E=E>>>8^E&255^99,c[$]=E,l[E]=$;var N=f[$],U=f[N],R=f[U],C=f[E]*257^E*16843008;r[$]=C<<24|C>>>8,t[$]=C<<16|C>>>16,a[$]=C<<8|C>>>24,o[$]=C;var C=R*16843009^U*65537^N*257^$*16843008;n[E]=C<<24|C>>>8,i[E]=C<<16|C>>>16,d[E]=C<<8|C>>>24,h[E]=C,$?($=N^f[f[f[R^N]]],B^=f[f[B]]):$=B=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54],b=u.AES=m.extend({_doReset:function(){var f;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,$=x.words,B=x.sigBytes/4,E=this._nRounds=B+6,N=(E+1)*4,U=this._keySchedule=[],R=0;R<N;R++)R<B?U[R]=$[R]:(f=U[R-1],R%B?B>6&&R%B==4&&(f=c[f>>>24]<<24|c[f>>>16&255]<<16|c[f>>>8&255]<<8|c[f&255]):(f=f<<8|f>>>24,f=c[f>>>24]<<24|c[f>>>16&255]<<16|c[f>>>8&255]<<8|c[f&255],f^=y[R/B|0]<<24),U[R]=U[R-B]^f);for(var C=this._invKeySchedule=[],k=0;k<N;k++){var R=N-k;if(k%4)var f=U[R];else var f=U[R-4];k<4||R<=4?C[k]=f:C[k]=n[c[f>>>24]]^i[c[f>>>16&255]]^d[c[f>>>8&255]]^h[c[f&255]]}}},encryptBlock:function(f,x){this._doCryptBlock(f,x,this._keySchedule,r,t,a,o,c)},decryptBlock:function(f,x){var $=f[x+1];f[x+1]=f[x+3],f[x+3]=$,this._doCryptBlock(f,x,this._invKeySchedule,n,i,d,h,l);var $=f[x+1];f[x+1]=f[x+3],f[x+3]=$},_doCryptBlock:function(f,x,$,B,E,N,U,R){for(var C=this._nRounds,k=f[x]^$[0],T=f[x+1]^$[1],S=f[x+2]^$[2],A=f[x+3]^$[3],L=4,F=1;F<C;F++){var q=B[k>>>24]^E[T>>>16&255]^N[S>>>8&255]^U[A&255]^$[L++],I=B[T>>>24]^E[S>>>16&255]^N[A>>>8&255]^U[k&255]^$[L++],D=B[S>>>24]^E[A>>>16&255]^N[k>>>8&255]^U[T&255]^$[L++],M=B[A>>>24]^E[k>>>16&255]^N[T>>>8&255]^U[S&255]^$[L++];k=q,T=I,S=D,A=M}var q=(R[k>>>24]<<24|R[T>>>16&255]<<16|R[S>>>8&255]<<8|R[A&255])^$[L++],I=(R[T>>>24]<<24|R[S>>>16&255]<<16|R[A>>>8&255]<<8|R[k&255])^$[L++],D=(R[S>>>24]<<24|R[A>>>16&255]<<16|R[k>>>8&255]<<8|R[T&255])^$[L++],M=(R[A>>>24]<<24|R[k>>>16&255]<<16|R[T>>>8&255]<<8|R[S&255])^$[L++];f[x]=q,f[x+1]=I,f[x+2]=D,f[x+3]=M},keySize:256/32});g.AES=m._createHelper(b)}(),s.AES})}(aes)),aes.exports}var tripledes={exports:{}},hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(s){return function(){var g=s,w=g.lib,m=w.WordArray,u=w.BlockCipher,c=g.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],r=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],t=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],a=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],o=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],n=c.DES=u.extend({_doReset:function(){for(var y=this._key,b=y.words,f=[],x=0;x<56;x++){var $=l[x]-1;f[x]=b[$>>>5]>>>31-$%32&1}for(var B=this._subKeys=[],E=0;E<16;E++){for(var N=B[E]=[],U=t[E],x=0;x<24;x++)N[x/6|0]|=f[(r[x]-1+U)%28]<<31-x%6,N[4+(x/6|0)]|=f[28+(r[x+24]-1+U)%28]<<31-x%6;N[0]=N[0]<<1|N[0]>>>31;for(var x=1;x<7;x++)N[x]=N[x]>>>(x-1)*4+3;N[7]=N[7]<<5|N[7]>>>27}for(var R=this._invSubKeys=[],x=0;x<16;x++)R[x]=B[15-x]},encryptBlock:function(y,b){this._doCryptBlock(y,b,this._subKeys)},decryptBlock:function(y,b){this._doCryptBlock(y,b,this._invSubKeys)},_doCryptBlock:function(y,b,f){this._lBlock=y[b],this._rBlock=y[b+1],i.call(this,4,252645135),i.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),i.call(this,1,1431655765);for(var x=0;x<16;x++){for(var $=f[x],B=this._lBlock,E=this._rBlock,N=0,U=0;U<8;U++)N|=a[U][((E^$[U])&o[U])>>>0];this._lBlock=E,this._rBlock=B^N}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,i.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),i.call(this,16,65535),i.call(this,4,252645135),y[b]=this._lBlock,y[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function i(y,b){var f=(this._lBlock>>>y^this._rBlock)&b;this._rBlock^=f,this._lBlock^=f<<y}function d(y,b){var f=(this._rBlock>>>y^this._lBlock)&b;this._lBlock^=f,this._rBlock^=f<<y}g.DES=u._createHelper(n);var h=c.TripleDES=u.extend({_doReset:function(){var y=this._key,b=y.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var f=b.slice(0,2),x=b.length<4?b.slice(0,2):b.slice(2,4),$=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=n.createEncryptor(m.create(f)),this._des2=n.createEncryptor(m.create(x)),this._des3=n.createEncryptor(m.create($))},encryptBlock:function(y,b){this._des1.encryptBlock(y,b),this._des2.decryptBlock(y,b),this._des3.encryptBlock(y,b)},decryptBlock:function(y,b){this._des3.decryptBlock(y,b),this._des2.encryptBlock(y,b),this._des1.decryptBlock(y,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});g.TripleDES=u._createHelper(h)}(),s.TripleDES})}(tripledes)),tripledes.exports}var rc4={exports:{}},hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(s){return function(){var g=s,w=g.lib,m=w.StreamCipher,u=g.algo,c=u.RC4=m.extend({_doReset:function(){for(var t=this._key,a=t.words,o=t.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;for(var i=0,d=0;i<256;i++){var h=i%o,y=a[h>>>2]>>>24-h%4*8&255;d=(d+n[i]+y)%256;var b=n[i];n[i]=n[d],n[d]=b}this._i=this._j=0},_doProcessBlock:function(t,a){t[a]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var t=this._S,a=this._i,o=this._j,n=0,i=0;i<4;i++){a=(a+1)%256,o=(o+t[a])%256;var d=t[a];t[a]=t[o],t[o]=d,n|=t[(t[a]+t[o])%256]<<24-i*8}return this._i=a,this._j=o,n}g.RC4=m._createHelper(c);var r=u.RC4Drop=c.extend({cfg:c.cfg.extend({drop:192}),_doReset:function(){c._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)l.call(this)}});g.RC4Drop=m._createHelper(r)}(),s.RC4})}(rc4)),rc4.exports}var rabbit={exports:{}},hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(s){return function(){var g=s,w=g.lib,m=w.StreamCipher,u=g.algo,c=[],l=[],r=[],t=u.Rabbit=m.extend({_doReset:function(){for(var o=this._key.words,n=this.cfg.iv,i=0;i<4;i++)o[i]=(o[i]<<8|o[i]>>>24)&16711935|(o[i]<<24|o[i]>>>8)&4278255360;var d=this._X=[o[0],o[3]<<16|o[2]>>>16,o[1],o[0]<<16|o[3]>>>16,o[2],o[1]<<16|o[0]>>>16,o[3],o[2]<<16|o[1]>>>16],h=this._C=[o[2]<<16|o[2]>>>16,o[0]&4294901760|o[1]&65535,o[3]<<16|o[3]>>>16,o[1]&4294901760|o[2]&65535,o[0]<<16|o[0]>>>16,o[2]&4294901760|o[3]&65535,o[1]<<16|o[1]>>>16,o[3]&4294901760|o[0]&65535];this._b=0;for(var i=0;i<4;i++)a.call(this);for(var i=0;i<8;i++)h[i]^=d[i+4&7];if(n){var y=n.words,b=y[0],f=y[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,$=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,B=x>>>16|$&4294901760,E=$<<16|x&65535;h[0]^=x,h[1]^=B,h[2]^=$,h[3]^=E,h[4]^=x,h[5]^=B,h[6]^=$,h[7]^=E;for(var i=0;i<4;i++)a.call(this)}},_doProcessBlock:function(o,n){var i=this._X;a.call(this),c[0]=i[0]^i[5]>>>16^i[3]<<16,c[1]=i[2]^i[7]>>>16^i[5]<<16,c[2]=i[4]^i[1]>>>16^i[7]<<16,c[3]=i[6]^i[3]>>>16^i[1]<<16;for(var d=0;d<4;d++)c[d]=(c[d]<<8|c[d]>>>24)&16711935|(c[d]<<24|c[d]>>>8)&4278255360,o[n+d]^=c[d]},blockSize:128/32,ivSize:64/32});function a(){for(var o=this._X,n=this._C,i=0;i<8;i++)l[i]=n[i];n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<l[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<l[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<l[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<l[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<l[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<l[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<l[6]>>>0?1:0)|0,this._b=n[7]>>>0<l[7]>>>0?1:0;for(var i=0;i<8;i++){var d=o[i]+n[i],h=d&65535,y=d>>>16,b=((h*h>>>17)+h*y>>>15)+y*y,f=((d&4294901760)*d|0)+((d&65535)*d|0);r[i]=b^f}o[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,o[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,o[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,o[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,o[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,o[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,o[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,o[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}g.Rabbit=m._createHelper(t)}(),s.Rabbit})}(rabbit)),rabbit.exports}var rabbitLegacy={exports:{}},hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(s){return function(){var g=s,w=g.lib,m=w.StreamCipher,u=g.algo,c=[],l=[],r=[],t=u.RabbitLegacy=m.extend({_doReset:function(){var o=this._key.words,n=this.cfg.iv,i=this._X=[o[0],o[3]<<16|o[2]>>>16,o[1],o[0]<<16|o[3]>>>16,o[2],o[1]<<16|o[0]>>>16,o[3],o[2]<<16|o[1]>>>16],d=this._C=[o[2]<<16|o[2]>>>16,o[0]&4294901760|o[1]&65535,o[3]<<16|o[3]>>>16,o[1]&4294901760|o[2]&65535,o[0]<<16|o[0]>>>16,o[2]&4294901760|o[3]&65535,o[1]<<16|o[1]>>>16,o[3]&4294901760|o[0]&65535];this._b=0;for(var h=0;h<4;h++)a.call(this);for(var h=0;h<8;h++)d[h]^=i[h+4&7];if(n){var y=n.words,b=y[0],f=y[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,$=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,B=x>>>16|$&4294901760,E=$<<16|x&65535;d[0]^=x,d[1]^=B,d[2]^=$,d[3]^=E,d[4]^=x,d[5]^=B,d[6]^=$,d[7]^=E;for(var h=0;h<4;h++)a.call(this)}},_doProcessBlock:function(o,n){var i=this._X;a.call(this),c[0]=i[0]^i[5]>>>16^i[3]<<16,c[1]=i[2]^i[7]>>>16^i[5]<<16,c[2]=i[4]^i[1]>>>16^i[7]<<16,c[3]=i[6]^i[3]>>>16^i[1]<<16;for(var d=0;d<4;d++)c[d]=(c[d]<<8|c[d]>>>24)&16711935|(c[d]<<24|c[d]>>>8)&4278255360,o[n+d]^=c[d]},blockSize:128/32,ivSize:64/32});function a(){for(var o=this._X,n=this._C,i=0;i<8;i++)l[i]=n[i];n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<l[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<l[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<l[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<l[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<l[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<l[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<l[6]>>>0?1:0)|0,this._b=n[7]>>>0<l[7]>>>0?1:0;for(var i=0;i<8;i++){var d=o[i]+n[i],h=d&65535,y=d>>>16,b=((h*h>>>17)+h*y>>>15)+y*y,f=((d&4294901760)*d|0)+((d&65535)*d|0);r[i]=b^f}o[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,o[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,o[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,o[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,o[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,o[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,o[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,o[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}g.RabbitLegacy=m._createHelper(t)}(),s.RabbitLegacy})}(rabbitLegacy)),rabbitLegacy.exports}(function(e,v){(function(s,g,w){e.exports=g(requireCore(),requireX64Core(),requireLibTypedarrays(),requireEncUtf16(),requireEncBase64(),requireEncBase64url(),requireMd5(),requireSha1(),requireSha256(),requireSha224(),requireSha512(),requireSha384(),requireSha3(),requireRipemd160(),requireHmac(),requirePbkdf2(),requireEvpkdf(),requireCipherCore(),requireModeCfb(),requireModeCtr(),requireModeCtrGladman(),requireModeOfb(),requireModeEcb(),requirePadAnsix923(),requirePadIso10126(),requirePadIso97971(),requirePadZeropadding(),requirePadNopadding(),requireFormatHex(),requireAes(),requireTripledes(),requireRc4(),requireRabbit(),requireRabbitLegacy())})(commonjsGlobal,function(s){return s})})(cryptoJs);const subgroup_vue_vue_type_style_index_0_lang="",_sfc_main$G={name:"subgroup",inject:["contain","container"],provide(){return{contain:this.contain,container:this.container}},components:{folder,temp},props:{nav:{type:Array,default:()=>[]}},data(){return{common:common$1}},methods:{handleRefresh(){let e=this.getItemRef();return e?e.updateData():Promise.resolve()},getItemRef(e){e=e||this.contain.activeIndex;let v=this.$refs[`${this.common.NAME}${e}`]||[];return v[0]?v[0].$refs.temp:{}},getListRef(e){return(this.$refs[`${this.common.DEAFNAME}${e}`]||[])[0]},getDisplay(e){return!e.display},getShow(e){return!(!this.container.isBuild&&["time","data","notice"].includes(e.component.prop))},handleMove({index:e,left:v,top:s}){this.contain.activeIndex===e&&this.contain.activeList.forEach(g=>{this.contain.activeIndex!==g.index&&(g.left=g.left+v,g.top=g.top+s)})},handleOut(){this.contain.activeOverIndex=null},handleOver({index:e}){this.contain.activeOverIndex=e},handleFocus({index:e}){this.container.gradeFlag=!0,this.contain.selectNav(e)},handleBlur({index:e,left:v,top:s,width:g,height:w,type:m}){this.container.gradeFlag=!1,!(e!==this.contain.activeIndex||m==="folder")&&(this.contain.activeObj.component.width=g,this.contain.activeObj.component.height=w,this.contain.activeObj.left=v,this.contain.activeObj.top=s)}}};function _sfc_render$G(e,v,s,g,w,m){const u=vue.resolveComponent("temp"),c=vue.resolveComponent("avue-draggable"),l=vue.resolveComponent("subgroup",!0),r=vue.resolveComponent("el-carousel-item"),t=vue.resolveComponent("el-carousel"),a=vue.resolveComponent("folder"),o=vue.resolveDirective("contextmenu");return vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.nav,n=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:n.index},[n.children?(vue.openBlock(),vue.createBlock(a,vue.mergeProps({onMove:m.handleMove,onOut:m.handleOut,onOver:m.handleOver,onFocus:m.handleFocus,onBlur:m.handleBlur,key:n.index,item:n,ref_for:!0},n,{step:m.container.stepScale,scale:m.container.stepScale,disabled:!m.contain.menuFlag,id:w.common.DEAFNAME+n.index,ref_for:!0,ref:w.common.DEAFNAME+n.index}),{default:vue.withCtx(()=>[n.auto?(vue.openBlock(),vue.createBlock(t,{key:0,class:"carousel",interval:n.interval,"indicator-position":"none",arrow:"never",style:{height:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(n.children,i=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[i.auto&&m.getDisplay(i)?(vue.openBlock(),vue.createBlock(r,{key:i.index},{default:vue.withCtx(()=>[i.children?(vue.openBlock(),vue.createBlock(l,{key:1,nav:i.children},null,8,["nav"])):(vue.openBlock(),vue.createBlock(u,{key:0,parent:n,ref_for:!0,ref:w.common.NAME+i.index,item:i},null,8,["parent","item"]))]),_:2},1024)):vue.createCommentVNode("",!0)],64))),256))]),_:2},1032,["interval"])):vue.createCommentVNode("",!0)]),_:2},1040,["onMove","onOut","onOver","onFocus","onBlur","item","step","scale","disabled","id"])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.withDirectives(vue.createVNode(c,vue.mergeProps({ref_for:!0},n,{range:!m.contain.isSelectActive,line:!m.contain.isSelectActive,tool:m.contain.config.toolShow,scale:m.container.stepScale,disabled:!m.contain.menuFlag,step:m.container.stepScale,width:n.component.width,height:n.component.height,ref_for:!0,ref:w.common.DEAFNAME+n.index,id:w.common.DEAFNAME+n.index,"active-flag":m.contain.active.includes(n.index),onMove:m.handleMove,onOut:m.handleOut,onOver:m.handleOver,onFocus:m.handleFocus,onBlur:m.handleBlur}),{default:vue.withCtx(()=>[vue.createVNode(u,{item:n,ref_for:!0,ref:w.common.NAME+n.index},null,8,["item"])]),_:2},1040,["range","line","tool","scale","disabled","step","width","height","id","active-flag","onMove","onOut","onOver","onFocus","onBlur"]),[[vue.vShow,m.getShow(n)&&m.getDisplay(n)&&!n.auto]]),vue.createVNode(l,{nav:n.children},null,8,["nav"])],64))])),[[o,{id:m.contain.menuId,event:m.contain.handleContextMenu,value:n}]])),128)}const subgroup=_export_sfc$1(_sfc_main$G,[["render",_sfc_render$G]]),baseUrl$1=url+"/visual",getObj=e=>axios$1({url:baseUrl$1+"/detail",method:"get",params:{id:e}}),baseUrl=url+"/visual-global",getList=e=>axios$1({url:baseUrl+"/list",method:"get",params:e}),_sfc_main$F={name:"code",data(){return{}},computed:{},created(){},mounted(){},methods:{updateChart(){new QRious({element:document.querySelector("#qr"),background:this.option.background||"#fff",foreground:this.option.color||"#000",level:this.option.level||"H",size:this.width,value:this.mappingValue})}},props:{width:Number,option:{type:Object,default:()=>({})}}},_hoisted_1$f={ref:"main"},_hoisted_2$7=vue.createElementVNode("canvas",{id:"qr"},null,-1),_hoisted_3$2=[_hoisted_2$7];function _sfc_render$F(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$f,_hoisted_3$2,512)}const index$C=_export_sfc$1(_sfc_main$F,[["render",_sfc_render$F]]),__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:index$C},Symbol.toStringTag,{value:"Module"})),_sfc_main$E={name:"code",data(){return{dic:[{label:"25%",value:"L"},{label:"50%",value:"M"},{label:"75%",value:"Q"},{label:"100%",value:"H"}]}},inject:["main"]};function _sfc_render$E(e,v,s,g,w,m){const u=vue.resolveComponent("avue-input"),c=vue.resolveComponent("el-form-item"),l=vue.resolveComponent("avue-input-color"),r=vue.resolveComponent("avue-select");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(c,{label:"文本内容"},{default:vue.withCtx(()=>[vue.createVNode(u,{type:"textarea",modelValue:m.main.activeObj.data.value,"onUpdate:modelValue":v[0]||(v[0]=t=>m.main.activeObj.data.value=t)},null,8,["modelValue"])]),_:1}),vue.createVNode(c,{label:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(l,{modelValue:m.main.activeOption.color,"onUpdate:modelValue":v[1]||(v[1]=t=>m.main.activeOption.color=t)},null,8,["modelValue"])]),_:1}),vue.createVNode(c,{label:"背景颜色"},{default:vue.withCtx(()=>[vue.createVNode(l,{modelValue:m.main.activeOption.background,"onUpdate:modelValue":v[2]||(v[2]=t=>m.main.activeOption.background=t)},null,8,["modelValue"])]),_:1}),vue.createVNode(c,{label:"容错"},{default:vue.withCtx(()=>[vue.createVNode(r,{dic:w.dic,modelValue:m.main.activeOption.level,"onUpdate:modelValue":v[3]||(v[3]=t=>m.main.activeOption.level=t),placeholder:"请选择模型类型"},null,8,["dic","modelValue"])]),_:1})])}const option$1=_export_sfc$1(_sfc_main$E,[["render",_sfc_render$E]]),__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:option$1},Symbol.toStringTag,{value:"Module"})),fullscreenToggel=()=>{fullscreenEnable()?exitFullScreen():reqFullScreen()},fullscreenEnable=()=>{var e=document.isFullScreen||document.mozIsFullScreen||document.webkitIsFullScreen;return e},reqFullScreen=()=>{document.documentElement.requestFullScreen?document.documentElement.requestFullScreen():document.documentElement.webkitRequestFullScreen?document.documentElement.webkitRequestFullScreen():document.documentElement.mozRequestFullScreen&&document.documentElement.mozRequestFullScreen()},exitFullScreen=()=>{document.documentElement.requestFullScreen?document.exitFullScreen():document.documentElement.webkitRequestFullScreen?document.webkitCancelFullScreen():document.documentElement.mozRequestFullScreen&&document.mozCancelFullScreen()},_sfc_main$D={name:"fullscreen",data(){return{flag:!1}},computed:{styleName(){return{color:this.option.color,fontSize:this.setPx(this.option.fontSize)}}},created(){this.flag=fullscreenEnable()},mounted(){},methods:{fullscreenToggel(){fullscreenToggel(),setTimeout(()=>{this.flag=fullscreenEnable()},100)}},props:{option:{type:Object,default:()=>({})}}},_hoisted_1$e={ref:"main"};function _sfc_render$D(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,[vue.createElementVNode("span",{onClick:v[0]||(v[0]=u=>m.fullscreenToggel()),style:vue.normalizeStyle(m.styleName)},vue.toDisplayString(w.flag?"退出全屏":"全屏"),5)],512)}const index$B=_export_sfc$1(_sfc_main$D,[["render",_sfc_render$D]]),__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:index$B},Symbol.toStringTag,{value:"Module"})),index_vue_vue_type_style_index_0_scoped_f2da302f_lang="",_sfc_main$C={name:"imgTabs",data(){return{check:null,count:0,active:{}}},props:{option:Object,component:Object},computed:{times(){return this.option.time}},watch:{count(e){this.active=this.dataChart[e].list},dataChart(e){this.active=e&&e[0].list},times(e){clearInterval(this.check),e>0&&this.handleTime()}},mounted(){this.handleTime()},methods:{handleTime(){this.check=setInterval(()=>{this.count++,this.count>=this.dataChart.length&&(this.count=0)},this.times)},handleItem(e){this.count=e}}},_hoisted_1$d={class:"imgTabs__list"},_hoisted_2$6=["onClick"],_hoisted_3$1={class:"imgTabs__carousel"};function _sfc_render$C(e,v,s,g,w,m){const u=vue.resolveComponent("el-image"),c=vue.resolveComponent("el-carousel-item"),l=vue.resolveComponent("el-carousel");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["imgTabs",e.className]),style:vue.normalizeStyle(e.styleSizeName)},[vue.createElementVNode("div",{style:vue.normalizeStyle(e.styleChartName)},[vue.createElementVNode("div",_hoisted_1$d,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.dataChart,(r,t)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["imgTabs__item",{"imgTabs--active":t==w.count}]),key:t,onClick:a=>m.handleItem(t)},[vue.createElementVNode("span",null,vue.toDisplayString(r.text),1)],10,_hoisted_2$6))),128))]),vue.createElementVNode("div",_hoisted_3$1,[vue.createVNode(l,{direction:s.option.direction,interval:s.option.interval,autoplay:s.option.autoplay},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(w.active,(r,t)=>(vue.openBlock(),vue.createBlock(c,{key:t},{default:vue.withCtx(()=>[vue.createVNode(u,{style:{width:"100%"},src:r,fit:"cover"},null,8,["src"])]),_:2},1024))),128))]),_:1},8,["direction","interval","autoplay"])])],4)],6)}const index$A=_export_sfc$1(_sfc_main$C,[["render",_sfc_render$C],["__scopeId","data-v-f2da302f"]]),__vite_glob_0_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:index$A},Symbol.toStringTag,{value:"Module"})),_sfc_main$B={name:"imgTabs",inject:["main"]};function _sfc_render$B(e,v,s,g,w,m){const u=vue.resolveComponent("avue-input-number"),c=vue.resolveComponent("el-form-item"),l=vue.resolveComponent("avue-switch"),r=vue.resolveComponent("el-option"),t=vue.resolveComponent("el-select");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(c,{label:"选项卡时间"},{default:vue.withCtx(()=>[vue.createVNode(u,{modelValue:m.main.activeOption.time,"onUpdate:modelValue":v[0]||(v[0]=a=>m.main.activeOption.time=a)},null,8,["modelValue"])]),_:1}),vue.createVNode(c,{label:"自动播放"},{default:vue.withCtx(()=>[vue.createVNode(l,{modelValue:m.main.activeOption.autoplay,"onUpdate:modelValue":v[1]||(v[1]=a=>m.main.activeOption.autoplay=a)},null,8,["modelValue"])]),_:1}),vue.createVNode(c,{label:"走马灯时间"},{default:vue.withCtx(()=>[vue.createVNode(u,{modelValue:m.main.activeOption.interval,"onUpdate:modelValue":v[2]||(v[2]=a=>m.main.activeOption.interval=a)},null,8,["modelValue"])]),_:1}),vue.createVNode(c,{label:"走马灯方向"},{default:vue.withCtx(()=>[vue.createVNode(t,{modelValue:m.main.activeOption.direction,"onUpdate:modelValue":v[3]||(v[3]=a=>m.main.activeOption.direction=a)},{default:vue.withCtx(()=>[vue.createVNode(r,{key:"horizontal",label:"水平",value:"horizontal"}),vue.createVNode(r,{key:"vertical",label:"垂直",value:"vertical"})]),_:1},8,["modelValue"])]),_:1})])}const option=_export_sfc$1(_sfc_main$B,[["render",_sfc_render$B]]),__vite_glob_0_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:option},Symbol.toStringTag,{value:"Module"})),KEY_COMPONENT_NAME="avue-echart-",config={name:KEY_COMPONENT_NAME,echart:["common","map","pictorialbar","wordcloud","scatter","bar","line","pie","gauge","funnel","radar","rectangle"]};var mqtt_min={exports:{}};(function(e,v){(function(s){e.exports=s()})(function(){return function(){return function s(g,w,m){function u(r,t){if(!w[r]){if(!g[r]){var a=typeof commonjsRequire=="function"&&commonjsRequire;if(!t&&a)return a(r,!0);if(c)return c(r,!0);var o=new Error("Cannot find module '"+r+"'");throw o.code="MODULE_NOT_FOUND",o}var n=w[r]={exports:{}};g[r][0].call(n.exports,function(i){return u(g[r][1][i]||i)},n,n.exports,s,g,w,m)}return w[r].exports}for(var c=typeof commonjsRequire=="function"&&commonjsRequire,l=0;l<m.length;l++)u(m[l]);return u}}()({1:[function(s,g,w){(function(m,u){(function(){const c=s("events").EventEmitter,l=s("./store"),r=s("./topic-alias-recv"),t=s("./topic-alias-send"),a=s("mqtt-packet"),o=s("./default-message-id-provider"),n=s("readable-stream").Writable,i=s("inherits"),d=s("reinterval"),h=s("rfdc/default"),y=s("./validations"),b=s("xtend"),f=s("debug")("mqttjs:client"),x=m?m.nextTick:function(S){setTimeout(S,0)},$=u.setImmediate||function(S){x(S)},B={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0},E=["ECONNREFUSED","EADDRINUSE","ECONNRESET","ENOTFOUND"],N={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};function U(S,A){let L;A.properties&&(L=A.properties.topicAlias);let F=A.topic.toString();if(F.length===0){if(L===void 0)return new Error("Unregistered Topic Alias");if((F=S.topicAliasSend.getTopicByAlias(L))===void 0)return new Error("Unregistered Topic Alias");A.topic=F}L&&delete A.properties.topicAlias}function R(S,A,L){f("sendPacket :: packet: %O",A),f("sendPacket :: emitting `packetsend`"),S.emit("packetsend",A),f("sendPacket :: writing to stream");const F=a.writeToStream(A,S.stream,S.options);f("sendPacket :: writeToStream result %s",F),!F&&L&&L!==k?(f("sendPacket :: handle events on `drain` once through callback."),S.stream.once("drain",L)):L&&(f("sendPacket :: invoking cb"),L())}function C(S,A,L,F){f("storeAndSend :: store packet with cmd %s to outgoingStore",A.cmd);let q,I=A;if(I.cmd==="publish"&&(I=h(A),q=U(S,I)))return L&&L(q);S.outgoingStore.put(I,function(D){if(D)return L&&L(D);F(),R(S,A,L)})}function k(S){f("nop ::",S)}function T(S,A){let L;const F=this;if(!(this instanceof T))return new T(S,A);for(L in this.options=A||{},B)this.options[L]===void 0?this.options[L]=B[L]:this.options[L]=A[L];f("MqttClient :: options.protocol",A.protocol),f("MqttClient :: options.protocolVersion",A.protocolVersion),f("MqttClient :: options.username",A.username),f("MqttClient :: options.keepalive",A.keepalive),f("MqttClient :: options.reconnectPeriod",A.reconnectPeriod),f("MqttClient :: options.rejectUnauthorized",A.rejectUnauthorized),f("MqttClient :: options.topicAliasMaximum",A.topicAliasMaximum),this.options.clientId=typeof A.clientId=="string"?A.clientId:"mqttjs_"+Math.random().toString(16).substr(2,8),f("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=A.protocolVersion===5&&A.customHandleAcks?A.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=S,this.messageIdProvider=this.options.messageIdProvider===void 0?new o:this.options.messageIdProvider,this.outgoingStore=A.outgoingStore||new l,this.incomingStore=A.incomingStore||new l,this.queueQoSZero=A.queueQoSZero===void 0||A.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,A.topicAliasMaximum>0&&(A.topicAliasMaximum>65535?f("MqttClient :: options.topicAliasMaximum is out of range"):this.topicAliasRecv=new r(A.topicAliasMaximum)),this.on("connect",function(){const q=this.queue;f("connect :: sending queued packets"),function I(){const D=q.shift();f("deliver :: entry %o",D);let M=null;if(!D)return void F._resubscribe();M=D.packet,f("deliver :: call _sendPacket for %o",M);let P=!0;M.messageId&&M.messageId!==0&&(F.messageIdProvider.register(M.messageId)||(P=!1)),P?F._sendPacket(M,function(z){D.cb&&D.cb(z),I()}):(f("messageId: %d has already used. The message is skipped and removed.",M.messageId),I())}()}),this.on("close",function(){f("close :: connected set to `false`"),this.connected=!1,f("close :: clearing connackTimer"),clearTimeout(this.connackTimer),f("close :: clearing ping timer"),F.pingTimer!==null&&(F.pingTimer.clear(),F.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),f("close :: calling _setupReconnect"),this._setupReconnect()}),c.call(this),f("MqttClient :: setting up stream"),this._setupStream()}i(T,c),T.prototype._setupStream=function(){const S=this,A=new n,L=a.parser(this.options);let F=null;const q=[];function I(){if(q.length)x(D);else{const P=F;F=null,P()}}function D(){f("work :: getting next packet in queue");const P=q.shift();if(P)f("work :: packet pulled from queue"),S._handlePacket(P,I);else{f("work :: no packets in queue");const z=F;F=null,f("work :: done flag is %s",!!z),z&&z()}}f("_setupStream :: calling method to clear reconnect"),this._clearReconnect(),f("_setupStream :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),L.on("packet",function(P){f("parser :: on packet push to packets array."),q.push(P)}),A._write=function(P,z,H){F=H,f("writable stream :: parsing buffer"),L.parse(P),D()},f("_setupStream :: pipe stream to writable stream"),this.stream.pipe(A),this.stream.on("error",function(P){f("streamErrorHandler :: error",P.message),E.includes(P.code)?(f("streamErrorHandler :: emitting error"),S.emit("error",P)):k(P)}),this.stream.on("close",function(){var P;f("(%s)stream :: on close",S.options.clientId),(P=S.outgoing)&&(f("flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(P).forEach(function(z){P[z].volatile&&typeof P[z].cb=="function"&&(P[z].cb(new Error("Connection closed")),delete P[z])})),f("stream: emit close to MqttClient"),S.emit("close")}),f("_setupStream: sending packet `connect`");const M=Object.create(this.options);if(M.cmd="connect",this.topicAliasRecv&&(M.properties||(M.properties={}),this.topicAliasRecv&&(M.properties.topicAliasMaximum=this.topicAliasRecv.max)),R(this,M),L.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return S.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"&&R(this,b({cmd:"auth",reasonCode:0},this.options.authPacket))}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(function(){f("!!connectTimeout hit!! Calling _cleanUp with force `true`"),S._cleanUp(!0)},this.options.connectTimeout)},T.prototype._handlePacket=function(S,A){const L=this.options;if(L.protocolVersion===5&&L.properties&&L.properties.maximumPacketSize&&L.properties.maximumPacketSize<S.length)return this.emit("error",new Error("exceeding packets size "+S.cmd)),this.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),this;switch(f("_handlePacket :: emitting packetreceive"),this.emit("packetreceive",S),S.cmd){case"publish":this._handlePublish(S,A);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":this._handleAck(S),A();break;case"pubrel":this._handlePubrel(S,A);break;case"connack":this._handleConnack(S),A();break;case"auth":this._handleAuth(S),A();break;case"pingresp":this._handlePingresp(S),A();break;case"disconnect":this._handleDisconnect(S),A()}},T.prototype._checkDisconnecting=function(S){return this.disconnecting&&(S&&S!==k?S(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting},T.prototype.publish=function(S,A,L,F){f("publish :: message `%s` to topic `%s`",A,S);const q=this.options;if(typeof L=="function"&&(F=L,L=null),L=b({qos:0,retain:!1,dup:!1},L),this._checkDisconnecting(F))return this;const I=this,D=function(){let M=0;if((L.qos===1||L.qos===2)&&(M=I._nextId())===null)return f("No messageId left"),!1;const P={cmd:"publish",topic:S,payload:A,qos:L.qos,retain:L.retain,messageId:M,dup:L.dup};switch(q.protocolVersion===5&&(P.properties=L.properties),f("publish :: qos",L.qos),L.qos){case 1:case 2:I.outgoing[P.messageId]={volatile:!1,cb:F||k},f("MqttClient:publish: packet cmd: %s",P.cmd),I._sendPacket(P,void 0,L.cbStorePut);break;default:f("MqttClient:publish: packet cmd: %s",P.cmd),I._sendPacket(P,F,L.cbStorePut)}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!D())&&this._storeProcessingQueue.push({invoke:D,cbStorePut:L.cbStorePut,callback:F}),this},T.prototype.subscribe=function(){const S=this,A=new Array(arguments.length);for(let W=0;W<arguments.length;W++)A[W]=arguments[W];const L=[];let F=A.shift();const q=F.resubscribe;let I=A.pop()||k,D=A.pop();const M=this.options.protocolVersion;delete F.resubscribe,typeof F=="string"&&(F=[F]),typeof I!="function"&&(D=I,I=k);const P=y.validateTopics(F);if(P!==null)return $(I,new Error("Invalid topic "+P)),this;if(this._checkDisconnecting(I))return f("subscribe: discconecting true"),this;const z={qos:0};if(M===5&&(z.nl=!1,z.rap=!1,z.rh=0),D=b(z,D),Array.isArray(F)?F.forEach(function(W){if(f("subscribe: array topic %s",W),!Object.prototype.hasOwnProperty.call(S._resubscribeTopics,W)||S._resubscribeTopics[W].qos<D.qos||q){const G={topic:W,qos:D.qos};M===5&&(G.nl=D.nl,G.rap=D.rap,G.rh=D.rh,G.properties=D.properties),f("subscribe: pushing topic `%s` and qos `%s` to subs list",G.topic,G.qos),L.push(G)}}):Object.keys(F).forEach(function(W){if(f("subscribe: object topic %s",W),!Object.prototype.hasOwnProperty.call(S._resubscribeTopics,W)||S._resubscribeTopics[W].qos<F[W].qos||q){const G={topic:W,qos:F[W].qos};M===5&&(G.nl=F[W].nl,G.rap=F[W].rap,G.rh=F[W].rh,G.properties=D.properties),f("subscribe: pushing `%s` to subs list",G),L.push(G)}}),!L.length)return I(null,[]),this;const H=function(){const W=S._nextId();if(W===null)return f("No messageId left"),!1;const G={cmd:"subscribe",subscriptions:L,qos:1,retain:!1,dup:!1,messageId:W};if(D.properties&&(G.properties=D.properties),S.options.resubscribe){f("subscribe :: resubscribe true");const X=[];L.forEach(function(Y){if(S.options.reconnectPeriod>0){const p={qos:Y.qos};M===5&&(p.nl=Y.nl||!1,p.rap=Y.rap||!1,p.rh=Y.rh||0,p.properties=Y.properties),S._resubscribeTopics[Y.topic]=p,X.push(Y.topic)}}),S.messageIdToTopic[G.messageId]=X}return S.outgoing[G.messageId]={volatile:!0,cb:function(X,Y){if(!X){const p=Y.granted;for(let _=0;_<p.length;_+=1)L[_].qos=p[_]}I(X,L)}},f("subscribe :: call _sendPacket"),S._sendPacket(G),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!H())&&this._storeProcessingQueue.push({invoke:H,callback:I}),this},T.prototype.unsubscribe=function(){const S=this,A=new Array(arguments.length);for(let M=0;M<arguments.length;M++)A[M]=arguments[M];let L=A.shift(),F=A.pop()||k,q=A.pop();typeof L=="string"&&(L=[L]),typeof F!="function"&&(q=F,F=k);const I=y.validateTopics(L);if(I!==null)return $(F,new Error("Invalid topic "+I)),this;if(S._checkDisconnecting(F))return this;const D=function(){const M=S._nextId();if(M===null)return f("No messageId left"),!1;const P={cmd:"unsubscribe",qos:1,messageId:M};return typeof L=="string"?P.unsubscriptions=[L]:Array.isArray(L)&&(P.unsubscriptions=L),S.options.resubscribe&&P.unsubscriptions.forEach(function(z){delete S._resubscribeTopics[z]}),typeof q=="object"&&q.properties&&(P.properties=q.properties),S.outgoing[P.messageId]={volatile:!0,cb:F},f("unsubscribe: call _sendPacket"),S._sendPacket(P),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!D())&&this._storeProcessingQueue.push({invoke:D,callback:F}),this},T.prototype.end=function(S,A,L){const F=this;function q(){f("end :: (%s) :: finish :: calling _cleanUp with force %s",F.options.clientId,S),F._cleanUp(S,()=>{f("end :: finish :: calling process.nextTick on closeStores"),x((function(){f("end :: closeStores: closing incoming and outgoing stores"),F.disconnected=!0,F.incomingStore.close(function(I){F.outgoingStore.close(function(D){if(f("end :: closeStores: emitting end"),F.emit("end"),L){const M=I||D;f("end :: closeStores: invoking callback with args"),L(M)}})}),F._deferredReconnect&&F._deferredReconnect()}).bind(F))},A)}return f("end :: (%s)",this.options.clientId),S!=null&&typeof S=="boolean"||(L=A||k,A=S,S=!1,typeof A!="object"&&(L=A,A=null,typeof L!="function"&&(L=k))),typeof A!="object"&&(L=A,A=null),f("end :: cb? %s",!!L),L=L||k,this.disconnecting?(L(),this):(this._clearReconnect(),this.disconnecting=!0,!S&&Object.keys(this.outgoing).length>0?(f("end :: (%s) :: calling finish in 10ms once outgoing is empty",F.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,q,10))):(f("end :: (%s) :: immediately calling finish",F.options.clientId),q()),this)},T.prototype.removeOutgoingMessage=function(S){const A=this.outgoing[S]?this.outgoing[S].cb:null;return delete this.outgoing[S],this.outgoingStore.del({messageId:S},function(){A(new Error("Message removed"))}),this},T.prototype.reconnect=function(S){f("client reconnect");const A=this,L=function(){S?(A.options.incomingStore=S.incomingStore,A.options.outgoingStore=S.outgoingStore):(A.options.incomingStore=null,A.options.outgoingStore=null),A.incomingStore=A.options.incomingStore||new l,A.outgoingStore=A.options.outgoingStore||new l,A.disconnecting=!1,A.disconnected=!1,A._deferredReconnect=null,A._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=L:L(),this},T.prototype._reconnect=function(){f("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this._setupStream()}),f("client already connected. disconnecting first.")):(f("_reconnect: calling _setupStream"),this._setupStream())},T.prototype._setupReconnect=function(){const S=this;!S.disconnecting&&!S.reconnectTimer&&S.options.reconnectPeriod>0?(this.reconnecting||(f("_setupReconnect :: emit `offline` state"),this.emit("offline"),f("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),f("_setupReconnect :: setting reconnectTimer for %d ms",S.options.reconnectPeriod),S.reconnectTimer=setInterval(function(){f("reconnectTimer :: reconnect triggered!"),S._reconnect()},S.options.reconnectPeriod)):f("_setupReconnect :: doing nothing...")},T.prototype._clearReconnect=function(){f("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)},T.prototype._cleanUp=function(S,A){const L=arguments[2];if(A&&(f("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",A)),f("_cleanUp :: forced? %s",S),S)this.options.reconnectPeriod===0&&this.options.clean&&(F=this.outgoing)&&(f("flush: queue exists? %b",!!F),Object.keys(F).forEach(function(q){typeof F[q].cb=="function"&&(F[q].cb(new Error("Connection closed")),delete F[q])})),f("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{const q=b({cmd:"disconnect"},L);f("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(q,$.bind(null,this.stream.end.bind(this.stream)))}var F;this.disconnecting||(f("_cleanUp :: client not disconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this.pingTimer!==null&&(f("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),A&&!this.connected&&(f("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",A),A())},T.prototype._sendPacket=function(S,A,L){f("_sendPacket :: (%s) :: start",this.options.clientId),L=L||k,A=A||k;const F=function(q,I){if(q.options.protocolVersion===5&&I.cmd==="publish"){let D;I.properties&&(D=I.properties.topicAlias);const M=I.topic.toString();if(q.topicAliasSend)if(D){if(M.length!==0&&(f("applyTopicAlias :: register topic: %s - alias: %d",M,D),!q.topicAliasSend.put(M,D)))return f("applyTopicAlias :: error out of range. topic: %s - alias: %d",M,D),new Error("Sending Topic Alias out of range")}else M.length!==0&&(q.options.autoAssignTopicAlias?(D=q.topicAliasSend.getAliasByTopic(M))?(I.topic="",I.properties={...I.properties,topicAlias:D},f("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",M,D)):(D=q.topicAliasSend.getLruAlias(),q.topicAliasSend.put(M,D),I.properties={...I.properties,topicAlias:D},f("applyTopicAlias :: auto assign topic: %s - alias: %d",M,D)):q.options.autoUseTopicAlias&&(D=q.topicAliasSend.getAliasByTopic(M))&&(I.topic="",I.properties={...I.properties,topicAlias:D},f("applyTopicAlias :: auto use topic: %s - alias: %d",M,D)));else if(D)return f("applyTopicAlias :: error out of range. topic: %s - alias: %d",M,D),new Error("Sending Topic Alias out of range")}}(this,S);if(F)A(F);else{if(!this.connected)return S.cmd==="auth"?(this._shiftPingInterval(),void R(this,S,A)):(f("_sendPacket :: client not connected. Storing packet offline."),void this._storePacket(S,A,L));switch(this._shiftPingInterval(),S.cmd){case"publish":break;case"pubrel":return void C(this,S,A,L);default:return void R(this,S,A)}switch(S.qos){case 2:case 1:C(this,S,A,L);break;case 0:default:R(this,S,A)}f("_sendPacket :: (%s) :: end",this.options.clientId)}},T.prototype._storePacket=function(S,A,L){f("_storePacket :: packet: %o",S),f("_storePacket :: cb? %s",!!A),L=L||k;let F=S;if(F.cmd==="publish"){const q=U(this,F=h(S));if(q)return A&&A(q)}(F.qos||0)===0&&this.queueQoSZero||F.cmd!=="publish"?this.queue.push({packet:F,cb:A}):F.qos>0?(A=this.outgoing[F.messageId]?this.outgoing[F.messageId].cb:null,this.outgoingStore.put(F,function(q){if(q)return A&&A(q);L()})):A&&A(new Error("No connection to broker"))},T.prototype._setupPingTimer=function(){f("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive);const S=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=d(function(){S._checkPing()},1e3*this.options.keepalive))},T.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(1e3*this.options.keepalive)},T.prototype._checkPing=function(){f("_checkPing :: checking ping..."),this.pingResp?(f("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(f("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))},T.prototype._handlePingresp=function(){this.pingResp=!0},T.prototype._handleConnack=function(S){f("_handleConnack");const A=this.options,L=A.protocolVersion===5?S.reasonCode:S.returnCode;if(clearTimeout(this.connackTimer),delete this.topicAliasSend,S.properties){if(S.properties.topicAliasMaximum){if(S.properties.topicAliasMaximum>65535)return void this.emit("error",new Error("topicAliasMaximum from broker is out of range"));S.properties.topicAliasMaximum>0&&(this.topicAliasSend=new t(S.properties.topicAliasMaximum))}S.properties.serverKeepAlive&&A.keepalive&&(A.keepalive=S.properties.serverKeepAlive,this._shiftPingInterval()),S.properties.maximumPacketSize&&(A.properties||(A.properties={}),A.properties.maximumPacketSize=S.properties.maximumPacketSize)}if(L===0)this.reconnecting=!1,this._onConnect(S);else if(L>0){const F=new Error("Connection refused: "+N[L]);F.code=L,this.emit("error",F)}},T.prototype._handleAuth=function(S){const A=this.options.protocolVersion,L=A===5?S.reasonCode:S.returnCode;if(A!==5){const q=new Error("Protocol error: Auth packets are only supported in MQTT 5. Your version:"+A);return q.code=L,void this.emit("error",q)}const F=this;this.handleAuth(S,function(q,I){if(q)F.emit("error",q);else if(L===24)F.reconnecting=!1,F._sendPacket(I);else{const D=new Error("Connection refused: "+N[L]);q.code=L,F.emit("error",D)}})},T.prototype.handleAuth=function(S,A){A()},T.prototype._handlePublish=function(S,A){f("_handlePublish: packet %o",S),A=A!==void 0?A:k;let L=S.topic.toString();const F=S.payload,q=S.qos,I=S.messageId,D=this,M=this.options,P=[0,16,128,131,135,144,145,151,153];if(this.options.protocolVersion===5){let z;if(S.properties&&(z=S.properties.topicAlias),z!==void 0)if(L.length===0){if(!(z>0&&z<=65535))return f("_handlePublish :: topic alias out of range. alias: %d",z),void this.emit("error",new Error("Received Topic Alias is out of range"));{const H=this.topicAliasRecv.getTopicByAlias(z);if(!H)return f("_handlePublish :: unregistered topic alias. alias: %d",z),void this.emit("error",new Error("Received unregistered Topic Alias"));f("_handlePublish :: topic complemented by alias. topic: %s - alias: %d",L=H,z)}}else{if(!this.topicAliasRecv.put(L,z))return f("_handlePublish :: topic alias out of range. alias: %d",z),void this.emit("error",new Error("Received Topic Alias is out of range"));f("_handlePublish :: registered topic: %s - alias: %d",L,z)}}switch(f("_handlePublish: qos %d",q),q){case 2:M.customHandleAcks(L,F,S,function(z,H){return z instanceof Error||(H=z,z=null),z?D.emit("error",z):P.indexOf(H)===-1?D.emit("error",new Error("Wrong reason code for pubrec")):void(H?D._sendPacket({cmd:"pubrec",messageId:I,reasonCode:H},A):D.incomingStore.put(S,function(){D._sendPacket({cmd:"pubrec",messageId:I},A)}))});break;case 1:M.customHandleAcks(L,F,S,function(z,H){return z instanceof Error||(H=z,z=null),z?D.emit("error",z):P.indexOf(H)===-1?D.emit("error",new Error("Wrong reason code for puback")):(H||D.emit("message",L,F,S),void D.handleMessage(S,function(W){if(W)return A&&A(W);D._sendPacket({cmd:"puback",messageId:I,reasonCode:H},A)}))});break;case 0:this.emit("message",L,F,S),this.handleMessage(S,A);break;default:f("_handlePublish: unknown QoS. Doing nothing.")}},T.prototype.handleMessage=function(S,A){A()},T.prototype._handleAck=function(S){const A=S.messageId,L=S.cmd;let F=null;const q=this.outgoing[A]?this.outgoing[A].cb:null,I=this;let D;if(q){switch(f("_handleAck :: packet type",L),L){case"pubcomp":case"puback":{const M=S.reasonCode;M&&M>0&&M!==16&&((D=new Error("Publish error: "+N[M])).code=M,q(D,S)),delete this.outgoing[A],this.outgoingStore.del(S,q),this.messageIdProvider.deallocate(A),this._invokeStoreProcessingQueue();break}case"pubrec":{F={cmd:"pubrel",qos:2,messageId:A};const M=S.reasonCode;M&&M>0&&M!==16?((D=new Error("Publish error: "+N[M])).code=M,q(D,S)):this._sendPacket(F);break}case"suback":delete this.outgoing[A],this.messageIdProvider.deallocate(A);for(let M=0;M<S.granted.length;M++)if(128&S.granted[M]){const P=this.messageIdToTopic[A];P&&P.forEach(function(z){delete I._resubscribeTopics[z]})}this._invokeStoreProcessingQueue(),q(null,S);break;case"unsuback":delete this.outgoing[A],this.messageIdProvider.deallocate(A),this._invokeStoreProcessingQueue(),q(null);break;default:I.emit("error",new Error("unrecognized packet type"))}this.disconnecting&&Object.keys(this.outgoing).length===0&&this.emit("outgoingEmpty")}else f("_handleAck :: Server sent an ack in error. Ignoring.")},T.prototype._handlePubrel=function(S,A){f("handling pubrel packet"),A=A!==void 0?A:k;const L=this,F={cmd:"pubcomp",messageId:S.messageId};L.incomingStore.get(S,function(q,I){q?L._sendPacket(F,A):(L.emit("message",I.topic,I.payload,I),L.handleMessage(I,function(D){if(D)return A(D);L.incomingStore.del(I,k),L._sendPacket(F,A)}))})},T.prototype._handleDisconnect=function(S){this.emit("disconnect",S)},T.prototype._nextId=function(){return this.messageIdProvider.allocate()},T.prototype.getLastMessageId=function(){return this.messageIdProvider.getLastAllocated()},T.prototype._resubscribe=function(){f("_resubscribe");const S=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion===5&&!this.connackPacket.sessionPresent)&&S.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){f("_resubscribe: protocolVersion 5");for(let A=0;A<S.length;A++){const L={};L[S[A]]=this._resubscribeTopics[S[A]],L.resubscribe=!0,this.subscribe(L,{properties:L[S[A]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1},T.prototype._onConnect=function(S){if(this.disconnected)return void this.emit("connect",S);const A=this;this.connackPacket=S,this.messageIdProvider.clear(),this._setupPingTimer(),this.connected=!0,function L(){let F=A.outgoingStore.createStream();function q(){A._storeProcessing=!1,A._packetIdsDuringStoreProcessing={}}function I(){F.destroy(),F=null,A._flushStoreProcessingQueue(),q()}A.once("close",I),F.on("error",function(D){q(),A._flushStoreProcessingQueue(),A.removeListener("close",I),A.emit("error",D)}),F.on("end",function(){let D=!0;for(const M in A._packetIdsDuringStoreProcessing)if(!A._packetIdsDuringStoreProcessing[M]){D=!1;break}D?(q(),A.removeListener("close",I),A._invokeAllStoreProcessingQueue(),A.emit("connect",S)):L()}),function D(){if(!F)return;A._storeProcessing=!0;const M=F.read(1);let P;M?A._packetIdsDuringStoreProcessing[M.messageId]?D():A.disconnecting||A.reconnectTimer?F.destroy&&F.destroy():(P=A.outgoing[M.messageId]?A.outgoing[M.messageId].cb:null,A.outgoing[M.messageId]={volatile:!1,cb:function(z,H){P&&P(z,H),D()}},A._packetIdsDuringStoreProcessing[M.messageId]=!0,A.messageIdProvider.register(M.messageId)?A._sendPacket(M):f("messageId: %d has already used.",M.messageId)):F.once("readable",D)}()}()},T.prototype._invokeStoreProcessingQueue=function(){if(this._storeProcessingQueue.length>0){const S=this._storeProcessingQueue[0];if(S&&S.invoke())return this._storeProcessingQueue.shift(),!0}return!1},T.prototype._invokeAllStoreProcessingQueue=function(){for(;this._invokeStoreProcessingQueue(););},T.prototype._flushStoreProcessingQueue=function(){for(const S of this._storeProcessingQueue)S.cbStorePut&&S.cbStorePut(new Error("Connection closed")),S.callback&&S.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)},g.exports=T}).call(this)}).call(this,s("_process"),typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-message-id-provider":7,"./store":8,"./topic-alias-recv":9,"./topic-alias-send":10,"./validations":11,_process:50,debug:18,events:22,inherits:24,"mqtt-packet":40,"readable-stream":69,reinterval:70,"rfdc/default":71,xtend:81}],2:[function(s,g,w){const{Buffer:m}=s("buffer"),u=s("readable-stream").Transform,c=s("duplexify");let l,r,t,a=!1;g.exports=function(o,n){if(n.hostname=n.hostname||n.host,!n.hostname)throw new Error("Could not determine host. Specify host manually.");const i=n.protocolId==="MQIsdp"&&n.protocolVersion===3?"mqttv3.1":"mqtt";(function(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})})(n);const d=function(h,y){const b=h.protocol==="alis"?"wss":"ws";let f=b+"://"+h.hostname+h.path;return h.port&&h.port!==80&&h.port!==443&&(f=b+"://"+h.hostname+":"+h.port+h.path),typeof h.transformWsUrl=="function"&&(f=h.transformWsUrl(f,h,y)),f}(n,o);return(l=n.my).connectSocket({url:d,protocols:i}),r=function(){const h=new u;return h._write=function(y,b,f){l.sendSocketMessage({data:y.buffer,success:function(){f()},fail:function(){f(new Error)}})},h._flush=function(y){l.closeSocket({success:function(){y()}})},h}(),t=c.obj(),a||(a=!0,l.onSocketOpen(function(){t.setReadable(r),t.setWritable(r),t.emit("connect")}),l.onSocketMessage(function(h){if(typeof h.data=="string"){const y=m.from(h.data,"base64");r.push(y)}else{const y=new FileReader;y.addEventListener("load",function(){let b=y.result;b=b instanceof ArrayBuffer?m.from(b):m.from(b,"utf8"),r.push(b)}),y.readAsArrayBuffer(h.data)}}),l.onSocketClose(function(){t.end(),t.destroy()}),l.onSocketError(function(h){t.destroy(h)})),t}},{buffer:17,duplexify:20,"readable-stream":69}],3:[function(s,g,w){const m=s("net"),u=s("debug")("mqttjs:tcp");g.exports=function(c,l){l.port=l.port||1883,l.hostname=l.hostname||l.host||"localhost";const r=l.port,t=l.hostname;return u("port %d and host %s",r,t),m.createConnection(r,t)}},{debug:18,net:16}],4:[function(s,g,w){const m=s("tls"),u=s("net"),c=s("debug")("mqttjs:tls");g.exports=function(l,r){r.port=r.port||8883,r.host=r.hostname||r.host||"localhost",u.isIP(r.host)===0&&(r.servername=r.host),r.rejectUnauthorized=r.rejectUnauthorized!==!1,delete r.path,c("port %d host %s rejectUnauthorized %b",r.port,r.host,r.rejectUnauthorized);const t=m.connect(r);function a(o){r.rejectUnauthorized&&l.emit("error",o),t.end()}return t.on("secureConnect",function(){r.rejectUnauthorized&&!t.authorized?t.emit("error",new Error("TLS not authorized")):t.removeListener("error",a)}),t.on("error",a),t}},{debug:18,net:16,tls:16}],5:[function(s,g,w){(function(m){(function(){const{Buffer:u}=s("buffer"),c=s("ws"),l=s("debug")("mqttjs:ws"),r=s("duplexify"),t=s("readable-stream").Transform,a=["rejectUnauthorized","ca","cert","key","pfx","passphrase"],o=m!==void 0&&m.title==="browser"||typeof __webpack_require__=="function";function n(d,h){let y=d.protocol+"://"+d.hostname+":"+d.port+d.path;return typeof d.transformWsUrl=="function"&&(y=d.transformWsUrl(y,d,h)),y}function i(d){const h=d;return d.hostname||(h.hostname="localhost"),d.port||(d.protocol==="wss"?h.port=443:h.port=80),d.path||(h.path="/"),d.wsOptions||(h.wsOptions={}),o||d.protocol!=="wss"||a.forEach(function(y){Object.prototype.hasOwnProperty.call(d,y)&&!Object.prototype.hasOwnProperty.call(d.wsOptions,y)&&(h.wsOptions[y]=d[y])}),h}g.exports=o?function(d,h){let y;l("browserStreamBuilder");const b=function(T){const S=i(T);if(S.hostname||(S.hostname=S.host),!S.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");const A=new URL(document.URL);S.hostname=A.hostname,S.port||(S.port=A.port)}return S.objectMode===void 0&&(S.objectMode=!(S.binary===!0||S.binary===void 0)),S}(h).browserBufferSize||524288,f=h.browserBufferTimeout||1e3,x=!h.objectMode,$=function(T,S){const A=S.protocolId==="MQIsdp"&&S.protocolVersion===3?"mqttv3.1":"mqtt",L=n(S,T),F=new WebSocket(L,[A]);return F.binaryType="arraybuffer",F}(d,h),B=function(T,S,A){const L=new t({objectModeMode:T.objectMode});return L._write=S,L._flush=A,L}(h,function T(S,A,L){$.bufferedAmount>b&&setTimeout(T,f,S,A,L),x&&typeof S=="string"&&(S=u.from(S,"utf8"));try{$.send(S)}catch(F){return L(F)}L()},function(T){$.close(),T()});h.objectMode||(B._writev=k),B.on("close",()=>{$.close()});const E=$.addEventListener!==void 0;function N(){y.setReadable(B),y.setWritable(B),y.emit("connect")}function U(){y.end(),y.destroy()}function R(T){y.destroy(T)}function C(T){let S=T.data;S=S instanceof ArrayBuffer?u.from(S):u.from(S,"utf8"),B.push(S)}function k(T,S){const A=new Array(T.length);for(let L=0;L<T.length;L++)typeof T[L].chunk=="string"?A[L]=u.from(T[L],"utf8"):A[L]=T[L].chunk;this._write(u.concat(A),"binary",S)}return $.readyState===$.OPEN?y=B:(y=y=r(void 0,void 0,h),h.objectMode||(y._writev=k),E?$.addEventListener("open",N):$.onopen=N),y.socket=$,E?($.addEventListener("close",U),$.addEventListener("error",R),$.addEventListener("message",C)):($.onclose=U,$.onerror=R,$.onmessage=C),y}:function(d,h){l("streamBuilder");const y=i(h),b=n(y,d),f=function($,B,E){l("createWebSocket"),l("protocol: "+E.protocolId+" "+E.protocolVersion);const N=E.protocolId==="MQIsdp"&&E.protocolVersion===3?"mqttv3.1":"mqtt";return l("creating new Websocket for url: "+B+" and protocol: "+N),new c(B,[N],E.wsOptions)}(0,b,y),x=c.createWebSocketStream(f,y.wsOptions);return x.url=b,f.on("close",()=>{x.destroy()}),x}}).call(this)}).call(this,s("_process"))},{_process:50,buffer:17,debug:18,duplexify:20,"readable-stream":69,ws:80}],6:[function(s,g,w){const{Buffer:m}=s("buffer"),u=s("readable-stream").Transform,c=s("duplexify");let l,r,t;g.exports=function(a,o){if(o.hostname=o.hostname||o.host,!o.hostname)throw new Error("Could not determine host. Specify host manually.");const n=o.protocolId==="MQIsdp"&&o.protocolVersion===3?"mqttv3.1":"mqtt";(function(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})})(o);const i=function(h,y){const b=h.protocol==="wxs"?"wss":"ws";let f=b+"://"+h.hostname+h.path;return h.port&&h.port!==80&&h.port!==443&&(f=b+"://"+h.hostname+":"+h.port+h.path),typeof h.transformWsUrl=="function"&&(f=h.transformWsUrl(f,h,y)),f}(o,a);l=wx.connectSocket({url:i,protocols:[n]}),r=function(){const h=new u;return h._write=function(y,b,f){l.send({data:y.buffer,success:function(){f()},fail:function(x){f(new Error(x))}})},h._flush=function(y){l.close({success:function(){y()}})},h}(),(t=c.obj())._destroy=function(h,y){l.close({success:function(){y&&y(h)}})};const d=t.destroy;return t.destroy=(function(){t.destroy=d;const h=this;setTimeout(function(){l.close({fail:function(){h._destroy(new Error)}})},0)}).bind(t),l.onOpen(function(){t.setReadable(r),t.setWritable(r),t.emit("connect")}),l.onMessage(function(h){let y=h.data;y=y instanceof ArrayBuffer?m.from(y):m.from(y,"utf8"),r.push(y)}),l.onClose(function(){t.end(),t.destroy()}),l.onError(function(h){t.destroy(new Error(h.errMsg))}),t}},{buffer:17,duplexify:20,"readable-stream":69}],7:[function(s,g,w){function m(){if(!(this instanceof m))return new m;this.nextId=Math.max(1,Math.floor(65535*Math.random()))}m.prototype.allocate=function(){const u=this.nextId++;return this.nextId===65536&&(this.nextId=1),u},m.prototype.getLastAllocated=function(){return this.nextId===1?65535:this.nextId-1},m.prototype.register=function(u){return!0},m.prototype.deallocate=function(u){},m.prototype.clear=function(){},g.exports=m},{}],8:[function(s,g,w){const m=s("xtend"),u=s("readable-stream").Readable,c={objectMode:!0},l={clean:!0};function r(t){if(!(this instanceof r))return new r(t);this.options=t||{},this.options=m(l,t),this._inflights=new Map}r.prototype.put=function(t,a){return this._inflights.set(t.messageId,t),a&&a(),this},r.prototype.createStream=function(){const t=new u(c),a=[];let o=!1,n=0;return this._inflights.forEach(function(i,d){a.push(i)}),t._read=function(){!o&&n<a.length?this.push(a[n++]):this.push(null)},t.destroy=function(){if(o)return;const i=this;o=!0,setTimeout(function(){i.emit("close")},0)},t},r.prototype.del=function(t,a){return(t=this._inflights.get(t.messageId))?(this._inflights.delete(t.messageId),a(null,t)):a&&a(new Error("missing packet")),this},r.prototype.get=function(t,a){return(t=this._inflights.get(t.messageId))?a(null,t):a&&a(new Error("missing packet")),this},r.prototype.close=function(t){this.options.clean&&(this._inflights=null),t&&t()},g.exports=r},{"readable-stream":69,xtend:81}],9:[function(s,g,w){function m(u){if(!(this instanceof m))return new m(u);this.aliasToTopic={},this.max=u}m.prototype.put=function(u,c){return!(c===0||c>this.max)&&(this.aliasToTopic[c]=u,this.length=Object.keys(this.aliasToTopic).length,!0)},m.prototype.getTopicByAlias=function(u){return this.aliasToTopic[u]},m.prototype.clear=function(){this.aliasToTopic={}},g.exports=m},{}],10:[function(s,g,w){const m=s("lru-cache"),u=s("number-allocator").NumberAllocator;function c(l){if(!(this instanceof c))return new c(l);l>0&&(this.aliasToTopic=new m({max:l}),this.topicToAlias={},this.numberAllocator=new u(1,l),this.max=l,this.length=0)}c.prototype.put=function(l,r){if(r===0||r>this.max)return!1;const t=this.aliasToTopic.get(r);return t&&delete this.topicToAlias[t],this.aliasToTopic.set(r,l),this.topicToAlias[l]=r,this.numberAllocator.use(r),this.length=this.aliasToTopic.length,!0},c.prototype.getTopicByAlias=function(l){return this.aliasToTopic.get(l)},c.prototype.getAliasByTopic=function(l){const r=this.topicToAlias[l];return r!==void 0&&this.aliasToTopic.get(r),r},c.prototype.clear=function(){this.aliasToTopic.reset(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0},c.prototype.getLruAlias=function(){return this.numberAllocator.firstVacant()||this.aliasToTopic.keys()[this.aliasToTopic.length-1]},g.exports=c},{"lru-cache":37,"number-allocator":46}],11:[function(s,g,w){function m(u){const c=u.split("/");for(let l=0;l<c.length;l++)if(c[l]!=="+"){if(c[l]==="#")return l===c.length-1;if(c[l].indexOf("+")!==-1||c[l].indexOf("#")!==-1)return!1}return!0}g.exports={validateTopics:function(u){if(u.length===0)return"empty_topic_list";for(let c=0;c<u.length;c++)if(!m(u[c]))return u[c];return null}}},{}],12:[function(s,g,w){(function(m){(function(){const u=s("../client"),c=s("../store"),l=s("url"),r=s("xtend"),t=s("debug")("mqttjs"),a={};function o(n,i){if(t("connecting to an MQTT broker..."),typeof n!="object"||i||(i=n,n=null),i=i||{},n){const h=l.parse(n,!0);if(h.port!=null&&(h.port=Number(h.port)),(i=r(h,i)).protocol===null)throw new Error("Missing protocol");i.protocol=i.protocol.replace(/:$/,"")}if(function(h){let y;h.auth&&((y=h.auth.match(/^(.+):(.+)$/))?(h.username=y[1],h.password=y[2]):h.username=h.auth)}(i),i.query&&typeof i.query.clientId=="string"&&(i.clientId=i.query.clientId),i.cert&&i.key){if(!i.protocol)throw new Error("Missing secure protocol key");if(["mqtts","wss","wxs","alis"].indexOf(i.protocol)===-1)switch(i.protocol){case"mqtt":i.protocol="mqtts";break;case"ws":i.protocol="wss";break;case"wx":i.protocol="wxs";break;case"ali":i.protocol="alis";break;default:throw new Error('Unknown protocol for secure connection: "'+i.protocol+'"!')}}if(!a[i.protocol]){const h=["mqtts","wss"].indexOf(i.protocol)!==-1;i.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter(function(y,b){return(!h||b%2!=0)&&typeof a[y]=="function"})[0]}if(i.clean===!1&&!i.clientId)throw new Error("Missing clientId for unclean clients");i.protocol&&(i.defaultProtocol=i.protocol);const d=new u(function(h){return i.servers&&(h._reconnectCount&&h._reconnectCount!==i.servers.length||(h._reconnectCount=0),i.host=i.servers[h._reconnectCount].host,i.port=i.servers[h._reconnectCount].port,i.protocol=i.servers[h._reconnectCount].protocol?i.servers[h._reconnectCount].protocol:i.defaultProtocol,i.hostname=i.host,h._reconnectCount++),t("calling streambuilder for",i.protocol),a[i.protocol](h,i)},i);return d.on("error",function(){}),d}m!==void 0&&m.title!=="browser"||typeof __webpack_require__!="function"?(a.mqtt=s("./tcp"),a.tcp=s("./tcp"),a.ssl=s("./tls"),a.tls=s("./tls"),a.mqtts=s("./tls")):(a.wx=s("./wx"),a.wxs=s("./wx"),a.ali=s("./ali"),a.alis=s("./ali")),a.ws=s("./ws"),a.wss=s("./ws"),g.exports=o,g.exports.connect=o,g.exports.MqttClient=u,g.exports.Store=c}).call(this)}).call(this,s("_process"))},{"../client":1,"../store":8,"./ali":2,"./tcp":3,"./tls":4,"./ws":5,"./wx":6,_process:50,debug:18,url:76,xtend:81}],13:[function(s,g,w){w.byteLength=function(n){var i=a(n),d=i[0],h=i[1];return 3*(d+h)/4-h},w.toByteArray=function(n){var i,d,h=a(n),y=h[0],b=h[1],f=new c(function(B,E,N){return 3*(E+N)/4-N}(0,y,b)),x=0,$=b>0?y-4:y;for(d=0;d<$;d+=4)i=u[n.charCodeAt(d)]<<18|u[n.charCodeAt(d+1)]<<12|u[n.charCodeAt(d+2)]<<6|u[n.charCodeAt(d+3)],f[x++]=i>>16&255,f[x++]=i>>8&255,f[x++]=255&i;return b===2&&(i=u[n.charCodeAt(d)]<<2|u[n.charCodeAt(d+1)]>>4,f[x++]=255&i),b===1&&(i=u[n.charCodeAt(d)]<<10|u[n.charCodeAt(d+1)]<<4|u[n.charCodeAt(d+2)]>>2,f[x++]=i>>8&255,f[x++]=255&i),f},w.fromByteArray=function(n){for(var i,d=n.length,h=d%3,y=[],b=0,f=d-h;b<f;b+=16383)y.push(o(n,b,b+16383>f?f:b+16383));return h===1?(i=n[d-1],y.push(m[i>>2]+m[i<<4&63]+"==")):h===2&&(i=(n[d-2]<<8)+n[d-1],y.push(m[i>>10]+m[i>>4&63]+m[i<<2&63]+"=")),y.join("")};for(var m=[],u=[],c=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,t=l.length;r<t;++r)m[r]=l[r],u[l.charCodeAt(r)]=r;function a(n){var i=n.length;if(i%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var d=n.indexOf("=");return d===-1&&(d=i),[d,d===i?0:4-d%4]}function o(n,i,d){for(var h,y,b=[],f=i;f<d;f+=3)h=(n[f]<<16&16711680)+(n[f+1]<<8&65280)+(255&n[f+2]),b.push(m[(y=h)>>18&63]+m[y>>12&63]+m[y>>6&63]+m[63&y]);return b.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},{}],14:[function(s,g,w){const{Buffer:m}=s("buffer"),u=Symbol.for("BufferList");function c(l){if(!(this instanceof c))return new c(l);c._init.call(this,l)}c._init=function(l){Object.defineProperty(this,u,{value:!0}),this._bufs=[],this.length=0,l&&this.append(l)},c.prototype._new=function(l){return new c(l)},c.prototype._offset=function(l){if(l===0)return[0,0];let r=0;for(let t=0;t<this._bufs.length;t++){const a=r+this._bufs[t].length;if(l<a||t===this._bufs.length-1)return[t,l-r];r=a}},c.prototype._reverseOffset=function(l){const r=l[0];let t=l[1];for(let a=0;a<r;a++)t+=this._bufs[a].length;return t},c.prototype.get=function(l){if(l>this.length||l<0)return;const r=this._offset(l);return this._bufs[r[0]][r[1]]},c.prototype.slice=function(l,r){return typeof l=="number"&&l<0&&(l+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,l,r)},c.prototype.copy=function(l,r,t,a){if((typeof t!="number"||t<0)&&(t=0),(typeof a!="number"||a>this.length)&&(a=this.length),t>=this.length||a<=0)return l||m.alloc(0);const o=!!l,n=this._offset(t),i=a-t;let d=i,h=o&&r||0,y=n[1];if(t===0&&a===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:m.concat(this._bufs,this.length);for(let b=0;b<this._bufs.length;b++)this._bufs[b].copy(l,h),h+=this._bufs[b].length;return l}if(d<=this._bufs[n[0]].length-y)return o?this._bufs[n[0]].copy(l,r,y,y+d):this._bufs[n[0]].slice(y,y+d);o||(l=m.allocUnsafe(i));for(let b=n[0];b<this._bufs.length;b++){const f=this._bufs[b].length-y;if(!(d>f)){this._bufs[b].copy(l,h,y,y+d),h+=f;break}this._bufs[b].copy(l,h,y),h+=f,d-=f,y&&(y=0)}return l.length>h?l.slice(0,h):l},c.prototype.shallowSlice=function(l,r){if(l=l||0,r=typeof r!="number"?this.length:r,l<0&&(l+=this.length),r<0&&(r+=this.length),l===r)return this._new();const t=this._offset(l),a=this._offset(r),o=this._bufs.slice(t[0],a[0]+1);return a[1]===0?o.pop():o[o.length-1]=o[o.length-1].slice(0,a[1]),t[1]!==0&&(o[0]=o[0].slice(t[1])),this._new(o)},c.prototype.toString=function(l,r,t){return this.slice(r,t).toString(l)},c.prototype.consume=function(l){if(l=Math.trunc(l),Number.isNaN(l)||l<=0)return this;for(;this._bufs.length;){if(!(l>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(l),this.length-=l;break}l-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},c.prototype.duplicate=function(){const l=this._new();for(let r=0;r<this._bufs.length;r++)l.append(this._bufs[r]);return l},c.prototype.append=function(l){if(l==null)return this;if(l.buffer)this._appendBuffer(m.from(l.buffer,l.byteOffset,l.byteLength));else if(Array.isArray(l))for(let r=0;r<l.length;r++)this.append(l[r]);else if(this._isBufferList(l))for(let r=0;r<l._bufs.length;r++)this.append(l._bufs[r]);else typeof l=="number"&&(l=l.toString()),this._appendBuffer(m.from(l));return this},c.prototype._appendBuffer=function(l){this._bufs.push(l),this.length+=l.length},c.prototype.indexOf=function(l,r,t){if(t===void 0&&typeof r=="string"&&(t=r,r=void 0),typeof l=="function"||Array.isArray(l))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof l=="number"?l=m.from([l]):typeof l=="string"?l=m.from(l,t):this._isBufferList(l)?l=l.slice():Array.isArray(l.buffer)?l=m.from(l.buffer,l.byteOffset,l.byteLength):m.isBuffer(l)||(l=m.from(l)),r=Number(r||0),isNaN(r)&&(r=0),r<0&&(r=this.length+r),r<0&&(r=0),l.length===0)return r>this.length?this.length:r;const a=this._offset(r);let o=a[0],n=a[1];for(;o<this._bufs.length;o++){const i=this._bufs[o];for(;n<i.length;)if(i.length-n>=l.length){const d=i.indexOf(l,n);if(d!==-1)return this._reverseOffset([o,d]);n=i.length-l.length+1}else{const d=this._reverseOffset([o,n]);if(this._match(d,l))return d;n++}n=0}return-1},c.prototype._match=function(l,r){if(this.length-l<r.length)return!1;for(let t=0;t<r.length;t++)if(this.get(l+t)!==r[t])return!1;return!0},function(){const l={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,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(const r in l)(function(t){c.prototype[t]=l[t]===null?function(a,o){return this.slice(a,a+o)[t](0,o)}:function(a=0){return this.slice(a,a+l[t])[t](0)}})(r)}(),c.prototype._isBufferList=function(l){return l instanceof c||c.isBufferList(l)},c.isBufferList=function(l){return l!=null&&l[u]},g.exports=c},{buffer:17}],15:[function(s,g,w){const m=s("readable-stream").Duplex,u=s("inherits"),c=s("./BufferList");function l(r){if(!(this instanceof l))return new l(r);if(typeof r=="function"){this._callback=r;const t=(function(a){this._callback&&(this._callback(a),this._callback=null)}).bind(this);this.on("pipe",function(a){a.on("error",t)}),this.on("unpipe",function(a){a.removeListener("error",t)}),r=null}c._init.call(this,r),m.call(this)}u(l,m),Object.assign(l.prototype,c.prototype),l.prototype._new=function(r){return new l(r)},l.prototype._write=function(r,t,a){this._appendBuffer(r),typeof a=="function"&&a()},l.prototype._read=function(r){if(!this.length)return this.push(null);r=Math.min(r,this.length),this.push(this.slice(0,r)),this.consume(r)},l.prototype.end=function(r){m.prototype.end.call(this,r),this._callback&&(this._callback(null,this.slice()),this._callback=null)},l.prototype._destroy=function(r,t){this._bufs.length=0,this.length=0,t(r)},l.prototype._isBufferList=function(r){return r instanceof l||r instanceof c||l.isBufferList(r)},l.isBufferList=c.isBufferList,g.exports=l,g.exports.BufferListStream=l,g.exports.BufferList=c},{"./BufferList":14,inherits:24,"readable-stream":69}],16:[function(s,g,w){},{}],17:[function(s,g,w){(function(m){(function(){var u=s("base64-js"),c=s("ieee754");w.Buffer=t,w.SlowBuffer=function(p){return+p!=p&&(p=0),t.alloc(+p)},w.INSPECT_MAX_BYTES=50;var l=2147483647;function r(p){if(p>l)throw new RangeError('The value "'+p+'" is invalid for option "size"');var _=new Uint8Array(p);return _.__proto__=t.prototype,_}function t(p,_,O){if(typeof p=="number"){if(typeof _=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return n(p)}return a(p,_,O)}function a(p,_,O){if(typeof p=="string")return function(K,Q){if(typeof Q=="string"&&Q!==""||(Q="utf8"),!t.isEncoding(Q))throw new TypeError("Unknown encoding: "+Q);var J=0|h(K,Q),Z=r(J),ee=Z.write(K,Q);return ee!==J&&(Z=Z.slice(0,ee)),Z}(p,_);if(ArrayBuffer.isView(p))return i(p);if(p==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p);if(X(p,ArrayBuffer)||p&&X(p.buffer,ArrayBuffer))return function(K,Q,J){if(Q<0||K.byteLength<Q)throw new RangeError('"offset" is outside of buffer bounds');if(K.byteLength<Q+(J||0))throw new RangeError('"length" is outside of buffer bounds');var Z;return Z=Q===void 0&&J===void 0?new Uint8Array(K):J===void 0?new Uint8Array(K,Q):new Uint8Array(K,Q,J),Z.__proto__=t.prototype,Z}(p,_,O);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var j=p.valueOf&&p.valueOf();if(j!=null&&j!==p)return t.from(j,_,O);var V=function(K){if(t.isBuffer(K)){var Q=0|d(K.length),J=r(Q);return J.length===0||K.copy(J,0,0,Q),J}if(K.length!==void 0)return typeof K.length!="number"||Y(K.length)?r(0):i(K);if(K.type==="Buffer"&&Array.isArray(K.data))return i(K.data)}(p);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]=="function")return t.from(p[Symbol.toPrimitive]("string"),_,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p)}function o(p){if(typeof p!="number")throw new TypeError('"size" argument must be of type number');if(p<0)throw new RangeError('The value "'+p+'" is invalid for option "size"')}function n(p){return o(p),r(p<0?0:0|d(p))}function i(p){for(var _=p.length<0?0:0|d(p.length),O=r(_),j=0;j<_;j+=1)O[j]=255&p[j];return O}function d(p){if(p>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return 0|p}function h(p,_){if(t.isBuffer(p))return p.length;if(ArrayBuffer.isView(p)||X(p,ArrayBuffer))return p.byteLength;if(typeof p!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof p);var O=p.length,j=arguments.length>2&&arguments[2]===!0;if(!j&&O===0)return 0;for(var V=!1;;)switch(_){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return H(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*O;case"hex":return O>>>1;case"base64":return W(p).length;default:if(V)return j?-1:H(p).length;_=(""+_).toLowerCase(),V=!0}}function y(p,_,O){var j=p[_];p[_]=p[O],p[O]=j}function b(p,_,O,j,V){if(p.length===0)return-1;if(typeof O=="string"?(j=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),Y(O=+O)&&(O=V?0:p.length-1),O<0&&(O=p.length+O),O>=p.length){if(V)return-1;O=p.length-1}else if(O<0){if(!V)return-1;O=0}if(typeof _=="string"&&(_=t.from(_,j)),t.isBuffer(_))return _.length===0?-1:f(p,_,O,j,V);if(typeof _=="number")return _&=255,typeof Uint8Array.prototype.indexOf=="function"?V?Uint8Array.prototype.indexOf.call(p,_,O):Uint8Array.prototype.lastIndexOf.call(p,_,O):f(p,[_],O,j,V);throw new TypeError("val must be string, number or Buffer")}function f(p,_,O,j,V){var K,Q=1,J=p.length,Z=_.length;if(j!==void 0&&((j=String(j).toLowerCase())==="ucs2"||j==="ucs-2"||j==="utf16le"||j==="utf-16le")){if(p.length<2||_.length<2)return-1;Q=2,J/=2,Z/=2,O/=2}function ee(ie,re){return Q===1?ie[re]:ie.readUInt16BE(re*Q)}if(V){var te=-1;for(K=O;K<J;K++)if(ee(p,K)===ee(_,te===-1?0:K-te)){if(te===-1&&(te=K),K-te+1===Z)return te*Q}else te!==-1&&(K-=K-te),te=-1}else for(O+Z>J&&(O=J-Z),K=O;K>=0;K--){for(var se=!0,oe=0;oe<Z;oe++)if(ee(p,K+oe)!==ee(_,oe)){se=!1;break}if(se)return K}return-1}function x(p,_,O,j){O=Number(O)||0;var V=p.length-O;j?(j=Number(j))>V&&(j=V):j=V;var K=_.length;j>K/2&&(j=K/2);for(var Q=0;Q<j;++Q){var J=parseInt(_.substr(2*Q,2),16);if(Y(J))return Q;p[O+Q]=J}return Q}function $(p,_,O,j){return G(H(_,p.length-O),p,O,j)}function B(p,_,O,j){return G(function(V){for(var K=[],Q=0;Q<V.length;++Q)K.push(255&V.charCodeAt(Q));return K}(_),p,O,j)}function E(p,_,O,j){return B(p,_,O,j)}function N(p,_,O,j){return G(W(_),p,O,j)}function U(p,_,O,j){return G(function(V,K){for(var Q,J,Z,ee=[],te=0;te<V.length&&!((K-=2)<0);++te)Q=V.charCodeAt(te),J=Q>>8,Z=Q%256,ee.push(Z),ee.push(J);return ee}(_,p.length-O),p,O,j)}function R(p,_,O){return _===0&&O===p.length?u.fromByteArray(p):u.fromByteArray(p.slice(_,O))}function C(p,_,O){O=Math.min(p.length,O);for(var j=[],V=_;V<O;){var K,Q,J,Z,ee=p[V],te=null,se=ee>239?4:ee>223?3:ee>191?2:1;if(V+se<=O)switch(se){case 1:ee<128&&(te=ee);break;case 2:(192&(K=p[V+1]))==128&&(Z=(31&ee)<<6|63&K)>127&&(te=Z);break;case 3:K=p[V+1],Q=p[V+2],(192&K)==128&&(192&Q)==128&&(Z=(15&ee)<<12|(63&K)<<6|63&Q)>2047&&(Z<55296||Z>57343)&&(te=Z);break;case 4:K=p[V+1],Q=p[V+2],J=p[V+3],(192&K)==128&&(192&Q)==128&&(192&J)==128&&(Z=(15&ee)<<18|(63&K)<<12|(63&Q)<<6|63&J)>65535&&Z<1114112&&(te=Z)}te===null?(te=65533,se=1):te>65535&&(te-=65536,j.push(te>>>10&1023|55296),te=56320|1023&te),j.push(te),V+=se}return function(oe){var ie=oe.length;if(ie<=k)return String.fromCharCode.apply(String,oe);for(var re="",ne=0;ne<ie;)re+=String.fromCharCode.apply(String,oe.slice(ne,ne+=k));return re}(j)}w.kMaxLength=l,t.TYPED_ARRAY_SUPPORT=function(){try{var p=new Uint8Array(1);return p.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},p.foo()===42}catch{return!1}}(),t.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192,t.from=function(p,_,O){return a(p,_,O)},t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,t.alloc=function(p,_,O){return function(j,V,K){return o(j),j<=0?r(j):V!==void 0?typeof K=="string"?r(j).fill(V,K):r(j).fill(V):r(j)}(p,_,O)},t.allocUnsafe=function(p){return n(p)},t.allocUnsafeSlow=function(p){return n(p)},t.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==t.prototype},t.compare=function(p,_){if(X(p,Uint8Array)&&(p=t.from(p,p.offset,p.byteLength)),X(_,Uint8Array)&&(_=t.from(_,_.offset,_.byteLength)),!t.isBuffer(p)||!t.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===_)return 0;for(var O=p.length,j=_.length,V=0,K=Math.min(O,j);V<K;++V)if(p[V]!==_[V]){O=p[V],j=_[V];break}return O<j?-1:j<O?1:0},t.isEncoding=function(p){switch(String(p).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}},t.concat=function(p,_){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return t.alloc(0);var O;if(_===void 0)for(_=0,O=0;O<p.length;++O)_+=p[O].length;var j=t.allocUnsafe(_),V=0;for(O=0;O<p.length;++O){var K=p[O];if(X(K,Uint8Array)&&(K=t.from(K)),!t.isBuffer(K))throw new TypeError('"list" argument must be an Array of Buffers');K.copy(j,V),V+=K.length}return j},t.byteLength=h,t.prototype._isBuffer=!0,t.prototype.swap16=function(){var p=this.length;if(p%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var _=0;_<p;_+=2)y(this,_,_+1);return this},t.prototype.swap32=function(){var p=this.length;if(p%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var _=0;_<p;_+=4)y(this,_,_+3),y(this,_+1,_+2);return this},t.prototype.swap64=function(){var p=this.length;if(p%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var _=0;_<p;_+=8)y(this,_,_+7),y(this,_+1,_+6),y(this,_+2,_+5),y(this,_+3,_+4);return this},t.prototype.toString=function(){var p=this.length;return p===0?"":arguments.length===0?C(this,0,p):(function(_,O,j){var V=!1;if((O===void 0||O<0)&&(O=0),O>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0)<=(O>>>=0))return"";for(_||(_="utf8");;)switch(_){case"hex":return A(this,O,j);case"utf8":case"utf-8":return C(this,O,j);case"ascii":return T(this,O,j);case"latin1":case"binary":return S(this,O,j);case"base64":return R(this,O,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,O,j);default:if(V)throw new TypeError("Unknown encoding: "+_);_=(_+"").toLowerCase(),V=!0}}).apply(this,arguments)},t.prototype.toLocaleString=t.prototype.toString,t.prototype.equals=function(p){if(!t.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p||t.compare(this,p)===0},t.prototype.inspect=function(){var p="",_=w.INSPECT_MAX_BYTES;return p=this.toString("hex",0,_).replace(/(.{2})/g,"$1 ").trim(),this.length>_&&(p+=" ... "),"<Buffer "+p+">"},t.prototype.compare=function(p,_,O,j,V){if(X(p,Uint8Array)&&(p=t.from(p,p.offset,p.byteLength)),!t.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(_===void 0&&(_=0),O===void 0&&(O=p?p.length:0),j===void 0&&(j=0),V===void 0&&(V=this.length),_<0||O>p.length||j<0||V>this.length)throw new RangeError("out of range index");if(j>=V&&_>=O)return 0;if(j>=V)return-1;if(_>=O)return 1;if(_>>>=0,O>>>=0,j>>>=0,V>>>=0,this===p)return 0;for(var K=V-j,Q=O-_,J=Math.min(K,Q),Z=this.slice(j,V),ee=p.slice(_,O),te=0;te<J;++te)if(Z[te]!==ee[te]){K=Z[te],Q=ee[te];break}return K<Q?-1:Q<K?1:0},t.prototype.includes=function(p,_,O){return this.indexOf(p,_,O)!==-1},t.prototype.indexOf=function(p,_,O){return b(this,p,_,O,!0)},t.prototype.lastIndexOf=function(p,_,O){return b(this,p,_,O,!1)},t.prototype.write=function(p,_,O,j){if(_===void 0)j="utf8",O=this.length,_=0;else if(O===void 0&&typeof _=="string")j=_,O=this.length,_=0;else{if(!isFinite(_))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");_>>>=0,isFinite(O)?(O>>>=0,j===void 0&&(j="utf8")):(j=O,O=void 0)}var V=this.length-_;if((O===void 0||O>V)&&(O=V),p.length>0&&(O<0||_<0)||_>this.length)throw new RangeError("Attempt to write outside buffer bounds");j||(j="utf8");for(var K=!1;;)switch(j){case"hex":return x(this,p,_,O);case"utf8":case"utf-8":return $(this,p,_,O);case"ascii":return B(this,p,_,O);case"latin1":case"binary":return E(this,p,_,O);case"base64":return N(this,p,_,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,p,_,O);default:if(K)throw new TypeError("Unknown encoding: "+j);j=(""+j).toLowerCase(),K=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function T(p,_,O){var j="";O=Math.min(p.length,O);for(var V=_;V<O;++V)j+=String.fromCharCode(127&p[V]);return j}function S(p,_,O){var j="";O=Math.min(p.length,O);for(var V=_;V<O;++V)j+=String.fromCharCode(p[V]);return j}function A(p,_,O){var j=p.length;(!_||_<0)&&(_=0),(!O||O<0||O>j)&&(O=j);for(var V="",K=_;K<O;++K)V+=z(p[K]);return V}function L(p,_,O){for(var j=p.slice(_,O),V="",K=0;K<j.length;K+=2)V+=String.fromCharCode(j[K]+256*j[K+1]);return V}function F(p,_,O){if(p%1!=0||p<0)throw new RangeError("offset is not uint");if(p+_>O)throw new RangeError("Trying to access beyond buffer length")}function q(p,_,O,j,V,K){if(!t.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(_>V||_<K)throw new RangeError('"value" argument is out of bounds');if(O+j>p.length)throw new RangeError("Index out of range")}function I(p,_,O,j,V,K){if(O+j>p.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function D(p,_,O,j,V){return _=+_,O>>>=0,V||I(p,0,O,4),c.write(p,_,O,j,23,4),O+4}function M(p,_,O,j,V){return _=+_,O>>>=0,V||I(p,0,O,8),c.write(p,_,O,j,52,8),O+8}t.prototype.slice=function(p,_){var O=this.length;p=~~p,_=_===void 0?O:~~_,p<0?(p+=O)<0&&(p=0):p>O&&(p=O),_<0?(_+=O)<0&&(_=0):_>O&&(_=O),_<p&&(_=p);var j=this.subarray(p,_);return j.__proto__=t.prototype,j},t.prototype.readUIntLE=function(p,_,O){p>>>=0,_>>>=0,O||F(p,_,this.length);for(var j=this[p],V=1,K=0;++K<_&&(V*=256);)j+=this[p+K]*V;return j},t.prototype.readUIntBE=function(p,_,O){p>>>=0,_>>>=0,O||F(p,_,this.length);for(var j=this[p+--_],V=1;_>0&&(V*=256);)j+=this[p+--_]*V;return j},t.prototype.readUInt8=function(p,_){return p>>>=0,_||F(p,1,this.length),this[p]},t.prototype.readUInt16LE=function(p,_){return p>>>=0,_||F(p,2,this.length),this[p]|this[p+1]<<8},t.prototype.readUInt16BE=function(p,_){return p>>>=0,_||F(p,2,this.length),this[p]<<8|this[p+1]},t.prototype.readUInt32LE=function(p,_){return p>>>=0,_||F(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+16777216*this[p+3]},t.prototype.readUInt32BE=function(p,_){return p>>>=0,_||F(p,4,this.length),16777216*this[p]+(this[p+1]<<16|this[p+2]<<8|this[p+3])},t.prototype.readIntLE=function(p,_,O){p>>>=0,_>>>=0,O||F(p,_,this.length);for(var j=this[p],V=1,K=0;++K<_&&(V*=256);)j+=this[p+K]*V;return j>=(V*=128)&&(j-=Math.pow(2,8*_)),j},t.prototype.readIntBE=function(p,_,O){p>>>=0,_>>>=0,O||F(p,_,this.length);for(var j=_,V=1,K=this[p+--j];j>0&&(V*=256);)K+=this[p+--j]*V;return K>=(V*=128)&&(K-=Math.pow(2,8*_)),K},t.prototype.readInt8=function(p,_){return p>>>=0,_||F(p,1,this.length),128&this[p]?-1*(255-this[p]+1):this[p]},t.prototype.readInt16LE=function(p,_){p>>>=0,_||F(p,2,this.length);var O=this[p]|this[p+1]<<8;return 32768&O?4294901760|O:O},t.prototype.readInt16BE=function(p,_){p>>>=0,_||F(p,2,this.length);var O=this[p+1]|this[p]<<8;return 32768&O?4294901760|O:O},t.prototype.readInt32LE=function(p,_){return p>>>=0,_||F(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},t.prototype.readInt32BE=function(p,_){return p>>>=0,_||F(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},t.prototype.readFloatLE=function(p,_){return p>>>=0,_||F(p,4,this.length),c.read(this,p,!0,23,4)},t.prototype.readFloatBE=function(p,_){return p>>>=0,_||F(p,4,this.length),c.read(this,p,!1,23,4)},t.prototype.readDoubleLE=function(p,_){return p>>>=0,_||F(p,8,this.length),c.read(this,p,!0,52,8)},t.prototype.readDoubleBE=function(p,_){return p>>>=0,_||F(p,8,this.length),c.read(this,p,!1,52,8)},t.prototype.writeUIntLE=function(p,_,O,j){p=+p,_>>>=0,O>>>=0,j||q(this,p,_,O,Math.pow(2,8*O)-1,0);var V=1,K=0;for(this[_]=255&p;++K<O&&(V*=256);)this[_+K]=p/V&255;return _+O},t.prototype.writeUIntBE=function(p,_,O,j){p=+p,_>>>=0,O>>>=0,j||q(this,p,_,O,Math.pow(2,8*O)-1,0);var V=O-1,K=1;for(this[_+V]=255&p;--V>=0&&(K*=256);)this[_+V]=p/K&255;return _+O},t.prototype.writeUInt8=function(p,_,O){return p=+p,_>>>=0,O||q(this,p,_,1,255,0),this[_]=255&p,_+1},t.prototype.writeUInt16LE=function(p,_,O){return p=+p,_>>>=0,O||q(this,p,_,2,65535,0),this[_]=255&p,this[_+1]=p>>>8,_+2},t.prototype.writeUInt16BE=function(p,_,O){return p=+p,_>>>=0,O||q(this,p,_,2,65535,0),this[_]=p>>>8,this[_+1]=255&p,_+2},t.prototype.writeUInt32LE=function(p,_,O){return p=+p,_>>>=0,O||q(this,p,_,4,4294967295,0),this[_+3]=p>>>24,this[_+2]=p>>>16,this[_+1]=p>>>8,this[_]=255&p,_+4},t.prototype.writeUInt32BE=function(p,_,O){return p=+p,_>>>=0,O||q(this,p,_,4,4294967295,0),this[_]=p>>>24,this[_+1]=p>>>16,this[_+2]=p>>>8,this[_+3]=255&p,_+4},t.prototype.writeIntLE=function(p,_,O,j){if(p=+p,_>>>=0,!j){var V=Math.pow(2,8*O-1);q(this,p,_,O,V-1,-V)}var K=0,Q=1,J=0;for(this[_]=255&p;++K<O&&(Q*=256);)p<0&&J===0&&this[_+K-1]!==0&&(J=1),this[_+K]=(p/Q>>0)-J&255;return _+O},t.prototype.writeIntBE=function(p,_,O,j){if(p=+p,_>>>=0,!j){var V=Math.pow(2,8*O-1);q(this,p,_,O,V-1,-V)}var K=O-1,Q=1,J=0;for(this[_+K]=255&p;--K>=0&&(Q*=256);)p<0&&J===0&&this[_+K+1]!==0&&(J=1),this[_+K]=(p/Q>>0)-J&255;return _+O},t.prototype.writeInt8=function(p,_,O){return p=+p,_>>>=0,O||q(this,p,_,1,127,-128),p<0&&(p=255+p+1),this[_]=255&p,_+1},t.prototype.writeInt16LE=function(p,_,O){return p=+p,_>>>=0,O||q(this,p,_,2,32767,-32768),this[_]=255&p,this[_+1]=p>>>8,_+2},t.prototype.writeInt16BE=function(p,_,O){return p=+p,_>>>=0,O||q(this,p,_,2,32767,-32768),this[_]=p>>>8,this[_+1]=255&p,_+2},t.prototype.writeInt32LE=function(p,_,O){return p=+p,_>>>=0,O||q(this,p,_,4,2147483647,-2147483648),this[_]=255&p,this[_+1]=p>>>8,this[_+2]=p>>>16,this[_+3]=p>>>24,_+4},t.prototype.writeInt32BE=function(p,_,O){return p=+p,_>>>=0,O||q(this,p,_,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[_]=p>>>24,this[_+1]=p>>>16,this[_+2]=p>>>8,this[_+3]=255&p,_+4},t.prototype.writeFloatLE=function(p,_,O){return D(this,p,_,!0,O)},t.prototype.writeFloatBE=function(p,_,O){return D(this,p,_,!1,O)},t.prototype.writeDoubleLE=function(p,_,O){return M(this,p,_,!0,O)},t.prototype.writeDoubleBE=function(p,_,O){return M(this,p,_,!1,O)},t.prototype.copy=function(p,_,O,j){if(!t.isBuffer(p))throw new TypeError("argument should be a Buffer");if(O||(O=0),j||j===0||(j=this.length),_>=p.length&&(_=p.length),_||(_=0),j>0&&j<O&&(j=O),j===O||p.length===0||this.length===0)return 0;if(_<0)throw new RangeError("targetStart out of bounds");if(O<0||O>=this.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("sourceEnd out of bounds");j>this.length&&(j=this.length),p.length-_<j-O&&(j=p.length-_+O);var V=j-O;if(this===p&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(_,O,j);else if(this===p&&O<_&&_<j)for(var K=V-1;K>=0;--K)p[K+_]=this[K+O];else Uint8Array.prototype.set.call(p,this.subarray(O,j),_);return V},t.prototype.fill=function(p,_,O,j){if(typeof p=="string"){if(typeof _=="string"?(j=_,_=0,O=this.length):typeof O=="string"&&(j=O,O=this.length),j!==void 0&&typeof j!="string")throw new TypeError("encoding must be a string");if(typeof j=="string"&&!t.isEncoding(j))throw new TypeError("Unknown encoding: "+j);if(p.length===1){var V=p.charCodeAt(0);(j==="utf8"&&V<128||j==="latin1")&&(p=V)}}else typeof p=="number"&&(p&=255);if(_<0||this.length<_||this.length<O)throw new RangeError("Out of range index");if(O<=_)return this;var K;if(_>>>=0,O=O===void 0?this.length:O>>>0,p||(p=0),typeof p=="number")for(K=_;K<O;++K)this[K]=p;else{var Q=t.isBuffer(p)?p:t.from(p,j),J=Q.length;if(J===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(K=0;K<O-_;++K)this[K+_]=Q[K%J]}return this};var P=/[^+/0-9A-Za-z-_]/g;function z(p){return p<16?"0"+p.toString(16):p.toString(16)}function H(p,_){var O;_=_||1/0;for(var j=p.length,V=null,K=[],Q=0;Q<j;++Q){if((O=p.charCodeAt(Q))>55295&&O<57344){if(!V){if(O>56319){(_-=3)>-1&&K.push(239,191,189);continue}if(Q+1===j){(_-=3)>-1&&K.push(239,191,189);continue}V=O;continue}if(O<56320){(_-=3)>-1&&K.push(239,191,189),V=O;continue}O=65536+(V-55296<<10|O-56320)}else V&&(_-=3)>-1&&K.push(239,191,189);if(V=null,O<128){if((_-=1)<0)break;K.push(O)}else if(O<2048){if((_-=2)<0)break;K.push(O>>6|192,63&O|128)}else if(O<65536){if((_-=3)<0)break;K.push(O>>12|224,O>>6&63|128,63&O|128)}else{if(!(O<1114112))throw new Error("Invalid code point");if((_-=4)<0)break;K.push(O>>18|240,O>>12&63|128,O>>6&63|128,63&O|128)}}return K}function W(p){return u.toByteArray(function(_){if((_=(_=_.split("=")[0]).trim().replace(P,"")).length<2)return"";for(;_.length%4!=0;)_+="=";return _}(p))}function G(p,_,O,j){for(var V=0;V<j&&!(V+O>=_.length||V>=p.length);++V)_[V+O]=p[V];return V}function X(p,_){return p instanceof _||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===_.name}function Y(p){return p!=p}}).call(this)}).call(this,s("buffer").Buffer)},{"base64-js":13,buffer:17,ieee754:23}],18:[function(s,g,w){(function(m){(function(){w.formatArgs=function(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+g.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let r=0,t=0;c[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&a==="%c"&&(t=++r)}),c.splice(t,0,l)},w.save=function(c){try{c?w.storage.setItem("debug",c):w.storage.removeItem("debug")}catch{}},w.load=function(){let c;try{c=w.storage.getItem("debug")}catch{}return!c&&m!==void 0&&"env"in m&&(c=m.env.DEBUG),c},w.useColors=function(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},w.storage=function(){try{return localStorage}catch{}}(),w.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),w.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],w.log=console.debug||console.log||(()=>{}),g.exports=s("./common")(w);const{formatters:u}=g.exports;u.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}).call(this)}).call(this,s("_process"))},{"./common":19,_process:50}],19:[function(s,g,w){g.exports=function(m){function u(r){let t,a,o,n=null;function i(...d){if(!i.enabled)return;const h=i,y=Number(new Date),b=y-(t||y);h.diff=b,h.prev=t,h.curr=y,t=y,d[0]=u.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");let f=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,(x,$)=>{if(x==="%%")return"%";f++;const B=u.formatters[$];if(typeof B=="function"){const E=d[f];x=B.call(h,E),d.splice(f,1),f--}return x}),u.formatArgs.call(h,d),(h.log||u.log).apply(h,d)}return i.namespace=r,i.useColors=u.useColors(),i.color=u.selectColor(r),i.extend=c,i.destroy=u.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>n!==null?n:(a!==u.namespaces&&(a=u.namespaces,o=u.enabled(r)),o),set:d=>{n=d}}),typeof u.init=="function"&&u.init(i),i}function c(r,t){const a=u(this.namespace+(t===void 0?":":t)+r);return a.log=this.log,a}function l(r){return r.toString().substring(2,r.toString().length-2).replace(/\.\*\?$/,"*")}return u.debug=u,u.default=u,u.coerce=function(r){return r instanceof Error?r.stack||r.message:r},u.disable=function(){const r=[...u.names.map(l),...u.skips.map(l).map(t=>"-"+t)].join(",");return u.enable(""),r},u.enable=function(r){let t;u.save(r),u.namespaces=r,u.names=[],u.skips=[];const a=(typeof r=="string"?r:"").split(/[\s,]+/),o=a.length;for(t=0;t<o;t++)a[t]&&((r=a[t].replace(/\*/g,".*?"))[0]==="-"?u.skips.push(new RegExp("^"+r.substr(1)+"$")):u.names.push(new RegExp("^"+r+"$")))},u.enabled=function(r){if(r[r.length-1]==="*")return!0;let t,a;for(t=0,a=u.skips.length;t<a;t++)if(u.skips[t].test(r))return!1;for(t=0,a=u.names.length;t<a;t++)if(u.names[t].test(r))return!0;return!1},u.humanize=s("ms"),u.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(m).forEach(r=>{u[r]=m[r]}),u.names=[],u.skips=[],u.formatters={},u.selectColor=function(r){let t=0;for(let a=0;a<r.length;a++)t=(t<<5)-t+r.charCodeAt(a),t|=0;return u.colors[Math.abs(t)%u.colors.length]},u.enable(u.load()),u}},{ms:45}],20:[function(s,g,w){(function(m,u){(function(){var c=s("readable-stream"),l=s("end-of-stream"),r=s("inherits"),t=s("stream-shift"),a=u.from&&u.from!==Uint8Array.from?u.from([0]):new u([0]),o=function(h,y){h._corked?h.once("uncork",y):y()},n=function(h,y){return function(b){b?function(f,x){f._autoDestroy&&f.destroy(x)}(h,b.message==="premature close"?null:b):y&&!h._ended&&h.end()}},i=function(){},d=function(h,y,b){if(!(this instanceof d))return new d(h,y,b);c.Duplex.call(this,b),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!b||b.autoDestroy!==!1,this._forwardDestroy=!b||b.destroy!==!1,this._forwardEnd=!b||b.end!==!1,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,h&&this.setWritable(h),y&&this.setReadable(y)};r(d,c.Duplex),d.obj=function(h,y,b){return b||(b={}),b.objectMode=!0,b.highWaterMark=16,new d(h,y,b)},d.prototype.cork=function(){++this._corked==1&&this.emit("cork")},d.prototype.uncork=function(){this._corked&&--this._corked==0&&this.emit("uncork")},d.prototype.setWritable=function(h){if(this._unwrite&&this._unwrite(),this.destroyed)h&&h.destroy&&h.destroy();else if(h!==null&&h!==!1){var y=this,b=l(h,{writable:!0,readable:!1},n(this,this._forwardEnd)),f=function(){var x=y._ondrain;y._ondrain=null,x&&x()};this._unwrite&&m.nextTick(f),this._writable=h,this._writable.on("drain",f),this._unwrite=function(){y._writable.removeListener("drain",f),b()},this.uncork()}else this.end()},d.prototype.setReadable=function(h){if(this._unread&&this._unread(),this.destroyed)h&&h.destroy&&h.destroy();else{if(h===null||h===!1)return this.push(null),void this.resume();var y,b=this,f=l(h,{writable:!1,readable:!0},n(this)),x=function(){b._forward()},$=function(){b.push(null)};this._drained=!0,this._readable=h,this._readable2=h._readableState?h:(y=h,new c.Readable({objectMode:!0,highWaterMark:16}).wrap(y)),this._readable2.on("readable",x),this._readable2.on("end",$),this._unread=function(){b._readable2.removeListener("readable",x),b._readable2.removeListener("end",$),f()},this._forward()}},d.prototype._read=function(){this._drained=!0,this._forward()},d.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var h;for(this._forwarding=!0;this._drained&&(h=t(this._readable2))!==null;)this.destroyed||(this._drained=this.push(h));this._forwarding=!1}},d.prototype.destroy=function(h,y){if(y||(y=i),this.destroyed)return y(null);this.destroyed=!0;var b=this;m.nextTick(function(){b._destroy(h),y(null)})},d.prototype._destroy=function(h){if(h){var y=this._ondrain;this._ondrain=null,y?y(h):this.emit("error",h)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},d.prototype._write=function(h,y,b){if(!this.destroyed)return this._corked?o(this,this._write.bind(this,h,y,b)):h===a?this._finish(b):this._writable?void(this._writable.write(h)===!1?this._ondrain=b:this.destroyed||b()):b()},d.prototype._finish=function(h){var y=this;this.emit("preend"),o(this,function(){var b,f;b=y._forwardEnd&&y._writable,f=function(){y._writableState.prefinished===!1&&(y._writableState.prefinished=!0),y.emit("prefinish"),o(y,h)},b?b._writableState&&b._writableState.finished?f():b._writableState?b.end(f):(b.end(),f()):f()})},d.prototype.end=function(h,y,b){return typeof h=="function"?this.end(null,null,h):typeof y=="function"?this.end(h,null,y):(this._ended=!0,h&&this.write(h),this._writableState.ending||this._writableState.destroyed||this.write(a),c.Writable.prototype.end.call(this,b))},g.exports=d}).call(this)}).call(this,s("_process"),s("buffer").Buffer)},{_process:50,buffer:17,"end-of-stream":21,inherits:24,"readable-stream":69,"stream-shift":74}],21:[function(s,g,w){(function(m){(function(){var u=s("once"),c=function(){},l=function(r,t,a){if(typeof t=="function")return l(r,null,t);t||(t={}),a=u(a||c);var o=r._writableState,n=r._readableState,i=t.readable||t.readable!==!1&&r.readable,d=t.writable||t.writable!==!1&&r.writable,h=!1,y=function(){r.writable||b()},b=function(){d=!1,i||a.call(r)},f=function(){i=!1,d||a.call(r)},x=function(U){a.call(r,U?new Error("exited with error code: "+U):null)},$=function(U){a.call(r,U)},B=function(){m.nextTick(E)},E=function(){if(!h)return(!i||n&&n.ended&&!n.destroyed)&&(!d||o&&o.ended&&!o.destroyed)?void 0:a.call(r,new Error("premature close"))},N=function(){r.req.on("finish",b)};return function(U){return U.setHeader&&typeof U.abort=="function"}(r)?(r.on("complete",b),r.on("abort",B),r.req?N():r.on("request",N)):d&&!o&&(r.on("end",y),r.on("close",y)),function(U){return U.stdio&&Array.isArray(U.stdio)&&U.stdio.length===3}(r)&&r.on("exit",x),r.on("end",f),r.on("finish",b),t.error!==!1&&r.on("error",$),r.on("close",B),function(){h=!0,r.removeListener("complete",b),r.removeListener("abort",B),r.removeListener("request",N),r.req&&r.req.removeListener("finish",b),r.removeListener("end",y),r.removeListener("close",y),r.removeListener("finish",b),r.removeListener("exit",x),r.removeListener("end",f),r.removeListener("error",$),r.removeListener("close",B)}};g.exports=l}).call(this)}).call(this,s("_process"))},{_process:50,once:48}],22:[function(s,g,w){var m=Object.create||function(f){var x=function(){};return x.prototype=f,new x},u=Object.keys||function(f){var x=[];for(var $ in f)Object.prototype.hasOwnProperty.call(f,$)&&x.push($);return $},c=Function.prototype.bind||function(f){var x=this;return function(){return x.apply(f,arguments)}};function l(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=m(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}g.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._maxListeners=void 0;var r,t=10;try{var a={};Object.defineProperty&&Object.defineProperty(a,"x",{value:0}),r=a.x===0}catch{r=!1}function o(f){return f._maxListeners===void 0?l.defaultMaxListeners:f._maxListeners}function n(f,x,$,B){var E,N,U;if(typeof $!="function")throw new TypeError('"listener" argument must be a function');if((N=f._events)?(N.newListener&&(f.emit("newListener",x,$.listener?$.listener:$),N=f._events),U=N[x]):(N=f._events=m(null),f._eventsCount=0),U){if(typeof U=="function"?U=N[x]=B?[$,U]:[U,$]:B?U.unshift($):U.push($),!U.warned&&(E=o(f))&&E>0&&U.length>E){U.warned=!0;var R=new Error("Possible EventEmitter memory leak detected. "+U.length+' "'+String(x)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');R.name="MaxListenersExceededWarning",R.emitter=f,R.type=x,R.count=U.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",R.name,R.message)}}else U=N[x]=$,++f._eventsCount;return f}function i(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var f=new Array(arguments.length),x=0;x<f.length;++x)f[x]=arguments[x];this.listener.apply(this.target,f)}}function d(f,x,$){var B={fired:!1,wrapFn:void 0,target:f,type:x,listener:$},E=c.call(i,B);return E.listener=$,B.wrapFn=E,E}function h(f,x,$){var B=f._events;if(!B)return[];var E=B[x];return E?typeof E=="function"?$?[E.listener||E]:[E]:$?function(N){for(var U=new Array(N.length),R=0;R<U.length;++R)U[R]=N[R].listener||N[R];return U}(E):b(E,E.length):[]}function y(f){var x=this._events;if(x){var $=x[f];if(typeof $=="function")return 1;if($)return $.length}return 0}function b(f,x){for(var $=new Array(x),B=0;B<x;++B)$[B]=f[B];return $}r?Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return t},set:function(f){if(typeof f!="number"||f<0||f!=f)throw new TypeError('"defaultMaxListeners" must be a positive number');t=f}}):l.defaultMaxListeners=t,l.prototype.setMaxListeners=function(f){if(typeof f!="number"||f<0||isNaN(f))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=f,this},l.prototype.getMaxListeners=function(){return o(this)},l.prototype.emit=function(f){var x,$,B,E,N,U,R=f==="error";if(U=this._events)R=R&&U.error==null;else if(!R)return!1;if(R){if(arguments.length>1&&(x=arguments[1]),x instanceof Error)throw x;var C=new Error('Unhandled "error" event. ('+x+")");throw C.context=x,C}if(!($=U[f]))return!1;var k=typeof $=="function";switch(B=arguments.length){case 1:(function(T,S,A){if(S)T.call(A);else for(var L=T.length,F=b(T,L),q=0;q<L;++q)F[q].call(A)})($,k,this);break;case 2:(function(T,S,A,L){if(S)T.call(A,L);else for(var F=T.length,q=b(T,F),I=0;I<F;++I)q[I].call(A,L)})($,k,this,arguments[1]);break;case 3:(function(T,S,A,L,F){if(S)T.call(A,L,F);else for(var q=T.length,I=b(T,q),D=0;D<q;++D)I[D].call(A,L,F)})($,k,this,arguments[1],arguments[2]);break;case 4:(function(T,S,A,L,F,q){if(S)T.call(A,L,F,q);else for(var I=T.length,D=b(T,I),M=0;M<I;++M)D[M].call(A,L,F,q)})($,k,this,arguments[1],arguments[2],arguments[3]);break;default:for(E=new Array(B-1),N=1;N<B;N++)E[N-1]=arguments[N];(function(T,S,A,L){if(S)T.apply(A,L);else for(var F=T.length,q=b(T,F),I=0;I<F;++I)q[I].apply(A,L)})($,k,this,E)}return!0},l.prototype.addListener=function(f,x){return n(this,f,x,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(f,x){return n(this,f,x,!0)},l.prototype.once=function(f,x){if(typeof x!="function")throw new TypeError('"listener" argument must be a function');return this.on(f,d(this,f,x)),this},l.prototype.prependOnceListener=function(f,x){if(typeof x!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(f,d(this,f,x)),this},l.prototype.removeListener=function(f,x){var $,B,E,N,U;if(typeof x!="function")throw new TypeError('"listener" argument must be a function');if(!(B=this._events))return this;if(!($=B[f]))return this;if($===x||$.listener===x)--this._eventsCount==0?this._events=m(null):(delete B[f],B.removeListener&&this.emit("removeListener",f,$.listener||x));else if(typeof $!="function"){for(E=-1,N=$.length-1;N>=0;N--)if($[N]===x||$[N].listener===x){U=$[N].listener,E=N;break}if(E<0)return this;E===0?$.shift():function(R,C){for(var k=C,T=k+1,S=R.length;T<S;k+=1,T+=1)R[k]=R[T];R.pop()}($,E),$.length===1&&(B[f]=$[0]),B.removeListener&&this.emit("removeListener",f,U||x)}return this},l.prototype.removeAllListeners=function(f){var x,$,B;if(!($=this._events))return this;if(!$.removeListener)return arguments.length===0?(this._events=m(null),this._eventsCount=0):$[f]&&(--this._eventsCount==0?this._events=m(null):delete $[f]),this;if(arguments.length===0){var E,N=u($);for(B=0;B<N.length;++B)(E=N[B])!=="removeListener"&&this.removeAllListeners(E);return this.removeAllListeners("removeListener"),this._events=m(null),this._eventsCount=0,this}if(typeof(x=$[f])=="function")this.removeListener(f,x);else if(x)for(B=x.length-1;B>=0;B--)this.removeListener(f,x[B]);return this},l.prototype.listeners=function(f){return h(this,f,!0)},l.prototype.rawListeners=function(f){return h(this,f,!1)},l.listenerCount=function(f,x){return typeof f.listenerCount=="function"?f.listenerCount(x):y.call(f,x)},l.prototype.listenerCount=y,l.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],23:[function(s,g,w){w.read=function(m,u,c,l,r){var t,a,o=8*r-l-1,n=(1<<o)-1,i=n>>1,d=-7,h=c?r-1:0,y=c?-1:1,b=m[u+h];for(h+=y,t=b&(1<<-d)-1,b>>=-d,d+=o;d>0;t=256*t+m[u+h],h+=y,d-=8);for(a=t&(1<<-d)-1,t>>=-d,d+=l;d>0;a=256*a+m[u+h],h+=y,d-=8);if(t===0)t=1-i;else{if(t===n)return a?NaN:1/0*(b?-1:1);a+=Math.pow(2,l),t-=i}return(b?-1:1)*a*Math.pow(2,t-l)},w.write=function(m,u,c,l,r,t){var a,o,n,i=8*t-r-1,d=(1<<i)-1,h=d>>1,y=r===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=l?0:t-1,f=l?1:-1,x=u<0||u===0&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(o=isNaN(u)?1:0,a=d):(a=Math.floor(Math.log(u)/Math.LN2),u*(n=Math.pow(2,-a))<1&&(a--,n*=2),(u+=a+h>=1?y/n:y*Math.pow(2,1-h))*n>=2&&(a++,n/=2),a+h>=d?(o=0,a=d):a+h>=1?(o=(u*n-1)*Math.pow(2,r),a+=h):(o=u*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;m[c+b]=255&o,b+=f,o/=256,r-=8);for(a=a<<r|o,i+=r;i>0;m[c+b]=255&a,b+=f,a/=256,i-=8);m[c+b-f]|=128*x}},{}],24:[function(s,g,w){typeof Object.create=="function"?g.exports=function(m,u){u&&(m.super_=u,m.prototype=Object.create(u.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}))}:g.exports=function(m,u){if(u){m.super_=u;var c=function(){};c.prototype=u.prototype,m.prototype=new c,m.prototype.constructor=m}}},{}],25:[function(s,g,w){Object.defineProperty(w,"__esModule",{value:!0});var m=function(){function u(c,l){this.color=!0,this.key=void 0,this.value=void 0,this.parent=void 0,this.brother=void 0,this.leftChild=void 0,this.rightChild=void 0,this.key=c,this.value=l}return u.prototype.rotateLeft=function(){var c=this.parent,l=this.brother,r=this.leftChild,t=this.rightChild;if(!t)throw new Error("unknown error");var a=t.leftChild,o=t.rightChild;return c&&(c.leftChild===this?c.leftChild=t:c.rightChild===this&&(c.rightChild=t)),t.parent=c,t.brother=l,t.leftChild=this,t.rightChild=o,l&&(l.brother=t),this.parent=t,this.brother=o,this.leftChild=r,this.rightChild=a,o&&(o.parent=t,o.brother=this),r&&(r.parent=this,r.brother=a),a&&(a.parent=this,a.brother=r),t},u.prototype.rotateRight=function(){var c=this.parent,l=this.brother,r=this.leftChild;if(!r)throw new Error("unknown error");var t=this.rightChild,a=r.leftChild,o=r.rightChild;return c&&(c.leftChild===this?c.leftChild=r:c.rightChild===this&&(c.rightChild=r)),r.parent=c,r.brother=l,r.leftChild=a,r.rightChild=this,l&&(l.brother=r),a&&(a.parent=r,a.brother=this),this.parent=r,this.brother=a,this.leftChild=o,this.rightChild=t,o&&(o.parent=this,o.brother=t),t&&(t.parent=this,t.brother=o),r},u.prototype.remove=function(){if(this.leftChild||this.rightChild)throw new Error("can only remove leaf node");this.parent&&(this===this.parent.leftChild?this.parent.leftChild=void 0:this===this.parent.rightChild&&(this.parent.rightChild=void 0)),this.brother&&(this.brother.brother=void 0),this.key=void 0,this.value=void 0,this.parent=void 0,this.brother=void 0},u.TreeNodeColorType={red:!0,black:!1},u}();Object.freeze(m),w.default=m},{}],26:[function(s,g,w){var m=this&&this.__generator||function(c,l){var r,t,a,o,n={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function i(d){return function(h){return function(y){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,t&&(a=2&y[0]?t.return:y[0]?t.throw||((a=t.return)&&a.call(t),0):t.next)&&!(a=a.call(t,y[1])).done)return a;switch(t=0,a&&(y=[2&y[0],a.value]),y[0]){case 0:case 1:a=y;break;case 4:return n.label++,{value:y[1],done:!1};case 5:n.label++,t=y[1],y=[0];continue;case 7:y=n.ops.pop(),n.trys.pop();continue;default:if(!(a=(a=n.trys).length>0&&a[a.length-1])&&(y[0]===6||y[0]===2)){n=0;continue}if(y[0]===3&&(!a||y[1]>a[0]&&y[1]<a[3])){n.label=y[1];break}if(y[0]===6&&n.label<a[1]){n.label=a[1],a=y;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(y);break}a[2]&&n.ops.pop(),n.trys.pop();continue}y=l.call(c,n)}catch(b){y=[6,b],t=0}finally{r=a=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([d,h])}}};function u(c){var l=this;c===void 0&&(c=[]);var r=[],t=0,a=0,o=0,n=0,i=0,d=0;this.size=function(){return d},this.empty=function(){return d===0},this.clear=function(){t=o=a=n=i=d=0,y.call(this,u.bucketSize),d=0},this.front=function(){return r[t][a]},this.back=function(){return r[o][n]},this.forEach=function(b){if(!this.empty()){var f=0;if(t!==o){for($=a;$<u.bucketSize;++$)b(r[t][$],f++);for($=t+1;$<o;++$)for(var x=0;x<u.bucketSize;++x)b(r[$][x],f++);for($=0;$<=n;++$)b(r[o][$],f++)}else for(var $=a;$<=n;++$)b(r[t][$],f++)}};var h=function(b){var f=t*u.bucketSize+a,x=f+b,$=o*u.bucketSize+n;if(x<f||x>$)throw new Error("pos should more than 0 and less than queue's size");return{curNodeBucketIndex:Math.floor(x/u.bucketSize),curNodePointerIndex:x%u.bucketSize}};this.getElementByPos=function(b){var f=h(b),x=f.curNodeBucketIndex,$=f.curNodePointerIndex;return r[x][$]},this.eraseElementByPos=function(b){var f=this;if(b<0||b>d)throw new Error("pos should more than 0 and less than queue's size");if(b===0)this.popFront();else if(b===this.size())this.popBack();else{for(var x=[],$=b+1;$<d;++$)x.push(this.getElementByPos($));this.cut(b),this.popBack(),x.forEach(function(B){return f.pushBack(B)})}},this.eraseElementByValue=function(b){if(!this.empty()){var f=[];this.forEach(function(B){B!==b&&f.push(B)});for(var x=f.length,$=0;$<x;++$)this.setElementByPos($,f[$]);this.cut(x-1)}};var y=function(b){for(var f=[],x=b*u.sigma,$=Math.max(Math.ceil(x/u.bucketSize),2),B=0;B<$;++B)f.push(new Array(u.bucketSize));var E=Math.ceil(b/u.bucketSize),N=Math.floor($/2)-Math.floor(E/2),U=N,R=0;if(this.size())for(B=0;B<E;++B){for(var C=0;C<u.bucketSize;++C)if(f[N+B][C]=this.front(),this.popFront(),this.empty()){U=N+B,R=C;break}if(this.empty())break}r=f,t=N,a=0,o=U,n=R,i=$,d=b};this.pushBack=function(b){this.empty()||(o===i-1&&n===u.bucketSize-1&&y.call(this,this.size()),n<u.bucketSize-1?++n:o<i-1&&(++o,n=0)),++d,r[o][n]=b},this.popBack=function(){this.empty()||(this.size()!==1&&(n>0?--n:t<o&&(--o,n=u.bucketSize-1)),d>0&&--d)},this.setElementByPos=function(b,f){var x=h(b),$=x.curNodeBucketIndex,B=x.curNodePointerIndex;r[$][B]=f},this.insert=function(b,f,x){var $=this;if(x===void 0&&(x=1),b===0)for(;x--;)this.pushFront(f);else if(b===this.size())for(;x--;)this.pushBack(f);else{for(var B=[],E=b;E<d;++E)B.push(this.getElementByPos(E));for(this.cut(b-1),E=0;E<x;++E)this.pushBack(f);B.forEach(function(N){return $.pushBack(N)})}},this.find=function(b){if(t===o){for(var f=a;f<=n;++f)if(r[t][f]===b)return!0;return!1}for(f=a;f<u.bucketSize;++f)if(r[t][f]===b)return!0;for(f=t+1;f<o;++f)for(var x=0;x<u.bucketSize;++x)if(r[f][x]===b)return!0;for(f=0;f<=n;++f)if(r[o][f]===b)return!0;return!1},this.reverse=function(){for(var b=0,f=d-1;b<f;){var x=this.getElementByPos(b);this.setElementByPos(b,this.getElementByPos(f)),this.setElementByPos(f,x),++b,--f}},this.unique=function(){if(!this.empty()){var b=[],f=this.front();this.forEach(function($,B){B!==0&&$===f||(b.push($),f=$)});for(var x=0;x<d;++x)this.setElementByPos(x,b[x]);this.cut(b.length-1)}},this.sort=function(b){var f=[];this.forEach(function($){f.push($)}),f.sort(b);for(var x=0;x<d;++x)this.setElementByPos(x,f[x])},this.pushFront=function(b){this.empty()||(t===0&&a===0&&y.call(this,this.size()),a>0?--a:t>0&&(--t,a=u.bucketSize-1)),++d,r[t][a]=b},this.popFront=function(){this.empty()||(this.size()!==1&&(a<u.bucketSize-1?++a:t<o&&(++t,a=0)),d>0&&--d)},this.shrinkToFit=function(){var b=this,f=[];this.forEach(function(E){f.push(E)});var x=f.length;r=[];for(var $=Math.ceil(x/u.bucketSize),B=0;B<$;++B)r.push(new Array(u.bucketSize));this.clear(),f.forEach(function(E){return b.pushBack(E)})},this.cut=function(b){if(b<0)this.clear();else{var f=h(b),x=f.curNodeBucketIndex,$=f.curNodePointerIndex;o=x,n=$,d=b+1}},this[Symbol.iterator]=function(){return function(){var b,f;return m(this,function(x){switch(x.label){case 0:if(d===0)return[2];if(t!==o)return[3,5];f=a,x.label=1;case 1:return f<=n?[4,r[t][f]]:[3,4];case 2:x.sent(),x.label=3;case 3:return++f,[3,1];case 4:return[2];case 5:f=a,x.label=6;case 6:return f<u.bucketSize?[4,r[t][f]]:[3,9];case 7:x.sent(),x.label=8;case 8:return++f,[3,6];case 9:f=t+1,x.label=10;case 10:if(!(f<o))return[3,15];b=0,x.label=11;case 11:return b<u.bucketSize?[4,r[f][b]]:[3,14];case 12:x.sent(),x.label=13;case 13:return++b,[3,11];case 14:return++f,[3,10];case 15:f=0,x.label=16;case 16:return f<=n?[4,r[o][f]]:[3,19];case 17:x.sent(),x.label=18;case 18:return++f,[3,16];case 19:return[2]}})}()},function(){var b=u.bucketSize;c.size?b=c.size():c.length&&(b=c.length);var f=b*u.sigma;i=Math.ceil(f/u.bucketSize),i=Math.max(i,3);for(var x=0;x<i;++x)r.push(new Array(u.bucketSize));var $=Math.ceil(b/u.bucketSize);t=Math.floor(i/2)-Math.floor($/2),o=t,c.forEach(function(B){return l.pushBack(B)})}(),Object.freeze(this)}Object.defineProperty(w,"__esModule",{value:!0}),u.sigma=3,u.bucketSize=5e3,Object.freeze(u),w.default=u},{}],27:[function(s,g,w){var m=this&&this.__generator||function(t,a){var o,n,i,d,h={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(b){return function(f){return function(x){if(o)throw new TypeError("Generator is already executing.");for(;h;)try{if(o=1,n&&(i=2&x[0]?n.return:x[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,x[1])).done)return i;switch(n=0,i&&(x=[2&x[0],i.value]),x[0]){case 0:case 1:i=x;break;case 4:return h.label++,{value:x[1],done:!1};case 5:h.label++,n=x[1],x=[0];continue;case 7:x=h.ops.pop(),h.trys.pop();continue;default:if(!(i=(i=h.trys).length>0&&i[i.length-1])&&(x[0]===6||x[0]===2)){h=0;continue}if(x[0]===3&&(!i||x[1]>i[0]&&x[1]<i[3])){h.label=x[1];break}if(x[0]===6&&h.label<i[1]){h.label=i[1],i=x;break}if(i&&h.label<i[2]){h.label=i[2],h.ops.push(x);break}i[2]&&h.ops.pop(),h.trys.pop();continue}x=a.call(t,h)}catch($){x=[6,$],n=0}finally{o=i=0}if(5&x[0])throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}([b,f])}}},u=this&&this.__values||function(t){var a=typeof Symbol=="function"&&Symbol.iterator,o=a&&t[a],n=0;if(o)return o.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(w,"__esModule",{value:!0});var c=s("../LinkList/LinkList"),l=s("../Map/Map");function r(t,a,o){var n=this;if(t===void 0&&(t=[]),a===void 0&&(a=r.initSize),o=o||function(y){var b,f,x=0,$="";if(typeof y=="number")x=((x=Math.floor(y))<<5)-x,x&=x;else{$=typeof y!="string"?JSON.stringify(y):y;try{for(var B=u($),E=B.next();!E.done;E=B.next())x=(x<<5)-x+E.value.charCodeAt(0),x&=x}catch(N){b={error:N}}finally{try{E&&!E.done&&(f=B.return)&&f.call(B)}finally{if(b)throw b.error}}}return x^=x>>>16},(a&a-1)!=0)throw new Error("initBucketNum must be 2 to the power of n");var i=0,d=[],h=Math.max(r.initSize,Math.min(r.maxSize,a));this.size=function(){return i},this.empty=function(){return i===0},this.clear=function(){i=0,h=a,d=[]},this.forEach=function(y){var b=0;d.forEach(function(f){f.forEach(function(x){y(x,b++)})})},this.setElement=function(y,b){var f,x;if(y==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(b!=null){var $=o(y)&h-1;if(d[$]){var B=d[$].size();if(d[$]instanceof c.default){try{for(var E=u(d[$]),N=E.next();!N.done;N=E.next()){var U=N.value;if(U.key===y)return void(U.value=b)}}catch(C){f={error:C}}finally{try{N&&!N.done&&(x=E.return)&&x.call(E)}finally{if(f)throw f.error}}d[$].pushBack({key:y,value:b}),d[$].size()>=r.treeifyThreshold&&(d[$]=new l.default(d[$]))}else d[$].setElement(y,b);var R=d[$].size();i+=R-B}else++i,d[$]=new c.default([{key:y,value:b}]);i>h*r.sigma&&(function(C){if(!(C>=r.maxSize)){h=2*C;var k=[];d.forEach(function(T,S){if(!T.empty()){if(T instanceof c.default&&T.size()===1){var A=T.front(),L=A.key,F=A.value;k[o(L)&h-1]=new c.default([{key:L,value:F}])}else if(T instanceof l.default){var q=new c.default,I=new c.default;T.forEach(function(P){o(P.key)&C?I.pushBack(P):q.pushBack(P)}),q.size()>r.untreeifyThreshold?k[S]=new l.default(q):q.size()&&(k[S]=q),I.size()>r.untreeifyThreshold?k[S+C]=new l.default(I):I.size()&&(k[S+C]=I)}else{var D=new c.default,M=new c.default;T.forEach(function(P){o(P.key)&C?M.pushBack(P):D.pushBack(P)}),D.size()&&(k[S]=D),M.size()&&(k[S+C]=M)}d[S].clear()}}),d=k}}).call(this,h)}else this.eraseElementByKey(y)},this.getElementByKey=function(y){var b,f,x=o(y)&h-1;if(d[x]){if(d[x]instanceof l.default)return d[x].getElementByKey(y);try{for(var $=u(d[x]),B=$.next();!B.done;B=$.next()){var E=B.value;if(E.key===y)return E.value}}catch(N){b={error:N}}finally{try{B&&!B.done&&(f=$.return)&&f.call($)}finally{if(b)throw b.error}}}},this.eraseElementByKey=function(y){var b,f,x=o(y)&h-1;if(d[x]){var $=d[x].size();if(d[x]instanceof l.default)d[x].eraseElementByKey(y),d[x].size()<=r.untreeifyThreshold&&(d[x]=new c.default(d[x]));else{var B=-1;try{for(var E=u(d[x]),N=E.next();!N.done;N=E.next())if(++B,N.value.key===y){d[x].eraseElementByPos(B);break}}catch(R){b={error:R}}finally{try{N&&!N.done&&(f=E.return)&&f.call(E)}finally{if(b)throw b.error}}}var U=d[x].size();i+=U-$}},this.find=function(y){var b,f,x=o(y)&h-1;if(!d[x])return!1;if(d[x]instanceof l.default)return d[x].find(y);try{for(var $=u(d[x]),B=$.next();!B.done;B=$.next())if(B.value.key===y)return!0}catch(E){b={error:E}}finally{try{B&&!B.done&&(f=$.return)&&f.call($)}finally{if(b)throw b.error}}return!1},this[Symbol.iterator]=function(){return function(){var y,b,f,x,$,B;return m(this,function(E){switch(E.label){case 0:y=0,E.label=1;case 1:if(!(y<h))return[3,10];for(;y<h&&!d[y];)++y;if(y>=h)return[3,10];E.label=2;case 2:E.trys.push([2,7,8,9]),$=void 0,b=u(d[y]),f=b.next(),E.label=3;case 3:return f.done?[3,6]:[4,f.value];case 4:E.sent(),E.label=5;case 5:return f=b.next(),[3,3];case 6:return[3,9];case 7:return x=E.sent(),$={error:x},[3,9];case 8:try{f&&!f.done&&(B=b.return)&&B.call(b)}finally{if($)throw $.error}return[7];case 9:return++y,[3,1];case 10:return[2]}})}()},t.forEach(function(y){var b=y.key,f=y.value;return n.setElement(b,f)}),Object.freeze(this)}r.initSize=16,r.maxSize=1<<30,r.sigma=.75,r.treeifyThreshold=8,r.untreeifyThreshold=6,r.minTreeifySize=64,Object.freeze(r),w.default=r},{"../LinkList/LinkList":29,"../Map/Map":30}],28:[function(s,g,w){var m=this&&this.__generator||function(t,a){var o,n,i,d,h={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(b){return function(f){return function(x){if(o)throw new TypeError("Generator is already executing.");for(;h;)try{if(o=1,n&&(i=2&x[0]?n.return:x[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,x[1])).done)return i;switch(n=0,i&&(x=[2&x[0],i.value]),x[0]){case 0:case 1:i=x;break;case 4:return h.label++,{value:x[1],done:!1};case 5:h.label++,n=x[1],x=[0];continue;case 7:x=h.ops.pop(),h.trys.pop();continue;default:if(!(i=(i=h.trys).length>0&&i[i.length-1])&&(x[0]===6||x[0]===2)){h=0;continue}if(x[0]===3&&(!i||x[1]>i[0]&&x[1]<i[3])){h.label=x[1];break}if(x[0]===6&&h.label<i[1]){h.label=i[1],i=x;break}if(i&&h.label<i[2]){h.label=i[2],h.ops.push(x);break}i[2]&&h.ops.pop(),h.trys.pop();continue}x=a.call(t,h)}catch($){x=[6,$],n=0}finally{o=i=0}if(5&x[0])throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}([b,f])}}},u=this&&this.__values||function(t){var a=typeof Symbol=="function"&&Symbol.iterator,o=a&&t[a],n=0;if(o)return o.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(w,"__esModule",{value:!0});var c=s("../Set/Set"),l=s("../LinkList/LinkList");function r(t,a,o){var n=this;if(t===void 0&&(t=[]),a===void 0&&(a=r.initSize),o=o||function(y){var b=0,f="";if(typeof y=="number")b=((b=Math.floor(y))<<5)-b,b&=b;else{f=typeof y!="string"?JSON.stringify(y):y;for(var x=0;x<f.length;x++)b=(b<<5)-b+f.charCodeAt(x),b&=b}return b^=b>>>16},(a&a-1)!=0)throw new Error("initBucketNum must be 2 to the power of n");var i=0,d=[],h=Math.max(r.initSize,Math.min(r.maxSize,a));this.size=function(){return i},this.empty=function(){return i===0},this.clear=function(){i=0,h=a,d=[]},this.forEach=function(y){var b=0;d.forEach(function(f){f.forEach(function(x){y(x,b++)})})},this.insert=function(y){if(y==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");var b=o(y)&h-1;if(d[b]){var f=d[b].size();if(d[b]instanceof l.default){if(d[b].find(y))return;d[b].pushBack(y),d[b].size()>=r.treeifyThreshold&&(d[b]=new c.default(d[b]))}else d[b].insert(y);var x=d[b].size();i+=x-f}else d[b]=new l.default([y]),++i;i>h*r.sigma&&(function($){if(!($>=r.maxSize)){h=2*$;var B=[];d.forEach(function(E,N){if(!E.empty()){if(E instanceof l.default&&E.size()===1){var U=E.front();if(U===void 0)throw new Error("unknown error");B[o(U)&h-1]=new l.default([U])}else if(E instanceof c.default){var R=new l.default,C=new l.default;E.forEach(function(S){o(S)&$?C.pushBack(S):R.pushBack(S)}),R.size()>r.untreeifyThreshold?B[N]=new c.default(R):R.size()&&(B[N]=R),C.size()>r.untreeifyThreshold?B[N+$]=new c.default(C):C.size()&&(B[N+$]=C)}else{var k=new l.default,T=new l.default;E.forEach(function(S){o(S)&$?T.pushBack(S):k.pushBack(S)}),k.size()&&(B[N]=k),T.size()&&(B[N+$]=T)}d[N].clear()}}),d=B}}).call(this,h)},this.eraseElementByValue=function(y){var b=o(y)&h-1;if(d[b]){var f=d[b].size();d[b].eraseElementByValue(y),d[b]instanceof c.default&&d[b].size()<=r.untreeifyThreshold&&(d[b]=new l.default(d[b]));var x=d[b].size();i+=x-f}},this.find=function(y){var b=o(y)&h-1;return!!d[b]&&d[b].find(y)},this[Symbol.iterator]=function(){return function(){var y,b,f,x,$,B;return m(this,function(E){switch(E.label){case 0:y=0,E.label=1;case 1:if(!(y<h))return[3,10];for(;y<h&&!d[y];)++y;if(y>=h)return[3,10];E.label=2;case 2:E.trys.push([2,7,8,9]),$=void 0,b=u(d[y]),f=b.next(),E.label=3;case 3:return f.done?[3,6]:[4,f.value];case 4:E.sent(),E.label=5;case 5:return f=b.next(),[3,3];case 6:return[3,9];case 7:return x=E.sent(),$={error:x},[3,9];case 8:try{f&&!f.done&&(B=b.return)&&B.call(b)}finally{if($)throw $.error}return[7];case 9:return++y,[3,1];case 10:return[2]}})}()},t.forEach(function(y){return n.insert(y)}),Object.freeze(this)}r.initSize=16,r.maxSize=1<<30,r.sigma=.75,r.treeifyThreshold=8,r.untreeifyThreshold=6,r.minTreeifySize=64,Object.freeze(r),w.default=r},{"../LinkList/LinkList":29,"../Set/Set":33}],29:[function(s,g,w){var m=this&&this.__generator||function(l,r){var t,a,o,n,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function d(h){return function(y){return function(b){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,a&&(o=2&b[0]?a.return:b[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,b[1])).done)return o;switch(a=0,o&&(b=[2&b[0],o.value]),b[0]){case 0:case 1:o=b;break;case 4:return i.label++,{value:b[1],done:!1};case 5:i.label++,a=b[1],b=[0];continue;case 7:b=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(b[0]===6||b[0]===2)){i=0;continue}if(b[0]===3&&(!o||b[1]>o[0]&&b[1]<o[3])){i.label=b[1];break}if(b[0]===6&&i.label<o[1]){i.label=o[1],o=b;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(b);break}o[2]&&i.ops.pop(),i.trys.pop();continue}b=r.call(l,i)}catch(f){b=[6,f],a=0}finally{t=o=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([h,y])}}};Object.defineProperty(w,"__esModule",{value:!0});var u=function(){return function(l){this.value=void 0,this.pre=void 0,this.next=void 0,this.value=l}}();function c(l){var r=this;l===void 0&&(l=[]);var t=0,a=void 0,o=void 0;this.size=function(){return t},this.empty=function(){return t===0},this.clear=function(){a=o=void 0,t=0},this.front=function(){return a==null?void 0:a.value},this.back=function(){return o==null?void 0:o.value},this.forEach=function(n){for(var i=a,d=0;i;){if(i.value===void 0)throw new Error("unknown error");n(i.value,d++),i=i.next}},this.getElementByPos=function(n){if(n<0||n>=t)throw new Error("pos must more then 0 and less then the list length");for(var i=a;n--&&i;)i=i.next;if(!i||i.value===void 0)throw new Error("unknown error");return i.value},this.eraseElementByPos=function(n){if(n<0||n>=t)throw new Error("erase pos must more then 0 and less then the list length");if(n===0)this.popFront();else if(n===t-1)this.popBack();else{for(var i=a;n--;){if(!(i!=null&&i.next))throw new Error("unknown error");i=i.next}if(!i||!i.pre||!i.next)throw new Error("unknown error");var d=i.pre,h=i.next;h.pre=d,d.next=h,t>0&&--t}},this.eraseElementByValue=function(n){for(;a&&a.value===n;)this.popFront();for(;o&&o.value===n;)this.popBack();if(a)for(var i=a;i;){if(i.value===n){var d=i.pre,h=i.next;h&&(h.pre=d),d&&(d.next=h),t>0&&--t}i=i.next}},this.pushBack=function(n){if(n==null)throw new Error("you can't push null or undefined here");++t;var i=new u(n);o?(o.next=i,i.pre=o,o=i):a=o=i},this.popBack=function(){o&&(t>0&&--t,o&&(a===o?a=o=void 0:(o=o.pre)&&(o.next=void 0)))},this.setElementByPos=function(n,i){if(i==null)throw new Error("you can't set null or undefined here");if(n<0||n>=t)throw new Error("pos must more then 0 and less then the list length");for(var d=a;n--;){if(!d)throw new Error("unknown error");d=d.next}d&&(d.value=i)},this.insert=function(n,i,d){if(d===void 0&&(d=1),i==null)throw new Error("you can't insert null or undefined here");if(n<0||n>t)throw new Error("insert pos must more then 0 and less then or equal to the list length");if(d<0)throw new Error("insert size must more than 0");if(n===0)for(;d--;)this.pushFront(i);else if(n===t)for(;d--;)this.pushBack(i);else{for(var h=a,y=1;y<n;++y){if(!(h!=null&&h.next))throw new Error("unknown error");h=h==null?void 0:h.next}if(!h)throw new Error("unknown error");var b=h.next;for(t+=d;d--;)h.next=new u(i),h.next.pre=h,h=h.next;h.next=b,b&&(b.pre=h)}},this.find=function(n){for(var i=a;i;){if(i.value===n)return!0;i=i.next}return!1},this.reverse=function(){for(var n=a,i=o,d=0;n&&i&&2*d<t;){var h=n.value;n.value=i.value,i.value=h,n=n.next,i=i.pre,++d}},this.unique=function(){for(var n=a;n;){for(var i=n;i&&i.next&&i.value===i.next.value;)i=i.next,t>0&&--t;n.next=i.next,n.next&&(n.next.pre=n),n=n.next}},this.sort=function(n){var i=[];this.forEach(function(h){i.push(h)}),i.sort(n);var d=a;i.forEach(function(h){d&&(d.value=h,d=d.next)})},this.pushFront=function(n){if(n==null)throw new Error("you can't push null or undefined here");++t;var i=new u(n);a?(i.next=a,a.pre=i,a=i):a=o=i},this.popFront=function(){a&&(t>0&&--t,a&&(a===o?a=o=void 0:(a=a.next)&&(a.pre=void 0)))},this.merge=function(n){var i=this,d=a;n.forEach(function(h){for(;d&&d.value!==void 0&&d.value<=h;)d=d.next;if(d===void 0)i.pushBack(h),d=o;else if(d===a)i.pushFront(h),d=a;else{++t;var y=d.pre;y&&(y.next=new u(h),y.next.pre=y,y.next.next=d,d&&(d.pre=y.next))}})},this[Symbol.iterator]=function(){return function(){var n;return m(this,function(i){switch(i.label){case 0:n=a,i.label=1;case 1:if(n===void 0)return[3,3];if(!n.value)throw new Error("unknown error");return[4,n.value];case 2:return i.sent(),n=n.next,[3,1];case 3:return[2]}})}()},l.forEach(function(n){return r.pushBack(n)}),Object.freeze(this)}Object.freeze(c),w.default=c},{}],30:[function(s,g,w){var m=this&&this.__generator||function(r,t){var a,o,n,i,d={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function h(y){return function(b){return function(f){if(a)throw new TypeError("Generator is already executing.");for(;d;)try{if(a=1,o&&(n=2&f[0]?o.return:f[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,f[1])).done)return n;switch(o=0,n&&(f=[2&f[0],n.value]),f[0]){case 0:case 1:n=f;break;case 4:return d.label++,{value:f[1],done:!1};case 5:d.label++,o=f[1],f=[0];continue;case 7:f=d.ops.pop(),d.trys.pop();continue;default:if(!(n=(n=d.trys).length>0&&n[n.length-1])&&(f[0]===6||f[0]===2)){d=0;continue}if(f[0]===3&&(!n||f[1]>n[0]&&f[1]<n[3])){d.label=f[1];break}if(f[0]===6&&d.label<n[1]){d.label=n[1],n=f;break}if(n&&d.label<n[2]){d.label=n[2],d.ops.push(f);break}n[2]&&d.ops.pop(),d.trys.pop();continue}f=t.call(r,d)}catch(x){f=[6,x],o=0}finally{a=n=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([y,b])}}},u=this&&this.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,a=t&&r[t],o=0;if(a)return a.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(w,"__esModule",{value:!0});var c=s("../Base/TreeNode");function l(r,t){var a=this;r===void 0&&(r=[]),t=t||function(C,k){return C<k?-1:C>k?1:0};var o=0,n=new c.default;n.color=c.default.TreeNodeColorType.black,this.size=function(){return o},this.empty=function(){return o===0},this.clear=function(){o=0,n.key=n.value=void 0,n.leftChild=n.rightChild=n.brother=void 0};var i=function(C){if(!C||C.key===void 0)throw new Error("unknown error");return C.leftChild?i(C.leftChild):C},d=function(C){if(!C||C.key===void 0)throw new Error("unknown error");return C.rightChild?d(C.rightChild):C};this.front=function(){if(!this.empty()){var C=i(n);if(C.key===void 0||C.value===void 0)throw new Error("unknown error");return{key:C.key,value:C.value}}},this.back=function(){if(!this.empty()){var C=d(n);if(C.key===void 0||C.value===void 0)throw new Error("unknown error");return{key:C.key,value:C.value}}},this.forEach=function(C){var k,T,S=0;try{for(var A=u(this),L=A.next();!L.done;L=A.next())C(L.value,S++)}catch(F){k={error:F}}finally{try{L&&!L.done&&(T=A.return)&&T.call(A)}finally{if(k)throw k.error}}},this.getElementByPos=function(C){var k,T;if(C<0||C>=this.size())throw new Error("pos must more than 0 and less than set's size");var S=0;try{for(var A=u(this),L=A.next();!L.done;L=A.next()){var F=L.value;if(S===C)return F;++S}}catch(q){k={error:q}}finally{try{L&&!L.done&&(T=A.return)&&T.call(A)}finally{if(k)throw k.error}}throw new Error("unknown Error")};var h=function(C,k){if(C&&C.key!==void 0&&C.value!==void 0){var T=t(C.key,k);return T===0?{key:C.key,value:C.value}:T<0?h(C.rightChild,k):h(C.leftChild,k)||{key:C.key,value:C.value}}};this.lowerBound=function(C){return h(n,C)};var y=function(C,k){if(C&&C.key!==void 0&&C.value!==void 0)return t(C.key,k)<=0?y(C.rightChild,k):y(C.leftChild,k)||{key:C.key,value:C.value}};this.upperBound=function(C){return y(n,C)};var b=function(C,k){if(C&&C.key!==void 0&&C.value!==void 0){var T=t(C.key,k);return T===0?{key:C.key,value:C.value}:T>0?b(C.leftChild,k):b(C.rightChild,k)||{key:C.key,value:C.value}}};this.reverseLowerBound=function(C){return b(n,C)};var f=function(C,k){if(C&&C.key!==void 0&&C.value!==void 0)return t(C.key,k)>=0?f(C.leftChild,k):f(C.rightChild,k)||{key:C.key,value:C.value}};this.reverseUpperBound=function(C){return f(n,C)};var x=function(C){var k=C.parent;if(!k){if(C===n)return;throw new Error("unknown error")}if(C.color!==c.default.TreeNodeColorType.red){var T=C.brother;if(!T)throw new Error("unknown error");if(C===k.leftChild)if(T.color===c.default.TreeNodeColorType.red){T.color=c.default.TreeNodeColorType.black,k.color=c.default.TreeNodeColorType.red;var S=k.rotateLeft();n===k&&(n=S),x(C)}else T.color===c.default.TreeNodeColorType.black&&(T.rightChild&&T.rightChild.color===c.default.TreeNodeColorType.red?(T.color=k.color,k.color=c.default.TreeNodeColorType.black,T.rightChild&&(T.rightChild.color=c.default.TreeNodeColorType.black),S=k.rotateLeft(),n===k&&(n=S),C.color=c.default.TreeNodeColorType.black):T.rightChild&&T.rightChild.color!==c.default.TreeNodeColorType.black||!T.leftChild||T.leftChild.color!==c.default.TreeNodeColorType.red?T.leftChild&&T.leftChild.color!==c.default.TreeNodeColorType.black||T.rightChild&&T.rightChild.color!==c.default.TreeNodeColorType.black||(T.color=c.default.TreeNodeColorType.red,x(k)):(T.color=c.default.TreeNodeColorType.red,T.leftChild&&(T.leftChild.color=c.default.TreeNodeColorType.black),S=T.rotateRight(),n===T&&(n=S),x(C)));else C===k.rightChild&&(T.color===c.default.TreeNodeColorType.red?(T.color=c.default.TreeNodeColorType.black,k.color=c.default.TreeNodeColorType.red,S=k.rotateRight(),n===k&&(n=S),x(C)):T.color===c.default.TreeNodeColorType.black&&(T.leftChild&&T.leftChild.color===c.default.TreeNodeColorType.red?(T.color=k.color,k.color=c.default.TreeNodeColorType.black,T.leftChild&&(T.leftChild.color=c.default.TreeNodeColorType.black),S=k.rotateRight(),n===k&&(n=S),C.color=c.default.TreeNodeColorType.black):T.leftChild&&T.leftChild.color!==c.default.TreeNodeColorType.black||!T.rightChild||T.rightChild.color!==c.default.TreeNodeColorType.red?T.leftChild&&T.leftChild.color!==c.default.TreeNodeColorType.black||T.rightChild&&T.rightChild.color!==c.default.TreeNodeColorType.black||(T.color=c.default.TreeNodeColorType.red,x(k)):(T.color=c.default.TreeNodeColorType.red,T.rightChild&&(T.rightChild.color=c.default.TreeNodeColorType.black),S=T.rotateLeft(),n===T&&(n=S),x(C))))}else C.color=c.default.TreeNodeColorType.black},$=function(C){for(var k=C;k.leftChild||k.rightChild;){if(k.rightChild){k=i(k.rightChild);var T=C.key;C.key=k.key,k.key=T;var S=C.value;C.value=k.value,k.value=S,C=k}k.leftChild&&(k=d(k.leftChild),T=C.key,C.key=k.key,k.key=T,S=C.value,C.value=k.value,k.value=S,C=k)}x(k),k&&k.remove(),--o,n.color=c.default.TreeNodeColorType.black},B=function(C,k){return!(!C||C.key===void 0)&&(!!B(C.leftChild,k)||!!k(C)||B(C.rightChild,k))};this.eraseElementByPos=function(C){if(C<0||C>=o)throw new Error("pos must more than 0 and less than set's size");var k=0;B(n,function(T){return C===k?($(T),!0):(++k,!1)})},this.eraseElementByKey=function(C){if(!this.empty()){var k=U(n,C);k!==void 0&&k.key!==void 0&&t(k.key,C)===0&&$(k)}};var E=function(C,k){if(!C||C.key===void 0)throw new Error("unknown error");var T=t(k,C.key);return T<0?C.leftChild?E(C.leftChild,k):(C.leftChild=new c.default,C.leftChild.parent=C,C.leftChild.brother=C.rightChild,C.rightChild&&(C.rightChild.brother=C.leftChild),C.leftChild):T>0?C.rightChild?E(C.rightChild,k):(C.rightChild=new c.default,C.rightChild.parent=C,C.rightChild.brother=C.leftChild,C.leftChild&&(C.leftChild.brother=C.rightChild),C.rightChild):C},N=function(C){var k=C.parent;if(!k){if(C===n)return;throw new Error("unknown error")}if(k.color!==c.default.TreeNodeColorType.black&&k.color===c.default.TreeNodeColorType.red){var T=k.brother,S=k.parent;if(!S)throw new Error("unknown error");if(T&&T.color===c.default.TreeNodeColorType.red)T.color=k.color=c.default.TreeNodeColorType.black,S.color=c.default.TreeNodeColorType.red,N(S);else if(!T||T.color===c.default.TreeNodeColorType.black)if(k===S.leftChild)if(C===k.leftChild){k.color=c.default.TreeNodeColorType.black,S.color=c.default.TreeNodeColorType.red;var A=S.rotateRight();S===n&&(n=A)}else C===k.rightChild&&(A=k.rotateLeft(),S===n&&(n=A),N(k));else k===S.rightChild&&(C===k.leftChild?(A=k.rotateRight(),S===n&&(n=A),N(k)):C===k.rightChild&&(k.color=c.default.TreeNodeColorType.black,S.color=c.default.TreeNodeColorType.red,A=S.rotateLeft(),S===n&&(n=A)))}};this.setElement=function(C,k){if(C==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(k!=null){if(this.empty())return++o,n.key=C,n.value=k,void(n.color=c.default.TreeNodeColorType.black);var T=E(n,C);T.key===void 0||t(T.key,C)!==0?(++o,T.key=C,T.value=k,N(T),n.color=c.default.TreeNodeColorType.black):T.value=k}else this.eraseElementByKey(C)};var U=function(C,k){if(C&&C.key!==void 0){var T=t(k,C.key);return T<0?U(C.leftChild,k):T>0?U(C.rightChild,k):C}};this.find=function(C){return!!U(n,C)},this.getElementByKey=function(C){var k=U(n,C);if((k==null?void 0:k.key)===void 0||(k==null?void 0:k.value)===void 0)throw new Error("unknown error");return k.value},this.union=function(C){var k=this;C.forEach(function(T){var S=T.key,A=T.value;return k.setElement(S,A)})},this.getHeight=function(){if(this.empty())return 0;var C=function(k){return k?Math.max(C(k.leftChild),C(k.rightChild))+1:1};return C(n)};var R=function(C){return m(this,function(k){switch(k.label){case 0:return C&&C.key!==void 0&&C.value!==void 0?[5,u(R(C.leftChild))]:[2];case 1:return k.sent(),[4,{key:C.key,value:C.value}];case 2:return k.sent(),[5,u(R(C.rightChild))];case 3:return k.sent(),[2]}})};this[Symbol.iterator]=function(){return R(n)},r.forEach(function(C){var k=C.key,T=C.value;return a.setElement(k,T)}),Object.freeze(this)}Object.freeze(l),w.default=l},{"../Base/TreeNode":25}],31:[function(s,g,w){function m(u,c){u===void 0&&(u=[]),c=c||function(o,n){return o>n?-1:o<n?1:0};var l=[];u.forEach(function(o){return l.push(o)});var r=l.length,t=function(o,n){if(o<0||o>=r)throw new Error("unknown error");if(n<0||n>=r)throw new Error("unknown error");var i=l[o];l[o]=l[n],l[n]=i},a=function(o){if(o<0||o>=r)throw new Error("unknown error");var n=2*o+1,i=2*o+2;n<r&&c(l[o],l[n])>0&&t(o,n),i<r&&c(l[o],l[i])>0&&t(o,i)};(function(){for(var o=Math.floor((r-1)/2);o>=0;--o)for(var n=o,i=2*n+1;i<r;){var d=i+1,h=i;if(d<r&&c(l[i],l[d])>0&&(h=d),c(l[n],l[h])<=0)break;t(n,h),i=2*(n=h)+1}})(),this.size=function(){return r},this.empty=function(){return r===0},this.clear=function(){r=0,l.length=0},this.push=function(o){if(l.push(o),++r!==1)for(var n=r-1;n>0;){var i=Math.floor((n-1)/2);if(c(l[i],o)<=0)break;a(i),n=i}},this.pop=function(){if(!this.empty())if(this.size()!==1){var o=l[r-1];--r;for(var n=0;n<this.size();){var i=2*n+1,d=2*n+2;if(i>=this.size())break;var h=i;if(d<this.size()&&c(l[i],l[d])>0&&(h=d),c(l[h],o)>=0)break;l[n]=l[h],n=h}l[n]=o}else--r},this.top=function(){return l[0]},Object.freeze(this)}Object.defineProperty(w,"__esModule",{value:!0}),Object.freeze(m),w.default=m},{}],32:[function(s,g,w){Object.defineProperty(w,"__esModule",{value:!0});var m=s("../LinkList/LinkList");function u(c){c===void 0&&(c=[]);var l=new m.default(c);this.size=function(){return l.size()},this.empty=function(){return l.empty()},this.clear=function(){l.clear()},this.push=function(r){l.pushBack(r)},this.pop=function(){l.popFront()},this.front=function(){return l.front()},Object.freeze(this)}Object.freeze(u),w.default=u},{"../LinkList/LinkList":29}],33:[function(s,g,w){var m=this&&this.__generator||function(r,t){var a,o,n,i,d={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function h(y){return function(b){return function(f){if(a)throw new TypeError("Generator is already executing.");for(;d;)try{if(a=1,o&&(n=2&f[0]?o.return:f[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,f[1])).done)return n;switch(o=0,n&&(f=[2&f[0],n.value]),f[0]){case 0:case 1:n=f;break;case 4:return d.label++,{value:f[1],done:!1};case 5:d.label++,o=f[1],f=[0];continue;case 7:f=d.ops.pop(),d.trys.pop();continue;default:if(!(n=(n=d.trys).length>0&&n[n.length-1])&&(f[0]===6||f[0]===2)){d=0;continue}if(f[0]===3&&(!n||f[1]>n[0]&&f[1]<n[3])){d.label=f[1];break}if(f[0]===6&&d.label<n[1]){d.label=n[1],n=f;break}if(n&&d.label<n[2]){d.label=n[2],d.ops.push(f);break}n[2]&&d.ops.pop(),d.trys.pop();continue}f=t.call(r,d)}catch(x){f=[6,x],o=0}finally{a=n=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([y,b])}}},u=this&&this.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,a=t&&r[t],o=0;if(a)return a.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(w,"__esModule",{value:!0});var c=s("../Base/TreeNode");function l(r,t){var a=this;r===void 0&&(r=[]),t=t||function(C,k){return C<k?-1:C>k?1:0};var o=0,n=new c.default;n.color=c.default.TreeNodeColorType.black,this.size=function(){return o},this.empty=function(){return o===0},this.clear=function(){o=0,n.key=void 0,n.leftChild=n.rightChild=n.brother=n.parent=void 0,n.color=c.default.TreeNodeColorType.black};var i=function(C){if(!C||C.key===void 0)throw new Error("unknown error");return C.leftChild?i(C.leftChild):C},d=function(C){if(!C||C.key===void 0)throw new Error("unknown error");return C.rightChild?d(C.rightChild):C};this.front=function(){if(!this.empty())return i(n).key},this.back=function(){if(!this.empty())return d(n).key},this.forEach=function(C){var k,T,S=0;try{for(var A=u(this),L=A.next();!L.done;L=A.next())C(L.value,S++)}catch(F){k={error:F}}finally{try{L&&!L.done&&(T=A.return)&&T.call(A)}finally{if(k)throw k.error}}},this.getElementByPos=function(C){var k,T;if(C<0||C>=this.size())throw new Error("pos must more than 0 and less than set's size");var S=0;try{for(var A=u(this),L=A.next();!L.done;L=A.next()){var F=L.value;if(S===C)return F;++S}}catch(q){k={error:q}}finally{try{L&&!L.done&&(T=A.return)&&T.call(A)}finally{if(k)throw k.error}}throw new Error("unknown error")};var h=function(C){var k=C.parent;if(!k){if(C===n)return;throw new Error("unknown error")}if(C.color!==c.default.TreeNodeColorType.red){var T=C.brother;if(!T)throw new Error("unknown error");if(C===k.leftChild)if(T.color===c.default.TreeNodeColorType.red){T.color=c.default.TreeNodeColorType.black,k.color=c.default.TreeNodeColorType.red;var S=k.rotateLeft();n===k&&(n=S),h(C)}else T.color===c.default.TreeNodeColorType.black&&(T.rightChild&&T.rightChild.color===c.default.TreeNodeColorType.red?(T.color=k.color,k.color=c.default.TreeNodeColorType.black,T.rightChild&&(T.rightChild.color=c.default.TreeNodeColorType.black),S=k.rotateLeft(),n===k&&(n=S),C.color=c.default.TreeNodeColorType.black):T.rightChild&&T.rightChild.color!==c.default.TreeNodeColorType.black||!T.leftChild||T.leftChild.color!==c.default.TreeNodeColorType.red?T.leftChild&&T.leftChild.color!==c.default.TreeNodeColorType.black||T.rightChild&&T.rightChild.color!==c.default.TreeNodeColorType.black||(T.color=c.default.TreeNodeColorType.red,h(k)):(T.color=c.default.TreeNodeColorType.red,T.leftChild&&(T.leftChild.color=c.default.TreeNodeColorType.black),S=T.rotateRight(),n===T&&(n=S),h(C)));else C===k.rightChild&&(T.color===c.default.TreeNodeColorType.red?(T.color=c.default.TreeNodeColorType.black,k.color=c.default.TreeNodeColorType.red,S=k.rotateRight(),n===k&&(n=S),h(C)):T.color===c.default.TreeNodeColorType.black&&(T.leftChild&&T.leftChild.color===c.default.TreeNodeColorType.red?(T.color=k.color,k.color=c.default.TreeNodeColorType.black,T.leftChild&&(T.leftChild.color=c.default.TreeNodeColorType.black),S=k.rotateRight(),n===k&&(n=S),C.color=c.default.TreeNodeColorType.black):T.leftChild&&T.leftChild.color!==c.default.TreeNodeColorType.black||!T.rightChild||T.rightChild.color!==c.default.TreeNodeColorType.red?T.leftChild&&T.leftChild.color!==c.default.TreeNodeColorType.black||T.rightChild&&T.rightChild.color!==c.default.TreeNodeColorType.black||(T.color=c.default.TreeNodeColorType.red,h(k)):(T.color=c.default.TreeNodeColorType.red,T.rightChild&&(T.rightChild.color=c.default.TreeNodeColorType.black),S=T.rotateLeft(),n===T&&(n=S),h(C))))}else C.color=c.default.TreeNodeColorType.black},y=function(C){for(var k=C;k.leftChild||k.rightChild;){if(k.rightChild){k=i(k.rightChild);var T=C.key;C.key=k.key,k.key=T,C=k}k.leftChild&&(k=d(k.leftChild),T=C.key,C.key=k.key,k.key=T,C=k)}h(k),k&&k.remove(),--o,n.color=c.default.TreeNodeColorType.black},b=function(C,k){return!(!C||C.key===void 0)&&(!!b(C.leftChild,k)||!!k(C)||b(C.rightChild,k))};this.eraseElementByPos=function(C){if(C<0||C>=o)throw new Error("pos must more than 0 and less than set's size");var k=0;b(n,function(T){return C===k?(y(T),!0):(++k,!1)})},this.eraseElementByValue=function(C){if(!this.empty()){var k=$(n,C);k!==void 0&&k.key!==void 0&&t(k.key,C)===0&&y(k)}};var f=function(C,k){if(!C||C.key===void 0)throw new Error("unknown error");var T=t(k,C.key);return T<0?C.leftChild?f(C.leftChild,k):(C.leftChild=new c.default,C.leftChild.parent=C,C.leftChild.brother=C.rightChild,C.rightChild&&(C.rightChild.brother=C.leftChild),C.leftChild):T>0?C.rightChild?f(C.rightChild,k):(C.rightChild=new c.default,C.rightChild.parent=C,C.rightChild.brother=C.leftChild,C.leftChild&&(C.leftChild.brother=C.rightChild),C.rightChild):C},x=function(C){var k=C.parent;if(!k){if(C===n)return;throw new Error("unknown error")}if(k.color!==c.default.TreeNodeColorType.black&&k.color===c.default.TreeNodeColorType.red){var T=k.brother,S=k.parent;if(!S)throw new Error("unknown error");if(T&&T.color===c.default.TreeNodeColorType.red)T.color=k.color=c.default.TreeNodeColorType.black,S.color=c.default.TreeNodeColorType.red,x(S);else if(!T||T.color===c.default.TreeNodeColorType.black)if(k===S.leftChild)if(C===k.leftChild){k.color=c.default.TreeNodeColorType.black,S.color=c.default.TreeNodeColorType.red;var A=S.rotateRight();S===n&&(n=A)}else C===k.rightChild&&(A=k.rotateLeft(),S===n&&(n=A),x(k));else k===S.rightChild&&(C===k.leftChild?(A=k.rotateRight(),S===n&&(n=A),x(k)):C===k.rightChild&&(k.color=c.default.TreeNodeColorType.black,S.color=c.default.TreeNodeColorType.red,A=S.rotateLeft(),S===n&&(n=A)))}};this.insert=function(C){if(C==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(this.empty())return++o,n.key=C,void(n.color=c.default.TreeNodeColorType.black);var k=f(n,C);k.key!==void 0&&t(k.key,C)===0||(++o,k.key=C,x(k),n.color=c.default.TreeNodeColorType.black)};var $=function(C,k){if(C&&C.key!==void 0){var T=t(k,C.key);return T<0?$(C.leftChild,k):T>0?$(C.rightChild,k):C}};this.find=function(C){var k=$(n,C);return k!==void 0&&k.key!==void 0&&t(k.key,C)===0};var B=function(C,k){if(C&&C.key!==void 0){var T=t(C.key,k);if(T===0)return C.key;if(T<0)return B(C.rightChild,k);var S=B(C.leftChild,k);return S!==void 0?S:C.key}};this.lowerBound=function(C){return B(n,C)};var E=function(C,k){if(C&&C.key!==void 0){if(t(C.key,k)<=0)return E(C.rightChild,k);var T=E(C.leftChild,k);return T!==void 0?T:C.key}};this.upperBound=function(C){return E(n,C)};var N=function(C,k){if(C&&C.key!==void 0){var T=t(C.key,k);if(T===0)return C.key;if(T>0)return N(C.leftChild,k);var S=N(C.rightChild,k);return S!==void 0?S:C.key}};this.reverseLowerBound=function(C){return N(n,C)};var U=function(C,k){if(C&&C.key!==void 0){if(t(C.key,k)>=0)return U(C.leftChild,k);var T=U(C.rightChild,k);return T!==void 0?T:C.key}};this.reverseUpperBound=function(C){return U(n,C)},this.union=function(C){var k=this;C.forEach(function(T){return k.insert(T)})},this.getHeight=function(){if(this.empty())return 0;var C=function(k){return k?Math.max(C(k.leftChild),C(k.rightChild))+1:1};return C(n)};var R=function(C){return m(this,function(k){switch(k.label){case 0:return C&&C.key!==void 0?[5,u(R(C.leftChild))]:[2];case 1:return k.sent(),[4,C.key];case 2:return k.sent(),[5,u(R(C.rightChild))];case 3:return k.sent(),[2]}})};this[Symbol.iterator]=function(){return R(n)},r.forEach(function(C){return a.insert(C)}),Object.freeze(this)}Object.freeze(l),w.default=l},{"../Base/TreeNode":25}],34:[function(s,g,w){function m(u){var c=this;u===void 0&&(u=[]);var l=0,r=[];this.size=function(){return l},this.empty=function(){return l===0},this.clear=function(){l=0,r.length=0},this.push=function(t){r.push(t),++l},this.pop=function(){r.pop(),l>0&&--l},this.top=function(){return r[l-1]},u.forEach(function(t){return c.push(t)}),Object.freeze(this)}Object.defineProperty(w,"__esModule",{value:!0}),Object.freeze(m),w.default=m},{}],35:[function(s,g,w){var m=this&&this.__generator||function(t,a){var o,n,i,d,h={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return d={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function y(b){return function(f){return function(x){if(o)throw new TypeError("Generator is already executing.");for(;h;)try{if(o=1,n&&(i=2&x[0]?n.return:x[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,x[1])).done)return i;switch(n=0,i&&(x=[2&x[0],i.value]),x[0]){case 0:case 1:i=x;break;case 4:return h.label++,{value:x[1],done:!1};case 5:h.label++,n=x[1],x=[0];continue;case 7:x=h.ops.pop(),h.trys.pop();continue;default:if(!(i=(i=h.trys).length>0&&i[i.length-1])&&(x[0]===6||x[0]===2)){h=0;continue}if(x[0]===3&&(!i||x[1]>i[0]&&x[1]<i[3])){h.label=x[1];break}if(x[0]===6&&h.label<i[1]){h.label=i[1],i=x;break}if(i&&h.label<i[2]){h.label=i[2],h.ops.push(x);break}i[2]&&h.ops.pop(),h.trys.pop();continue}x=a.call(t,h)}catch($){x=[6,$],n=0}finally{o=i=0}if(5&x[0])throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}([b,f])}}},u=this&&this.__read||function(t,a){var o=typeof Symbol=="function"&&t[Symbol.iterator];if(!o)return t;var n,i,d=o.call(t),h=[];try{for(;(a===void 0||a-- >0)&&!(n=d.next()).done;)h.push(n.value)}catch(y){i={error:y}}finally{try{n&&!n.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return h},c=this&&this.__spreadArray||function(t,a,o){if(o||arguments.length===2)for(var n,i=0,d=a.length;i<d;i++)!n&&i in a||(n||(n=Array.prototype.slice.call(a,0,i)),n[i]=a[i]);return t.concat(n||Array.prototype.slice.call(a))},l=this&&this.__values||function(t){var a=typeof Symbol=="function"&&Symbol.iterator,o=a&&t[a],n=0;if(o)return o.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};function r(t){var a=this;t===void 0&&(t=[]);var o=0,n=[];this.size=function(){return o},this.empty=function(){return o===0},this.clear=function(){o=0,n.length=0},this.front=function(){if(!this.empty())return n[0]},this.back=function(){if(!this.empty())return n[o-1]},this.forEach=function(i){n.forEach(i)},this.getElementByPos=function(i){if(i<0||i>=o)throw new Error("pos must more than 0 and less than vector's size");return n[i]},this.eraseElementByPos=function(i){if(i<0||i>=o)throw new Error("pos must more than 0 and less than vector's size");for(var d=i;d<o-1;++d)n[d]=n[d+1];this.popBack()},this.eraseElementByValue=function(i){var d=[];this.forEach(function(y){y!==i&&d.push(y)}),d.forEach(function(y,b){n[b]=y});for(var h=d.length;o>h;)this.popBack()},this.pushBack=function(i){n.push(i),++o},this.popBack=function(){n.pop(),o>0&&--o},this.setElementByPos=function(i,d){if(i<0||i>=o)throw new Error("pos must more than 0 and less than vector's size");n[i]=d},this.insert=function(i,d,h){if(h===void 0&&(h=1),i<0||i>o)throw new Error("pos must more than 0 and less than or equal to vector's size");n.splice.apply(n,c([i,0],u(new Array(h).fill(d)),!1)),o+=h},this.find=function(i){return n.includes(i)},this.reverse=function(){n.reverse()},this.unique=function(){var i,d=[];this.forEach(function(y,b){b!==0&&y===i||(d.push(y),i=y)}),d.forEach(function(y,b){n[b]=y});for(var h=d.length;o>h;)this.popBack()},this.sort=function(i){n.sort(i)},this[Symbol.iterator]=function(){return function(){return m(this,function(i){switch(i.label){case 0:return[5,l(n)];case 1:return[2,i.sent()]}})}()},t.forEach(function(i){return a.pushBack(i)}),Object.freeze(this)}Object.defineProperty(w,"__esModule",{value:!0}),Object.freeze(r),w.default=r},{}],36:[function(s,g,w){Object.defineProperty(w,"__esModule",{value:!0}),w.HashMap=w.HashSet=w.Map=w.Set=w.PriorityQueue=w.Deque=w.LinkList=w.Queue=w.Stack=w.Vector=void 0;var m=s("./Vector/Vector");w.Vector=m.default;var u=s("./Stack/Stack");w.Stack=u.default;var c=s("./Queue/Queue");w.Queue=c.default;var l=s("./LinkList/LinkList");w.LinkList=l.default;var r=s("./Deque/Deque");w.Deque=r.default;var t=s("./PriorityQueue/PriorityQueue");w.PriorityQueue=t.default;var a=s("./Set/Set");w.Set=a.default;var o=s("./Map/Map");w.Map=o.default;var n=s("./HashSet/HashSet");w.HashSet=n.default;var i=s("./HashMap/HashMap");w.HashMap=i.default},{"./Deque/Deque":26,"./HashMap/HashMap":27,"./HashSet/HashSet":28,"./LinkList/LinkList":29,"./Map/Map":30,"./PriorityQueue/PriorityQueue":31,"./Queue/Queue":32,"./Set/Set":33,"./Stack/Stack":34,"./Vector/Vector":35}],37:[function(s,g,w){const m=s("yallist"),u=Symbol("max"),c=Symbol("length"),l=Symbol("lengthCalculator"),r=Symbol("allowStale"),t=Symbol("maxAge"),a=Symbol("dispose"),o=Symbol("noDisposeOnSet"),n=Symbol("lruList"),i=Symbol("cache"),d=Symbol("updateAgeOnGet"),h=()=>1,y=(E,N,U)=>{const R=E[i].get(N);if(R){const C=R.value;if(b(E,C)){if(x(E,R),!E[r])return}else U&&(E[d]&&(R.value.now=Date.now()),E[n].unshiftNode(R));return C.value}},b=(E,N)=>{if(!N||!N.maxAge&&!E[t])return!1;const U=Date.now()-N.now;return N.maxAge?U>N.maxAge:E[t]&&U>E[t]},f=E=>{if(E[c]>E[u])for(let N=E[n].tail;E[c]>E[u]&&N!==null;){const U=N.prev;x(E,N),N=U}},x=(E,N)=>{if(N){const U=N.value;E[a]&&E[a](U.key,U.value),E[c]-=U.length,E[i].delete(U.key),E[n].removeNode(N)}};class ${constructor(N,U,R,C,k){this.key=N,this.value=U,this.length=R,this.now=C,this.maxAge=k||0}}const B=(E,N,U,R)=>{let C=U.value;b(E,C)&&(x(E,U),E[r]||(C=void 0)),C&&N.call(R,C.value,C.key,E)};g.exports=class{constructor(E){if(typeof E=="number"&&(E={max:E}),E||(E={}),E.max&&(typeof E.max!="number"||E.max<0))throw new TypeError("max must be a non-negative number");this[u]=E.max||1/0;const N=E.length||h;if(this[l]=typeof N!="function"?h:N,this[r]=E.stale||!1,E.maxAge&&typeof E.maxAge!="number")throw new TypeError("maxAge must be a number");this[t]=E.maxAge||0,this[a]=E.dispose,this[o]=E.noDisposeOnSet||!1,this[d]=E.updateAgeOnGet||!1,this.reset()}set max(E){if(typeof E!="number"||E<0)throw new TypeError("max must be a non-negative number");this[u]=E||1/0,f(this)}get max(){return this[u]}set allowStale(E){this[r]=!!E}get allowStale(){return this[r]}set maxAge(E){if(typeof E!="number")throw new TypeError("maxAge must be a non-negative number");this[t]=E,f(this)}get maxAge(){return this[t]}set lengthCalculator(E){typeof E!="function"&&(E=h),E!==this[l]&&(this[l]=E,this[c]=0,this[n].forEach(N=>{N.length=this[l](N.value,N.key),this[c]+=N.length})),f(this)}get lengthCalculator(){return this[l]}get length(){return this[c]}get itemCount(){return this[n].length}rforEach(E,N){N=N||this;for(let U=this[n].tail;U!==null;){const R=U.prev;B(this,E,U,N),U=R}}forEach(E,N){N=N||this;for(let U=this[n].head;U!==null;){const R=U.next;B(this,E,U,N),U=R}}keys(){return this[n].toArray().map(E=>E.key)}values(){return this[n].toArray().map(E=>E.value)}reset(){this[a]&&this[n]&&this[n].length&&this[n].forEach(E=>this[a](E.key,E.value)),this[i]=new Map,this[n]=new m,this[c]=0}dump(){return this[n].map(E=>!b(this,E)&&{k:E.key,v:E.value,e:E.now+(E.maxAge||0)}).toArray().filter(E=>E)}dumpLru(){return this[n]}set(E,N,U){if((U=U||this[t])&&typeof U!="number")throw new TypeError("maxAge must be a number");const R=U?Date.now():0,C=this[l](N,E);if(this[i].has(E)){if(C>this[u])return x(this,this[i].get(E)),!1;const T=this[i].get(E).value;return this[a]&&(this[o]||this[a](E,T.value)),T.now=R,T.maxAge=U,T.value=N,this[c]+=C-T.length,T.length=C,this.get(E),f(this),!0}const k=new $(E,N,C,R,U);return k.length>this[u]?(this[a]&&this[a](E,N),!1):(this[c]+=k.length,this[n].unshift(k),this[i].set(E,this[n].head),f(this),!0)}has(E){if(!this[i].has(E))return!1;const N=this[i].get(E).value;return!b(this,N)}get(E){return y(this,E,!0)}peek(E){return y(this,E,!1)}pop(){const E=this[n].tail;return E?(x(this,E),E.value):null}del(E){x(this,this[i].get(E))}load(E){this.reset();const N=Date.now();for(let U=E.length-1;U>=0;U--){const R=E[U],C=R.e||0;if(C===0)this.set(R.k,R.v);else{const k=C-N;k>0&&this.set(R.k,R.v,k)}}}prune(){this[i].forEach((E,N)=>y(this,N,!1))}}},{yallist:83}],38:[function(s,g,w){(function(m){(function(){const u=g.exports;u.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:"auth"},u.codes={};for(const l in u.types){const r=u.types[l];u.codes[r]=l}u.CMD_SHIFT=4,u.CMD_MASK=240,u.DUP_MASK=8,u.QOS_MASK=3,u.QOS_SHIFT=1,u.RETAIN_MASK=1,u.VARBYTEINT_MASK=127,u.VARBYTEINT_FIN_MASK=128,u.VARBYTEINT_MAX=268435455,u.SESSIONPRESENT_MASK=1,u.SESSIONPRESENT_HEADER=m.from([u.SESSIONPRESENT_MASK]),u.CONNACK_HEADER=m.from([u.codes.connack<<u.CMD_SHIFT]),u.USERNAME_MASK=128,u.PASSWORD_MASK=64,u.WILL_RETAIN_MASK=32,u.WILL_QOS_MASK=24,u.WILL_QOS_SHIFT=3,u.WILL_FLAG_MASK=4,u.CLEAN_SESSION_MASK=2,u.CONNECT_HEADER=m.from([u.codes.connect<<u.CMD_SHIFT]),u.properties={sessionExpiryInterval:17,willDelayInterval:24,receiveMaximum:33,maximumPacketSize:39,topicAliasMaximum:34,requestResponseInformation:25,requestProblemInformation:23,userProperties:38,authenticationMethod:21,authenticationData:22,payloadFormatIndicator:1,messageExpiryInterval:2,contentType:3,responseTopic:8,correlationData:9,maximumQoS:36,retainAvailable:37,assignedClientIdentifier:18,reasonString:31,wildcardSubscriptionAvailable:40,subscriptionIdentifiersAvailable:41,sharedSubscriptionAvailable:42,serverKeepAlive:19,responseInformation:26,serverReference:28,topicAlias:35,subscriptionIdentifier:11},u.propertiesCodes={};for(const l in u.properties){const r=u.properties[l];u.propertiesCodes[r]=l}function c(l){return[0,1,2].map(r=>[0,1].map(t=>[0,1].map(a=>{const o=m.alloc(1);return o.writeUInt8(u.codes[l]<<u.CMD_SHIFT|(t?u.DUP_MASK:0)|r<<u.QOS_SHIFT|a,0,!0),o})))}u.propertiesTypes={sessionExpiryInterval:"int32",willDelayInterval:"int32",receiveMaximum:"int16",maximumPacketSize:"int32",topicAliasMaximum:"int16",requestResponseInformation:"byte",requestProblemInformation:"byte",userProperties:"pair",authenticationMethod:"string",authenticationData:"binary",payloadFormatIndicator:"byte",messageExpiryInterval:"int32",contentType:"string",responseTopic:"string",correlationData:"binary",maximumQoS:"int8",retainAvailable:"byte",assignedClientIdentifier:"string",reasonString:"string",wildcardSubscriptionAvailable:"byte",subscriptionIdentifiersAvailable:"byte",sharedSubscriptionAvailable:"byte",serverKeepAlive:"int16",responseInformation:"string",serverReference:"string",topicAlias:"int16",subscriptionIdentifier:"var"},u.PUBLISH_HEADER=c("publish"),u.SUBSCRIBE_HEADER=c("subscribe"),u.SUBSCRIBE_OPTIONS_QOS_MASK=3,u.SUBSCRIBE_OPTIONS_NL_MASK=1,u.SUBSCRIBE_OPTIONS_NL_SHIFT=2,u.SUBSCRIBE_OPTIONS_RAP_MASK=1,u.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,u.SUBSCRIBE_OPTIONS_RH_MASK=3,u.SUBSCRIBE_OPTIONS_RH_SHIFT=4,u.SUBSCRIBE_OPTIONS_RH=[0,16,32],u.SUBSCRIBE_OPTIONS_NL=4,u.SUBSCRIBE_OPTIONS_RAP=8,u.SUBSCRIBE_OPTIONS_QOS=[0,1,2],u.UNSUBSCRIBE_HEADER=c("unsubscribe"),u.ACKS={unsuback:c("unsuback"),puback:c("puback"),pubcomp:c("pubcomp"),pubrel:c("pubrel"),pubrec:c("pubrec")},u.SUBACK_HEADER=m.from([u.codes.suback<<u.CMD_SHIFT]),u.VERSION3=m.from([3]),u.VERSION4=m.from([4]),u.VERSION5=m.from([5]),u.VERSION131=m.from([131]),u.VERSION132=m.from([132]),u.QOS=[0,1,2].map(l=>m.from([l])),u.EMPTY={pingreq:m.from([u.codes.pingreq<<4,0]),pingresp:m.from([u.codes.pingresp<<4,0]),disconnect:m.from([u.codes.disconnect<<4,0])}}).call(this)}).call(this,s("buffer").Buffer)},{buffer:17}],39:[function(s,g,w){(function(m){(function(){const u=s("./writeToStream"),c=s("events");class l extends c{constructor(){super(),this._array=new Array(20),this._i=0}write(t){return this._array[this._i++]=t,!0}concat(){let t=0;const a=new Array(this._array.length),o=this._array;let n,i=0;for(n=0;n<o.length&&o[n]!==void 0;n++)typeof o[n]!="string"?a[n]=o[n].length:a[n]=m.byteLength(o[n]),t+=a[n];const d=m.allocUnsafe(t);for(n=0;n<o.length&&o[n]!==void 0;n++)typeof o[n]!="string"?(o[n].copy(d,i),i+=a[n]):(d.write(o[n],i),i+=a[n]);return d}}g.exports=function(r,t){const a=new l;return u(r,a,t),a.concat()}}).call(this)}).call(this,s("buffer").Buffer)},{"./writeToStream":44,buffer:17,events:22}],40:[function(s,g,w){w.parser=s("./parser").parser,w.generate=s("./generate"),w.writeToStream=s("./writeToStream")},{"./generate":39,"./parser":43,"./writeToStream":44}],41:[function(s,g,w){(function(m){(function(){const c={},l=m.isBuffer(m.from([1,2]).subarray(0,1));function r(t){const a=m.allocUnsafe(2);return a.writeUInt8(t>>8,0),a.writeUInt8(255&t,1),a}g.exports={cache:c,generateCache:function(){for(let t=0;t<65536;t++)c[t]=r(t)},generateNumber:r,genBufVariableByteInt:function(t){let a=0,o=0;const n=m.allocUnsafe(4);do a=t%128|0,(t=t/128|0)>0&&(a|=128),n.writeUInt8(a,o++);while(t>0&&o<4);return t>0&&(o=0),l?n.subarray(0,o):n.slice(0,o)},generate4ByteBuffer:function(t){const a=m.allocUnsafe(4);return a.writeUInt32BE(t,0),a}}}).call(this)}).call(this,s("buffer").Buffer)},{buffer:17}],42:[function(s,g,w){g.exports=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}}},{}],43:[function(s,g,w){const m=s("bl"),u=s("events"),c=s("./packet"),l=s("./constants"),r=s("debug")("mqtt-packet:parser");class t extends u{constructor(){super(),this.parser=this.constructor.parser}static parser(o){return this instanceof t?(this.settings=o||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new t().parser(o)}_resetState(){r("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new c,this.error=null,this._list=m(),this._stateCounter=0}parse(o){for(this.error&&this._resetState(),this._list.append(o),r("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,r("parse: state complete. _stateCounter is now: %d",this._stateCounter),r("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return r("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const o=this._list.readUInt8(0);return this.packet.cmd=l.types[o>>l.CMD_SHIFT],this.packet.retain=(o&l.RETAIN_MASK)!=0,this.packet.qos=o>>l.QOS_SHIFT&l.QOS_MASK,this.packet.dup=(o&l.DUP_MASK)!=0,r("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0}_parseLength(){const o=this._parseVarByteNum(!0);return o&&(this.packet.length=o.value,this._list.consume(o.bytes)),r("_parseLength %d",o.value),!!o}_parsePayload(){r("_parsePayload: payload %O",this._list);let o=!1;if(this.packet.length===0||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._parseConfirmation();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":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}o=!0}return r("_parsePayload complete result: %s",o),o}_parseConnect(){let o,n,i,d;r("_parseConnect");const h={},y=this.packet,b=this._parseString();if(b===null)return this._emitError(new Error("Cannot parse protocolId"));if(b!=="MQTT"&&b!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(y.protocolId=b,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(y.protocolVersion=this._list.readUInt8(this._pos),y.protocolVersion>=128&&(y.bridgeMode=!0,y.protocolVersion=y.protocolVersion-128),y.protocolVersion!==3&&y.protocolVersion!==4&&y.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(h.username=this._list.readUInt8(this._pos)&l.USERNAME_MASK,h.password=this._list.readUInt8(this._pos)&l.PASSWORD_MASK,h.will=this._list.readUInt8(this._pos)&l.WILL_FLAG_MASK,h.will&&(y.will={},y.will.retain=(this._list.readUInt8(this._pos)&l.WILL_RETAIN_MASK)!=0,y.will.qos=(this._list.readUInt8(this._pos)&l.WILL_QOS_MASK)>>l.WILL_QOS_SHIFT),y.clean=(this._list.readUInt8(this._pos)&l.CLEAN_SESSION_MASK)!=0,this._pos++,y.keepalive=this._parseNum(),y.keepalive===-1)return this._emitError(new Error("Packet too short"));if(y.protocolVersion===5){const x=this._parseProperties();Object.getOwnPropertyNames(x).length&&(y.properties=x)}const f=this._parseString();if(f===null)return this._emitError(new Error("Packet too short"));if(y.clientId=f,r("_parseConnect: packet.clientId: %s",y.clientId),h.will){if(y.protocolVersion===5){const x=this._parseProperties();Object.getOwnPropertyNames(x).length&&(y.will.properties=x)}if((o=this._parseString())===null)return this._emitError(new Error("Cannot parse will topic"));if(y.will.topic=o,r("_parseConnect: packet.will.topic: %s",y.will.topic),(n=this._parseBuffer())===null)return this._emitError(new Error("Cannot parse will payload"));y.will.payload=n,r("_parseConnect: packet.will.paylaod: %s",y.will.payload)}if(h.username){if((d=this._parseString())===null)return this._emitError(new Error("Cannot parse username"));y.username=d,r("_parseConnect: packet.username: %s",y.username)}if(h.password){if((i=this._parseBuffer())===null)return this._emitError(new Error("Cannot parse password"));y.password=i}return this.settings=y,r("_parseConnect: complete"),y}_parseConnack(){r("_parseConnack");const o=this.packet;if(this._list.length<1)return null;if(o.sessionPresent=!!(this._list.readUInt8(this._pos++)&l.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?o.reasonCode=this._list.readUInt8(this._pos++):o.reasonCode=0;else{if(this._list.length<2)return null;o.returnCode=this._list.readUInt8(this._pos++)}if(o.returnCode===-1||o.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(o.properties=n)}r("_parseConnack: complete")}_parsePublish(){r("_parsePublish");const o=this.packet;if(o.topic=this._parseString(),o.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(o.qos>0)||this._parseMessageId()){if(this.settings.protocolVersion===5){const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(o.properties=n)}o.payload=this._list.slice(this._pos,o.length),r("_parsePublish: payload from buffer list: %o",o.payload)}}_parseSubscribe(){r("_parseSubscribe");const o=this.packet;let n,i,d,h,y,b,f;if(o.qos!==1)return this._emitError(new Error("Wrong subscribe header"));if(o.subscriptions=[],this._parseMessageId()){if(this.settings.protocolVersion===5){const x=this._parseProperties();Object.getOwnPropertyNames(x).length&&(o.properties=x)}for(;this._pos<o.length;){if((n=this._parseString())===null)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=o.length)return this._emitError(new Error("Malformed Subscribe Payload"));d=(i=this._parseByte())&l.SUBSCRIBE_OPTIONS_QOS_MASK,b=(i>>l.SUBSCRIBE_OPTIONS_NL_SHIFT&l.SUBSCRIBE_OPTIONS_NL_MASK)!=0,y=(i>>l.SUBSCRIBE_OPTIONS_RAP_SHIFT&l.SUBSCRIBE_OPTIONS_RAP_MASK)!=0,h=i>>l.SUBSCRIBE_OPTIONS_RH_SHIFT&l.SUBSCRIBE_OPTIONS_RH_MASK,f={topic:n,qos:d},this.settings.protocolVersion===5?(f.nl=b,f.rap=y,f.rh=h):this.settings.bridgeMode&&(f.rh=0,f.rap=!0,f.nl=!0),r("_parseSubscribe: push subscription `%s` to subscription",f),o.subscriptions.push(f)}}}_parseSuback(){r("_parseSuback");const o=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(this.settings.protocolVersion===5){const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(o.properties=n)}for(;this._pos<this.packet.length;)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseUnsubscribe(){r("_parseUnsubscribe");const o=this.packet;if(o.unsubscriptions=[],this._parseMessageId()){if(this.settings.protocolVersion===5){const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(o.properties=n)}for(;this._pos<o.length;){const n=this._parseString();if(n===null)return this._emitError(new Error("Cannot parse topic"));r("_parseUnsubscribe: push topic `%s` to unsubscriptions",n),o.unsubscriptions.push(n)}}}_parseUnsuback(){r("_parseUnsuback");const o=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if(this.settings.protocolVersion===5){const n=this._parseProperties();for(Object.getOwnPropertyNames(n).length&&(o.properties=n),o.granted=[];this._pos<this.packet.length;)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseConfirmation(){r("_parseConfirmation: packet.cmd: `%s`",this.packet.cmd);const o=this.packet;if(this._parseMessageId(),this.settings.protocolVersion===5&&(o.length>2?(o.reasonCode=this._parseByte(),r("_parseConfirmation: packet.reasonCode `%d`",o.reasonCode)):o.reasonCode=0,o.length>3)){const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(o.properties=n)}return!0}_parseDisconnect(){const o=this.packet;if(r("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?o.reasonCode=this._parseByte():o.reasonCode=0;const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(o.properties=n)}return r("_parseDisconnect result: true"),!0}_parseAuth(){r("_parseAuth");const o=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));o.reasonCode=this._parseByte();const n=this._parseProperties();return Object.getOwnPropertyNames(n).length&&(o.properties=n),r("_parseAuth: result: true"),!0}_parseMessageId(){const o=this.packet;return o.messageId=this._parseNum(),o.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(r("_parseMessageId: packet.messageId %d",o.messageId),!0)}_parseString(o){const n=this._parseNum(),i=n+this._pos;if(n===-1||i>this._list.length||i>this.packet.length)return null;const d=this._list.toString("utf8",this._pos,i);return this._pos+=n,r("_parseString: result: %s",d),d}_parseStringPair(){return r("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const o=this._parseNum(),n=o+this._pos;if(o===-1||n>this._list.length||n>this.packet.length)return null;const i=this._list.slice(this._pos,n);return this._pos+=o,r("_parseBuffer: result: %o",i),i}_parseNum(){if(this._list.length-this._pos<2)return-1;const o=this._list.readUInt16BE(this._pos);return this._pos+=2,r("_parseNum: result: %s",o),o}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const o=this._list.readUInt32BE(this._pos);return this._pos+=4,r("_parse4ByteNum: result: %s",o),o}_parseVarByteNum(o){r("_parseVarByteNum");let n,i=0,d=1,h=0,y=!1;const b=this._pos?this._pos:0;for(;i<4&&b+i<this._list.length;){if(h+=d*((n=this._list.readUInt8(b+i++))&l.VARBYTEINT_MASK),d*=128,(n&l.VARBYTEINT_FIN_MASK)==0){y=!0;break}if(this._list.length<=i)break}return!y&&i===4&&this._list.length>=i&&this._emitError(new Error("Invalid variable byte integer")),b&&(this._pos+=i),r("_parseVarByteNum: result: %o",y=!!y&&(o?{bytes:i,value:h}:h)),y}_parseByte(){let o;return this._pos<this._list.length&&(o=this._list.readUInt8(this._pos),this._pos++),r("_parseByte: result: %o",o),o}_parseByType(o){switch(r("_parseByType: type: %s",o),o){case"byte":return this._parseByte()!==0;case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}}_parseProperties(){r("_parseProperties");const o=this._parseVarByteNum(),n=this._pos+o,i={};for(;this._pos<n;){const d=this._parseByte();if(!d)return this._emitError(new Error("Cannot parse property code type")),!1;const h=l.propertiesCodes[d];if(!h)return this._emitError(new Error("Unknown property")),!1;if(h!=="userProperties")i[h]?Array.isArray(i[h])?i[h].push(this._parseByType(l.propertiesTypes[h])):(i[h]=[i[h]],i[h].push(this._parseByType(l.propertiesTypes[h]))):i[h]=this._parseByType(l.propertiesTypes[h]);else{i[h]||(i[h]=Object.create(null));const y=this._parseByType(l.propertiesTypes[h]);if(i[h][y.name])if(Array.isArray(i[h][y.name]))i[h][y.name].push(y.value);else{const b=i[h][y.name];i[h][y.name]=[b],i[h][y.name].push(y.value)}else i[h][y.name]=y.value}}return i}_newPacket(){return r("_newPacket"),this.packet&&(this._list.consume(this.packet.length),r("_newPacket: parser emit packet: packet.cmd: %s, packet.payload: %s, packet.length: %d",this.packet.cmd,this.packet.payload,this.packet.length),this.emit("packet",this.packet)),r("_newPacket: new packet"),this.packet=new c,this._pos=0,!0}_emitError(o){r("_emitError"),this.error=o,this.emit("error",o)}}g.exports=t},{"./constants":38,"./packet":42,bl:15,debug:18,events:22}],44:[function(s,g,w){(function(m){(function(){const u=s("./constants"),c=m.allocUnsafe(0),l=m.from([0]),r=s("./numbers"),t=s("process-nextick-args").nextTick,a=s("debug")("mqtt-packet:writeToStream"),o=r.cache,n=r.generateNumber,i=r.generateCache,d=r.genBufVariableByteInt,h=r.generate4ByteBuffer;let y=U,b=!0;function f(q,I,D){switch(a("generate called"),I.cork&&(I.cork(),t(x,I)),b&&(b=!1,i()),a("generate: packet.cmd: %s",q.cmd),q.cmd){case"connect":return function(M,P,z){const H=M||{},W=H.protocolId||"MQTT";let G=H.protocolVersion||4;const X=H.will;let Y=H.clean;const p=H.keepalive||0,_=H.clientId||"",O=H.username,j=H.password,V=H.properties;Y===void 0&&(Y=!0);let K=0;if(!W||typeof W!="string"&&!m.isBuffer(W))return P.emit("error",new Error("Invalid protocolId")),!1;if(K+=W.length+2,G!==3&&G!==4&&G!==5)return P.emit("error",new Error("Invalid protocol version")),!1;if(K+=1,(typeof _=="string"||m.isBuffer(_))&&(_||G>=4)&&(_||Y))K+=m.byteLength(_)+2;else{if(G<4)return P.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(1*Y==0)return P.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof p!="number"||p<0||p>65535||p%1!=0)return P.emit("error",new Error("Invalid keepalive")),!1;if(K+=2,K+=1,G===5){var Q=k(P,V);if(!Q)return!1;K+=Q.length}if(X){if(typeof X!="object")return P.emit("error",new Error("Invalid will")),!1;if(!X.topic||typeof X.topic!="string")return P.emit("error",new Error("Invalid will topic")),!1;if(K+=m.byteLength(X.topic)+2,K+=2,X.payload){if(!(X.payload.length>=0))return P.emit("error",new Error("Invalid will payload")),!1;typeof X.payload=="string"?K+=m.byteLength(X.payload):K+=X.payload.length}var J={};if(G===5){if(!(J=k(P,X.properties)))return!1;K+=J.length}}let Z=!1;if(O!=null){if(!F(O))return P.emit("error",new Error("Invalid username")),!1;Z=!0,K+=m.byteLength(O)+2}if(j!=null){if(!Z)return P.emit("error",new Error("Username is required to use password")),!1;if(!F(j))return P.emit("error",new Error("Invalid password")),!1;K+=L(j)+2}P.write(u.CONNECT_HEADER),B(P,K),C(P,W),H.bridgeMode&&(G+=128),P.write(G===131?u.VERSION131:G===132?u.VERSION132:G===4?u.VERSION4:G===5?u.VERSION5:u.VERSION3);let ee=0;return ee|=O!=null?u.USERNAME_MASK:0,ee|=j!=null?u.PASSWORD_MASK:0,ee|=X&&X.retain?u.WILL_RETAIN_MASK:0,ee|=X&&X.qos?X.qos<<u.WILL_QOS_SHIFT:0,ee|=X?u.WILL_FLAG_MASK:0,ee|=Y?u.CLEAN_SESSION_MASK:0,P.write(m.from([ee])),y(P,p),G===5&&Q.write(),C(P,_),X&&(G===5&&J.write(),E(P,X.topic),C(P,X.payload)),O!=null&&C(P,O),j!=null&&C(P,j),!0}(q,I);case"connack":return function(M,P,z){const H=z?z.protocolVersion:4,W=M||{},G=H===5?W.reasonCode:W.returnCode,X=W.properties;let Y=2;if(typeof G!="number")return P.emit("error",new Error("Invalid return code")),!1;let p=null;if(H===5){if(!(p=k(P,X)))return!1;Y+=p.length}return P.write(u.CONNACK_HEADER),B(P,Y),P.write(W.sessionPresent?u.SESSIONPRESENT_HEADER:l),P.write(m.from([G])),p!=null&&p.write(),!0}(q,I,D);case"publish":return function(M,P,z){a("publish: packet: %o",M);const H=z?z.protocolVersion:4,W=M||{},G=W.qos||0,X=W.retain?u.RETAIN_MASK:0,Y=W.topic,p=W.payload||c,_=W.messageId,O=W.properties;let j=0;if(typeof Y=="string")j+=m.byteLength(Y)+2;else{if(!m.isBuffer(Y))return P.emit("error",new Error("Invalid topic")),!1;j+=Y.length+2}if(m.isBuffer(p)?j+=p.length:j+=m.byteLength(p),G&&typeof _!="number")return P.emit("error",new Error("Invalid messageId")),!1;G&&(j+=2);let V=null;if(H===5){if(!(V=k(P,O)))return!1;j+=V.length}return P.write(u.PUBLISH_HEADER[G][W.dup?1:0][X?1:0]),B(P,j),y(P,L(Y)),P.write(Y),G>0&&y(P,_),V!=null&&V.write(),a("publish: payload: %o",p),P.write(p)}(q,I,D);case"puback":case"pubrec":case"pubrel":case"pubcomp":return function(M,P,z){const H=z?z.protocolVersion:4,W=M||{},G=W.cmd||"puback",X=W.messageId,Y=W.dup&&G==="pubrel"?u.DUP_MASK:0;let p=0;const _=W.reasonCode,O=W.properties;let j=H===5?3:2;if(G==="pubrel"&&(p=1),typeof X!="number")return P.emit("error",new Error("Invalid messageId")),!1;let V=null;if(H===5&&typeof O=="object"){if(!(V=T(P,O,z,j)))return!1;j+=V.length}return P.write(u.ACKS[G][p][Y][0]),B(P,j),y(P,X),H===5&&P.write(m.from([_])),V!==null&&V.write(),!0}(q,I,D);case"subscribe":return function(M,P,z){a("subscribe: packet: ");const H=z?z.protocolVersion:4,W=M||{},G=W.dup?u.DUP_MASK:0,X=W.messageId,Y=W.subscriptions,p=W.properties;let _=0;if(typeof X!="number")return P.emit("error",new Error("Invalid messageId")),!1;_+=2;let O=null;if(H===5){if(!(O=k(P,p)))return!1;_+=O.length}if(typeof Y!="object"||!Y.length)return P.emit("error",new Error("Invalid subscriptions")),!1;for(let V=0;V<Y.length;V+=1){const K=Y[V].topic,Q=Y[V].qos;if(typeof K!="string")return P.emit("error",new Error("Invalid subscriptions - invalid topic")),!1;if(typeof Q!="number")return P.emit("error",new Error("Invalid subscriptions - invalid qos")),!1;if(H===5){if(typeof(Y[V].nl||!1)!="boolean")return P.emit("error",new Error("Invalid subscriptions - invalid No Local")),!1;if(typeof(Y[V].rap||!1)!="boolean")return P.emit("error",new Error("Invalid subscriptions - invalid Retain as Published")),!1;const ee=Y[V].rh||0;if(typeof ee!="number"||ee>2)return P.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}_+=m.byteLength(K)+2+1}a("subscribe: writing to stream: %o",u.SUBSCRIBE_HEADER),P.write(u.SUBSCRIBE_HEADER[1][G?1:0][0]),B(P,_),y(P,X),O!==null&&O.write();let j=!0;for(const V of Y){const K=V.topic,Q=V.qos,J=+V.nl,Z=+V.rap,ee=V.rh;let te;E(P,K),te=u.SUBSCRIBE_OPTIONS_QOS[Q],H===5&&(te|=J?u.SUBSCRIBE_OPTIONS_NL:0,te|=Z?u.SUBSCRIBE_OPTIONS_RAP:0,te|=ee?u.SUBSCRIBE_OPTIONS_RH[ee]:0),j=P.write(m.from([te]))}return j}(q,I,D);case"suback":return function(M,P,z){const H=z?z.protocolVersion:4,W=M||{},G=W.messageId,X=W.granted,Y=W.properties;let p=0;if(typeof G!="number")return P.emit("error",new Error("Invalid messageId")),!1;if(p+=2,typeof X!="object"||!X.length)return P.emit("error",new Error("Invalid qos vector")),!1;for(let O=0;O<X.length;O+=1){if(typeof X[O]!="number")return P.emit("error",new Error("Invalid qos vector")),!1;p+=1}let _=null;if(H===5){if(!(_=T(P,Y,z,p)))return!1;p+=_.length}return P.write(u.SUBACK_HEADER),B(P,p),y(P,G),_!==null&&_.write(),P.write(m.from(X))}(q,I,D);case"unsubscribe":return function(M,P,z){const H=z?z.protocolVersion:4,W=M||{},G=W.messageId,X=W.dup?u.DUP_MASK:0,Y=W.unsubscriptions,p=W.properties;let _=0;if(typeof G!="number")return P.emit("error",new Error("Invalid messageId")),!1;if(_+=2,typeof Y!="object"||!Y.length)return P.emit("error",new Error("Invalid unsubscriptions")),!1;for(let V=0;V<Y.length;V+=1){if(typeof Y[V]!="string")return P.emit("error",new Error("Invalid unsubscriptions")),!1;_+=m.byteLength(Y[V])+2}let O=null;if(H===5){if(!(O=k(P,p)))return!1;_+=O.length}P.write(u.UNSUBSCRIBE_HEADER[1][X?1:0][0]),B(P,_),y(P,G),O!==null&&O.write();let j=!0;for(let V=0;V<Y.length;V++)j=E(P,Y[V]);return j}(q,I,D);case"unsuback":return function(M,P,z){const H=z?z.protocolVersion:4,W=M||{},G=W.messageId,X=W.dup?u.DUP_MASK:0,Y=W.granted,p=W.properties,_=W.cmd;let O=2;if(typeof G!="number")return P.emit("error",new Error("Invalid messageId")),!1;if(H===5){if(typeof Y!="object"||!Y.length)return P.emit("error",new Error("Invalid qos vector")),!1;for(let V=0;V<Y.length;V+=1){if(typeof Y[V]!="number")return P.emit("error",new Error("Invalid qos vector")),!1;O+=1}}let j=null;if(H===5){if(!(j=T(P,p,z,O)))return!1;O+=j.length}return P.write(u.ACKS[_][0][X][0]),B(P,O),y(P,G),j!==null&&j.write(),H===5&&P.write(m.from(Y)),!0}(q,I,D);case"pingreq":case"pingresp":return function(M,P,z){return P.write(u.EMPTY[M.cmd])}(q,I);case"disconnect":return function(M,P,z){const H=z?z.protocolVersion:4,W=M||{},G=W.reasonCode,X=W.properties;let Y=H===5?1:0,p=null;if(H===5){if(!(p=T(P,X,z,Y)))return!1;Y+=p.length}return P.write(m.from([u.codes.disconnect<<4])),B(P,Y),H===5&&P.write(m.from([G])),p!==null&&p.write(),!0}(q,I,D);case"auth":return function(M,P,z){const H=z?z.protocolVersion:4,W=M||{},G=W.reasonCode,X=W.properties;let Y=H===5?1:0;H!==5&&P.emit("error",new Error("Invalid mqtt version for auth packet"));const p=T(P,X,z,Y);return p?(Y+=p.length,P.write(m.from([u.codes.auth<<4])),B(P,Y),P.write(m.from([G])),p!==null&&p.write(),!0):!1}(q,I,D);default:return I.emit("error",new Error("Unknown command")),!1}}function x(q){q.uncork()}Object.defineProperty(f,"cacheNumbers",{get:()=>y===U,set(q){q?(o&&Object.keys(o).length!==0||(b=!0),y=U):(b=!1,y=R)}});const $={};function B(q,I){if(I>u.VARBYTEINT_MAX)return q.emit("error",new Error(`Invalid variable byte integer: ${I}`)),!1;let D=$[I];return D||(D=d(I),I<16384&&($[I]=D)),a("writeVarByteInt: writing to stream: %o",D),q.write(D)}function E(q,I){const D=m.byteLength(I);return y(q,D),a("writeString: %s",I),q.write(I,"utf8")}function N(q,I,D){E(q,I),E(q,D)}function U(q,I){return a("writeNumberCached: number: %d",I),a("writeNumberCached: %o",o[I]),q.write(o[I])}function R(q,I){const D=n(I);return a("writeNumberGenerated: %o",D),q.write(D)}function C(q,I){typeof I=="string"?E(q,I):I?(y(q,I.length),q.write(I)):y(q,0)}function k(q,I){if(typeof I!="object"||I.length!=null)return{length:1,write(){A(q,{},0)}};let D=0;function M(P,z){let H=0;switch(u.propertiesTypes[P]){case"byte":if(typeof z!="boolean")return q.emit("error",new Error(`Invalid ${P}: ${z}`)),!1;H+=2;break;case"int8":if(typeof z!="number"||z<0||z>255)return q.emit("error",new Error(`Invalid ${P}: ${z}`)),!1;H+=2;break;case"binary":if(z&&z===null)return q.emit("error",new Error(`Invalid ${P}: ${z}`)),!1;H+=1+m.byteLength(z)+2;break;case"int16":if(typeof z!="number"||z<0||z>65535)return q.emit("error",new Error(`Invalid ${P}: ${z}`)),!1;H+=3;break;case"int32":if(typeof z!="number"||z<0||z>4294967295)return q.emit("error",new Error(`Invalid ${P}: ${z}`)),!1;H+=5;break;case"var":if(typeof z!="number"||z<0||z>268435455)return q.emit("error",new Error(`Invalid ${P}: ${z}`)),!1;H+=1+m.byteLength(d(z));break;case"string":if(typeof z!="string")return q.emit("error",new Error(`Invalid ${P}: ${z}`)),!1;H+=3+m.byteLength(z.toString());break;case"pair":if(typeof z!="object")return q.emit("error",new Error(`Invalid ${P}: ${z}`)),!1;H+=Object.getOwnPropertyNames(z).reduce((W,G)=>{const X=z[G];return Array.isArray(X)?W+=X.reduce((Y,p)=>Y+=3+m.byteLength(G.toString())+2+m.byteLength(p.toString()),0):W+=3+m.byteLength(G.toString())+2+m.byteLength(z[G].toString()),W},0);break;default:return q.emit("error",new Error(`Invalid property ${P}: ${z}`)),!1}return H}if(I)for(const P in I){let z=0,H=0;const W=I[P];if(Array.isArray(W))for(let G=0;G<W.length;G++){if(!(H=M(P,W[G])))return!1;z+=H}else{if(!(H=M(P,W)))return!1;z=H}if(!z)return!1;D+=z}return{length:m.byteLength(d(D))+D,write(){A(q,I,D)}}}function T(q,I,D,M){const P=["reasonString","userProperties"],z=D&&D.properties&&D.properties.maximumPacketSize?D.properties.maximumPacketSize:0;let H=k(q,I);if(z)for(;M+H.length>z;){const W=P.shift();if(!W||!I[W])return!1;delete I[W],H=k(q,I)}return H}function S(q,I,D){switch(u.propertiesTypes[I]){case"byte":q.write(m.from([u.properties[I]])),q.write(m.from([+D]));break;case"int8":q.write(m.from([u.properties[I]])),q.write(m.from([D]));break;case"binary":q.write(m.from([u.properties[I]])),C(q,D);break;case"int16":q.write(m.from([u.properties[I]])),y(q,D);break;case"int32":q.write(m.from([u.properties[I]])),function(M,P){const z=h(P);a("write4ByteNumber: %o",z),M.write(z)}(q,D);break;case"var":q.write(m.from([u.properties[I]])),B(q,D);break;case"string":q.write(m.from([u.properties[I]])),E(q,D);break;case"pair":Object.getOwnPropertyNames(D).forEach(M=>{const P=D[M];Array.isArray(P)?P.forEach(z=>{q.write(m.from([u.properties[I]])),N(q,M.toString(),z.toString())}):(q.write(m.from([u.properties[I]])),N(q,M.toString(),P.toString()))});break;default:return q.emit("error",new Error(`Invalid property ${I} value: ${D}`)),!1}}function A(q,I,D){B(q,D);for(const M in I)if(Object.prototype.hasOwnProperty.call(I,M)&&I[M]!==null){const P=I[M];if(Array.isArray(P))for(let z=0;z<P.length;z++)S(q,M,P[z]);else S(q,M,P)}}function L(q){return q?q instanceof m?q.length:m.byteLength(q):0}function F(q){return typeof q=="string"||q instanceof m}g.exports=f}).call(this)}).call(this,s("buffer").Buffer)},{"./constants":38,"./numbers":41,buffer:17,debug:18,"process-nextick-args":49}],45:[function(s,g,w){var m=1e3,u=60*m,c=60*u,l=24*c,r=7*l,t=365.25*l;function a(o,n,i,d){var h=n>=1.5*i;return Math.round(o/i)+" "+d+(h?"s":"")}g.exports=function(o,n){n=n||{};var i=typeof o;if(i==="string"&&o.length>0)return function(d){if(!((d=String(d)).length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(h){var y=parseFloat(h[1]);switch((h[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return y*t;case"weeks":case"week":case"w":return y*r;case"days":case"day":case"d":return y*l;case"hours":case"hour":case"hrs":case"hr":case"h":return y*c;case"minutes":case"minute":case"mins":case"min":case"m":return y*u;case"seconds":case"second":case"secs":case"sec":case"s":return y*m;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return}}}}(o);if(i==="number"&&isFinite(o))return n.long?function(d){var h=Math.abs(d);return h>=l?a(d,h,l,"day"):h>=c?a(d,h,c,"hour"):h>=u?a(d,h,u,"minute"):h>=m?a(d,h,m,"second"):d+" ms"}(o):function(d){var h=Math.abs(d);return h>=l?Math.round(d/l)+"d":h>=c?Math.round(d/c)+"h":h>=u?Math.round(d/u)+"m":h>=m?Math.round(d/m)+"s":d+"ms"}(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))}},{}],46:[function(s,g,w){const m=s("./lib/number-allocator.js");g.exports.NumberAllocator=m},{"./lib/number-allocator.js":47}],47:[function(s,g,w){const m=s("js-sdsl").Set,u=s("debug")("number-allocator:trace"),c=s("debug")("number-allocator:error");function l(t,a){this.low=t,this.high=a}function r(t,a){if(!(this instanceof r))return new r(t,a);this.min=t,this.max=a,this.ss=new m([],(o,n)=>o.compare(n)),u("Create"),this.clear()}l.prototype.equals=function(t){return this.low===t.low&&this.high===t.high},l.prototype.compare=function(t){return this.low<t.low&&this.high<t.low?-1:t.low<this.low&&t.high<this.low?1:0},r.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},r.prototype.alloc=function(){if(this.ss.size()===0)return u("alloc():empty"),null;const t=this.ss.front(),a=t.low;return a+1<=t.high?++t.low:this.ss.eraseElementByPos(0),u("alloc():"+a),a},r.prototype.use=function(t){const a=new l(t,t),o=this.ss.lowerBound(a);if(o){if(o.equals(a))return this.ss.eraseElementByValue(o),u("use():"+t),!0;if(o.low>t)return!1;if(o.low===t)return++o.low,u("use():"+t),!0;if(o.high===t)return--o.high,u("use():"+t),!0;const n=o.low;return o.low=t+1,this.ss.insert(new l(n,t-1)),u("use():"+t),!0}return u("use():failed"),!1},r.prototype.free=function(t){if(t<this.min||t>this.max)return void c("free():"+t+" is out of range");const a=new l(t,t),o=this.ss.lowerBound(a);if(o){if(o.low<=t&&t<=o.high)return void c("free():"+t+" has already been vacant");if(o===this.ss.front())t+1===o.low?--o.low:this.ss.insert(a);else{const n=this.ss.reverseLowerBound(a);n.high+1===t?t+1===o.low?(this.ss.eraseElementByValue(n),o.low=n.low):n.high=t:t+1===o.low?o.low=t:this.ss.insert(a)}}else{if(o===this.ss.front())return void this.ss.insert(a);const n=this.ss.reverseLowerBound(a);n.high+1===t?n.high=t:this.ss.insert(a)}u("free():"+t)},r.prototype.clear=function(){u("clear()"),this.ss.clear(),this.ss.insert(new l(this.min,this.max))},r.prototype.intervalCount=function(){return this.ss.size()},r.prototype.dump=function(){console.log("length:"+this.ss.size());for(const t of this.ss)console.log(t)},g.exports=r},{debug:18,"js-sdsl":36}],48:[function(s,g,w){var m=s("wrappy");function u(l){var r=function(){return r.called?r.value:(r.called=!0,r.value=l.apply(this,arguments))};return r.called=!1,r}function c(l){var r=function(){if(r.called)throw new Error(r.onceError);return r.called=!0,r.value=l.apply(this,arguments)},t=l.name||"Function wrapped with `once`";return r.onceError=t+" shouldn't be called more than once",r.called=!1,r}g.exports=m(u),g.exports.strict=m(c),u.proto=u(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return u(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return c(this)},configurable:!0})})},{wrappy:79}],49:[function(s,g,w){(function(m){(function(){m===void 0||!m.version||m.version.indexOf("v0.")===0||m.version.indexOf("v1.")===0&&m.version.indexOf("v1.8.")!==0?g.exports={nextTick:function(u,c,l,r){if(typeof u!="function")throw new TypeError('"callback" argument must be a function');var t,a,o=arguments.length;switch(o){case 0:case 1:return m.nextTick(u);case 2:return m.nextTick(function(){u.call(null,c)});case 3:return m.nextTick(function(){u.call(null,c,l)});case 4:return m.nextTick(function(){u.call(null,c,l,r)});default:for(t=new Array(o-1),a=0;a<t.length;)t[a++]=arguments[a];return m.nextTick(function(){u.apply(null,t)})}}}:g.exports=m}).call(this)}).call(this,s("_process"))},{_process:50}],50:[function(s,g,w){var m,u,c=g.exports={};function l(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function t(f){if(m===setTimeout)return setTimeout(f,0);if((m===l||!m)&&setTimeout)return m=setTimeout,setTimeout(f,0);try{return m(f,0)}catch{try{return m.call(null,f,0)}catch{return m.call(this,f,0)}}}(function(){try{m=typeof setTimeout=="function"?setTimeout:l}catch{m=l}try{u=typeof clearTimeout=="function"?clearTimeout:r}catch{u=r}})();var a,o=[],n=!1,i=-1;function d(){n&&a&&(n=!1,a.length?o=a.concat(o):i=-1,o.length&&h())}function h(){if(!n){var f=t(d);n=!0;for(var x=o.length;x;){for(a=o,o=[];++i<x;)a&&a[i].run();i=-1,x=o.length}a=null,n=!1,function($){if(u===clearTimeout)return clearTimeout($);if((u===r||!u)&&clearTimeout)return u=clearTimeout,clearTimeout($);try{u($)}catch{try{return u.call(null,$)}catch{return u.call(this,$)}}}(f)}}function y(f,x){this.fun=f,this.array=x}function b(){}c.nextTick=function(f){var x=new Array(arguments.length-1);if(arguments.length>1)for(var $=1;$<arguments.length;$++)x[$-1]=arguments[$];o.push(new y(f,x)),o.length!==1||n||t(h)},y.prototype.run=function(){this.fun.apply(null,this.array)},c.title="browser",c.browser=!0,c.env={},c.argv=[],c.version="",c.versions={},c.on=b,c.addListener=b,c.once=b,c.off=b,c.removeListener=b,c.removeAllListeners=b,c.emit=b,c.prependListener=b,c.prependOnceListener=b,c.listeners=function(f){return[]},c.binding=function(f){throw new Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(f){throw new Error("process.chdir is not supported")},c.umask=function(){return 0}},{}],51:[function(s,g,w){(function(m){(function(){(function(u){var c=typeof w=="object"&&w&&!w.nodeType&&w,l=typeof g=="object"&&g&&!g.nodeType&&g,r=typeof m=="object"&&m;r.global!==r&&r.window!==r&&r.self!==r||(u=r);var t,a,o=2147483647,n=36,i=1,d=26,h=38,y=700,b=72,f=128,x="-",$=/^xn--/,B=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,N={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=n-i,R=Math.floor,C=String.fromCharCode;function k(M){throw new RangeError(N[M])}function T(M,P){for(var z=M.length,H=[];z--;)H[z]=P(M[z]);return H}function S(M,P){var z=M.split("@"),H="";return z.length>1&&(H=z[0]+"@",M=z[1]),H+T((M=M.replace(E,".")).split("."),P).join(".")}function A(M){for(var P,z,H=[],W=0,G=M.length;W<G;)(P=M.charCodeAt(W++))>=55296&&P<=56319&&W<G?(64512&(z=M.charCodeAt(W++)))==56320?H.push(((1023&P)<<10)+(1023&z)+65536):(H.push(P),W--):H.push(P);return H}function L(M){return T(M,function(P){var z="";return P>65535&&(z+=C((P-=65536)>>>10&1023|55296),P=56320|1023&P),z+=C(P)}).join("")}function F(M,P){return M+22+75*(M<26)-((P!=0)<<5)}function q(M,P,z){var H=0;for(M=z?R(M/y):M>>1,M+=R(M/P);M>U*d>>1;H+=n)M=R(M/U);return R(H+(U+1)*M/(M+h))}function I(M){var P,z,H,W,G,X,Y,p,_,O,j,V=[],K=M.length,Q=0,J=f,Z=b;for((z=M.lastIndexOf(x))<0&&(z=0),H=0;H<z;++H)M.charCodeAt(H)>=128&&k("not-basic"),V.push(M.charCodeAt(H));for(W=z>0?z+1:0;W<K;){for(G=Q,X=1,Y=n;W>=K&&k("invalid-input"),((p=(j=M.charCodeAt(W++))-48<10?j-22:j-65<26?j-65:j-97<26?j-97:n)>=n||p>R((o-Q)/X))&&k("overflow"),Q+=p*X,!(p<(_=Y<=Z?i:Y>=Z+d?d:Y-Z));Y+=n)X>R(o/(O=n-_))&&k("overflow"),X*=O;Z=q(Q-G,P=V.length+1,G==0),R(Q/P)>o-J&&k("overflow"),J+=R(Q/P),Q%=P,V.splice(Q++,0,J)}return L(V)}function D(M){var P,z,H,W,G,X,Y,p,_,O,j,V,K,Q,J,Z=[];for(V=(M=A(M)).length,P=f,z=0,G=b,X=0;X<V;++X)(j=M[X])<128&&Z.push(C(j));for(H=W=Z.length,W&&Z.push(x);H<V;){for(Y=o,X=0;X<V;++X)(j=M[X])>=P&&j<Y&&(Y=j);for(Y-P>R((o-z)/(K=H+1))&&k("overflow"),z+=(Y-P)*K,P=Y,X=0;X<V;++X)if((j=M[X])<P&&++z>o&&k("overflow"),j==P){for(p=z,_=n;!(p<(O=_<=G?i:_>=G+d?d:_-G));_+=n)J=p-O,Q=n-O,Z.push(C(F(O+J%Q,0))),p=R(J/Q);Z.push(C(F(p,0))),G=q(z,K,H==W),z=0,++H}++z,++P}return Z.join("")}if(t={version:"1.4.1",ucs2:{decode:A,encode:L},decode:I,encode:D,toASCII:function(M){return S(M,function(P){return B.test(P)?"xn--"+D(P):P})},toUnicode:function(M){return S(M,function(P){return $.test(P)?I(P.slice(4).toLowerCase()):P})}},c&&l)if(g.exports==c)l.exports=t;else for(a in t)t.hasOwnProperty(a)&&(c[a]=t[a]);else u.punycode=t})(this)}).call(this)}).call(this,typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:typeof window<"u"?window:{})},{}],52:[function(s,g,w){function m(c,l){return Object.prototype.hasOwnProperty.call(c,l)}g.exports=function(c,l,r,t){l=l||"&",r=r||"=";var a={};if(typeof c!="string"||c.length===0)return a;var o=/\+/g;c=c.split(l);var n=1e3;t&&typeof t.maxKeys=="number"&&(n=t.maxKeys);var i=c.length;n>0&&i>n&&(i=n);for(var d=0;d<i;++d){var h,y,b,f,x=c[d].replace(o,"%20"),$=x.indexOf(r);$>=0?(h=x.substr(0,$),y=x.substr($+1)):(h=x,y=""),b=decodeURIComponent(h),f=decodeURIComponent(y),m(a,b)?u(a[b])?a[b].push(f):a[b]=[a[b],f]:a[b]=f}return a};var u=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"}},{}],53:[function(s,g,w){var m=function(r){switch(typeof r){case"string":return r;case"boolean":return r?"true":"false";case"number":return isFinite(r)?r:"";default:return""}};g.exports=function(r,t,a,o){return t=t||"&",a=a||"=",r===null&&(r=void 0),typeof r=="object"?c(l(r),function(n){var i=encodeURIComponent(m(n))+a;return u(r[n])?c(r[n],function(d){return i+encodeURIComponent(m(d))}).join(t):i+encodeURIComponent(m(r[n]))}).join(t):o?encodeURIComponent(m(o))+a+encodeURIComponent(m(r)):""};var u=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"};function c(r,t){if(r.map)return r.map(t);for(var a=[],o=0;o<r.length;o++)a.push(t(r[o],o));return a}var l=Object.keys||function(r){var t=[];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&t.push(a);return t}},{}],54:[function(s,g,w){w.decode=w.parse=s("./decode"),w.encode=w.stringify=s("./encode")},{"./decode":52,"./encode":53}],55:[function(s,g,w){var m={};function u(l,r,t){t||(t=Error);var a=function(o){var n,i;function d(h,y,b){return o.call(this,function(f,x,$){return typeof r=="string"?r:r(f,x,$)}(h,y,b))||this}return i=o,(n=d).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i,d}(t);a.prototype.name=t.name,a.prototype.code=l,m[l]=a}function c(l,r){if(Array.isArray(l)){var t=l.length;return l=l.map(function(a){return String(a)}),t>2?"one of ".concat(r," ").concat(l.slice(0,t-1).join(", "),", or ")+l[t-1]:t===2?"one of ".concat(r," ").concat(l[0]," or ").concat(l[1]):"of ".concat(r," ").concat(l[0])}return"of ".concat(r," ").concat(String(l))}u("ERR_INVALID_OPT_VALUE",function(l,r){return'The value "'+r+'" is invalid for option "'+l+'"'},TypeError),u("ERR_INVALID_ARG_TYPE",function(l,r,t){var a,o,n;if(typeof r=="string"&&(o="not ",r.substr(0,o.length)===o)?(a="must not be",r=r.replace(/^not /,"")):a="must be",function(d,h,y){return(y===void 0||y>d.length)&&(y=d.length),d.substring(y-h.length,y)===h}(l," argument"))n="The ".concat(l," ").concat(a," ").concat(c(r,"type"));else{var i=function(d,h,y){return typeof y!="number"&&(y=0),!(y+h.length>d.length)&&d.indexOf(h,y)!==-1}(l,".")?"property":"argument";n='The "'.concat(l,'" ').concat(i," ").concat(a," ").concat(c(r,"type"))}return n+=". Received type ".concat(typeof t)},TypeError),u("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),u("ERR_METHOD_NOT_IMPLEMENTED",function(l){return"The "+l+" method is not implemented"}),u("ERR_STREAM_PREMATURE_CLOSE","Premature close"),u("ERR_STREAM_DESTROYED",function(l){return"Cannot call "+l+" after a stream was destroyed"}),u("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),u("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),u("ERR_STREAM_WRITE_AFTER_END","write after end"),u("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),u("ERR_UNKNOWN_ENCODING",function(l){return"Unknown encoding: "+l},TypeError),u("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),g.exports.codes=m},{}],56:[function(s,g,w){(function(m){(function(){var u=Object.keys||function(d){var h=[];for(var y in d)h.push(y);return h};g.exports=o;var c=s("./_stream_readable"),l=s("./_stream_writable");s("inherits")(o,c);for(var r=u(l.prototype),t=0;t<r.length;t++){var a=r[t];o.prototype[a]||(o.prototype[a]=l.prototype[a])}function o(d){if(!(this instanceof o))return new o(d);c.call(this,d),l.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",n)))}function n(){this._writableState.ended||m.nextTick(i,this)}function i(d){d.end()}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(d){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=d,this._writableState.destroyed=d)}})}).call(this)}).call(this,s("_process"))},{"./_stream_readable":58,"./_stream_writable":60,_process:50,inherits:24}],57:[function(s,g,w){g.exports=u;var m=s("./_stream_transform");function u(c){if(!(this instanceof u))return new u(c);m.call(this,c)}s("inherits")(u,m),u.prototype._transform=function(c,l,r){r(null,c)}},{"./_stream_transform":59,inherits:24}],58:[function(s,g,w){(function(m,u){(function(){var c;g.exports=k,k.ReadableState=C,s("events").EventEmitter;var l=function(p,_){return p.listeners(_).length},r=s("./internal/streams/stream"),t=s("buffer").Buffer,a=u.Uint8Array||function(){},o,n=s("util");o=n&&n.debuglog?n.debuglog("stream"):function(){};var i,d,h,y=s("./internal/streams/buffer_list"),b=s("./internal/streams/destroy"),f=s("./internal/streams/state").getHighWaterMark,x=s("../errors").codes,$=x.ERR_INVALID_ARG_TYPE,B=x.ERR_STREAM_PUSH_AFTER_EOF,E=x.ERR_METHOD_NOT_IMPLEMENTED,N=x.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;s("inherits")(k,r);var U=b.errorOrDestroy,R=["error","close","destroy","pause","resume"];function C(p,_,O){c=c||s("./_stream_duplex"),p=p||{},typeof O!="boolean"&&(O=_ instanceof c),this.objectMode=!!p.objectMode,O&&(this.objectMode=this.objectMode||!!p.readableObjectMode),this.highWaterMark=f(this,p,"readableHighWaterMark",O),this.buffer=new y,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.paused=!0,this.emitClose=p.emitClose!==!1,this.autoDestroy=!!p.autoDestroy,this.destroyed=!1,this.defaultEncoding=p.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,p.encoding&&(i||(i=s("string_decoder/").StringDecoder),this.decoder=new i(p.encoding),this.encoding=p.encoding)}function k(p){if(c=c||s("./_stream_duplex"),!(this instanceof k))return new k(p);var _=this instanceof c;this._readableState=new C(p,this,_),this.readable=!0,p&&(typeof p.read=="function"&&(this._read=p.read),typeof p.destroy=="function"&&(this._destroy=p.destroy)),r.call(this)}function T(p,_,O,j,V){o("readableAddChunk",_);var K,Q=p._readableState;if(_===null)Q.reading=!1,function(J,Z){if(o("onEofChunk"),!Z.ended){if(Z.decoder){var ee=Z.decoder.end();ee&&ee.length&&(Z.buffer.push(ee),Z.length+=Z.objectMode?1:ee.length)}Z.ended=!0,Z.sync?F(J):(Z.needReadable=!1,Z.emittedReadable||(Z.emittedReadable=!0,q(J)))}}(p,Q);else if(V||(K=function(J,Z){var ee;te=Z,t.isBuffer(te)||te instanceof a||typeof Z=="string"||Z===void 0||J.objectMode||(ee=new $("chunk",["string","Buffer","Uint8Array"],Z));var te;return ee}(Q,_)),K)U(p,K);else if(Q.objectMode||_&&_.length>0)if(typeof _=="string"||Q.objectMode||Object.getPrototypeOf(_)===t.prototype||(_=function(J){return t.from(J)}(_)),j)Q.endEmitted?U(p,new N):S(p,Q,_,!0);else if(Q.ended)U(p,new B);else{if(Q.destroyed)return!1;Q.reading=!1,Q.decoder&&!O?(_=Q.decoder.write(_),Q.objectMode||_.length!==0?S(p,Q,_,!1):I(p,Q)):S(p,Q,_,!1)}else j||(Q.reading=!1,I(p,Q));return!Q.ended&&(Q.length<Q.highWaterMark||Q.length===0)}function S(p,_,O,j){_.flowing&&_.length===0&&!_.sync?(_.awaitDrain=0,p.emit("data",O)):(_.length+=_.objectMode?1:O.length,j?_.buffer.unshift(O):_.buffer.push(O),_.needReadable&&F(p)),I(p,_)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(p){this._readableState&&(this._readableState.destroyed=p)}}),k.prototype.destroy=b.destroy,k.prototype._undestroy=b.undestroy,k.prototype._destroy=function(p,_){_(p)},k.prototype.push=function(p,_){var O,j=this._readableState;return j.objectMode?O=!0:typeof p=="string"&&((_=_||j.defaultEncoding)!==j.encoding&&(p=t.from(p,_),_=""),O=!0),T(this,p,_,!1,O)},k.prototype.unshift=function(p){return T(this,p,null,!0,!1)},k.prototype.isPaused=function(){return this._readableState.flowing===!1},k.prototype.setEncoding=function(p){i||(i=s("string_decoder/").StringDecoder);var _=new i(p);this._readableState.decoder=_,this._readableState.encoding=this._readableState.decoder.encoding;for(var O=this._readableState.buffer.head,j="";O!==null;)j+=_.write(O.data),O=O.next;return this._readableState.buffer.clear(),j!==""&&this._readableState.buffer.push(j),this._readableState.length=j.length,this};var A=1073741824;function L(p,_){return p<=0||_.length===0&&_.ended?0:_.objectMode?1:p!=p?_.flowing&&_.length?_.buffer.head.data.length:_.length:(p>_.highWaterMark&&(_.highWaterMark=function(O){return O>=A?O=A:(O--,O|=O>>>1,O|=O>>>2,O|=O>>>4,O|=O>>>8,O|=O>>>16,O++),O}(p)),p<=_.length?p:_.ended?_.length:(_.needReadable=!0,0))}function F(p){var _=p._readableState;o("emitReadable",_.needReadable,_.emittedReadable),_.needReadable=!1,_.emittedReadable||(o("emitReadable",_.flowing),_.emittedReadable=!0,m.nextTick(q,p))}function q(p){var _=p._readableState;o("emitReadable_",_.destroyed,_.length,_.ended),_.destroyed||!_.length&&!_.ended||(p.emit("readable"),_.emittedReadable=!1),_.needReadable=!_.flowing&&!_.ended&&_.length<=_.highWaterMark,H(p)}function I(p,_){_.readingMore||(_.readingMore=!0,m.nextTick(D,p,_))}function D(p,_){for(;!_.reading&&!_.ended&&(_.length<_.highWaterMark||_.flowing&&_.length===0);){var O=_.length;if(o("maybeReadMore read 0"),p.read(0),O===_.length)break}_.readingMore=!1}function M(p){var _=p._readableState;_.readableListening=p.listenerCount("readable")>0,_.resumeScheduled&&!_.paused?_.flowing=!0:p.listenerCount("data")>0&&p.resume()}function P(p){o("readable nexttick read 0"),p.read(0)}function z(p,_){o("resume",_.reading),_.reading||p.read(0),_.resumeScheduled=!1,p.emit("resume"),H(p),_.flowing&&!_.reading&&p.read(0)}function H(p){var _=p._readableState;for(o("flow",_.flowing);_.flowing&&p.read()!==null;);}function W(p,_){return _.length===0?null:(_.objectMode?O=_.buffer.shift():!p||p>=_.length?(O=_.decoder?_.buffer.join(""):_.buffer.length===1?_.buffer.first():_.buffer.concat(_.length),_.buffer.clear()):O=_.buffer.consume(p,_.decoder),O);var O}function G(p){var _=p._readableState;o("endReadable",_.endEmitted),_.endEmitted||(_.ended=!0,m.nextTick(X,_,p))}function X(p,_){if(o("endReadableNT",p.endEmitted,p.length),!p.endEmitted&&p.length===0&&(p.endEmitted=!0,_.readable=!1,_.emit("end"),p.autoDestroy)){var O=_._writableState;(!O||O.autoDestroy&&O.finished)&&_.destroy()}}function Y(p,_){for(var O=0,j=p.length;O<j;O++)if(p[O]===_)return O;return-1}k.prototype.read=function(p){o("read",p),p=parseInt(p,10);var _=this._readableState,O=p;if(p!==0&&(_.emittedReadable=!1),p===0&&_.needReadable&&((_.highWaterMark!==0?_.length>=_.highWaterMark:_.length>0)||_.ended))return o("read: emitReadable",_.length,_.ended),_.length===0&&_.ended?G(this):F(this),null;if((p=L(p,_))===0&&_.ended)return _.length===0&&G(this),null;var j,V=_.needReadable;return o("need readable",V),(_.length===0||_.length-p<_.highWaterMark)&&o("length less than watermark",V=!0),_.ended||_.reading?o("reading or ended",V=!1):V&&(o("do read"),_.reading=!0,_.sync=!0,_.length===0&&(_.needReadable=!0),this._read(_.highWaterMark),_.sync=!1,_.reading||(p=L(O,_))),(j=p>0?W(p,_):null)===null?(_.needReadable=_.length<=_.highWaterMark,p=0):(_.length-=p,_.awaitDrain=0),_.length===0&&(_.ended||(_.needReadable=!0),O!==p&&_.ended&&G(this)),j!==null&&this.emit("data",j),j},k.prototype._read=function(p){U(this,new E("_read()"))},k.prototype.pipe=function(p,_){var O=this,j=this._readableState;switch(j.pipesCount){case 0:j.pipes=p;break;case 1:j.pipes=[j.pipes,p];break;default:j.pipes.push(p)}j.pipesCount+=1,o("pipe count=%d opts=%j",j.pipesCount,_);var V=(!_||_.end!==!1)&&p!==m.stdout&&p!==m.stderr?Q:ie;function K(re,ne){o("onunpipe"),re===O&&ne&&ne.hasUnpiped===!1&&(ne.hasUnpiped=!0,o("cleanup"),p.removeListener("close",se),p.removeListener("finish",oe),p.removeListener("drain",J),p.removeListener("error",te),p.removeListener("unpipe",K),O.removeListener("end",Q),O.removeListener("end",ie),O.removeListener("data",ee),Z=!0,!j.awaitDrain||p._writableState&&!p._writableState.needDrain||J())}function Q(){o("onend"),p.end()}j.endEmitted?m.nextTick(V):O.once("end",V),p.on("unpipe",K);var J=function(re){return function(){var ne=re._readableState;o("pipeOnDrain",ne.awaitDrain),ne.awaitDrain&&ne.awaitDrain--,ne.awaitDrain===0&&l(re,"data")&&(ne.flowing=!0,H(re))}}(O);p.on("drain",J);var Z=!1;function ee(re){o("ondata");var ne=p.write(re);o("dest.write",ne),ne===!1&&((j.pipesCount===1&&j.pipes===p||j.pipesCount>1&&Y(j.pipes,p)!==-1)&&!Z&&(o("false write response, pause",j.awaitDrain),j.awaitDrain++),O.pause())}function te(re){o("onerror",re),ie(),p.removeListener("error",te),l(p,"error")===0&&U(p,re)}function se(){p.removeListener("finish",oe),ie()}function oe(){o("onfinish"),p.removeListener("close",se),ie()}function ie(){o("unpipe"),O.unpipe(p)}return O.on("data",ee),function(re,ne,ue){if(typeof re.prependListener=="function")return re.prependListener(ne,ue);re._events&&re._events[ne]?Array.isArray(re._events[ne])?re._events[ne].unshift(ue):re._events[ne]=[ue,re._events[ne]]:re.on(ne,ue)}(p,"error",te),p.once("close",se),p.once("finish",oe),p.emit("pipe",O),j.flowing||(o("pipe resume"),O.resume()),p},k.prototype.unpipe=function(p){var _=this._readableState,O={hasUnpiped:!1};if(_.pipesCount===0)return this;if(_.pipesCount===1)return p&&p!==_.pipes?this:(p||(p=_.pipes),_.pipes=null,_.pipesCount=0,_.flowing=!1,p&&p.emit("unpipe",this,O),this);if(!p){var j=_.pipes,V=_.pipesCount;_.pipes=null,_.pipesCount=0,_.flowing=!1;for(var K=0;K<V;K++)j[K].emit("unpipe",this,{hasUnpiped:!1});return this}var Q=Y(_.pipes,p);return Q===-1?this:(_.pipes.splice(Q,1),_.pipesCount-=1,_.pipesCount===1&&(_.pipes=_.pipes[0]),p.emit("unpipe",this,O),this)},k.prototype.on=function(p,_){var O=r.prototype.on.call(this,p,_),j=this._readableState;return p==="data"?(j.readableListening=this.listenerCount("readable")>0,j.flowing!==!1&&this.resume()):p==="readable"&&(j.endEmitted||j.readableListening||(j.readableListening=j.needReadable=!0,j.flowing=!1,j.emittedReadable=!1,o("on readable",j.length,j.reading),j.length?F(this):j.reading||m.nextTick(P,this))),O},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(p,_){var O=r.prototype.removeListener.call(this,p,_);return p==="readable"&&m.nextTick(M,this),O},k.prototype.removeAllListeners=function(p){var _=r.prototype.removeAllListeners.apply(this,arguments);return p!=="readable"&&p!==void 0||m.nextTick(M,this),_},k.prototype.resume=function(){var p=this._readableState;return p.flowing||(o("resume"),p.flowing=!p.readableListening,function(_,O){O.resumeScheduled||(O.resumeScheduled=!0,m.nextTick(z,_,O))}(this,p)),p.paused=!1,this},k.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(p){var _=this,O=this._readableState,j=!1;for(var V in p.on("end",function(){if(o("wrapped end"),O.decoder&&!O.ended){var Q=O.decoder.end();Q&&Q.length&&_.push(Q)}_.push(null)}),p.on("data",function(Q){o("wrapped data"),O.decoder&&(Q=O.decoder.write(Q)),(!O.objectMode||Q!=null)&&(O.objectMode||Q&&Q.length)&&(_.push(Q)||(j=!0,p.pause()))}),p)this[V]===void 0&&typeof p[V]=="function"&&(this[V]=function(Q){return function(){return p[Q].apply(p,arguments)}}(V));for(var K=0;K<R.length;K++)p.on(R[K],this.emit.bind(this,R[K]));return this._read=function(Q){o("wrapped _read",Q),j&&(j=!1,p.resume())},this},typeof Symbol=="function"&&(k.prototype[Symbol.asyncIterator]=function(){return d===void 0&&(d=s("./internal/streams/async_iterator")),d(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(p){this._readableState&&(this._readableState.flowing=p)}}),k._fromList=W,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(k.from=function(p,_){return h===void 0&&(h=s("./internal/streams/from")),h(k,p,_)})}).call(this)}).call(this,s("_process"),typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":55,"./_stream_duplex":56,"./internal/streams/async_iterator":61,"./internal/streams/buffer_list":62,"./internal/streams/destroy":63,"./internal/streams/from":65,"./internal/streams/state":67,"./internal/streams/stream":68,_process:50,buffer:17,events:22,inherits:24,"string_decoder/":75,util:16}],59:[function(s,g,w){g.exports=a;var m=s("../errors").codes,u=m.ERR_METHOD_NOT_IMPLEMENTED,c=m.ERR_MULTIPLE_CALLBACK,l=m.ERR_TRANSFORM_ALREADY_TRANSFORMING,r=m.ERR_TRANSFORM_WITH_LENGTH_0,t=s("./_stream_duplex");function a(i){if(!(this instanceof a))return new a(i);t.call(this,i),this._transformState={afterTransform:(function(d,h){var y=this._transformState;y.transforming=!1;var b=y.writecb;if(b===null)return this.emit("error",new c);y.writechunk=null,y.writecb=null,h!=null&&this.push(h),b(d);var f=this._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}).bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,i&&(typeof i.transform=="function"&&(this._transform=i.transform),typeof i.flush=="function"&&(this._flush=i.flush)),this.on("prefinish",o)}function o(){var i=this;typeof this._flush!="function"||this._readableState.destroyed?n(this,null,null):this._flush(function(d,h){n(i,d,h)})}function n(i,d,h){if(d)return i.emit("error",d);if(h!=null&&i.push(h),i._writableState.length)throw new r;if(i._transformState.transforming)throw new l;return i.push(null)}s("inherits")(a,t),a.prototype.push=function(i,d){return this._transformState.needTransform=!1,t.prototype.push.call(this,i,d)},a.prototype._transform=function(i,d,h){h(new u("_transform()"))},a.prototype._write=function(i,d,h){var y=this._transformState;if(y.writecb=h,y.writechunk=i,y.writeencoding=d,!y.transforming){var b=this._readableState;(y.needTransform||b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}},a.prototype._read=function(i){var d=this._transformState;d.writechunk===null||d.transforming?d.needTransform=!0:(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform))},a.prototype._destroy=function(i,d){t.prototype._destroy.call(this,i,function(h){d(h)})}},{"../errors":55,"./_stream_duplex":56,inherits:24}],60:[function(s,g,w){(function(m,u){(function(){function c(I){var D=this;this.next=null,this.entry=null,this.finish=function(){(function(M,P,z){var H=M.entry;for(M.entry=null;H;){var W=H.callback;P.pendingcb--,W(z),H=H.next}P.corkedRequestsFree.next=M})(D,I)}}var l;g.exports=k,k.WritableState=C;var r={deprecate:s("util-deprecate")},t=s("./internal/streams/stream"),a=s("buffer").Buffer,o=u.Uint8Array||function(){},n,i=s("./internal/streams/destroy"),d=s("./internal/streams/state").getHighWaterMark,h=s("../errors").codes,y=h.ERR_INVALID_ARG_TYPE,b=h.ERR_METHOD_NOT_IMPLEMENTED,f=h.ERR_MULTIPLE_CALLBACK,x=h.ERR_STREAM_CANNOT_PIPE,$=h.ERR_STREAM_DESTROYED,B=h.ERR_STREAM_NULL_VALUES,E=h.ERR_STREAM_WRITE_AFTER_END,N=h.ERR_UNKNOWN_ENCODING,U=i.errorOrDestroy;function R(){}function C(I,D,M){l=l||s("./_stream_duplex"),I=I||{},typeof M!="boolean"&&(M=D instanceof l),this.objectMode=!!I.objectMode,M&&(this.objectMode=this.objectMode||!!I.writableObjectMode),this.highWaterMark=d(this,I,"writableHighWaterMark",M),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var P=I.decodeStrings===!1;this.decodeStrings=!P,this.defaultEncoding=I.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(z){(function(H,W){var G=H._writableState,X=G.sync,Y=G.writecb;if(typeof Y!="function")throw new f;if(function(_){_.writing=!1,_.writecb=null,_.length-=_.writelen,_.writelen=0}(G),W)(function(_,O,j,V,K){--O.pendingcb,j?(m.nextTick(K,V),m.nextTick(q,_,O),_._writableState.errorEmitted=!0,U(_,V)):(K(V),_._writableState.errorEmitted=!0,U(_,V),q(_,O))})(H,G,X,W,Y);else{var p=L(G)||H.destroyed;p||G.corked||G.bufferProcessing||!G.bufferedRequest||A(H,G),X?m.nextTick(S,H,G,p,Y):S(H,G,p,Y)}})(D,z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=I.emitClose!==!1,this.autoDestroy=!!I.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new c(this)}function k(I){var D=this instanceof(l=l||s("./_stream_duplex"));if(!D&&!n.call(k,this))return new k(I);this._writableState=new C(I,this,D),this.writable=!0,I&&(typeof I.write=="function"&&(this._write=I.write),typeof I.writev=="function"&&(this._writev=I.writev),typeof I.destroy=="function"&&(this._destroy=I.destroy),typeof I.final=="function"&&(this._final=I.final)),t.call(this)}function T(I,D,M,P,z,H,W){D.writelen=P,D.writecb=W,D.writing=!0,D.sync=!0,D.destroyed?D.onwrite(new $("write")):M?I._writev(z,D.onwrite):I._write(z,H,D.onwrite),D.sync=!1}function S(I,D,M,P){M||function(z,H){H.length===0&&H.needDrain&&(H.needDrain=!1,z.emit("drain"))}(I,D),D.pendingcb--,P(),q(I,D)}function A(I,D){D.bufferProcessing=!0;var M=D.bufferedRequest;if(I._writev&&M&&M.next){var P=D.bufferedRequestCount,z=new Array(P),H=D.corkedRequestsFree;H.entry=M;for(var W=0,G=!0;M;)z[W]=M,M.isBuf||(G=!1),M=M.next,W+=1;z.allBuffers=G,T(I,D,!0,D.length,z,"",H.finish),D.pendingcb++,D.lastBufferedRequest=null,H.next?(D.corkedRequestsFree=H.next,H.next=null):D.corkedRequestsFree=new c(D),D.bufferedRequestCount=0}else{for(;M;){var X=M.chunk,Y=M.encoding,p=M.callback;if(T(I,D,!1,D.objectMode?1:X.length,X,Y,p),M=M.next,D.bufferedRequestCount--,D.writing)break}M===null&&(D.lastBufferedRequest=null)}D.bufferedRequest=M,D.bufferProcessing=!1}function L(I){return I.ending&&I.length===0&&I.bufferedRequest===null&&!I.finished&&!I.writing}function F(I,D){I._final(function(M){D.pendingcb--,M&&U(I,M),D.prefinished=!0,I.emit("prefinish"),q(I,D)})}function q(I,D){var M=L(D);if(M&&(function(z,H){H.prefinished||H.finalCalled||(typeof z._final!="function"||H.destroyed?(H.prefinished=!0,z.emit("prefinish")):(H.pendingcb++,H.finalCalled=!0,m.nextTick(F,z,H)))}(I,D),D.pendingcb===0&&(D.finished=!0,I.emit("finish"),D.autoDestroy))){var P=I._readableState;(!P||P.autoDestroy&&P.endEmitted)&&I.destroy()}return M}s("inherits")(k,t),C.prototype.getBuffer=function(){for(var I=this.bufferedRequest,D=[];I;)D.push(I),I=I.next;return D},function(){try{Object.defineProperty(C.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(I){return!!n.call(this,I)||this===k&&I&&I._writableState instanceof C}})):n=function(I){return I instanceof this},k.prototype.pipe=function(){U(this,new x)},k.prototype.write=function(I,D,M){var P,z=this._writableState,H=!1,W=!z.objectMode&&(P=I,a.isBuffer(P)||P instanceof o);return W&&!a.isBuffer(I)&&(I=function(G){return a.from(G)}(I)),typeof D=="function"&&(M=D,D=null),W?D="buffer":D||(D=z.defaultEncoding),typeof M!="function"&&(M=R),z.ending?function(G,X){var Y=new E;U(G,Y),m.nextTick(X,Y)}(this,M):(W||function(G,X,Y,p){var _;return Y===null?_=new B:typeof Y=="string"||X.objectMode||(_=new y("chunk",["string","Buffer"],Y)),!_||(U(G,_),m.nextTick(p,_),!1)}(this,z,I,M))&&(z.pendingcb++,H=function(G,X,Y,p,_,O){if(!Y){var j=function(J,Z,ee){return J.objectMode||J.decodeStrings===!1||typeof Z!="string"||(Z=a.from(Z,ee)),Z}(X,p,_);p!==j&&(Y=!0,_="buffer",p=j)}var V=X.objectMode?1:p.length;X.length+=V;var K=X.length<X.highWaterMark;if(K||(X.needDrain=!0),X.writing||X.corked){var Q=X.lastBufferedRequest;X.lastBufferedRequest={chunk:p,encoding:_,isBuf:Y,callback:O,next:null},Q?Q.next=X.lastBufferedRequest:X.bufferedRequest=X.lastBufferedRequest,X.bufferedRequestCount+=1}else T(G,X,!1,V,p,_,O);return K}(this,z,W,I,D,M)),H},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var I=this._writableState;I.corked&&(I.corked--,I.writing||I.corked||I.bufferProcessing||!I.bufferedRequest||A(this,I))},k.prototype.setDefaultEncoding=function(I){if(typeof I=="string"&&(I=I.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw new N(I);return this._writableState.defaultEncoding=I,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(I,D,M){M(new b("_write()"))},k.prototype._writev=null,k.prototype.end=function(I,D,M){var P=this._writableState;return typeof I=="function"?(M=I,I=null,D=null):typeof D=="function"&&(M=D,D=null),I!=null&&this.write(I,D),P.corked&&(P.corked=1,this.uncork()),P.ending||function(z,H,W){H.ending=!0,q(z,H),W&&(H.finished?m.nextTick(W):z.once("finish",W)),H.ended=!0,z.writable=!1}(this,P,M),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(I){this._writableState&&(this._writableState.destroyed=I)}}),k.prototype.destroy=i.destroy,k.prototype._undestroy=i.undestroy,k.prototype._destroy=function(I,D){D(I)}}).call(this)}).call(this,s("_process"),typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":55,"./_stream_duplex":56,"./internal/streams/destroy":63,"./internal/streams/state":67,"./internal/streams/stream":68,_process:50,buffer:17,inherits:24,"util-deprecate":78}],61:[function(s,g,w){(function(m){(function(){var u;function c(x,$,B){return $ in x?Object.defineProperty(x,$,{value:B,enumerable:!0,configurable:!0,writable:!0}):x[$]=B,x}var l=s("./end-of-stream"),r=Symbol("lastResolve"),t=Symbol("lastReject"),a=Symbol("error"),o=Symbol("ended"),n=Symbol("lastPromise"),i=Symbol("handlePromise"),d=Symbol("stream");function h(x,$){return{value:x,done:$}}function y(x){var $=x[r];if($!==null){var B=x[d].read();B!==null&&(x[n]=null,x[r]=null,x[t]=null,$(h(B,!1)))}}var b=Object.getPrototypeOf(function(){}),f=Object.setPrototypeOf((c(u={get stream(){return this[d]},next:function(){var x=this,$=this[a];if($!==null)return Promise.reject($);if(this[o])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(U,R){m.nextTick(function(){x[a]?R(x[a]):U(h(void 0,!0))})});var B,E=this[n];if(E)B=new Promise(function(U,R){return function(C,k){U.then(function(){R[o]?C(h(void 0,!0)):R[i](C,k)},k)}}(E,this));else{var N=this[d].read();if(N!==null)return Promise.resolve(h(N,!1));B=new Promise(this[i])}return this[n]=B,B}},Symbol.asyncIterator,function(){return this}),c(u,"return",function(){var x=this;return new Promise(function($,B){x[d].destroy(null,function(E){E?B(E):$(h(void 0,!0))})})}),u),b);g.exports=function(x){var $,B=Object.create(f,(c($={},d,{value:x,writable:!0}),c($,r,{value:null,writable:!0}),c($,t,{value:null,writable:!0}),c($,a,{value:null,writable:!0}),c($,o,{value:x._readableState.endEmitted,writable:!0}),c($,i,{value:function(E,N){var U=B[d].read();U?(B[n]=null,B[r]=null,B[t]=null,E(h(U,!1))):(B[r]=E,B[t]=N)},writable:!0}),$));return B[n]=null,l(x,function(E){if(E&&E.code!=="ERR_STREAM_PREMATURE_CLOSE"){var N=B[t];return N!==null&&(B[n]=null,B[r]=null,B[t]=null,N(E)),void(B[a]=E)}var U=B[r];U!==null&&(B[n]=null,B[r]=null,B[t]=null,U(h(void 0,!0))),B[o]=!0}),x.on("readable",(function(E){m.nextTick(y,E)}).bind(null,B)),B}}).call(this)}).call(this,s("_process"))},{"./end-of-stream":64,_process:50}],62:[function(s,g,w){function m(a,o){var n=Object.keys(a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(a);o&&(i=i.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),n.push.apply(n,i)}return n}function u(a,o,n){return o in a?Object.defineProperty(a,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[o]=n,a}function c(a,o){for(var n=0;n<o.length;n++){var i=o[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}var l=s("buffer").Buffer,r=s("util").inspect,t=r&&r.custom||"inspect";g.exports=function(){function a(){(function(i,d){if(!(i instanceof d))throw new TypeError("Cannot call a class as a function")})(this,a),this.head=null,this.tail=null,this.length=0}var o,n;return o=a,(n=[{key:"push",value:function(i){var d={data:i,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length}},{key:"unshift",value:function(i){var d={data:i,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length}},{key:"shift",value:function(){if(this.length!==0){var i=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,i}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(i){if(this.length===0)return"";for(var d=this.head,h=""+d.data;d=d.next;)h+=i+d.data;return h}},{key:"concat",value:function(i){if(this.length===0)return l.alloc(0);for(var d,h,y,b=l.allocUnsafe(i>>>0),f=this.head,x=0;f;)d=f.data,h=b,y=x,l.prototype.copy.call(d,h,y),x+=f.data.length,f=f.next;return b}},{key:"consume",value:function(i,d){var h;return i<this.head.data.length?(h=this.head.data.slice(0,i),this.head.data=this.head.data.slice(i)):h=i===this.head.data.length?this.shift():d?this._getString(i):this._getBuffer(i),h}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(i){var d=this.head,h=1,y=d.data;for(i-=y.length;d=d.next;){var b=d.data,f=i>b.length?b.length:i;if(f===b.length?y+=b:y+=b.slice(0,i),(i-=f)===0){f===b.length?(++h,d.next?this.head=d.next:this.head=this.tail=null):(this.head=d,d.data=b.slice(f));break}++h}return this.length-=h,y}},{key:"_getBuffer",value:function(i){var d=l.allocUnsafe(i),h=this.head,y=1;for(h.data.copy(d),i-=h.data.length;h=h.next;){var b=h.data,f=i>b.length?b.length:i;if(b.copy(d,d.length-i,0,f),(i-=f)===0){f===b.length?(++y,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=b.slice(f));break}++y}return this.length-=y,d}},{key:t,value:function(i,d){return r(this,function(h){for(var y=1;y<arguments.length;y++){var b=arguments[y]!=null?arguments[y]:{};y%2?m(Object(b),!0).forEach(function(f){u(h,f,b[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(b)):m(Object(b)).forEach(function(f){Object.defineProperty(h,f,Object.getOwnPropertyDescriptor(b,f))})}return h}({},d,{depth:0,customInspect:!1}))}}])&&c(o.prototype,n),a}()},{buffer:17,util:16}],63:[function(s,g,w){(function(m){(function(){function u(r,t){l(r,t),c(r)}function c(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function l(r,t){r.emit("error",t)}g.exports={destroy:function(r,t){var a=this,o=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return o||n?(t?t(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,m.nextTick(l,this,r)):m.nextTick(l,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(i){!t&&i?a._writableState?a._writableState.errorEmitted?m.nextTick(c,a):(a._writableState.errorEmitted=!0,m.nextTick(u,a,i)):m.nextTick(u,a,i):t?(m.nextTick(c,a),t(i)):m.nextTick(c,a)}),this)},undestroy:function(){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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(r,t){var a=r._readableState,o=r._writableState;a&&a.autoDestroy||o&&o.autoDestroy?r.destroy(t):r.emit("error",t)}}}).call(this)}).call(this,s("_process"))},{_process:50}],64:[function(s,g,w){var m=s("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function u(){}g.exports=function c(l,r,t){if(typeof r=="function")return c(l,null,r);r||(r={}),t=function($){var B=!1;return function(){if(!B){B=!0;for(var E=arguments.length,N=new Array(E),U=0;U<E;U++)N[U]=arguments[U];$.apply(this,N)}}}(t||u);var a=r.readable||r.readable!==!1&&l.readable,o=r.writable||r.writable!==!1&&l.writable,n=function(){l.writable||d()},i=l._writableState&&l._writableState.finished,d=function(){o=!1,i=!0,a||t.call(l)},h=l._readableState&&l._readableState.endEmitted,y=function(){a=!1,h=!0,o||t.call(l)},b=function($){t.call(l,$)},f=function(){var $;return a&&!h?(l._readableState&&l._readableState.ended||($=new m),t.call(l,$)):o&&!i?(l._writableState&&l._writableState.ended||($=new m),t.call(l,$)):void 0},x=function(){l.req.on("finish",d)};return function($){return $.setHeader&&typeof $.abort=="function"}(l)?(l.on("complete",d),l.on("abort",f),l.req?x():l.on("request",x)):o&&!l._writableState&&(l.on("end",n),l.on("close",n)),l.on("end",y),l.on("finish",d),r.error!==!1&&l.on("error",b),l.on("close",f),function(){l.removeListener("complete",d),l.removeListener("abort",f),l.removeListener("request",x),l.req&&l.req.removeListener("finish",d),l.removeListener("end",n),l.removeListener("close",n),l.removeListener("finish",d),l.removeListener("end",y),l.removeListener("error",b),l.removeListener("close",f)}}},{"../../../errors":55}],65:[function(s,g,w){g.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],66:[function(s,g,w){var m,u=s("../../../errors").codes,c=u.ERR_MISSING_ARGS,l=u.ERR_STREAM_DESTROYED;function r(o){if(o)throw o}function t(o){o()}function a(o,n){return o.pipe(n)}g.exports=function(){for(var o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];var d,h=function(b){return b.length?typeof b[b.length-1]!="function"?r:b.pop():r}(n);if(Array.isArray(n[0])&&(n=n[0]),n.length<2)throw new c("streams");var y=n.map(function(b,f){var x=f<n.length-1;return function($,B,E,N){N=function(C){var k=!1;return function(){k||(k=!0,C.apply(void 0,arguments))}}(N);var U=!1;$.on("close",function(){U=!0}),m===void 0&&(m=s("./end-of-stream")),m($,{readable:B,writable:E},function(C){if(C)return N(C);U=!0,N()});var R=!1;return function(C){if(!U&&!R)return R=!0,function(k){return k.setHeader&&typeof k.abort=="function"}($)?$.abort():typeof $.destroy=="function"?$.destroy():void N(C||new l("pipe"))}}(b,x,f>0,function($){d||(d=$),$&&y.forEach(t),x||(y.forEach(t),h(d))})});return n.reduce(a)}},{"../../../errors":55,"./end-of-stream":64}],67:[function(s,g,w){var m=s("../../../errors").codes.ERR_INVALID_OPT_VALUE;g.exports={getHighWaterMark:function(u,c,l,r){var t=function(a,o,n){return a.highWaterMark!=null?a.highWaterMark:o?a[n]:null}(c,r,l);if(t!=null){if(!isFinite(t)||Math.floor(t)!==t||t<0)throw new m(r?l:"highWaterMark",t);return Math.floor(t)}return u.objectMode?16:16384}}},{"../../../errors":55}],68:[function(s,g,w){g.exports=s("events").EventEmitter},{events:22}],69:[function(s,g,w){(w=g.exports=s("./lib/_stream_readable.js")).Stream=w,w.Readable=w,w.Writable=s("./lib/_stream_writable.js"),w.Duplex=s("./lib/_stream_duplex.js"),w.Transform=s("./lib/_stream_transform.js"),w.PassThrough=s("./lib/_stream_passthrough.js"),w.finished=s("./lib/internal/streams/end-of-stream.js"),w.pipeline=s("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":56,"./lib/_stream_passthrough.js":57,"./lib/_stream_readable.js":58,"./lib/_stream_transform.js":59,"./lib/_stream_writable.js":60,"./lib/internal/streams/end-of-stream.js":64,"./lib/internal/streams/pipeline.js":66}],70:[function(s,g,w){g.exports=function(){if(typeof arguments[0]!="function")throw new Error("callback needed");if(typeof arguments[1]!="number")throw new Error("interval needed");var m;if(arguments.length>0){m=new Array(arguments.length-2);for(var u=0;u<m.length;u++)m[u]=arguments[u+2]}return new function(c,l,r){var t=this;this._callback=c,this._args=r,this._interval=setInterval(c,l,this._args),this.reschedule=function(a){a||(a=t._interval),t._interval&&clearInterval(t._interval),t._interval=setInterval(t._callback,a,t._args)},this.clear=function(){t._interval&&(clearInterval(t._interval),t._interval=void 0)},this.destroy=function(){t._interval&&clearInterval(t._interval),t._callback=void 0,t._interval=void 0,t._args=void 0}}(arguments[0],arguments[1],m)}},{}],71:[function(s,g,w){g.exports=s("./index.js")()},{"./index.js":72}],72:[function(s,g,w){(function(m){(function(){function u(c){return c instanceof m?m.from(c):new c.constructor(c.buffer.slice(),c.byteOffset,c.length)}g.exports=function(c){return(c=c||{}).circles?function(r){var t=[],a=[];return r.proto?function n(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return o(i,n);if(i instanceof Map)return new Map(o(Array.from(i),n));if(i instanceof Set)return new Set(o(Array.from(i),n));var d={};for(var h in t.push(i),a.push(d),i){var y=i[h];if(typeof y!="object"||y===null)d[h]=y;else if(y instanceof Date)d[h]=new Date(y);else if(y instanceof Map)d[h]=new Map(o(Array.from(y),n));else if(y instanceof Set)d[h]=new Set(o(Array.from(y),n));else if(ArrayBuffer.isView(y))d[h]=u(y);else{var b=t.indexOf(y);d[h]=b!==-1?a[b]:n(y)}}return t.pop(),a.pop(),d}:function n(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return o(i,n);if(i instanceof Map)return new Map(o(Array.from(i),n));if(i instanceof Set)return new Set(o(Array.from(i),n));var d={};for(var h in t.push(i),a.push(d),i)if(Object.hasOwnProperty.call(i,h)!==!1){var y=i[h];if(typeof y!="object"||y===null)d[h]=y;else if(y instanceof Date)d[h]=new Date(y);else if(y instanceof Map)d[h]=new Map(o(Array.from(y),n));else if(y instanceof Set)d[h]=new Set(o(Array.from(y),n));else if(ArrayBuffer.isView(y))d[h]=u(y);else{var b=t.indexOf(y);d[h]=b!==-1?a[b]:n(y)}}return t.pop(),a.pop(),d};function o(n,i){for(var d=Object.keys(n),h=new Array(d.length),y=0;y<d.length;y++){var b=d[y],f=n[b];if(typeof f!="object"||f===null)h[b]=f;else if(f instanceof Date)h[b]=new Date(f);else if(ArrayBuffer.isView(f))h[b]=u(f);else{var x=t.indexOf(f);h[b]=x!==-1?a[x]:i(f)}}return h}}(c):c.proto?function r(t){if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t);if(Array.isArray(t))return l(t,r);if(t instanceof Map)return new Map(l(Array.from(t),r));if(t instanceof Set)return new Set(l(Array.from(t),r));var a={};for(var o in t){var n=t[o];typeof n!="object"||n===null?a[o]=n:n instanceof Date?a[o]=new Date(n):n instanceof Map?a[o]=new Map(l(Array.from(n),r)):n instanceof Set?a[o]=new Set(l(Array.from(n),r)):ArrayBuffer.isView(n)?a[o]=u(n):a[o]=r(n)}return a}:function r(t){if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t);if(Array.isArray(t))return l(t,r);if(t instanceof Map)return new Map(l(Array.from(t),r));if(t instanceof Set)return new Set(l(Array.from(t),r));var a={};for(var o in t)if(Object.hasOwnProperty.call(t,o)!==!1){var n=t[o];typeof n!="object"||n===null?a[o]=n:n instanceof Date?a[o]=new Date(n):n instanceof Map?a[o]=new Map(l(Array.from(n),r)):n instanceof Set?a[o]=new Set(l(Array.from(n),r)):ArrayBuffer.isView(n)?a[o]=u(n):a[o]=r(n)}return a};function l(r,t){for(var a=Object.keys(r),o=new Array(a.length),n=0;n<a.length;n++){var i=a[n],d=r[i];typeof d!="object"||d===null?o[i]=d:d instanceof Date?o[i]=new Date(d):ArrayBuffer.isView(d)?o[i]=u(d):o[i]=t(d)}return o}}}).call(this)}).call(this,s("buffer").Buffer)},{buffer:17}],73:[function(s,g,w){var m=s("buffer"),u=m.Buffer;function c(r,t){for(var a in r)t[a]=r[a]}function l(r,t,a){return u(r,t,a)}u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?g.exports=m:(c(m,w),w.Buffer=l),l.prototype=Object.create(u.prototype),c(u,l),l.from=function(r,t,a){if(typeof r=="number")throw new TypeError("Argument must not be a number");return u(r,t,a)},l.alloc=function(r,t,a){if(typeof r!="number")throw new TypeError("Argument must be a number");var o=u(r);return t!==void 0?typeof a=="string"?o.fill(t,a):o.fill(t):o.fill(0),o},l.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return u(r)},l.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return m.SlowBuffer(r)}},{buffer:17}],74:[function(s,g,w){g.exports=function(m){var u=m._readableState;return u?u.objectMode||typeof m._duplexState=="number"?m.read():m.read((c=u,c.buffer.length?c.buffer.head?c.buffer.head.data.length:c.buffer[0].length:c.length)):null;var c}},{}],75:[function(s,g,w){var m=s("safe-buffer").Buffer,u=m.isEncoding||function(h){switch((h=""+h)&&h.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}};function c(h){var y;switch(this.encoding=function(b){var f=function(x){if(!x)return"utf8";for(var $;;)switch(x){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 x;default:if($)return;x=(""+x).toLowerCase(),$=!0}}(b);if(typeof f!="string"&&(m.isEncoding===u||!u(b)))throw new Error("Unknown encoding: "+b);return f||b}(h),this.encoding){case"utf16le":this.text=t,this.end=a,y=4;break;case"utf8":this.fillLast=r,y=4;break;case"base64":this.text=o,this.end=n,y=3;break;default:return this.write=i,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=m.allocUnsafe(y)}function l(h){return h<=127?0:h>>5==6?2:h>>4==14?3:h>>3==30?4:h>>6==2?-1:-2}function r(h){var y=this.lastTotal-this.lastNeed,b=function(f,x,$){if((192&x[0])!=128)return f.lastNeed=0,"<22>";if(f.lastNeed>1&&x.length>1){if((192&x[1])!=128)return f.lastNeed=1,"<22>";if(f.lastNeed>2&&x.length>2&&(192&x[2])!=128)return f.lastNeed=2,"<22>"}}(this,h);return b!==void 0?b:this.lastNeed<=h.length?(h.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(h.copy(this.lastChar,y,0,h.length),void(this.lastNeed-=h.length))}function t(h,y){if((h.length-y)%2==0){var b=h.toString("utf16le",y);if(b){var f=b.charCodeAt(b.length-1);if(f>=55296&&f<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",y,h.length-1)}function a(h){var y=h&&h.length?this.write(h):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,b)}return y}function o(h,y){var b=(h.length-y)%3;return b===0?h.toString("base64",y):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=h[h.length-1]:(this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1]),h.toString("base64",y,h.length-b))}function n(h){var y=h&&h.length?this.write(h):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function i(h){return h.toString(this.encoding)}function d(h){return h&&h.length?this.write(h):""}w.StringDecoder=c,c.prototype.write=function(h){if(h.length===0)return"";var y,b;if(this.lastNeed){if((y=this.fillLast(h))===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<h.length?y?y+this.text(h,b):this.text(h,b):y||""},c.prototype.end=function(h){var y=h&&h.length?this.write(h):"";return this.lastNeed?y+"<22>":y},c.prototype.text=function(h,y){var b=function(x,$,B){var E=$.length-1;if(E<B)return 0;var N=l($[E]);return N>=0?(N>0&&(x.lastNeed=N-1),N):--E<B||N===-2?0:(N=l($[E]))>=0?(N>0&&(x.lastNeed=N-2),N):--E<B||N===-2?0:(N=l($[E]))>=0?(N>0&&(N===2?N=0:x.lastNeed=N-3),N):0}(this,h,y);if(!this.lastNeed)return h.toString("utf8",y);this.lastTotal=b;var f=h.length-(b-this.lastNeed);return h.copy(this.lastChar,0,f),h.toString("utf8",y,f)},c.prototype.fillLast=function(h){if(this.lastNeed<=h.length)return h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,h.length),this.lastNeed-=h.length}},{"safe-buffer":73}],76:[function(s,g,w){var m=s("punycode"),u=s("./util");function c(){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}w.parse=$,w.resolve=function(B,E){return $(B,!1,!0).resolve(E)},w.resolveObject=function(B,E){return B?$(B,!1,!0).resolveObject(E):E},w.format=function(B){return u.isString(B)&&(B=$(B)),B instanceof c?B.format():c.prototype.format.call(B)},w.Url=c;var l=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,t=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,a=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
`," "]),o=["'"].concat(a),n=["%","/","?",";","#"].concat(o),i=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=s("querystring");function $(B,E,N){if(B&&u.isObject(B)&&B instanceof c)return B;var U=new c;return U.parse(B,E,N),U}c.prototype.parse=function(B,E,N){if(!u.isString(B))throw new TypeError("Parameter 'url' must be a string, not "+typeof B);var U=B.indexOf("?"),R=U!==-1&&U<B.indexOf("#")?"?":"#",C=B.split(R);C[0]=C[0].replace(/\\/g,"/");var k=B=C.join(R);if(k=k.trim(),!N&&B.split("#").length===1){var T=t.exec(k);if(T)return this.path=k,this.href=k,this.pathname=T[1],T[2]?(this.search=T[2],this.query=E?x.parse(this.search.substr(1)):this.search.substr(1)):E&&(this.search="",this.query={}),this}var S=l.exec(k);if(S){var A=(S=S[0]).toLowerCase();this.protocol=A,k=k.substr(S.length)}if(N||S||k.match(/^\/\/[^@\/]+@[^@\/]+/)){var L=k.substr(0,2)==="//";!L||S&&b[S]||(k=k.substr(2),this.slashes=!0)}if(!b[S]&&(L||S&&!f[S])){for(var F,q,I=-1,D=0;D<i.length;D++)(M=k.indexOf(i[D]))!==-1&&(I===-1||M<I)&&(I=M);for((q=I===-1?k.lastIndexOf("@"):k.lastIndexOf("@",I))!==-1&&(F=k.slice(0,q),k=k.slice(q+1),this.auth=decodeURIComponent(F)),I=-1,D=0;D<n.length;D++){var M;(M=k.indexOf(n[D]))!==-1&&(I===-1||M<I)&&(I=M)}I===-1&&(I=k.length),this.host=k.slice(0,I),k=k.slice(I),this.parseHost(),this.hostname=this.hostname||"";var P=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!P)for(var z=this.hostname.split(/\./),H=(D=0,z.length);D<H;D++){var W=z[D];if(W&&!W.match(d)){for(var G="",X=0,Y=W.length;X<Y;X++)W.charCodeAt(X)>127?G+="x":G+=W[X];if(!G.match(d)){var p=z.slice(0,D),_=z.slice(D+1),O=W.match(h);O&&(p.push(O[1]),_.unshift(O[2])),_.length&&(k="/"+_.join(".")+k),this.hostname=p.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=m.toASCII(this.hostname));var j=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+j,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),k[0]!=="/"&&(k="/"+k))}if(!y[A])for(D=0,H=o.length;D<H;D++){var K=o[D];if(k.indexOf(K)!==-1){var Q=encodeURIComponent(K);Q===K&&(Q=escape(K)),k=k.split(K).join(Q)}}var J=k.indexOf("#");J!==-1&&(this.hash=k.substr(J),k=k.slice(0,J));var Z=k.indexOf("?");if(Z!==-1?(this.search=k.substr(Z),this.query=k.substr(Z+1),E&&(this.query=x.parse(this.query)),k=k.slice(0,Z)):E&&(this.search="",this.query={}),k&&(this.pathname=k),f[A]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){j=this.pathname||"";var ee=this.search||"";this.path=j+ee}return this.href=this.format(),this},c.prototype.format=function(){var B=this.auth||"";B&&(B=(B=encodeURIComponent(B)).replace(/%3A/i,":"),B+="@");var E=this.protocol||"",N=this.pathname||"",U=this.hash||"",R=!1,C="";this.host?R=B+this.host:this.hostname&&(R=B+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(R+=":"+this.port)),this.query&&u.isObject(this.query)&&Object.keys(this.query).length&&(C=x.stringify(this.query));var k=this.search||C&&"?"+C||"";return E&&E.substr(-1)!==":"&&(E+=":"),this.slashes||(!E||f[E])&&R!==!1?(R="//"+(R||""),N&&N.charAt(0)!=="/"&&(N="/"+N)):R||(R=""),U&&U.charAt(0)!=="#"&&(U="#"+U),k&&k.charAt(0)!=="?"&&(k="?"+k),E+R+(N=N.replace(/[?#]/g,function(T){return encodeURIComponent(T)}))+(k=k.replace("#","%23"))+U},c.prototype.resolve=function(B){return this.resolveObject($(B,!1,!0)).format()},c.prototype.resolveObject=function(B){if(u.isString(B)){var E=new c;E.parse(B,!1,!0),B=E}for(var N=new c,U=Object.keys(this),R=0;R<U.length;R++){var C=U[R];N[C]=this[C]}if(N.hash=B.hash,B.href==="")return N.href=N.format(),N;if(B.slashes&&!B.protocol){for(var k=Object.keys(B),T=0;T<k.length;T++){var S=k[T];S!=="protocol"&&(N[S]=B[S])}return f[N.protocol]&&N.hostname&&!N.pathname&&(N.path=N.pathname="/"),N.href=N.format(),N}if(B.protocol&&B.protocol!==N.protocol){if(!f[B.protocol]){for(var A=Object.keys(B),L=0;L<A.length;L++){var F=A[L];N[F]=B[F]}return N.href=N.format(),N}if(N.protocol=B.protocol,B.host||b[B.protocol])N.pathname=B.pathname;else{for(var q=(B.pathname||"").split("/");q.length&&!(B.host=q.shift()););B.host||(B.host=""),B.hostname||(B.hostname=""),q[0]!==""&&q.unshift(""),q.length<2&&q.unshift(""),N.pathname=q.join("/")}if(N.search=B.search,N.query=B.query,N.host=B.host||"",N.auth=B.auth,N.hostname=B.hostname||B.host,N.port=B.port,N.pathname||N.search){var I=N.pathname||"",D=N.search||"";N.path=I+D}return N.slashes=N.slashes||B.slashes,N.href=N.format(),N}var M=N.pathname&&N.pathname.charAt(0)==="/",P=B.host||B.pathname&&B.pathname.charAt(0)==="/",z=P||M||N.host&&B.pathname,H=z,W=N.pathname&&N.pathname.split("/")||[],G=(q=B.pathname&&B.pathname.split("/")||[],N.protocol&&!f[N.protocol]);if(G&&(N.hostname="",N.port=null,N.host&&(W[0]===""?W[0]=N.host:W.unshift(N.host)),N.host="",B.protocol&&(B.hostname=null,B.port=null,B.host&&(q[0]===""?q[0]=B.host:q.unshift(B.host)),B.host=null),z=z&&(q[0]===""||W[0]==="")),P)N.host=B.host||B.host===""?B.host:N.host,N.hostname=B.hostname||B.hostname===""?B.hostname:N.hostname,N.search=B.search,N.query=B.query,W=q;else if(q.length)W||(W=[]),W.pop(),W=W.concat(q),N.search=B.search,N.query=B.query;else if(!u.isNullOrUndefined(B.search))return G&&(N.hostname=N.host=W.shift(),(O=!!(N.host&&N.host.indexOf("@")>0)&&N.host.split("@"))&&(N.auth=O.shift(),N.host=N.hostname=O.shift())),N.search=B.search,N.query=B.query,u.isNull(N.pathname)&&u.isNull(N.search)||(N.path=(N.pathname?N.pathname:"")+(N.search?N.search:"")),N.href=N.format(),N;if(!W.length)return N.pathname=null,N.search?N.path="/"+N.search:N.path=null,N.href=N.format(),N;for(var X=W.slice(-1)[0],Y=(N.host||B.host||W.length>1)&&(X==="."||X==="..")||X==="",p=0,_=W.length;_>=0;_--)(X=W[_])==="."?W.splice(_,1):X===".."?(W.splice(_,1),p++):p&&(W.splice(_,1),p--);if(!z&&!H)for(;p--;p)W.unshift("..");!z||W[0]===""||W[0]&&W[0].charAt(0)==="/"||W.unshift(""),Y&&W.join("/").substr(-1)!=="/"&&W.push("");var O,j=W[0]===""||W[0]&&W[0].charAt(0)==="/";return G&&(N.hostname=N.host=j?"":W.length?W.shift():"",(O=!!(N.host&&N.host.indexOf("@")>0)&&N.host.split("@"))&&(N.auth=O.shift(),N.host=N.hostname=O.shift())),(z=z||N.host&&W.length)&&!j&&W.unshift(""),W.length?N.pathname=W.join("/"):(N.pathname=null,N.path=null),u.isNull(N.pathname)&&u.isNull(N.search)||(N.path=(N.pathname?N.pathname:"")+(N.search?N.search:"")),N.auth=B.auth||N.auth,N.slashes=N.slashes||B.slashes,N.href=N.format(),N},c.prototype.parseHost=function(){var B=this.host,E=r.exec(B);E&&((E=E[0])!==":"&&(this.port=E.substr(1)),B=B.substr(0,B.length-E.length)),B&&(this.hostname=B)}},{"./util":77,punycode:51,querystring:54}],77:[function(s,g,w){g.exports={isString:function(m){return typeof m=="string"},isObject:function(m){return typeof m=="object"&&m!==null},isNull:function(m){return m===null},isNullOrUndefined:function(m){return m==null}}},{}],78:[function(s,g,w){(function(m){(function(){function u(c){try{if(!m.localStorage)return!1}catch{return!1}var l=m.localStorage[c];return l!=null&&String(l).toLowerCase()==="true"}g.exports=function(c,l){if(u("noDeprecation"))return c;var r=!1;return function(){if(!r){if(u("throwDeprecation"))throw new Error(l);u("traceDeprecation")?console.trace(l):console.warn(l),r=!0}return c.apply(this,arguments)}}}).call(this)}).call(this,typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:typeof window<"u"?window:{})},{}],79:[function(s,g,w){g.exports=function m(u,c){if(u&&c)return m(u)(c);if(typeof u!="function")throw new TypeError("need wrapper function");return Object.keys(u).forEach(function(r){l[r]=u[r]}),l;function l(){for(var r=new Array(arguments.length),t=0;t<r.length;t++)r[t]=arguments[t];var a=u.apply(this,r),o=r[r.length-1];return typeof a=="function"&&a!==o&&Object.keys(o).forEach(function(n){a[n]=o[n]}),a}}},{}],80:[function(s,g,w){g.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},{}],81:[function(s,g,w){g.exports=function(){for(var u={},c=0;c<arguments.length;c++){var l=arguments[c];for(var r in l)m.call(l,r)&&(u[r]=l[r])}return u};var m=Object.prototype.hasOwnProperty},{}],82:[function(s,g,w){g.exports=function(m){m.prototype[Symbol.iterator]=function*(){for(let u=this.head;u;u=u.next)yield u.value}}},{}],83:[function(s,g,w){function m(t){var a=this;if(a instanceof m||(a=new m),a.tail=null,a.head=null,a.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){a.push(i)});else if(arguments.length>0)for(var o=0,n=arguments.length;o<n;o++)a.push(arguments[o]);return a}function u(t,a,o){var n=a===t.head?new r(o,null,a,t):new r(o,a,a.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function c(t,a){t.tail=new r(a,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function l(t,a){t.head=new r(a,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function r(t,a,o,n){if(!(this instanceof r))return new r(t,a,o,n);this.list=n,this.value=t,a?(a.next=this,this.prev=a):this.prev=null,o?(o.prev=this,this.next=o):this.next=null}g.exports=m,m.Node=r,m.create=m,m.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var a=t.next,o=t.prev;return a&&(a.prev=o),o&&(o.next=a),t===this.head&&(this.head=a),t===this.tail&&(this.tail=o),t.list.length--,t.next=null,t.prev=null,t.list=null,a},m.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var a=this.head;t.list=this,t.next=a,a&&(a.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},m.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var a=this.tail;t.list=this,t.prev=a,a&&(a.next=t),this.tail=t,this.head||(this.head=t),this.length++}},m.prototype.push=function(){for(var t=0,a=arguments.length;t<a;t++)c(this,arguments[t]);return this.length},m.prototype.unshift=function(){for(var t=0,a=arguments.length;t<a;t++)l(this,arguments[t]);return this.length},m.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},m.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},m.prototype.forEach=function(t,a){a=a||this;for(var o=this.head,n=0;o!==null;n++)t.call(a,o.value,n,this),o=o.next},m.prototype.forEachReverse=function(t,a){a=a||this;for(var o=this.tail,n=this.length-1;o!==null;n--)t.call(a,o.value,n,this),o=o.prev},m.prototype.get=function(t){for(var a=0,o=this.head;o!==null&&a<t;a++)o=o.next;if(a===t&&o!==null)return o.value},m.prototype.getReverse=function(t){for(var a=0,o=this.tail;o!==null&&a<t;a++)o=o.prev;if(a===t&&o!==null)return o.value},m.prototype.map=function(t,a){a=a||this;for(var o=new m,n=this.head;n!==null;)o.push(t.call(a,n.value,this)),n=n.next;return o},m.prototype.mapReverse=function(t,a){a=a||this;for(var o=new m,n=this.tail;n!==null;)o.push(t.call(a,n.value,this)),n=n.prev;return o},m.prototype.reduce=function(t,a){var o,n=this.head;if(arguments.length>1)o=a;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,o=this.head.value}for(var i=0;n!==null;i++)o=t(o,n.value,i),n=n.next;return o},m.prototype.reduceReverse=function(t,a){var o,n=this.tail;if(arguments.length>1)o=a;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,o=this.tail.value}for(var i=this.length-1;n!==null;i--)o=t(o,n.value,i),n=n.prev;return o},m.prototype.toArray=function(){for(var t=new Array(this.length),a=0,o=this.head;o!==null;a++)t[a]=o.value,o=o.next;return t},m.prototype.toArrayReverse=function(){for(var t=new Array(this.length),a=0,o=this.tail;o!==null;a++)t[a]=o.value,o=o.prev;return t},m.prototype.slice=function(t,a){(a=a||this.length)<0&&(a+=this.length),(t=t||0)<0&&(t+=this.length);var o=new m;if(a<t||a<0)return o;t<0&&(t=0),a>this.length&&(a=this.length);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(;i!==null&&n<a;n++,i=i.next)o.push(i.value);return o},m.prototype.sliceReverse=function(t,a){(a=a||this.length)<0&&(a+=this.length),(t=t||0)<0&&(t+=this.length);var o=new m;if(a<t||a<0)return o;t<0&&(t=0),a>this.length&&(a=this.length);for(var n=this.length,i=this.tail;i!==null&&n>a;n--)i=i.prev;for(;i!==null&&n>t;n--,i=i.prev)o.push(i.value);return o},m.prototype.splice=function(t,a,...o){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;var d=[];for(n=0;i&&n<a;n++)d.push(i.value),i=this.removeNode(i);for(i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev),n=0;n<o.length;n++)i=u(this,i,o[n]);return d},m.prototype.reverse=function(){for(var t=this.head,a=this.tail,o=t;o!==null;o=o.prev){var n=o.prev;o.prev=o.next,o.next=n}return this.head=a,this.tail=t,this};try{s("./iterator.js")(m)}catch{}},{"./iterator.js":82}]},{},[12])(12)})})(mqtt_min);var mqtt_minExports=mqtt_min.exports;const commonOption={methods:{getOptionTitle(){return{show:this.validData(this.option.titleShow,!1),text:this.option.title,subtext:this.option.subtext||"",textStyle:{color:this.option.titleColor||"#333",fontSize:this.option.titleFontSize||16},left:this.option.titlePosition||"auto",subtextStyle:{color:this.option.subTitleColor||"#aaa",fontSize:this.option.subTitleFontSize||14}}},getOptionGrid(){return{height:Number(this.option.split)*10,left:this.option.gridX||20,top:this.option.gridY||60,right:this.option.gridX2||20,bottom:this.option.gridY2||60}},getOptionTip(e={}){return{show:this.validData(this.option.tipShow,!0),formatter:this.formatter&&(()=>v=>this.formatter(v,this.dataChart))(),backgroundColor:this.option.tipBackgroundColor||"rgba(0,0,0,0.5)",textStyle:{fontSize:this.option.tipFontSize||20,color:this.option.tipColor||"#fff"},...e}},getOptionLegend(e){return{type:"scroll",show:this.validData(this.option.legend,!1),orient:this.option.legendOrient||"horizontal",x:this.option.legendPosition||"right",textStyle:{fontSize:this.option.legendFontSize||12},data:(e||this.dataChart.series||(Array.isArray(this.dataChart)?this.dataChart:[])||[]).map((v,s)=>({name:v.name,textStyle:this.getHasProp(!this.switchTheme,{color:this.getColor(s,!0)})}))}},getOptionLabel(e={}){return{show:this.validData(this.option.labelShow,!1),formatter:this.labelFormatter&&(()=>v=>this.labelFormatter(v,this.dataChart))(),textStyle:{fontSize:this.option.labelShowFontSize||14,color:this.option.labelShowColor||"inherit",fontWeight:this.option.labelShowFontWeight||500},...e}}}},common=(()=>({props:{filterList:Object,dataFormatterId:String,dataFormatterStr:String,clickFormatterStr:String,dblClickFormatterStr:String,mouseEnterFormatterStr:String,mouseLeaveFormatterStr:String,dataBeforeFormatterStr:String,dataAfterFormatterStr:String,echartFormatterStr:String,labelFormatterStr:String,stylesFormatterStr:String,formatterStr:String,titleFormatter:Function,sqlFormatter:Function,recordFormatter:Function,transfer:Function,dataQueryType:String,dataQuery:String,dataHeader:String,fontFamily:String,initialize:{type:Boolean,default:!0},width:{type:[Number,String],default:600},height:{type:[Number,String],default:600},theme:{type:String},child:{type:Object,default:()=>({})},record:{type:String},public:{type:String},sql:{type:String},time:{type:Number,default:0},proxy:{type:Boolean},url:{type:String},wsUrl:{type:String},mqttUrl:{type:String},mqttConfig:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!0},dataType:{type:Number,default:0},dataMethod:{type:String,default:"get"},id:{type:String,default:"main_"+uuid()},data:{},component:{type:Object,default:()=>({})},option:{type:Object,default:()=>({})}},mixins:[commonOption],data(){return{headerHeight:"",checkChart:"",myChart:"",dataOldChart:[],dataResultChart:[],dataChart:[],dataAxios:{},dataParams:{},refList:[],wsClient:{},mqClient:{},styles:{},appendCheck:{},appendObj:{},appendList:[],className:""}},watch:{data(){this.updateData()},dataAppend(e){this.appendObj={},this.appendList=[],e?this.dataChart=[]:this.appendCheck=clearInterval(this.appendCheck),this.updateData()},echartFormatter(e){this.updateChart()},width(){this.$nextTick(()=>{this.updateChart()})},height(){this.$nextTick(()=>{this.updateChart()}),this.updateChart()},theme(){this.myChart.dispose(),this.init()},option:{handler(){this.updateChart()},deep:!0},"component.animatedInfinite"(){this.initAnima()},"component.animated"(){this.initAnima()},"component.animatedSwitch"(){this.initAnima()}},computed:{mappingValue(){return this.dataChart[this.option.mapping||"value"]},dataFormatter(){let e=this.dataFormatterStr;return this.dataFormatterId&&(e=this.filterList[this.dataFormatterId].dataFormatter),getFunction(e)},clickFormatter(){return getFunction(this.clickFormatterStr,!0)},dblClickFormatter(){return getFunction(this.dblClickFormatterStr,!0)},mouseEnterFormatter(){return getFunction(this.mouseEnterFormatterStr,!0)},mouseLeaveFormatter(){return getFunction(this.mouseLeaveFormatterStr,!0)},dataBeforeFormatter(){return getFunction(this.dataBeforeFormatterStr,!0)},dataAfterFormatter(){return getFunction(this.dataAfterFormatterStr,!0)},echartFormatter(){return getFunction(this.echartFormatterStr)},labelFormatter(){return getFunction(this.labelFormatterStr)},stylesFormatter(){return getFunction(this.stylesFormatterStr)},formatter(){return getFunction(this.formatterStr)},count(){return this.option.count},dataAppend(){return this.option.dataAppend},dataChartLen(){return(this.dataChart||[]).length},switchTheme(){return this.validData(this.option.switchTheme,!1)},name(){return this.$el.className.split(" ")[0].replace(config.name,"")},minWidth(){const e=this.option.minWidth;if(e>this.width)return e},styleChartName(){return{fontFamily:loadFont(this.component.fontFamily),width:setPx(this.minWidth||this.width),height:setPx(this.height),opacity:this.component.opacity||1,transformOrigin:"0,0",filter:`contrast(${this.component.contrast||100}%) saturate(${this.component.saturate||100}%) brightness(${this.component.brightness||100}%) opacity(${this.component.opacity||100}%) grayscale(${this.component.grayscale||0}%) hue-rotate(${this.component.hueRotate||0}deg) invert(${this.component.invert||0}%) blur(${this.component.blur}px)`,transform:`scale(${this.component.scale||1}) perspective(${this.component.perspective||500}px) rotateX(${this.component.rotateX||0}deg) rotateY(${this.component.rotateY||0}deg) rotateZ(${this.component.rotateZ||0}deg)`}},styleSizeName(){return Object.assign({width:setPx(this.width),height:setPx(this.height)},(()=>this.minWidth?{overflowX:"auto",overflowY:"hidden"}:{})(),this.styles,{animationDuration:this.component.animateDuration+"s",animationDelay:this.component.animateDelay+"s",animationTimingFunction:this.component.animateSpeed,animationDirection:this.component.animateDirection})}},mounted(){this.init()},methods:{init(){this.refList=this.getItemRefs(),this.initAnima();const e=this.$refs[this.id];e&&config.echart.includes(this.name)&&(this.myChart=vue.markRaw(window.echarts.init(e,this.theme))),this.updateChart(),this.updateData()},initAnima(){console.log(this.component.animatedSwitch),this.component.animatedSwitch?this.className=`animated ${this.component.animated||""}${this.component.animatedInfinite?" infinite":""}`:this.className="",console.log(this.className)},getItemRefs(){let e=this.$parent.$parent.$parent.$refs,v={};return Object.keys(e).forEach(s=>{if(s.indexOf(common$1.NAME)!==-1){let g=e[s][0];g&&(v[s.replace(common$1.NAME,"")]=g.$refs.temp)}else if((e[s][0]||{})==="folder"){let g=e[s][0];g&&(v[s.replace(common$1.DEAFNAME,"")]=g)}}),v},updateChart(){},updateClick(e){let v=this.getItemRefs(),s=this.child.index,g=this.child.paramName,w=this.child.paramValue||"value",m=this.child.paramList||[],u={};!validatenull(g)&&!validatenull(w)&&(u[g]=e[w]),validatenull(u)||s.forEach(c=>{v[c].updateData(u)}),this.transfer&&this.transfer(m,v,e)},updateAppend(e){if(this.validatenull(this.appendObj))this.appendList=e,this.appendObj=e[0];else{let v=[];for(let s=0;s<e.length;s++){const g=e[s];if(g.id===this.appendObj.id)break;v.push(g)}this.appendObj=e[0],v.reverse().forEach(s=>{this.appendList.unshift(s)})}this.validatenull(this.appendCheck)&&(this.appendCheck=setInterval(()=>{let v=this.appendList.length-1;if(v>=0){let s=this.appendList.splice(v,1)[0];this.dataChart.unshift(s);let g=this.dataChart.length;g>this.count&&this.appendList.splice(g-1,1)}},2e3))},bindEvent(){this.myChart&&[{name:"click",event:"handleClick"},{name:"dblclick",event:"handleDblClick"},{name:"mouseover",event:"handleMouseEnter"},{name:"mouseout",event:"handleMouseLeave"}].forEach(e=>{this.myChart.off(e.name),this.myChart.on(e.name,v=>this[e.event](v,v.dataIndex))})},updateData(e={}){let v,s=!1,g=this.dataType===4,w=this.dataType===5;return this.dataParams=Object.assign(this.dataParams,e),new Promise((m,u)=>{if(this.resetData&&this.resetData(),s)return;s=!0;let c=this;const l=(a,o)=>{if(this.dataOldChart=a,g){const n=getFunction(c.dataFormatter);typeof n=="function"&&(a=n(a))}if(typeof this.dataFormatter=="function")try{a=this.dataFormatter(a,o,this.getItemRefs())}catch(n){u(n),console.log(new Error(n)),a=n+""}return this.handleCommonBind(a,-1,"dataAfterFormatter"),a},r=()=>{this.handleCommonBind({},-1,"dataBeforeFormatter"),c=v||this,s=!1;let a=c.dataType===1,o=c.dataType===2,n=c.dataType===3,i=c.dataType==6,d=c.dataType===7;this.closeClient();const h=()=>{this.updateChart(),this.bindEvent(),typeof this.stylesFormatter=="function"&&(this.styles=this.stylesFormatter(this.dataChart,this.dataParams,this.getItemRefs())||{}),this.$refs.main&&this.$refs.main.updateData&&this.$refs.main.updateData(e),m({news:this.dataChart,old:this.dataOldChart})};if(a||d){let y=c.url;if(this.validatenull(y))return;let b=getFunction(c.dataQuery);b=typeof b=="function"&&b(y)||{};let f=getFunction(c.dataHeader);f=typeof f=="function"&&f(y)||{};let x=Object.assign(b,this.dataParams),$={};if((c.proxy||d)&&(f.proxy=!0),["post","put"].includes(c.dataMethod)){if($.data=x,c.dataQueryType=="form"){c.proxy&&(f.form=!0);let B=[];Object.keys(x).forEach(E=>{B.push(`${E}=${x[E]}`)}),$.data=B.join("&")}}else["get","delete"].includes(c.dataMethod)&&($.params=x);this.$axios({method:c.dataMethod,url:y,headers:f,...$}).then(B=>{this.dataAxios=B;let E=B.data;E=l(E,x),this.dataAppend?this.updateAppend(E):this.dataChart=E,h()}).catch(B=>{u(B)})}else if(n){let y=c.wsUrl;if(this.validatenull(y))return;let b=getFunction(c.dataQuery);b=typeof b=="function"&&b(y)||{};let f=Object.assign(b,this.dataParams);y=y+addParam(f),this.wsClient=new WebSocket(y),this.wsClient.onmessage=(x={})=>{let $=JSON.parse(x.data);this.dataChart=l($,this.dataParams),h()}}else if(o){let y=JSON.parse(c.sql),b,f;try{y.sql=funEval(y.sql)(this.dataParams),b=JSON.stringify(y)}catch{b=c.sql}this.sqlFormatter(b).then(x=>{f=x.data.data,this.dataChart=l(f,this.dataParams),h()}).catch(x=>{u(x)})}else if(i){let y=c.mqttUrl,b=JSON.parse(c.mqttConfig);b.clientId="mqttjs_"+(this.index||uuid()),this.mqClient=mqtt_minExports.connect(y,b),this.mqClient.on("connect",()=>{this.mqClient.subscribe(b.topic.name,{qos:b.topic.qos||0},(f,x)=>{console.log("Subscribe to topics res",x,f),h()})}),this.mqClient.on("message",(f,x)=>{let $=b.topic;if(f===$.name){let B=JSON.parse(x);this.dataChart=l(B,this.dataParams)}})}else if(w){let b=this.getItemRefs()[this.public].dataChart;this.dataChart=l(b,this.dataParams),this.dataResultChart=this.deepClone(b),h()}else{let y=c.data;g&&(y=funEval(y)),this.dataChart=l(y,this.dataParams),h()}},t=()=>{this.$nextTick(()=>{r(),this.checkChart&&clearInterval(this.checkChart),w&&(this.checkChart=setInterval(()=>{let o=this.getItemRefs()[this.public].dataChart;JSON.stringify(o)!=JSON.stringify(this.dataResultChart)&&(this.dataResultChart=o,r())},100)),this.time!=0&&!this.validatenull(this.time)&&this.disabled&&(this.checkChart=setInterval(()=>{r()},this.time))})};g?this.recordFormatter(this.record).then(a=>{const o=a.data.data;v={...o,sql:o.data},t()}):t()})},handleCommonBind(e,v,s){s=="clickFormatter"&&this.updateClick(e||this.dataChart);let g={};this.validatenull(v)?g=e||this.dataChart:(g={item:e,index:v,data:this.dataChart},e&&e.value&&(g.value=e.value)),this[s]&&this[s](g,this.getItemRefs())},handleClick(e={},v){e.pointerType=="mouse"&&(e=this.dataChart),this.handleCommonBind(e,v,"clickFormatter")},handleDblClick(e={},v){e.pointerType=="mouse"&&(e=this.dataChart),this.handleCommonBind(e,v,"dblClickFormatter")},handleMouseEnter(e={},v){e.pointerType=="mouse"&&(e=this.dataChart),this.handleCommonBind(e,v,"mouseEnterFormatter")},handleMouseLeave(e={},v){e.pointerType=="mouse"&&(e=this.dataChart),this.handleCommonBind(e,v,"mouseLeaveFormatter")},getColor(e,v){if(this.validatenull(window.$glob.theme)){const s=this.option.barColor||[];if(s[e]){const g=s[e].color1,w=s[e].color2,m=(s[e].postion||.9)*.01;return v?g:w?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:g},{offset:m,color:w}],global:!1}:g}}else{let s=window.$glob.theme.color;if(s[e])return s[e]}},getHasProp(e,v,s={}){return Object.assign((()=>e?v:{})(),s)},closeClient(){this.wsClient.close&&this.wsClient.close(),this.mqClient.end&&this.mqClient.end(),this.mqClient.close&&this.mqClient.close()}},beforeDestroy(){clearInterval(this.checkChart),this.closeClient()}}))(),components$1=(()=>{let components={};const mixins=[common],requireComponent=Object.assign({"./code/index.vue":__vite_glob_0_0$1,"./code/option.vue":__vite_glob_0_1$1,"./fullscreen/index.vue":__vite_glob_0_2$1,"./imgTabs/index.vue":__vite_glob_0_3$1,"./imgTabs/option.vue":__vite_glob_0_4$1});return Object.keys(requireComponent).forEach(e=>{if(e.includes("index.vue")){const v=requireComponent[e].default;v.mixins=mixins,components[`${KEY_COMPONENT_NAME}${v.name}`]=v,v.name=`${KEY_COMPONENT_NAME}${v.name}`,components[v.name]=v}}),website.componentsList.map(e=>e.component).forEach(cmp=>{try{cmp=eval(cmp),cmp.mixins=mixins,cmp.name=`${KEY_COMPONENT_NAME}${cmp.name}`,components[cmp.name]=cmp}catch(e){console.log(e)}}),components})(),ELEMENT="__",MODS="--",join=(e,v,s)=>v?e+s+v:e,prefix=(e,v)=>{if(typeof v=="string")return join(e,v,MODS);if(Array.isArray(v))return v.map(g=>prefix(e,g));const s={};return Object.keys(v||{}).forEach(g=>{s[e+MODS+g]=v[g]}),s},bem={methods:{b(e,v){const{name:s}=this.$options;return e&&typeof e!="string"&&(v=e,e=""),e=join(s,e,ELEMENT),v?[e,prefix(e,v)]:e}}};function create(e){return e.name=KEY_COMPONENT_NAME+e.name,e.mixins=e.mixins||[],e.mixins.push(bem),e.mixins.push(common),e}const _sfc_main$A=create({name:"audio",props:{option:{type:Object,default:()=>({})}},data(){return{}},created(){},mounted(){},methods:{play(e){const v=new SpeechSynthesisUtterance;v.lang=this.option.lang,v.pitch=this.option.pitch,v.rate=this.option.rate,v.text=e||this.dataChart.value,v.volume=this.option.volume,window.speechSynthesis.speak(v)},pause(){window.speechSynthesis.pause()},resume(){window.speechSynthesis.resume()},cancel(){window.speechSynthesis.cancel()}}});function _sfc_render$A(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),ref:"main"},[vue.createElementVNode("i",{class:"iconfont icon-audio",onClick:v[0]||(v[0]=u=>e.play())})],6)}const index$z=_export_sfc$1(_sfc_main$A,[["render",_sfc_render$A]]),__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:index$z},Symbol.toStringTag,{value:"Module"})),_sfc_main$z=create({name:"bar",methods:{updateChart(){const e=this.deepClone(this.dataChart),v={title:this.getOptionTitle(),tooltip:this.getOptionTip({trigger:"axis"}),grid:this.getOptionGrid(),legend:this.getOptionLegend(),xAxis:{show:this.validData(this.option.xAxisShow,!0),type:this.option.category?"value":"category",name:this.option.xAxisName,nameTextStyle:{color:this.option.xAxisColor||"#fff",fontSize:this.option.xAxisFontSize||14},axisLine:{show:!0,lineStyle:{color:this.option.xAxisLineColor||"#fff"}},data:e.categories||[],inverse:this.validData(this.option.xAxisInverse,!1),splitLine:{show:this.validData(this.option.xAxisSplitLineShow,!1)},axisLabel:{interval:this.option.xAxisInterval||"auto",rotate:this.option.xAxisRotate||0,textStyle:{color:this.option.xAxisColor||"#fff",fontSize:this.option.xAxisFontSize||14}}},yAxis:{show:this.validData(this.option.yAxisShow,!0),type:this.option.category?"category":"value",name:this.option.yAxisName,nameTextStyle:{color:this.option.yAxisColor||"#fff",fontSize:this.option.yAxisFontSize||14},data:e.categories||[],axisLabel:{textStyle:{color:this.option.yAxisColor||"#fff",fontSize:this.option.yAxisFontSize||14}},axisLine:{show:!0,lineStyle:{color:this.option.yAxisLineColor||"#fff"}},inverse:this.validData(this.option.yAxisInverse,!1),splitLine:{show:this.validData(this.option.yAxisSplitLineShow,!1)}},series:(()=>(this.option.barColor,(e.series||[]).map((g,w)=>Object.assign(g,{type:"bar",stack:g.stack,barWidth:this.option.barWidth||16,barMinHeight:this.option.barMinHeight||0,itemStyle:this.getHasProp(!this.switchTheme,{color:this.getColor(w)},{barBorderRadius:this.option.barRadius||0}),label:this.getOptionLabel({position:this.option.category?"right":"top"})}))))()};this.myChart.resize(),this.myChart.setOption(v,this.initialize)}}});function _sfc_render$z(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName)},[vue.createElementVNode("div",{ref:e.id,style:vue.normalizeStyle(e.styleChartName)},null,4)],6)}const index$y=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$z]]),__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:index$y},Symbol.toStringTag,{value:"Module"})),_sfc_main$y=create({name:"borderBox",data(){return{reload:!1}},computed:{isName(){return"dvBorderBox"+this.option.type},dur(){return this.option.dur},backgroundColor(){return this.option.backgroundColor},color(){let e=[],v=this.option.color1,s=this.option.color2;return v&&e.push(v),s&&e.push(s),e}},methods:{updateChart(){this.reload=!1,this.$nextTick(()=>{this.reload=!0})}}});function _sfc_render$y(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),onMouseenter:v[0]||(v[0]=(...u)=>e.handleMouseEnter&&e.handleMouseEnter(...u)),onMouseleave:v[1]||(v[1]=(...u)=>e.handleMouseLeave&&e.handleMouseLeave(...u)),onDblclick:v[2]||(v[2]=(...u)=>e.handleDblClick&&e.handleDblClick(...u)),onClick:v[3]||(v[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[e.reload?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(e.isName),{key:0,ref:e.id,dur:e.dur,backgroundColor:e.backgroundColor,color:e.color,style:vue.normalizeStyle(e.styleChartName)},{default:vue.withCtx(()=>{var u;return[vue.createTextVNode(vue.toDisplayString((u=e.dataChart)==null?void 0:u.value),1)]}),_:1},8,["dur","backgroundColor","color","style"])):vue.createCommentVNode("",!0)],38)}const index$x=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$y]]),__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:index$x},Symbol.toStringTag,{value:"Module"})),_sfc_main$x=create({name:"clapper",data(){return{hid:"main_"+uuid(),reload:!0,config:{}}},computed:{autoplay(){return this.option.autoplay}},watch:{dataChart:{handler(){this.reload=!1,this.$nextTick(()=>{this.reload=!0,setTimeout(()=>{new Clappr.Player({parentId:"#"+this.hid,source:this.mappingValue,autoPlay:this.autoplay,mute:!0,height:"100%",width:"100%"})})})},deep:!0}}}),_hoisted_1$c=["id"];function _sfc_render$x(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),onMouseenter:v[0]||(v[0]=(...u)=>e.handleMouseEnter&&e.handleMouseEnter(...u)),onMouseleave:v[1]||(v[1]=(...u)=>e.handleMouseLeave&&e.handleMouseLeave(...u)),onDblclick:v[2]||(v[2]=(...u)=>e.handleDblClick&&e.handleDblClick(...u)),onClick:v[3]||(v[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[e.reload?(vue.openBlock(),vue.createElementBlock("div",{key:0,id:e.hid,style:vue.normalizeStyle(e.styleChartName)},null,12,_hoisted_1$c)):vue.createCommentVNode("",!0)],38)}const index$w=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$x]]),__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:index$w},Symbol.toStringTag,{value:"Module"})),_sfc_main$w=create({name:"common",data(){return{loading:!1,timeout:null}},computed:{src(){this.debounce(this.updateChart)()},remote(){return this.option.remote}},watch:{src(){this.updateChart()},remote(){this.updateChart()}},methods:{debounce(e,v=600){let s=this;return function(){const g=this,w=arguments;clearTimeout(s.timeout),s.timeout=setTimeout(function(){e.apply(g,w)},v)}},updateChart(){const e=this.deepClone(this.dataChart)||[];let v;const s=g=>{this.loading=!1,this.myChart.resize(),this.myChart.setOption(v,this.initialize),this.bindEvent()};this.remote&&this.src?(this.loading=!1,this.$axios.get(this.src).then(g=>{let w=getFunction(g.data);v=w&&w(e,this.dataParams),this.$emit("remote-change",{id:this.component,content:v}),s()}).catch(()=>{this.loading=!1})):(v=this.echartFormatter&&this.echartFormatter(e,this.dataParams),s())}}});function _sfc_render$w(e,v,s,g,w,m){const u=vue.resolveDirective("loading");return vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(255,255,255,0)",style:vue.normalizeStyle(e.styleSizeName)},[vue.createElementVNode("div",{ref:e.id,style:vue.normalizeStyle(e.styleChartName)},null,4)],6)),[[u,e.loading]])}const index$v=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$w]]),__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:index$v},Symbol.toStringTag,{value:"Module"})),_sfc_main$v=create({name:"data",data(){return{}},computed:{},watch:{},created(){},mounted(){},methods:{},props:{option:{type:Object,default:()=>({})}}}),_hoisted_1$b=vue.createElementVNode("i",{class:"iconfont icon-text"},null,-1),_hoisted_2$5=[_hoisted_1$b];function _sfc_render$v(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),ref:"main"},_hoisted_2$5,6)}const index$u=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$v]]),__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:index$u},Symbol.toStringTag,{value:"Module"})),_sfc_main$u=create({name:"datav",data(){return{reload:!1,config:{}}},methods:{updateChart(){const e=this.deepClone(this.dataChart)||[];this.config=this.echartFormatter&&this.echartFormatter(e,this.dataParams),this.reload=!1,this.$nextTick(()=>{this.reload=!0})}}});function _sfc_render$u(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),onMouseenter:v[0]||(v[0]=(...u)=>e.handleMouseEnter&&e.handleMouseEnter(...u)),onMouseleave:v[1]||(v[1]=(...u)=>e.handleMouseLeave&&e.handleMouseLeave(...u)),onDblclick:v[2]||(v[2]=(...u)=>e.handleDblClick&&e.handleDblClick(...u)),onClick:v[3]||(v[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[e.reload?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(e.option.is),vue.mergeProps({key:0,ref:e.id,style:e.styleChartName},e.config),null,16,["style"])):vue.createCommentVNode("",!0)],38)}const index$t=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$u]]),__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:index$t},Symbol.toStringTag,{value:"Module"}));var dayjs_min={exports:{}};(function(e,v){(function(s,g){e.exports=g()})(commonjsGlobal,function(){var s=1e3,g=6e4,w=36e5,m="millisecond",u="second",c="minute",l="hour",r="day",t="week",a="month",o="quarter",n="year",i="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function(T,S,A){var L=String(T);return!L||L.length>=S?T:""+Array(S+1-L.length).join(A)+T},x={s:f,z:function(T){var S=-T.utcOffset(),A=Math.abs(S),L=Math.floor(A/60),F=A%60;return(S<=0?"+":"-")+f(L,2,"0")+":"+f(F,2,"0")},m:function T(S,A){if(S.date()<A.date())return-T(A,S);var L=12*(A.year()-S.year())+(A.month()-S.month()),F=S.clone().add(L,a),q=A-F<0,I=S.clone().add(L+(q?-1:1),a);return+(-(L+(A-F)/(q?F-I:I-F))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:a,y:n,w:t,d:r,D:i,h:l,m:c,s:u,ms:m,Q:o}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},$="en",B={};B[$]=b;var E=function(T){return T instanceof C},N=function(T,S,A){var L;if(!T)return $;if(typeof T=="string")B[T]&&(L=T),S&&(B[T]=S,L=T);else{var F=T.name;B[F]=T,L=F}return!A&&L&&($=L),L||!A&&$},U=function(T,S){if(E(T))return T.clone();var A=typeof S=="object"?S:{};return A.date=T,A.args=arguments,new C(A)},R=x;R.l=N,R.i=E,R.w=function(T,S){return U(T,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var C=function(){function T(A){this.$L=N(A.locale,null,!0),this.parse(A)}var S=T.prototype;return S.parse=function(A){this.$d=function(L){var F=L.date,q=L.utc;if(F===null)return new Date(NaN);if(R.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var I=F.match(h);if(I){var D=I[2]-1||0,M=(I[7]||"0").substring(0,3);return q?new Date(Date.UTC(I[1],D,I[3]||1,I[4]||0,I[5]||0,I[6]||0,M)):new Date(I[1],D,I[3]||1,I[4]||0,I[5]||0,I[6]||0,M)}}return new Date(F)}(A),this.$x=A.x||{},this.init()},S.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},S.$utils=function(){return R},S.isValid=function(){return this.$d.toString()!==d},S.isSame=function(A,L){var F=U(A);return this.startOf(L)<=F&&F<=this.endOf(L)},S.isAfter=function(A,L){return U(A)<this.startOf(L)},S.isBefore=function(A,L){return this.endOf(L)<U(A)},S.$g=function(A,L,F){return R.u(A)?this[L]:this.set(F,A)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(A,L){var F=this,q=!!R.u(L)||L,I=R.p(A),D=function(Y,p){var _=R.w(F.$u?Date.UTC(F.$y,p,Y):new Date(F.$y,p,Y),F);return q?_:_.endOf(r)},M=function(Y,p){return R.w(F.toDate()[Y].apply(F.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(p)),F)},P=this.$W,z=this.$M,H=this.$D,W="set"+(this.$u?"UTC":"");switch(I){case n:return q?D(1,0):D(31,11);case a:return q?D(1,z):D(0,z+1);case t:var G=this.$locale().weekStart||0,X=(P<G?P+7:P)-G;return D(q?H-X:H+(6-X),z);case r:case i:return M(W+"Hours",0);case l:return M(W+"Minutes",1);case c:return M(W+"Seconds",2);case u:return M(W+"Milliseconds",3);default:return this.clone()}},S.endOf=function(A){return this.startOf(A,!1)},S.$set=function(A,L){var F,q=R.p(A),I="set"+(this.$u?"UTC":""),D=(F={},F[r]=I+"Date",F[i]=I+"Date",F[a]=I+"Month",F[n]=I+"FullYear",F[l]=I+"Hours",F[c]=I+"Minutes",F[u]=I+"Seconds",F[m]=I+"Milliseconds",F)[q],M=q===r?this.$D+(L-this.$W):L;if(q===a||q===n){var P=this.clone().set(i,1);P.$d[D](M),P.init(),this.$d=P.set(i,Math.min(this.$D,P.daysInMonth())).$d}else D&&this.$d[D](M);return this.init(),this},S.set=function(A,L){return this.clone().$set(A,L)},S.get=function(A){return this[R.p(A)]()},S.add=function(A,L){var F,q=this;A=Number(A);var I=R.p(L),D=function(z){var H=U(q);return R.w(H.date(H.date()+Math.round(z*A)),q)};if(I===a)return this.set(a,this.$M+A);if(I===n)return this.set(n,this.$y+A);if(I===r)return D(1);if(I===t)return D(7);var M=(F={},F[c]=g,F[l]=w,F[u]=s,F)[I]||1,P=this.$d.getTime()+A*M;return R.w(P,this)},S.subtract=function(A,L){return this.add(-1*A,L)},S.format=function(A){var L=this,F=this.$locale();if(!this.isValid())return F.invalidDate||d;var q=A||"YYYY-MM-DDTHH:mm:ssZ",I=R.z(this),D=this.$H,M=this.$m,P=this.$M,z=F.weekdays,H=F.months,W=function(p,_,O,j){return p&&(p[_]||p(L,q))||O[_].substr(0,j)},G=function(p){return R.s(D%12||12,p,"0")},X=F.meridiem||function(p,_,O){var j=p<12?"AM":"PM";return O?j.toLowerCase():j},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:P+1,MM:R.s(P+1,2,"0"),MMM:W(F.monthsShort,P,H,3),MMMM:W(H,P),D:this.$D,DD:R.s(this.$D,2,"0"),d:String(this.$W),dd:W(F.weekdaysMin,this.$W,z,2),ddd:W(F.weekdaysShort,this.$W,z,3),dddd:z[this.$W],H:String(D),HH:R.s(D,2,"0"),h:G(1),hh:G(2),a:X(D,M,!0),A:X(D,M,!1),m:String(M),mm:R.s(M,2,"0"),s:String(this.$s),ss:R.s(this.$s,2,"0"),SSS:R.s(this.$ms,3,"0"),Z:I};return q.replace(y,function(p,_){return _||Y[p]||I.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(A,L,F){var q,I=R.p(L),D=U(A),M=(D.utcOffset()-this.utcOffset())*g,P=this-D,z=R.m(this,D);return z=(q={},q[n]=z/12,q[a]=z,q[o]=z/3,q[t]=(P-M)/6048e5,q[r]=(P-M)/864e5,q[l]=P/w,q[c]=P/g,q[u]=P/s,q)[I]||P,F?z:R.a(z)},S.daysInMonth=function(){return this.endOf(a).$D},S.$locale=function(){return B[this.$L]},S.locale=function(A,L){if(!A)return this.$L;var F=this.clone(),q=N(A,L,!0);return q&&(F.$L=q),F},S.clone=function(){return R.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},T}(),k=C.prototype;return U.prototype=k,[["$ms",m],["$s",u],["$m",c],["$H",l],["$W",r],["$M",a],["$y",n],["$D",i]].forEach(function(T){k[T[1]]=function(S){return this.$g(S,T[0],T[1])}}),U.extend=function(T,S){return T.$i||(T(S,C,U),T.$i=!0),U},U.locale=N,U.isDayjs=E,U.unix=function(T){return U(1e3*T)},U.en=B[$],U.Ls=B,U.p={},U})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs(dayjs_minExports),_sfc_main$t=create({name:"datetime",data(){return{date:new Date,weekday:["天","一","二","三","四","五","六"]}},computed:{nowDate(){if(this.option.format==="day")return"星期"+this.weekday[dayjs().$W];const e=(this.option.format||"yyyy-MM-dd hh:mm:ss").replace("dd","DD").replace("yyyy","YYYY");return dayjs(this.date).format(e)},styleName(){return{width:"100%",height:"100%",textAlign:this.option.textAlign,letterSpacing:this.setPx(this.option.split),textIndent:this.setPx(this.option.split),backgroundColor:this.option.backgroundColor,fontWeight:this.option.fontWeight||"normal",fontSize:(this.option.fontSize||30)+"px",color:this.option.color||"#333"}}},created(){setInterval(()=>{this.date=new Date},1e3)},props:{option:{type:Object,default:()=>({})}}});function _sfc_render$t(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),onMouseenter:v[0]||(v[0]=(...u)=>e.handleMouseEnter&&e.handleMouseEnter(...u)),onMouseleave:v[1]||(v[1]=(...u)=>e.handleMouseLeave&&e.handleMouseLeave(...u)),onDblclick:v[2]||(v[2]=(...u)=>e.handleDblClick&&e.handleDblClick(...u)),ref:"main",onClick:v[3]||(v[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[vue.createElementVNode("p",{style:vue.normalizeStyle([e.styleChartName,e.styleName])},vue.toDisplayString(e.nowDate),5)],38)}const index$s=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$t]]),__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:index$s},Symbol.toStringTag,{value:"Module"})),_sfc_main$s=create({name:"decoration",data(){return{reload:!1}},computed:{isName(){return"dvDecoration"+this.option.type},dur(){return this.option.dur},color(){let e=[],v=this.option.color1,s=this.option.color2;return v&&e.push(v),s&&e.push(s),e}},methods:{updateChart(){this.reload=!1,this.$nextTick(()=>{this.reload=!0})}}});function _sfc_render$s(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),onMouseenter:v[0]||(v[0]=(...u)=>e.handleMouseEnter&&e.handleMouseEnter(...u)),onMouseleave:v[1]||(v[1]=(...u)=>e.handleMouseLeave&&e.handleMouseLeave(...u)),onDblclick:v[2]||(v[2]=(...u)=>e.handleDblClick&&e.handleDblClick(...u)),onClick:v[3]||(v[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[e.reload?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(e.isName),{key:0,ref:e.id,dur:e.dur,color:e.color,style:vue.normalizeStyle(e.styleChartName)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.dataChart.value),1)]),_:1},8,["dur","color","style"])):vue.createCommentVNode("",!0)],38)}const index$r=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$s]]),__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:index$r},Symbol.toStringTag,{value:"Module"})),_sfc_main$r=create({name:"flop",data(){return{active:0,statusDIC:[".",","]}},computed:{decimals(){return this.option.decimals||0},listData(){return Array.isArray(this.dataChart)?this.dataChart:[this.dataChart]},isWhole(){return this.option.whole},isBorder(){return this.option.border==!0},getItemsStyle(){return{minWidth:this.setPx(this.option.width),minHeight:this.setPx(this.option.height)}},getItemStyle(){return Object.assign((()=>this.isBorder?{borderImageSlice:"10 16 15 10 fill",borderImageSource:`url(${this.option.backgroundBorder})`,backgroundColor:this.option.backgroundColor,borderWidth:this.setPx(this.option.borderWidth),borderColor:this.option.borderColor,borderStyle:"solid"}:{})(),{marginTop:this.setPx(this.option.marginTop),marginBottom:this.setPx(this.option.marginTop),marginLeft:this.setPx(this.option.marginLeft),marginRight:this.setPx(this.option.marginLeft),paddingTop:this.setPx(this.option.paddingTop),paddingBottom:this.setPx(this.option.paddingTop),paddingLeft:this.setPx(this.option.paddingLeft),paddingRight:this.setPx(this.option.paddingLeft),fontSize:this.setPx(this.option.fontSize),color:this.option.color,fontWeight:this.option.fontWeight,textAlign:this.option.textAlign})},prefixStyle(){return{display:this.option.prefixInline?"inline-block":"block",textAlign:this.option.prefixTextAlign,color:this.option.prefixColor||"#fff",fontSize:this.setPx(this.option.prefixFontSize||24),lineHeight:this.setPx(this.option.prefixLineHeight)}},suffixStyle(){return{display:this.option.suffixInline?"inline-block":"block",textAlign:this.option.suffixTextAlign,color:this.option.suffixColor||"#fff",fontSize:this.setPx(this.option.suffixFontSize||24),lineHeight:this.setPx(this.option.suffixLineHeight)}}},props:{option:{type:Object,default:()=>({})}},created(){},methods:{handleClick(e,v){this.active=v,this.handleCommonBind(e,v,"clickFormatter"),e.href&&window.open(e.href,e.target)}}}),_hoisted_1$a=["onClick"];function _sfc_render$r(e,v,s,g,w,m){const u=vue.resolveComponent("avue-count-up");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName)},[vue.createElementVNode("div",{style:vue.normalizeStyle(e.styleChartName),class:vue.normalizeClass(e.b("list"))},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.listData,(c,l)=>(vue.openBlock(),vue.createElementBlock("div",{key:l,onClick:r=>e.handleClick(c,l),onMouseenter:v[0]||(v[0]=(...r)=>e.handleMouseEnter&&e.handleMouseEnter(...r)),onMouseleave:v[1]||(v[1]=(...r)=>e.handleMouseLeave&&e.handleMouseLeave(...r)),onDblclick:v[2]||(v[2]=(...r)=>e.handleDblClick&&e.handleDblClick(...r)),class:vue.normalizeClass(e.b("item")),style:vue.normalizeStyle(e.getItemsStyle)},[e.isWhole?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle([e.getItemStyle,{backgroundColor:c.backgroundColor||e.option.backgroundColor}])},[vue.createElementVNode("div",{style:vue.normalizeStyle(e.prefixStyle)},vue.toDisplayString(c.prefixText),5),(vue.openBlock(),vue.createBlock(u,{decimals:e.decimals,key:l,end:c.value},null,8,["decimals","end"])),vue.createElementVNode("div",{style:vue.normalizeStyle(e.suffixStyle)},vue.toDisplayString(c.suffixText),5)],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(e.b("box"))},[vue.createElementVNode("div",{style:vue.normalizeStyle(e.prefixStyle)},vue.toDisplayString(c.prefixText),5),vue.createElementVNode("div",{class:vue.normalizeClass(e.b("number"))},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.value.split(""),(r,t)=>(vue.openBlock(),vue.createElementBlock("div",{key:t,style:vue.normalizeStyle([e.getItemStyle,{backgroundColor:c.backgroundColor||e.option.backgroundColor}])},[(vue.openBlock(),vue.createBlock(u,{decimals:e.decimals,key:t,end:r},null,8,["decimals","end"]))],4))),128))],2),vue.createElementVNode("div",{style:vue.normalizeStyle(e.suffixStyle)},vue.toDisplayString(c.suffixText),5)],2))],46,_hoisted_1$a))),128))],6)],6)}const index$q=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$r]]),__vite_glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:index$q},Symbol.toStringTag,{value:"Module"})),_sfc_main$q=create({name:"funnel",computed:{x2(){return this.option.gridX2||20},fontSize(){return this.option.fontSize||14}},methods:{updateChart(){const e=this.deepClone(this.dataChart),v={tooltip:this.getOptionTip(),grid:this.getOptionGrid(),legend:this.getOptionLegend(),series:(()=>(this.option.barColor,[{type:"funnel",left:"10%",top:60,bottom:60,width:"80%",min:0,max:100,minSize:"0%",maxSize:"100%",sort:"descending",gap:2,label:this.getOptionLabel({position:this.option.position?"inside":""}),data:e,emphasis:{label:{fontSize:20}},itemStyle:this.getHasProp(!this.switchTheme,{color:g=>this.getColor(g.dataIndex)})}]))()};this.myChart.resize(),this.myChart.setOption(v,this.initialize)}}});function _sfc_render$q(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName)},[vue.createElementVNode("div",{ref:e.id,style:vue.normalizeStyle(e.styleChartName)},null,4)],6)}const index$p=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$q]]),__vite_glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:index$p},Symbol.toStringTag,{value:"Module"})),_sfc_main$p=create({name:"gauge",methods:{updateChart(){const e=this.deepClone(this.dataChart),v={title:this.getOptionTitle(),grid:this.getOptionGrid(),series:[{name:"业务指标",type:"gauge",min:e.min,max:e.max,axisLine:{lineStyle:{color:(()=>{let s=[];return(this.option.barColor||[]).forEach(g=>{s.push([g.postion,g.color1])}),this.validatenull(s)&&(s=[[0,2,"#91c7ae"],[.8,"#638693"],[1,"#c23531"]]),s})(),width:this.option.lineSize||5}},axisLabel:{show:this.validData(this.option.axisLabelShow,!0),fontSize:this.option.axisLabelFontSize||25,color:"auto"},axisTick:{lineStyle:{color:this.option.lineColor||"#eee"}},detail:{valueAnimation:!0,color:"auto",fontSize:this.option.nameFontSize||30,formatter:"{value}"+(this.option.unit||"")},data:[e]}]};this.myChart.resize(),this.myChart.setOption(v,this.initialize)}}});function _sfc_render$p(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName)},[vue.createElementVNode("div",{ref:e.id,style:vue.normalizeStyle(e.styleChartName)},null,4)],6)}const index$o=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$p]]),__vite_glob_0_11=Object.freeze(Object.defineProperty({__proto__:null,default:index$o},Symbol.toStringTag,{value:"Module"})),_sfc_main$o=create({name:"graph",data(){return{}},computed:{fill(){return this.option.fill||"transparent"},type(){return{horizontal:`M0 ${this.height/2} l${this.width} 0`,vertical:`M${this.width/2} 0 l0 ${this.height}`}[this.option.type]},dasharray(){return{dotted:"5 5",dashed:"10 10",blend:"10 10 2 10"}[this.option.lineType]},pathClassName(){return this.option.animation?`${this.option.animation}-water-run-${this.option.lineType}`:""},pathStyleName(){if(this.option.type=="rotundity")return{fill:this.fill,strokeWidth:this.option.size,strokeDasharray:this.dasharray,stroke:this.option.color}}},watch:{},created(){},mounted(){},methods:{},props:{option:{type:Object,default:()=>({})}}}),_hoisted_1$9={key:0,preserveAspectRatio:"none meet",version:"1.1",xmlns:"http://www.w3.org/2000/svg",style:{height:"100%",width:"100%"}},_hoisted_2$4=["stroke","stroke-width"],_hoisted_3=["stroke-dasharray","d"],_hoisted_4={key:1,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none meet",version:"1.1",style:{height:"100%",width:"100%"}},_hoisted_5=["cx","cy","r","stroke","stroke-width","fill","stroke-dasharray"],_hoisted_6={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",preserveAspectRatio:"none meet",style:{height:"100%",width:"100%"}},_hoisted_7=["x","y","width","height","fill"];function _sfc_render$o(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),ref:"main",onMouseenter:v[0]||(v[0]=(...u)=>e.handleMouseEnter&&e.handleMouseEnter(...u)),onMouseleave:v[1]||(v[1]=(...u)=>e.handleMouseLeave&&e.handleMouseLeave(...u)),onDblclick:v[2]||(v[2]=(...u)=>e.handleDblClick&&e.handleDblClick(...u)),onClick:v[3]||(v[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[vue.createElementVNode("div",{style:vue.normalizeStyle(e.styleChartName)},[e.option.type=="horizontal"||e.option.type=="vertical"?(vue.openBlock(),vue.createElementBlock("svg",_hoisted_1$9,[vue.createElementVNode("g",{fill:"none",stroke:e.option.color,"stroke-width":e.option.size},[vue.createElementVNode("path",{class:vue.normalizeClass(e.pathClassName),"stroke-dasharray":e.dasharray,d:e.type},null,10,_hoisted_3)],8,_hoisted_2$4)])):e.option.type=="rectangle"?(vue.openBlock(),vue.createElementBlock("svg",_hoisted_4,[vue.createElementVNode("circle",{cx:e.width/2,cy:e.height/2,r:e.width/2-e.option.size*2,stroke:e.option.color,"stroke-width":e.option.size,fill:e.fill,class:vue.normalizeClass(e.pathClassName),"stroke-dasharray":e.dasharray},null,10,_hoisted_5)])):e.option.type=="rotundity"?(vue.openBlock(),vue.createElementBlock("svg",_hoisted_6,[vue.createElementVNode("rect",{x:e.option.size/2,y:e.option.size/2,width:e.width-e.option.size,height:e.height-e.option.size,fill:e.fill,class:vue.normalizeClass(e.pathClassName),style:vue.normalizeStyle(e.pathStyleName)},null,14,_hoisted_7)])):vue.createCommentVNode("",!0)],4)],38)}const index$n=_export_sfc$1(_sfc_main$o,[["render",_sfc_render$o]]),__vite_glob_0_12=Object.freeze(Object.defineProperty({__proto__:null,default:index$n},Symbol.toStringTag,{value:"Module"})),_sfc_main$n=create({name:"group",data(){return{loading:!1,timeout:null,list:"",sqlFormatter:dynamicSql,recordFormatter:getObj$1,common:common$1}},computed:{remote(){return this.option.remote},ids(){return this.option.id},childs(){return JSON.parse(this.option.content||"[]")}},watch:{ids(){this.debounce(this.getComp)()},remote(e){e&&this.getComp()}},created(){this.getComp()},mounted(){},methods:{debounce(e,v=600){let s=this;return function(){const g=this,w=arguments;clearTimeout(s.timeout),s.timeout=setTimeout(function(){e.apply(g,w)},v)}},getComp(){this.ids&&(this.loading=!0,getObj(this.ids).then(e=>{this.loading=!1;const v=e.data.data;this.list=JSON.parse(v.config.component)}).catch(()=>{this.loading=!1}))},getStyleName(e){return{position:"absolute",width:this.setPx(e.component.width),height:this.setPx(e.component.height),left:this.setPx(e.left),top:this.setPx(e.top)}}},props:{option:{type:Object,default:()=>({})}}});function _sfc_render$n(e,v,s,g,w,m){const u=vue.resolveDirective("loading");return vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),onMouseenter:v[0]||(v[0]=(...c)=>e.handleMouseEnter&&e.handleMouseEnter(...c)),onMouseleave:v[1]||(v[1]=(...c)=>e.handleMouseLeave&&e.handleMouseLeave(...c)),onDblclick:v[2]||(v[2]=(...c)=>e.handleDblClick&&e.handleDblClick(...c)),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(255,255,255,0)",onClick:v[3]||(v[3]=(...c)=>e.handleClick&&e.handleClick(...c))},[vue.withDirectives(vue.createElementVNode("div",{style:vue.normalizeStyle(e.styleChartName)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.remote?e.list:e.childs,(c,l)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(e.common.COMPNAME+c.component.name),vue.mergeProps({key:l,style:e.getStyleName(c),ref_for:!0,ref:e.common.NAME+c.index,id:e.common.NAME+c.index},c,{component:c.component,"data-formatter-str":c.dataFormatter,"click-formatter-str":c.clickFormatter,"dbl-click-formatter-str":c.dblClickFormatter,"mouse-enter-formatter-str":c.mouseEnterFormatter,"mouse-leave-formatter-str":c.mouseLeaveFormatter,"data-before-formatter-str":c.dataBeforeFormatter,"data-after-formatter-str":c.dataAfterFormatter,"echart-formatter-str":c.echartFormatter,"label-formatter-str":c.labelFormatter,"styles-formatter-str":c.stylesFormatter,"formatter-str":c.formatter,"sql-formatter":e.sqlFormatter,"record-formatter":e.recordFormatter,width:c.component.width,height:c.component.height,title:""}),null,16,["style","id","component","data-formatter-str","click-formatter-str","dbl-click-formatter-str","mouse-enter-formatter-str","mouse-leave-formatter-str","data-before-formatter-str","data-after-formatter-str","echart-formatter-str","label-formatter-str","styles-formatter-str","formatter-str","sql-formatter","record-formatter","width","height"]))),128))],4),[[vue.vShow,!e.loading]])],38)),[[u,e.loading]])}const index$m=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$n]]),__vite_glob_0_13=Object.freeze(Object.defineProperty({__proto__:null,default:index$m},Symbol.toStringTag,{value:"Module"})),_sfc_main$m=create({name:"html",data(){return{loading:!1,timeout:null,template:""}},watch:{src(){this.debounce(this.initHtml)()},remote(){this.initHtml()},content(){this.initHtml()}},computed:{src(){return this.option.src},content(){return this.option.content},remote(){return this.option.remote}},mounted(){this.initHtml()},methods:{debounce(e,v=600){let s=this;return function(){const g=this,w=arguments;clearTimeout(s.timeout),s.timeout=setTimeout(function(){e.apply(g,w)},v)}},getTemplate(){return new Promise((e,v)=>{this.remote&&this.src?(this.loading=!0,this.$axios.get(this.src).then(s=>{e(s.data)}).catch(()=>{e()})):e(this.content)})},initHtml(){this.getTemplate().then(e=>{this.loading=!1,this.$emit("remote-change",{id:this.component,content:e}),this.template=e})}}}),_hoisted_1$8=["innerHTML"];function _sfc_render$m(e,v,s,g,w,m){const u=vue.resolveDirective("loading");return vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),onMouseenter:v[0]||(v[0]=(...c)=>e.handleMouseEnter&&e.handleMouseEnter(...c)),onMouseleave:v[1]||(v[1]=(...c)=>e.handleMouseLeave&&e.handleMouseLeave(...c)),onDblclick:v[2]||(v[2]=(...c)=>e.handleDblClick&&e.handleDblClick(...c)),onClick:v[3]||(v[3]=(...c)=>e.handleClick&&e.handleClick(...c)),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(255,255,255,0)",style:vue.normalizeStyle([e.styleSizeName])},[vue.createElementVNode("div",{innerHTML:e.template},null,8,_hoisted_1$8)],38)),[[u,e.loading]])}const index$l=_export_sfc$1(_sfc_main$m,[["render",_sfc_render$m]]),__vite_glob_0_14=Object.freeze(Object.defineProperty({__proto__:null,default:index$l},Symbol.toStringTag,{value:"Module"})),_sfc_main$l=create({name:"iframe",props:{option:{type:Object,default:()=>({})}}}),_hoisted_1$7=["src"];function _sfc_render$l(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),onMouseenter:v[0]||(v[0]=(...u)=>e.handleMouseEnter&&e.handleMouseEnter(...u)),onMouseleave:v[1]||(v[1]=(...u)=>e.handleMouseLeave&&e.handleMouseLeave(...u)),onDblclick:v[2]||(v[2]=(...u)=>e.handleDblClick&&e.handleDblClick(...u)),ref:"main",onClick:v[3]||(v[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[vue.createElementVNode("iframe",{style:vue.normalizeStyle(e.styleChartName),src:e.mappingValue,draggable:"false"},null,12,_hoisted_1$7)],38)}const index$k=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$l]]),__vite_glob_0_15=Object.freeze(Object.defineProperty({__proto__:null,default:index$k},Symbol.toStringTag,{value:"Module"})),_sfc_main$k=create({name:"img",computed:{styleImgName(){return Object.assign((()=>this.rotate?{animationDuration:this.duration/1e3+"s"}:{})(),{width:"100%",height:"100%",borderRadius:this.setPx(this.option.borderRadius),opacity:this.option.opacity||1,transformOrigin:"center center"})},duration(){return this.option.duration||3e3},rotate(){return this.option.rotate}}}),_hoisted_1$6=["src"];function _sfc_render$k(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),onMouseenter:v[0]||(v[0]=(...u)=>e.handleMouseEnter&&e.handleMouseEnter(...u)),onMouseleave:v[1]||(v[1]=(...u)=>e.handleMouseLeave&&e.handleMouseLeave(...u)),onDblclick:v[2]||(v[2]=(...u)=>e.handleDblClick&&e.handleDblClick(...u)),onClick:v[3]||(v[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[vue.createElementVNode("img",{style:vue.normalizeStyle([e.styleChartName,e.styleImgName]),src:e.computedImgUrl(e.mappingValue),class:vue.normalizeClass(e.b({rotate:e.rotate})),draggable:"false"},null,14,_hoisted_1$6)],38)}const index$j=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$k]]),__vite_glob_0_16=Object.freeze(Object.defineProperty({__proto__:null,default:index$j},Symbol.toStringTag,{value:"Module"})),_sfc_main$j=create({name:"imgborder",computed:{styleImgName(){return Object.assign({width:"100%",height:"100%",backgroundColor:this.option.backgroundColor||"rgba(180, 181, 198, 0.1)",backgroundClip:"padding-box",opacity:this.option.opacity||1,filter:"blur(0px)"},(()=>this.validatenull(this.dataChart)?{}:{borderImageSource:"url("+this.computedImgUrl(this.dataChart)+")",borderImageSlice:"10 16 15 10 fill",borderWidth:"10px",borderStyle:"solid",boxSizing:"border-box"})())}}});function _sfc_render$j(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),onMouseenter:v[0]||(v[0]=(...u)=>e.handleMouseEnter&&e.handleMouseEnter(...u)),onMouseleave:v[1]||(v[1]=(...u)=>e.handleMouseLeave&&e.handleMouseLeave(...u)),onDblclick:v[2]||(v[2]=(...u)=>e.handleDblClick&&e.handleDblClick(...u)),onClick:v[3]||(v[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[vue.createElementVNode("div",{style:vue.normalizeStyle([e.styleChartName,e.styleImgName])},null,4)],38)}const index$i=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$j]]),__vite_glob_0_17=Object.freeze(Object.defineProperty({__proto__:null,default:index$i},Symbol.toStringTag,{value:"Module"})),_sfc_main$i=create({name:"line",methods:{updateChart(){const e=this.deepClone(this.dataChart),v={title:this.getOptionTitle(),tooltip:this.getOptionTip({trigger:"axis"}),grid:this.getOptionGrid(),legend:this.getOptionLegend(),xAxis:{show:this.validData(this.option.xAxisShow,!0),type:"category",name:this.option.xAxisName,nameTextStyle:{color:this.option.xAxisColor||"#fff",fontSize:this.option.xAxisFontSize||14},axisLine:{show:!0,lineStyle:{color:this.option.xAxisLineColor||"#fff"}},data:e.categories||[],inverse:this.validData(this.option.xAxisInverse,!1),splitLine:{show:this.validData(this.option.xAxisSplitLineShow,!1)},axisLabel:{interval:this.option.xAxisInterval||"auto",rotate:this.option.xAxisRotate||0,textStyle:{color:this.option.xAxisColor||"#fff",fontSize:this.option.xAxisFontSize||14}}},yAxis:{show:this.validData(this.option.yAxisShow,!0),type:"value",name:this.option.yAxisName,nameTextStyle:{color:this.option.yAxisColor||"#fff",fontSize:this.option.yAxisFontSize||14},data:e.categories||[],axisLabel:{textStyle:{color:this.option.yAxisColor||"#fff",fontSize:this.option.yAxisFontSize||14}},axisLine:{show:!0,lineStyle:{color:this.option.yAxisLineColor||"#fff"}},inverse:this.validData(this.option.yAxisInverse,!1),splitLine:{show:this.validData(this.option.yAxisSplitLineShow,!1)}},series:(()=>(e.series||[]).map((g,w)=>({...g,type:"line",smooth:this.validData(this.option.smooth,!0),showSymbol:this.validData(this.option.symbolShow,!1),symbolSize:this.option.symbolSize||10,areaStyle:(()=>{if(this.option.areaStyle)return{opacity:.7}})(),lineStyle:{width:this.option.lineWidth||1},itemStyle:this.getHasProp(!this.switchTheme,{color:this.getColor(w)}),label:this.getOptionLabel({position:"top"})})))()};this.myChart.resize(),this.myChart.setOption(v,this.initialize)}}});function _sfc_render$i(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName)},[vue.createElementVNode("div",{ref:e.id,style:vue.normalizeStyle(e.styleChartName)},null,4)],6)}const index$h=_export_sfc$1(_sfc_main$i,[["render",_sfc_render$i]]),__vite_glob_0_18=Object.freeze(Object.defineProperty({__proto__:null,default:index$h},Symbol.toStringTag,{value:"Module"})),_sfc_main$h=create({name:"map",props:{mapFormatter:Function},data(){return{bannerCount:0,bannerCheck:"",centerData:[],zoomData:1}},watch:{mapData(){this.updateChart()},dataChartLen(){this.setBanner()},bannerTime(){this.setBanner()},banner:{handler(){this.setBanner()},immediate:!0},width(){this.updateData()},height(){this.updateData()},zoom:{handler(){this.zoomData=this.zoom},immediate:!0}},computed:{zoomShow(){return this.option.zoomShow||1},zoom(){return this.option.zoom||1},mapData(){return this.option.mapData||{}},borderWidth(){return this.option.borderWidth||3},borderColor(){return this.option.borderColor||"#389BB7"},areaColor(){return this.option.areaColor||"#0c162f"},empColor(){return this.option.empColor||"#fff"},empAreaColor(){return this.option.empAreaColor||"yellow"},color(){return this.option.color||"#fff"},roam(){return this.validData(this.option.roam,!0)},fontSize(){return this.option.fontSize||24},bannerTime(){return this.option.bannerTime||3e3},banner(){return this.option.banner},locationData(){return(this.dataChart||[]).map(e=>{e.zoom=e.zoom||1;const v=this.zoomData<1?1:this.zoomData;return Object.assign((()=>e.zoom<=v?{name:e.name}:{})(),{value:[e.lng,e.lat,e.value]})})}},methods:{resetBanner(){this.$nextTick(()=>{this.myChart.dispatchAction({type:"hideTip"})})},setBanner(){clearInterval(this.bannerCheck),this.banner&&(this.bannerCheck=setInterval(()=>{const e=this.bannerCount%this.dataChartLen;this.myChart.dispatchAction({type:"showTip",seriesIndex:"0",dataIndex:e}),this.myChart.dispatchAction({type:"downplay"}),this.myChart.dispatchAction({type:"highlight",dataIndex:e}),this.bannerCount+=1},this.bannerTime))},updateChart(){this.mapFormatter(this.computedImgUrl(this.mapData)).then(e=>{const v=e.data,s=this.deepClone(v);window.echarts.registerMap("HK",s);const g={tooltip:(()=>Object.assign((()=>this.formatter?{formatter:w=>this.formatter(w,this.dataChart)}:{})(),{backgroundColor:this.option.tipBackgroundColor,textStyle:{fontSize:this.option.tipFontSize,color:this.option.tipColor}}))(),geo:Object.assign((()=>this.validatenull(this.centerData)?{}:{center:this.centerData})(),{map:"HK",label:{emphasis:{show:!1}},zoom:this.zoomData,layoutCenter:["50%","50%"],layoutSize:1200,roam:this.roam,label:{show:!0,fontSize:this.fontSize,color:this.color},left:this.option.gridX,top:this.option.gridY,right:this.option.gridX2,bottom:this.option.gridY2,emphasis:{label:{color:this.empColor},itemStyle:{areaColor:this.empAreaColor}},itemStyle:{borderWidth:this.borderWidth,borderColor:this.borderColor,areaColor:this.areaColor}}),series:[{type:"effectScatter",coordinateSystem:"geo",showEffectOn:"emphasis",rippleEffect:{brushType:"fill",scale:4},symbolSize:this.fontSize,hoverAnimation:!0,data:this.locationData,label:{show:!0,position:["130%","0"],fontSize:this.fontSize,color:this.color,formatter:w=>w.name},itemStyle:{color:this.color},emphasis:{label:{show:!0,fontSize:this.fontSize+20,color:this.option.empColor},itemStyle:{color:this.option.empColor}}}]};this.myChart.off("mouseover"),this.myChart.off("mouseout"),this.myChart.off("georoam"),this.myChart.on("mouseover",()=>{clearInterval(this.bannerCheck),this.resetBanner()}),this.myChart.on("mouseout",()=>{this.bannerCount=0,this.setBanner()}),this.myChart.on("georoam",w=>{const u=this.myChart.getOption().geo[0];this.centerData=u.center,this.zoomData=u.zoom,this.zoomData<1&&(this.zoomData=1)}),this.myChart.resize(),this.myChart.setOption(g,this.initialize)})}}});function _sfc_render$h(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName)},[vue.createElementVNode("div",{ref:e.id,style:vue.normalizeStyle(e.styleChartName)},null,4)],6)}const index$g=_export_sfc$1(_sfc_main$h,[["render",_sfc_render$h]]),__vite_glob_0_19=Object.freeze(Object.defineProperty({__proto__:null,default:index$g},Symbol.toStringTag,{value:"Module"})),_sfc_main$g=create({name:"pictorialbar",methods:{updateChart(){const e=this.deepClone(this.dataChart),v=this.validatenull(this.option.symbol)?"":"image://"+this.option.symbol;this.option.color,this.option.fontSize;var s=0;e.forEach(w=>{w.value>s&&(s=w.value)});const g={tooltip:this.getOptionTip(),grid:this.getOptionGrid(),xAxis:{max:s,splitLine:{show:!1},offset:10,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{margin:10,textStyle:{color:this.option.color||"#fff",fontSize:this.option.fontSize||20}}},yAxis:{inverse:!0,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{margin:10,textStyle:{color:this.option.color||"#fff",fontSize:this.option.fontSize||20}},data:(e||[]).map(w=>w.name)},series:[{type:"pictorialBar",symbol:v,symbolRepeat:"fixed",symbolMargin:"5%",symbolClip:!0,symbolSize:this.option.symbolSize||30,symbolBoundingData:s,data:(e||[]).map(w=>w.value)},{type:"pictorialBar",itemStyle:{normal:{opacity:.2}},label:{normal:{show:!0,position:"right",offset:[10,0],textStyle:{color:this.option.labelColor,fontSize:this.option.labelFontSize}}},animationDuration:0,symbol:v,symbolRepeat:"fixed",symbolMargin:"5%",symbolSize:30,symbolBoundingData:s,data:(()=>(Array.isArray(e)?e:[]).map(w=>w.value))()}]};this.myChart.resize(),this.myChart.setOption(g,this.initialize)}}});function _sfc_render$g(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName)},[vue.createElementVNode("div",{ref:e.id,style:vue.normalizeStyle(e.styleChartName)},null,4)],6)}const index$f=_export_sfc$1(_sfc_main$g,[["render",_sfc_render$g]]),__vite_glob_0_20=Object.freeze(Object.defineProperty({__proto__:null,default:index$f},Symbol.toStringTag,{value:"Module"})),_sfc_main$f=create({name:"pie",methods:{updateChart(){const e=this.deepClone(this.dataChart)||[],v={title:this.getOptionTitle(),tooltip:this.getOptionTip(),grid:this.getOptionGrid(),legend:this.getOptionLegend(),series:(()=>(this.option.barColor,[{type:"pie",roseType:this.option.roseType?"radius":"",radius:this.option.radius?["40%","55%"]:"50%",center:["50%","60%"],animationType:"scale",animationEasing:"elasticOut",animationDelay:function(g){return Math.random()*200},label:this.getOptionLabel({formatter:`{b}:{c}
{d}%`}),data:(()=>{let g=e;return this.option.notCount&&(g=g.filter(w=>w.value!==0&&w.value)),this.option.sort&&g.sort((w,m)=>w.value-m.value),g})(),itemStyle:this.getHasProp(!this.switchTheme,{color:g=>this.getColor(g.dataIndex)},{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}})}]))()};this.myChart.resize(),this.myChart.setOption(v,this.initialize)}}}),_hoisted_1$5=["innerHTML"];function _sfc_render$f(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName)},[vue.createElementVNode("div",{class:vue.normalizeClass(e.b("title")),innerHTML:e.titleFormatter&&e.titleFormatter(e.dataChart)},null,10,_hoisted_1$5),vue.createElementVNode("div",{ref:e.id,style:vue.normalizeStyle(e.styleChartName)},null,4)],6)}const index$e=_export_sfc$1(_sfc_main$f,[["render",_sfc_render$f]]),__vite_glob_0_21=Object.freeze(Object.defineProperty({__proto__:null,default:index$e},Symbol.toStringTag,{value:"Module"})),_sfc_main$e=create({name:"progress",computed:{styleSuffixName(){return{fontWeight:this.option.suffixFontWeight||"normal",fontSize:(this.option.suffixFontSize||40)+"px",color:this.option.suffixColor||"#333"}},styleName(){return{fontWeight:this.option.fontWeight||"normal",fontSize:(this.option.fontSize||40)+"px",color:this.option.color||"#333"}},type(){return this.option.type||"line"},color(){return this.option.borderColor||"#333"},defineBackColor(){return this.option.defineBackColor||"#0e222e"},strokeWidth(){return this.option.strokeWidth||14}},props:{option:{type:Object,default:()=>({})}}});function _sfc_render$e(e,v,s,g,w,m){const u=vue.resolveComponent("el-progress");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),onMouseenter:v[0]||(v[0]=(...c)=>e.handleMouseEnter&&e.handleMouseEnter(...c)),onMouseleave:v[1]||(v[1]=(...c)=>e.handleMouseLeave&&e.handleMouseLeave(...c)),onDblclick:v[2]||(v[2]=(...c)=>e.handleDblClick&&e.handleDblClick(...c)),ref:"main",onClick:v[3]||(v[3]=(...c)=>e.handleClick&&e.handleClick(...c))},[vue.createElementVNode("div",{style:vue.normalizeStyle(e.styleChartName)},[vue.createElementVNode("div",{class:vue.normalizeClass(e.b("text",{line:e.type==="line",circle:e.type==="circle"}))},[vue.createElementVNode("p",{style:vue.normalizeStyle(e.styleSuffixName)},vue.toDisplayString(e.dataChart.label),5),vue.createElementVNode("p",{style:vue.normalizeStyle(e.styleName)},vue.toDisplayString(e.dataChart.value),5)],2),vue.createVNode(u,{color:e.color,width:e.width,"stroke-linecap":"butt","define-back-color":e.defineBackColor,showText:!1,strokeWidth:e.strokeWidth,percentage:e.dataChart.data,type:e.type},null,8,["color","width","define-back-color","strokeWidth","percentage","type"])],4)],38)}const index$d=_export_sfc$1(_sfc_main$e,[["render",_sfc_render$e]]),__vite_glob_0_22=Object.freeze(Object.defineProperty({__proto__:null,default:index$d},Symbol.toStringTag,{value:"Module"})),_sfc_main$d=create({name:"radar",x2(){return this.option.gridX2||"80%"},methods:{updateChart(){const e=this.deepClone(this.dataChart);let v=e.series||[];v=v[0]||{},v=v.data||[];const s={title:this.getOptionTitle(),tooltip:this.getOptionTip(),grid:this.getOptionGrid(),legend:this.getOptionLegend(v),radar:{name:{fontSize:this.option.fontSize||12,color:this.option.color||"#fff"},indicator:e.indicator||[],shape:this.option.shape||"polygon",radius:this.option.radius||"75%",triggerEvent:!0},series:(()=>(this.option.barColor,[{type:"radar",barWidth:this.option.barWidth||16,barMinHeight:this.option.barMinHeight||0,itemStyle:{barBorderRadius:this.option.barRadius||0},data:v.map((w,m)=>({name:w.name,value:w.value,label:this.getOptionLabel(),areaStyle:{opacity:this.option.areaOpacity||.9}}))}]))()};this.myChart.resize(),this.myChart.setOption(s,this.initialize)}}});function _sfc_render$d(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName)},[vue.createElementVNode("div",{ref:e.id,style:vue.normalizeStyle(e.styleChartName)},null,4)],6)}const index$c=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$d]]),__vite_glob_0_23=Object.freeze(Object.defineProperty({__proto__:null,default:index$c},Symbol.toStringTag,{value:"Module"})),_sfc_main$c=create({name:"rectangle",methods:{updateChart(){const e=this.deepClone(this.dataChart),v={tooltip:this.getOptionTip(),series:{type:"treemap",data:e,label:this.getOptionLabel()}};this.myChart.resize(),this.myChart.setOption(v,this.initialize)}}});function _sfc_render$c(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName)},[vue.createElementVNode("div",{ref:e.id,style:vue.normalizeStyle(e.styleChartName)},null,4)],6)}const index$b=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$c]]),__vite_glob_0_24=Object.freeze(Object.defineProperty({__proto__:null,default:index$b},Symbol.toStringTag,{value:"Module"})),_sfc_main$b=create({name:"scatter",methods:{updateChart(){const e=this.deepClone(this.dataChart),v={title:this.getOptionTitle(),tooltip:this.getOptionTip(),grid:this.getOptionGrid(),xAxis:{show:this.validData(this.option.xAxisShow,!0),name:this.option.xAxisName,nameTextStyle:{color:this.option.xAxisColor||"#fff",fontSize:this.option.xAxisFontSize||14},axisLine:{show:!0,lineStyle:{color:this.option.xAxisLineColor||"#fff"}},inverse:this.validData(this.option.xAxisInverse,!1),splitLine:{show:this.validData(this.option.xAxisSplitLineShow,!0)},axisLabel:{interval:this.option.xAxisInterval||"auto",rotate:this.option.xAxisRotate||0,textStyle:{color:this.option.xAxisColor||"#fff",fontSize:this.option.xAxisFontSize||14}}},yAxis:{show:this.validData(this.option.yAxisShow,!0),name:this.option.yAxisName,nameTextStyle:{color:this.option.yAxisColor||"#fff",fontSize:this.option.yAxisFontSize||14},axisLabel:{textStyle:{color:this.option.yAxisColor||"#fff",fontSize:this.option.yAxisFontSize||14}},axisLine:{show:!0,lineStyle:{color:this.option.yAxisLineColor||"#fff"}},inverse:this.validData(this.option.yAxisInverse,!1),splitLine:{show:this.validData(this.option.yAxisSplitLineShow,!0)}},series:(()=>(this.option.barColor,(e||[]).map((g,w)=>Object.assign(g,{type:"scatter",symbolSize:this.option.symbolSize||10,itemStyle:{color:this.getColor(w)},label:this.getOptionLabel()}))))()};this.myChart.resize(),this.myChart.setOption(v,this.initialize)}}});function _sfc_render$b(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName)},[vue.createElementVNode("div",{ref:e.id,style:vue.normalizeStyle(e.styleChartName)},null,4)],6)}const index$a=_export_sfc$1(_sfc_main$b,[["render",_sfc_render$b]]),__vite_glob_0_25=Object.freeze(Object.defineProperty({__proto__:null,default:index$a},Symbol.toStringTag,{value:"Module"})),_sfc_main$a=create({name:"svg",data(){return{}},computed:{componentName(){return{template:this.option.content}},color(){return this.option.color},styleName(){return Object.assign({fill:this.color,width:this.setPx(this.width),height:this.setPx(this.height),color:this.color},this.styles)}},created(){},mounted(){},methods:{},props:{option:{type:Object,default:()=>({})}}});function _sfc_render$a(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle([e.styleChartName,e.styleName]),ref:"main",onMouseenter:v[0]||(v[0]=(...u)=>e.handleMouseEnter&&e.handleMouseEnter(...u)),onMouseleave:v[1]||(v[1]=(...u)=>e.handleMouseLeave&&e.handleMouseLeave(...u)),onDblclick:v[2]||(v[2]=(...u)=>e.handleDblClick&&e.handleDblClick(...u)),onClick:v[3]||(v[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(e.componentName),{style:vue.normalizeStyle(e.styleName)},null,8,["style"]))],38)}const index$9=_export_sfc$1(_sfc_main$a,[["render",_sfc_render$a]]),__vite_glob_0_26=Object.freeze(Object.defineProperty({__proto__:null,default:index$9},Symbol.toStringTag,{value:"Module"})),_sfc_main$9=create({name:"swiper",data(){return{typeList:{img:/\.(gif|jpg|jpeg|png|GIF|JPG|PNG)/,video:/\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/}}},computed:{hlsOption(){return{autoplay:this.option.autoplay}},params(){let e={};return this.option.controls&&(e.controls="controls"),this.option.loop&&(e.loop="loop"),this.option.autoplay&&(e.autoplay="autoplay"),e},styleName(){return{width:"100%",height:"100%",opacity:this.opacity}},indicator(){return this.option.indicator||"none"},opacity(){return(this.option.opacity||100)*.01},type(){return this.option.type||""},interval(){return this.option.interval||5e3}},props:{option:{type:Object,default:()=>({})}}}),_hoisted_1$4=["src"],_hoisted_2$3=["src"];function _sfc_render$9(e,v,s,g,w,m){const u=vue.resolveComponent("avue-echart-clapper"),c=vue.resolveComponent("avue-echart-iframe"),l=vue.resolveComponent("el-carousel-item"),r=vue.resolveComponent("el-carousel");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),ref:"main"},[vue.createVNode(r,{style:vue.normalizeStyle(e.styleChartName),type:e.type,"indicator-position":e.indicator,interval:e.interval,height:e.height},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.dataChart,(t,a)=>(vue.openBlock(),vue.createBlock(l,{key:a,onMouseenter:e.handleMouseEnter,onMouseleave:e.handleMouseLeave,onDblclick:e.handleDblClick,onClick:o=>e.handleClick(t,a)},{default:vue.withCtx(()=>[e.typeList.img.test(t.value)?(vue.openBlock(),vue.createElementBlock("img",{key:0,src:e.computedImgUrl(t.value),draggable:"false",style:vue.normalizeStyle(e.styleName)},null,12,_hoisted_1$4)):e.typeList.video.test(t.value)?(vue.openBlock(),vue.createElementBlock("video",vue.mergeProps({key:1,muted:"",ref_for:!0},e.params,{src:e.computedImgUrl(t.value),style:e.styleName}),null,16,_hoisted_2$3)):t.type=="hls"?(vue.openBlock(),vue.createBlock(u,{width:e.width,height:e.height,key:a,data:{value:t.value},option:e.hlsOption},null,8,["width","height","data","option"])):t.type=="iframe"?(vue.openBlock(),vue.createBlock(c,{key:3,width:e.width,height:e.height,data:{value:t.value}},null,8,["width","height","data"])):vue.createCommentVNode("",!0)]),_:2},1032,["onMouseenter","onMouseleave","onDblclick","onClick"]))),128))]),_:1},8,["style","type","indicator-position","interval","height"])],6)}const index$8=_export_sfc$1(_sfc_main$9,[["render",_sfc_render$9]]),__vite_glob_0_27=Object.freeze(Object.defineProperty({__proto__:null,default:index$8},Symbol.toStringTag,{value:"Module"})),_sfc_main$8=create({name:"table",data(){return{reload:!0,headerHeight:"",scrollCheck:""}},watch:{"option.column"(){this.reload=!1,this.$nextTick(()=>{this.reload=!0})},scrollSpeed(){this.setTime()},scroll:{handler(){this.setTime()}}},computed:{showHeader(){return this.option.showHeader},scrollTime(){return this.option.scrollTime},scrollSpeed(){return this.option.scrollSpeed||1},scroll(){return this.option.scroll},cellHeight(){return parseInt((this.height-this.headerHeight)/this.option.count)}},props:{option:{type:Object,default:()=>({})}},created(){this.$nextTick(()=>{this.headerHeight=this.$refs.table.$refs.headerWrapper?parseInt(this.$refs.table.$refs.headerWrapper.clientHeight):0,setTimeout(()=>{this.setTime()},this.scrollTime)})},methods:{getFormatter(e,v){return getFunction(e.formatter)(e,v)},handleMouseOver(){clearInterval(this.scrollCheck)},handleMouseLeave(){this.handleCommonBind(null,null,"mouseLeaveFormatter"),this.setTime()},cellClick(e,v,s,g){this.handleCommonBind(e,v,"clickFormatter")},cellDblClick(e,v,s,g){this.handleCommonBind(e,v,"dblClickFormatter")},setTime(){clearInterval(this.scrollCheck),this.headerHeight=this.$refs.table.$refs.headerWrapper?parseInt(this.$refs.table.$refs.headerWrapper.clientHeight):0;const v=this.$refs.table.$refs.bodyWrapper.querySelector(".el-scrollbar__wrap"),s=this.scrollSpeed;let g=0;this.scroll?this.scrollCheck=setInterval(()=>{g=g+s,v.scrollTop+=s,v.clientHeight+v.scrollTop==v.scrollHeight&&(v.scrollTop=0),g>=this.cellHeight&&this.scrollTime&&(v.scrollTop=v.scrollTop-(g-this.cellHeight),clearInterval(this.scrollCheck),setTimeout(()=>{this.setTime()},this.scrollTime))},20):v.scrollTop=0},cellStyle({row:e,column:v,rowIndex:s,columnIndex:g}){return{padding:0,height:this.setPx(this.cellHeight),fontSize:this.setPx(this.option.bodyFontSize),color:this.option.bodyColor,textAlign:v.type=="index"?"center":this.option.bodyTextAlign,backgroundColor:s%2==0?this.option.othColor:this.option.nthColor}},rowStyle({rowIndex:e}){return{backgroundColor:"transparent"}},headerRowStyle(){return{backgroundColor:this.option.headerBackground}},headerCellStyle({row:e,column:v,rowIndex:s,columnIndex:g}){return{fontSize:this.setPx(this.option.headerFontSize),backgroundColor:this.option.headerBackground,color:this.option.headerColor,textAlign:v.type=="index"?"center":this.option.headerTextAlign}}}}),_hoisted_1$3=["innerHTML"],_hoisted_2$2={key:1};function _sfc_render$8(e,v,s,g,w,m){const u=vue.resolveComponent("el-table-column"),c=vue.resolveComponent("el-table");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),onMouseenter:v[0]||(v[0]=(...l)=>e.handleMouseEnter&&e.handleMouseEnter(...l)),onMouseover:v[1]||(v[1]=(...l)=>e.handleMouseOver&&e.handleMouseOver(...l)),onMouseleave:v[2]||(v[2]=(...l)=>e.handleMouseLeave&&e.handleMouseLeave(...l))},[vue.createVNode(c,{style:vue.normalizeStyle(e.styleChartName),ref:"table",onCellClick:e.cellClick,onCellDblclick:e.cellDblClick,data:e.dataChart,height:e.height,border:e.option.border,cellStyle:e.cellStyle,"row-style":e.rowStyle,"show-header":e.showHeader,"header-row-style":e.headerRowStyle,"header-cell-style":e.headerCellStyle},{default:vue.withCtx(()=>[e.option.index?(vue.openBlock(),vue.createBlock(u,{key:0,type:"index",label:"#","header-align":"center",align:"center",width:"60"},{default:vue.withCtx(({$index:l})=>[vue.createElementVNode("span",null,vue.toDisplayString(l+1),1)]),_:1})):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.option.column,(l,r)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[l.hide!==!0?(vue.openBlock(),vue.createBlock(u,{"show-overflow-tooltip":"",key:r,prop:l.prop,label:l.label,width:l.width},{default:vue.withCtx(({row:t})=>[l.formatter&&e.reload?(vue.openBlock(),vue.createElementBlock("span",{key:0,innerHTML:e.getFormatter(l,t)},null,8,_hoisted_1$3)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_2$2,vue.toDisplayString(t[l.prop]),1))]),_:2},1032,["prop","label","width"])):vue.createCommentVNode("",!0)],64))),256))]),_:1},8,["style","onCellClick","onCellDblclick","data","height","border","cellStyle","row-style","show-header","header-row-style","header-cell-style"])],38)}const index$7=_export_sfc$1(_sfc_main$8,[["render",_sfc_render$8]]),__vite_glob_0_28=Object.freeze(Object.defineProperty({__proto__:null,default:index$7},Symbol.toStringTag,{value:"Module"})),_sfc_main$7=create({name:"tabs",data(){return{active:""}},watch:{dataChart:{handler(e){e.length!==0&&this.handleClick(e[0],0,!0)},immediate:!0}},computed:{isSelect(){return this.type==="select"},type(){return this.option.type},iconSize(){return this.option.iconSize||20},styleSelectName(){return Object.assign({fontSize:this.setPx(this.option.fontSize||30)},this.styleSizeName)},styleIconName(){return Object.assign({marginRight:this.setPx(this.option.iconSplit),width:this.setPx(this.option.iconSize),height:this.setPx(this.option.iconSize)})},styleName(){return Object.assign((()=>this.option.backgroundImage?{backgroundImage:`url(${this.computedImgUrl(this.option.backgroundImage)})`,backgroundSize:"100% 100%"}:{})(),{borderColor:this.option.borderColor||"#fff",borderStyle:"solid",borderWidth:this.setPx(this.option.borderWidth||0),margin:`0 ${this.setPx(this.option.split)}`,backgroundColor:this.option.backgroundColor,fontSize:this.setPx(this.option.fontSize||30),color:this.option.color})}},methods:{styleIconBgName(e){if(e.icon)return{backgroundImage:`url(${this.computedImgUrl(e.icon)})`,backgroundSize:"100% 100%"}},styleIconActiveName(e){if(this.active==e.value&&e.empIcon)return{backgroundImage:`url(${this.computedImgUrl(e.empIcon)})`,backgroundSize:"100% 100%"}},styleActiveName(e){if(this.active==e.value)return Object.assign((()=>this.option.empBackgroundImage?{backgroundImage:`url(${this.computedImgUrl(this.option.empBackgroundImage)})`,backgroundSize:"100% 100%"}:{})(),{borderColor:this.option.empBorderColor||"#fff",borderStyle:"solid",borderWidth:this.setPx(this.option.empBorderWidth||0),color:this.option.empColor})},handleSelectChange(e){this.handleClick(e)},handleClick(e,v,s=!1){this.active=e.value,this.handleCommonBind(e,v,"clickFormatter"),e.href&&!s&&window.open(e.href,e.target)}},props:{option:{type:Object,default:()=>({})}}}),_hoisted_1$2=["onMouseenter","onMouseleave","onDblclick","onClick"];function _sfc_render$7(e,v,s,g,w,m){const u=vue.resolveComponent("avue-select");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),ref:"main"},[vue.createElementVNode("div",{style:vue.normalizeStyle(e.styleChartName)},[e.isSelect?(vue.openBlock(),vue.createBlock(u,{key:0,dic:typeof e.dataChart=="string"?[]:e.dataChart,style:vue.normalizeStyle(e.styleSelectName),onChange:e.handleSelectChange,modelValue:e.active,"onUpdate:modelValue":v[0]||(v[0]=c=>e.active=c)},null,8,["dic","style","onChange","modelValue"])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(e.b("list"))},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.dataChart,(c,l)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(e.b("item")),style:vue.normalizeStyle([e.styleName,e.styleActiveName(c)]),key:l,onMouseenter:r=>e.handleMouseEnter(c,l),onMouseleave:r=>e.handleMouseLeave(c,l),onDblclick:r=>e.handleDblClick(c,l),onClick:r=>e.handleClick(c,l)},[c.icon?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(e.b("icon")),style:vue.normalizeStyle([e.styleIconName,e.styleIconBgName(c),e.styleIconActiveName(c)])},null,6)):vue.createCommentVNode("",!0),vue.createElementVNode("span",null,vue.toDisplayString(c.label),1)],46,_hoisted_1$2))),128))],2))],4)],6)}const index$6=_export_sfc$1(_sfc_main$7,[["render",_sfc_render$7]]),__vite_glob_0_29=Object.freeze(Object.defineProperty({__proto__:null,default:index$6},Symbol.toStringTag,{value:"Module"})),_sfc_main$6=create({name:"text",data(){return{check:"",date:new Date,left:0}},computed:{componentName(){return this.option.link?"a":"span"},scroll(){return this.validData(this.option.scroll,!1)},linkHref(){return this.option.linkHref},linkTarget(){return this.option.linkTarget||"_self"},step(){return this.option.step||5},speed(){return this.option.speed||100},lineHeight(){return this.option.lineHeight||40},fontSize(){return this.option.fontSize||30},split(){return this.option.split},textWidth(){return(this.dataChart.value||"").length*this.fontSize},styleName(){let e=this.dataChart||{};return Object.assign({width:this.scroll?this.setPx(this.textWidth):"auto",transform:"translateX("+this.left+"px)",textAlign:this.option.textAlign,letterSpacing:this.setPx(this.split),textIndent:this.setPx(this.split),backgroundColor:this.option.backgroundColor,fontWeight:this.option.fontWeight||"normal",fontFamily:this.option.fontFamily,fontSize:(e.fontSize||this.fontSize)+"px",lineHeight:(e.lineHeight||this.lineHeight)+"px",color:e.color||this.option.color||"#333"},this.styles)}},watch:{scroll(){this.move()},speed(){this.move()}},created(){setInterval(()=>{this.date=new Date},1e3)},mounted(){this.move()},methods:{move(){clearInterval(this.check),this.scroll?this.check=setInterval(()=>{this.left<-this.textWidth&&(this.left=this.width),this.left=this.left-this.step},this.speed):this.left=0}},props:{option:{type:Object,default:()=>({})}}});function _sfc_render$6(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),onMouseenter:v[0]||(v[0]=(...u)=>e.handleMouseEnter&&e.handleMouseEnter(...u)),onMouseleave:v[1]||(v[1]=(...u)=>e.handleMouseLeave&&e.handleMouseLeave(...u)),onDblclick:v[2]||(v[2]=(...u)=>e.handleDblClick&&e.handleDblClick(...u)),ref:"main",onClick:v[3]||(v[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[vue.createElementVNode("div",{style:vue.normalizeStyle(e.styleChartName),ref:"box",class:vue.normalizeClass(e.b("box"))},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(e.componentName),{ref:"text",class:vue.normalizeClass(e.b("text")),href:e.linkHref,style:vue.normalizeStyle(e.styleName),target:e.linkTarget},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.mappingValue),1)]),_:1},8,["class","href","style","target"]))],6)],38)}const index$5=_export_sfc$1(_sfc_main$6,[["render",_sfc_render$6]]),__vite_glob_0_30=Object.freeze(Object.defineProperty({__proto__:null,default:index$5},Symbol.toStringTag,{value:"Module"})),_sfc_main$5=create({name:"time",data(){return{check:null}},computed:{times(){return this.option.time}},watch:{times:{handler(e){e>0?setTimeout(()=>{this.startTime()},1e3):this.stopTime()},immediate:!0}},created(){},mounted(){this.echartFormatter&&this.echartFormatter(this.getItemRefs())},methods:{startTime(){this.stopTime(),this.check=setInterval(()=>{this.echartFormatter&&this.echartFormatter(this.getItemRefs())},this.times)},stopTime(){clearInterval(this.check)}},props:{option:{type:Object,default:()=>({})}}}),_hoisted_1$1=vue.createElementVNode("i",{class:"iconfont icon-datetime"},null,-1),_hoisted_2$1=[_hoisted_1$1];function _sfc_render$5(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),ref:"main"},_hoisted_2$1,6)}const index$4=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$5]]),__vite_glob_0_31=Object.freeze(Object.defineProperty({__proto__:null,default:index$4},Symbol.toStringTag,{value:"Module"})),_sfc_main$4=create({name:"video",data(){return{key:0}},computed:{poster(){return this.option.poster?"-":""},params(){let e={};return this.option.controls&&(e.controls="controls"),this.option.loop&&(e.loop="loop"),this.option.autoplay&&(e.autoplay="autoplay"),this.key=+new Date,e}},props:{option:{type:Object,default:()=>({})}}}),_hoisted_1=["width","height","src","poster"],_hoisted_2=["src"];function _sfc_render$4(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName),onMouseenter:v[0]||(v[0]=(...u)=>e.handleMouseEnter&&e.handleMouseEnter(...u)),onMouseleave:v[1]||(v[1]=(...u)=>e.handleMouseLeave&&e.handleMouseLeave(...u)),onDblclick:v[2]||(v[2]=(...u)=>e.handleDblClick&&e.handleDblClick(...u)),ref:"main",onClick:v[3]||(v[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[(vue.openBlock(),vue.createElementBlock("video",vue.mergeProps({style:e.styleChartName,muted:"",width:e.width,height:e.height,src:e.mappingValue},e.params,{poster:e.poster,style:{"object-fit":"fill"},key:e.key}),null,16,_hoisted_1)),e.option.poster?(vue.openBlock(),vue.createElementBlock("img",{key:0,src:e.computedImgUrl(e.option.poster),alt:"",style:vue.normalizeStyle(e.styleSizeName),class:vue.normalizeClass(e.b("img"))},null,14,_hoisted_2)):vue.createCommentVNode("",!0)],38)}const index$3=_export_sfc$1(_sfc_main$4,[["render",_sfc_render$4]]),__vite_glob_0_32=Object.freeze(Object.defineProperty({__proto__:null,default:index$3},Symbol.toStringTag,{value:"Module"})),_sfc_main$3=create({name:"vue",data(){return{loading:!1,timeout:null,template:"",dynamicComponent:null}},watch:{src(){this.debounce(this.initVue)()},remote(){this.initVue()},content(){this.initVue()}},computed:{src(){return this.option.src},content(e){return this.option.content},remote(){return this.option.remote}},created(){this.initVue()},methods:{debounce(e,v=600){let s=this;return function(){const g=this,w=arguments;clearTimeout(s.timeout),s.timeout=setTimeout(function(){e.apply(g,w)},v)}},getTemplate(){return new Promise((e,v)=>{this.remote&&this.src?(this.loading=!0,this.$axios.get(this.src).then(s=>{e(s.data)}).catch(()=>{e()})):e(this.content)})},initVue(){this.getTemplate().then(e=>{this.$emit("remote-change",{id:this.component,content:e}),this.template=e;let v=this.getSource("template");if(!v)return;let s=this.getSource("script");s&&(s=s.replace(/export default/,"return"));let g=this.getSource("style"),w="style-"+this.id;document.getElementById(w)&&document.getElementById(w).remove();let m=document.createElement("style");m.id=w,m.innerHTML=g,document.head.appendChild(m);let u=new Function(s)();u.template=v,u.props={dataChart:Object,refList:[Array,Object]},this.dynamicComponent=vue.shallowRef(u),this.loading=!1})},getSource(e){const v=new RegExp(`<${e}[^>]*>`);let s=this.template,g=s.match(v);if(g){let w=s.indexOf(g[0])+g[0].length,m=s.lastIndexOf(`</${e}`);return s.slice(w,m)}}}});function _sfc_render$3(e,v,s,g,w,m){const u=vue.resolveDirective("loading");return vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),onMouseenter:v[0]||(v[0]=(...c)=>e.handleMouseEnter&&e.handleMouseEnter(...c)),onMouseleave:v[1]||(v[1]=(...c)=>e.handleMouseLeave&&e.handleMouseLeave(...c)),onDblclick:v[2]||(v[2]=(...c)=>e.handleDblClick&&e.handleDblClick(...c)),"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(255,255,255,0)",style:vue.normalizeStyle([e.styleSizeName])},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(e.dynamicComponent),{ref:"main",style:vue.normalizeStyle(e.styleChartName),onClick:vue.withModifiers(e.handleClick,["self"]),refList:e.refList,dataChart:e.dataChart},null,8,["style","onClick","refList","dataChart"]))],38)),[[u,e.loading]])}const index$2=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$3]]),__vite_glob_0_33=Object.freeze(Object.defineProperty({__proto__:null,default:index$2},Symbol.toStringTag,{value:"Module"})),_sfc_main$2=create({name:"wordcloud",methods:{updateChart(){const e=this.deepClone(this.dataChart)||[],v={series:[{type:"wordCloud",shape:"circle",left:"center",top:"center",width:"100%",height:"100%",right:null,bottom:null,sizeRange:(()=>[this.option.minFontSize||12,this.option.maxFontSize||60])(),rotationRange:(()=>this.option.rotate?[-90,90]:[0,0])(),rotationStep:(()=>this.option.rotate?45:0)(),gridSize:this.option.split||30,drawOutOfBound:!1,layoutAnimation:!0,textStyle:{normal:{fontFamily:"sans-serif",fontWeight:"bold",color:function(){return"rgb("+[Math.round(Math.random()*160),Math.round(Math.random()*160),Math.round(Math.random()*160)].join(",")+")"}},emphasis:{focus:"self",textStyle:{shadowBlur:10,shadowColor:"#333"}}},data:e}]};this.myChart.resize(),this.myChart.setOption(v,this.initialize)}}});function _sfc_render$2(e,v,s,g,w,m){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass([e.b(),e.className]),style:vue.normalizeStyle(e.styleSizeName)},[vue.createElementVNode("div",{ref:e.id,style:vue.normalizeStyle(e.styleChartName)},null,4)],6)}const index$1=_export_sfc$1(_sfc_main$2,[["render",_sfc_render$2]]),__vite_glob_0_34=Object.freeze(Object.defineProperty({__proto__:null,default:index$1},Symbol.toStringTag,{value:"Module"}));let requireComponent=Object.assign({"./packages/audio/index.vue":__vite_glob_0_0,"./packages/bar/index.vue":__vite_glob_0_1,"./packages/borderBox/index.vue":__vite_glob_0_2,"./packages/clappr/index.vue":__vite_glob_0_3,"./packages/common/index.vue":__vite_glob_0_4,"./packages/data/index.vue":__vite_glob_0_5,"./packages/datav/index.vue":__vite_glob_0_6,"./packages/datetime/index.vue":__vite_glob_0_7,"./packages/decoration/index.vue":__vite_glob_0_8,"./packages/flop/index.vue":__vite_glob_0_9,"./packages/funnel/index.vue":__vite_glob_0_10,"./packages/gauge/index.vue":__vite_glob_0_11,"./packages/graph/index.vue":__vite_glob_0_12,"./packages/group/index.vue":__vite_glob_0_13,"./packages/html/index.vue":__vite_glob_0_14,"./packages/iframe/index.vue":__vite_glob_0_15,"./packages/img/index.vue":__vite_glob_0_16,"./packages/imgBorder/index.vue":__vite_glob_0_17,"./packages/line/index.vue":__vite_glob_0_18,"./packages/map/index.vue":__vite_glob_0_19,"./packages/pictorialBar/index.vue":__vite_glob_0_20,"./packages/pie/index.vue":__vite_glob_0_21,"./packages/progress/index.vue":__vite_glob_0_22,"./packages/radar/index.vue":__vite_glob_0_23,"./packages/rectangle/index.vue":__vite_glob_0_24,"./packages/scatter/index.vue":__vite_glob_0_25,"./packages/svg/index.vue":__vite_glob_0_26,"./packages/swiper/index.vue":__vite_glob_0_27,"./packages/table/index.vue":__vite_glob_0_28,"./packages/tabs/index.vue":__vite_glob_0_29,"./packages/text/index.vue":__vite_glob_0_30,"./packages/time/index.vue":__vite_glob_0_31,"./packages/video/index.vue":__vite_glob_0_32,"./packages/vue/index.vue":__vite_glob_0_33,"./packages/wordCloud/index.vue":__vite_glob_0_34}),components={};Object.keys(requireComponent).forEach(e=>{const v=requireComponent[e].default;v&&(components[v.name]=v)});const container_vue_vue_type_style_index_0_lang="",_sfc_main$1={name:"contents",inject:["contain"],props:{target:String,option:Object,id:[String,Number]},provide(){return{contain:this.contain,container:this}},components:{subgroup,loading},data(){return{reload:Math.random(),select:{startX:"",startY:"",endX:"",endY:"",show:!1},wrapperStyle:{},gradeFlag:!1}},computed:{selectStyle(){let e=this.select.endX-this.select.startX,v=this.select.endY-this.select.startY;return{top:this.setPx(v>0?this.select.startY:this.select.endY),left:this.setPx(e>0?this.select.startX:this.select.endX),width:this.setPx(Math.abs(e)),height:this.setPx(Math.abs(v)),display:this.select.show?"block":"none"}},stepScale(){return Number(100/(this.contain.scale*100))},containerStyle(){const e=this.contain.width/this.contain.config.width,v=this.contain.height/this.contain.config.height;let s=e,g=e;if(this.isBuild)s=1,g=1;else{let m=this.contain.config.screen;m=="x"?this.contain.viewStyle={"overflow-y":"auto"}:m=="y"?(s=v,g=v,this.contain.viewStyle={"overflow-x":"auto"}):m=="xy"&&(s=e,g=v)}const w=this.contain.config.styles;return this.wrapperStyle={filter:w.show?`contrast(${w.contrast||100}%) saturate(${w.saturate||100}%) brightness(${w.brightness||100}%) opacity(${w.opacity||100}%) grayscale(${w.grayscale||0}%) hue-rotate(${w.hueRotate||0}deg) invert(${w.invert||0}%) blur(${w.blur}px)`:"",width:this.setPx(this.contain.config.width*s),height:this.setPx(this.contain.config.height*g)},Object.assign({transform:`scale(${s}, ${g})`,width:this.setPx(this.contain.config.width),height:this.setPx(this.contain.config.height),backgroundColor:this.contain.config.backgroundColor},(()=>{if(this.contain.config.backgroundImage)return{background:`url(${this.computedImgUrl(this.contain.config.backgroundImage)}) 0% 0% / 100% 100% rgb(3, 12, 59)`}})())},gradeLenStyle(){return{backgroundSize:`${this.setPx(this.contain.config.gradeLen)} ${this.setPx(this.contain.config.gradeLen)},${this.setPx(this.contain.config.gradeLen)} ${this.setPx(this.contain.config.gradeLen)}`}},isBuild(){return this.$route?this.$route.name==="build":!1}},created(){this.initGlob()},mounted(){this.init(),this.initData(),this.initFun(),window.onresize=()=>{this.setScale()}},methods:{init(){let e={...components,...components$1};Object.keys(e).map(v=>{let s=e[v];this.$component(s.name,s)})},transfer(e,v,s){e.forEach(g=>{if(g.type=="params"||g.type=="data"){let w={};g.child.forEach(m=>{w[m.name]=s[m.value]}),this.validatenull(w)||g.index.forEach(m=>{v[m].updateData(w)})}else g.type=="group"?window.$glob.group=g.group:g.type=="display"&&g.index.forEach(w=>{let m=v[w].$el.style;g.displayType==""?m.display=="block"||m.display==""?m.display="none":m.display="block":m.display=g.displayType})})},dragMousedown(e){if(this.contain.isKeysCtrl){this.contain.handleInitActive();let v=e.currentTarget.getBoundingClientRect(),s=(e.clientX-v.left)*this.stepScale,g=(e.clientY-v.top)*this.stepScale;this.select.startX=s,this.select.startY=g,this.select.endX=this.select.startX,this.select.endY=this.select.startY,this.select.show=!0,e.stopPropagation()}},dragMousemove(e){if(!this.select.show)return;let v=e.currentTarget.getBoundingClientRect(),s=(e.clientX-v.left)*this.stepScale,g=(e.clientY-v.top)*this.stepScale;this.select.endX=s,this.select.endY=g},dragMouseup(e){if(this.select.show){let v=[];this.contain.list.forEach(s=>{let g=s.left>=this.select.startX&&s.left<=this.select.endX,w=s.top>=this.select.startY&&s.top<=this.select.endY;g&&w&&v.push(s.index)}),this.contain.selectNav(v)}this.select.show=!1},getTargetDom(){let e=this.target||(this.isBuild?"#section":"body");return document.querySelector(e)},initFun(){["handleRefresh","getListRef","getItemRef"].forEach(e=>{this[e]=this.$refs.subgroup[e]})},initGlob(){getList({current:1,size:100}).then(e=>{e.data.data.records.forEach(s=>{window.$glob[s.globalKey]=s.globalValue})})},refresh(e){if(e){let v=this.contain.config.theme[e];v.data.forEach(s=>{v[s.key]=s.value}),window.$glob.theme=v,this.reload=Math.random(),this.$nextTick(()=>{this.initFun()})}},initData(){this.setScale(),this.$refs.loading.show();const e=this.$route&&this.$route.query||{},v=this.id||e.id||this.$route&&this.$route.params.id;this.contain.id=v;const s=e.src;let g,w;const m=()=>{const u=()=>{this.contain.setGlobParams(),this.contain.nav=g.component,this.$refs.loading.hide()};this.validatenull(this.contain.config.group)&&(this.contain.config.group=[{name:"主屏幕",id:"",isname:!1}]),this.validatenull(this.contain.config.glob)||this.contain.config.glob.forEach(a=>{window.$glob[a.key]=a.value});let c=this.contain.config.themeId;this.validatenull(c)||(window.$glob.themeId=c);let l=this.contain.config.mark;l.show&&!this.isBuild&&this.watermark&&this.watermark(Object.assign(l,{fontSize:l.fontSize+"px"})),this.calcData(),this.setScale();let r=this.contain.config.before;r?getFunction(r)(this.contain.config).then(()=>{u()}).catch(a=>{console.log(a),u()}):u()};s?axios({url:s,method:"get"}).then(u=>{let c=u.data.replace("const option = ",""),l=JSON.parse(c);g={config:l.detail||{},component:l.component||[]},document.title=this.$website.title+"-"+g.config.name,this.contain.config=Object.assign({},config$1,l.detail),m()}):v?getObj(v).then(u=>{const c=u.data.data;if(this.contain.obj=c,w=c.config,g={config:JSON.parse(w.detail)||{},component:JSON.parse(w.component)||[]},this.contain.config=Object.assign({},config$1,g.config),this.contain.visual=c.visual,document.title=this.$website.title+"-"+c.visual.title,this.isBuild)m();else{const l=this.contain.visual.password;this.contain.visual.status==0?this.$alert("大屏还没有发布,晚一点再来吧!","提示",{showClose:!1,center:!0,showConfirmButton:!1}):this.validatenull(l)?m():this.$prompt("请输入密码","提示",{confirmButtonText:"确定",showCancelButton:!1,showClose:!1,closeOnClickModal:!1,inputPattern:new RegExp(l),inputErrorMessage:"密码不正确,请重新输入"}).then(()=>{m()})}}).catch(u=>{console.log(u),g={config:config$1,component:[]},this.contain.config=Object.assign({},config$1,g.config),m()}):this.option?(w=this.option,g={config:w.detail||{},component:w.component||[]},document.title=this.$website.title+"-"+g.config.name,this.contain.config=Object.assign({},config$1,w.detail),m()):this.setScale()},setScale(e){const v=this.contain.thick||0;this.contain.canvasWidth=this.contain.config.width,this.contain.canvasHeight=this.contain.config.height,this.contain.width=this.getTargetDom().offsetWidth-v,this.contain.height=this.getTargetDom().offsetHeight-v,this.contain.scale=this.contain.width/this.contain.config.width-.02,this.$nextTick(()=>{this.contain.initSize&&this.contain.initSize()})},calcData(){this.contain.config.mark||(this.contain.config.mark={}),this.contain.config.query||(this.contain.config.query={})}}};function _sfc_render$1(e,v,s,g,w,m){const u=vue.resolveComponent("subgroup"),c=vue.resolveComponent("loading");return vue.openBlock(),vue.createElementBlock("div",{class:"wrapper",style:vue.normalizeStyle(w.wrapperStyle)},[vue.createElementVNode("div",{class:"container",style:vue.normalizeStyle(m.containerStyle),id:"container",onMousedown:v[0]||(v[0]=(...l)=>m.dragMousedown&&m.dragMousedown(...l)),onMouseup:v[1]||(v[1]=(...l)=>m.dragMouseup&&m.dragMouseup(...l)),onMousemove:v[2]||(v[2]=(...l)=>m.dragMousemove&&m.dragMousemove(...l)),ref:"container"},[vue.createElementVNode("div",{class:"refer-select",style:vue.normalizeStyle(m.selectStyle)},null,4),w.gradeFlag||m.contain.config.gradeShow?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"grade",style:vue.normalizeStyle(m.gradeLenStyle)},null,4)):vue.createCommentVNode("",!0),(vue.openBlock(),vue.createBlock(u,{ref:"subgroup",key:w.reload,nav:m.contain.list},null,8,["nav"]))],36),vue.createVNode(c,{ref:"loading"},null,512)],4)}const container=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1]]),init={components:{container},provide(){return{main:this,contain:this}},data(){return{id:"",render:!1,canvasWidth:0,canvasHeight:0,width:0,height:0,config:config$1,group:"",obj:{},visual:{},nav:[],common:common$1,active:[],activeIndex:null,activeOverIndex:null,configData:["header","query","before","style"]}},watch:{config:{handler(e){this.setGlobParams(e)},deep:!0,immediate:!0}},computed:{list(){let e=[];const v=g=>{g.forEach(w=>{e.push(w),w.children&&v(w.children)})};v(this.nav);const s=e.length-1;return e.forEach((g,w)=>g.zIndex=s-w),e=e.filter(g=>this.validatenull(g.group)?!0:g.group==this.group),e}},created(){this.init()},methods:{init(){Object.defineProperty(window.$glob,"group",{set:e=>{this.group=e}}),Object.defineProperty(window.$glob,"themeId",{set:e=>{this.$refs.container.refresh(e)}})},findnav(e){let v={};const s=(g,w,m,u)=>{g.forEach((c,l)=>{e===c.index?v={index:c.index,deep:u,item:c,itemIndex:l,itemLen:g.length-1,itemList:g,parent:w,parentIndex:m}:c.children&&s(c.children,c,l,u+1)})};return s(this.nav,this.nav,0,0),v},findList(e){return this.list.find(v=>v.index==e)||{}},handleInitActive(){this.keys.ctrl=!1,this.active=[],this.activeIndex=null},setGlobParams(e){e=e||this.config;const v=document.createElement("style");v.innerHTML=e.style,document.head.appendChild(v),this.configData.forEach(s=>{let g=getFunction(e[s],!0);window.$glob[s]=typeof g=="function"&&g()||{},delete window.$glob[s][""]}),window.$glob.url=e.url,this.render=!0}}},_sfc_main={props:{target:String,option:Object,id:[String,Number]},mixins:[init],data(){return{viewStyle:{}}},created(){const e=getUrlParam("token")||"";e&&localStorage.setItem("token",e)}};function _sfc_render(e,v,s,g,w,m){const u=vue.resolveComponent("container");return vue.openBlock(),vue.createElementBlock("div",{class:"build views",style:vue.normalizeStyle(w.viewStyle)},[vue.createVNode(u,{id:s.id,target:s.target,option:s.option,ref:"container"},null,8,["id","target","option"])],4)}const view=_export_sfc$1(_sfc_main,[["render",_sfc_render]]),index={install(e,v){e.config.globalProperties.$component=e.component,e.config.globalProperties.$website=website,e.component("avue-data",view)}};return index});