@syhr/sy-graph 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +101 -0
- package/README.md +13 -2
- package/lib/graph.css +1 -1
- package/lib/sy-graph.cjs +16 -16
- package/lib/sy-graph.mjs +4165 -4148
- package/lib/sy-graph.umd.js +17 -17
- package/package.json +1 -1
package/lib/sy-graph.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";require('./graph.css');var Ic=Object.defineProperty,Dc=Object.defineProperties;var Rc=Object.getOwnPropertyDescriptors;var nn=Object.getOwnPropertySymbols;var va=Object.prototype.hasOwnProperty,ya=Object.prototype.propertyIsEnumerable;var nr=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Oc=e=>{throw TypeError(e)},dt=Math.pow,ui=(e,t,r)=>t in e?Ic(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,he=(e,t)=>{for(var r in t||(t={}))va.call(t,r)&&ui(e,r,t[r]);if(nn)for(var r of nn(t))ya.call(t,r)&&ui(e,r,t[r]);return e},_e=(e,t)=>Dc(e,Rc(t));var ga=(e,t)=>{var r={};for(var n in e)va.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&nn)for(var n of nn(e))t.indexOf(n)<0&&ya.call(e,n)&&(r[n]=e[n]);return r};var Tt=(e,t,r)=>ui(e,typeof t!="symbol"?t+"":t,r);var He=(e,t,r)=>new Promise((n,l)=>{var o=h=>{try{u(r.next(h))}catch(a){l(a)}},s=h=>{try{u(r.throw(h))}catch(a){l(a)}},u=h=>h.done?n(h.value):Promise.resolve(h.value).then(o,s);u((r=r.apply(e,t)).next())}),Ut=function(e,t){this[0]=e,this[1]=t},ci=(e,t,r)=>{var n=(s,u,h,a)=>{try{var i=r[s](u),d=(u=i.value)instanceof Ut,c=i.done;Promise.resolve(d?u[0]:u).then(f=>d?n(s==="return"?s:"next",u[1]?{done:f.done,value:f.value}:f,h,a):h({value:f,done:c})).catch(f=>n("throw",f,h,a))}catch(f){a(f)}},l=s=>o[s]=u=>new Promise((h,a)=>n(s,u,h,a)),o={};return r=r.apply(e,t),o[nr("asyncIterator")]=()=>o,l("next"),l("throw"),l("return"),o},fi=e=>{var t=e[nr("asyncIterator")],r=!1,n,l={};return t==null?(t=e[nr("iterator")](),n=o=>l[o]=s=>t[o](s)):(t=t.call(e),n=o=>l[o]=s=>{if(r){if(r=!1,o==="throw")throw s;return s}return r=!0,{done:!1,value:new Ut(new Promise(u=>{var h=t[o](s);h instanceof Object||Oc("Object expected"),u(h)}),1)}}),l[nr("iterator")]=()=>l,n("next"),"throw"in t?n("throw"):l.throw=o=>{throw o},"return"in t&&n("return"),l},xa=(e,t,r)=>(t=e[nr("asyncIterator")])?t.call(e):(e=e[nr("iterator")](),t={},r=(n,l)=>(l=e[n])&&(t[n]=o=>new Promise((s,u,h)=>(o=l.call(e,o),h=o.done,Promise.resolve(o.value).then(a=>s({value:a,done:h}),u)))),r("next"),r("return"),t);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const L=require("vue"),On=require("lodash-es"),sl=require("@meta2d/utils"),Pe=require("@meta2d/core"),Pc=require("@meta2d/plugin-mind-core"),Mc=require("@meta2d/plugin-mind-collapse"),Nc=require("@meta2d/form-diagram"),Lc=require("@meta2d/class-diagram"),Uc=require("@meta2d/le5le-charts"),ba=require("@meta2d/flow-diagram"),hi=require("@meta2d/fta-diagram"),wa=require("@meta2d/sequence-diagram"),_a=require("@meta2d/activity-diagram");var xe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Vo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),r}var gr=TypeError;const qc={},jc=Object.freeze(Object.defineProperty({__proto__:null,default:qc},Symbol.toStringTag,{value:"Module"})),ll=zc(jc);var Wo=typeof Map=="function"&&Map.prototype,pi=Object.getOwnPropertyDescriptor&&Wo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Cn=Wo&&pi&&typeof pi.get=="function"?pi.get:null,Ea=Wo&&Map.prototype.forEach,Ko=typeof Set=="function"&&Set.prototype,di=Object.getOwnPropertyDescriptor&&Ko?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Sn=Ko&&di&&typeof di.get=="function"?di.get:null,Aa=Ko&&Set.prototype.forEach,Hc=typeof WeakMap=="function"&&WeakMap.prototype,Tr=Hc?WeakMap.prototype.has:null,$c=typeof WeakSet=="function"&&WeakSet.prototype,Fr=$c?WeakSet.prototype.has:null,Vc=typeof WeakRef=="function"&&WeakRef.prototype,Ca=Vc?WeakRef.prototype.deref:null,Wc=Boolean.prototype.valueOf,Kc=Object.prototype.toString,Gc=Function.prototype.toString,Qc=String.prototype.match,Go=String.prototype.slice,It=String.prototype.replace,Yc=String.prototype.toUpperCase,Sa=String.prototype.toLowerCase,ul=RegExp.prototype.test,Ba=Array.prototype.concat,bt=Array.prototype.join,Xc=Array.prototype.slice,ka=Math.floor,Co=typeof BigInt=="function"?BigInt.prototype.valueOf:null,mi=Object.getOwnPropertySymbols,So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ir=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hr||!0)?Symbol.toStringTag:null,cl=Object.prototype.propertyIsEnumerable,Ta=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Fa(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||ul.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-ka(-e):ka(e);if(n!==e){var l=String(n),o=Go.call(t,l.length+1);return It.call(l,r,"$&_")+"."+It.call(It.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return It.call(t,r,"$&_")}var Bo=ll,Ia=Bo.custom,Da=pl(Ia)?Ia:null,fl={__proto__:null,double:'"',single:"'"},Zc={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Pn=function e(t,r,n,l){var o=r||{};if(Ct(o,"quoteStyle")&&!Ct(fl,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ct(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Ct(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ct(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ct(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=o.numericSeparator;if(typeof t=="undefined")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return ml(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var h=String(t);return u?Fa(t,h):h}if(typeof t=="bigint"){var a=String(t)+"n";return u?Fa(t,a):a}var i=typeof o.depth=="undefined"?5:o.depth;if(typeof n=="undefined"&&(n=0),n>=i&&i>0&&typeof t=="object")return ko(t)?"[Array]":"[Object]";var d=yf(o,n);if(typeof l=="undefined")l=[];else if(dl(l,t)>=0)return"[Circular]";function c(C,B,U){if(B&&(l=Xc.call(l),l.push(B)),U){var q={depth:o.depth};return Ct(o,"quoteStyle")&&(q.quoteStyle=o.quoteStyle),e(C,q,n+1,l)}return e(C,o,n+1,l)}if(typeof t=="function"&&!Ra(t)){var f=lf(t),p=on(t,c);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(p.length>0?" { "+bt.call(p,", ")+" }":"")}if(pl(t)){var v=hr?It.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):So.call(t);return typeof t=="object"&&!hr?Cr(v):v}if(df(t)){for(var m="<"+Sa.call(String(t.nodeName)),g=t.attributes||[],x=0;x<g.length;x++)m+=" "+g[x].name+"="+hl(Jc(g[x].value),"double",o);return m+=">",t.childNodes&&t.childNodes.length&&(m+="..."),m+="</"+Sa.call(String(t.nodeName))+">",m}if(ko(t)){if(t.length===0)return"[]";var y=on(t,c);return d&&!vf(y)?"["+To(y,d)+"]":"[ "+bt.call(y,", ")+" ]"}if(tf(t)){var w=on(t,c);return!("cause"in Error.prototype)&&"cause"in t&&!cl.call(t,"cause")?"{ ["+String(t)+"] "+bt.call(Ba.call("[cause]: "+c(t.cause),w),", ")+" }":w.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+bt.call(w,", ")+" }"}if(typeof t=="object"&&s){if(Da&&typeof t[Da]=="function"&&Bo)return Bo(t,{depth:i-n});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(uf(t)){var F=[];return Ea&&Ea.call(t,function(C,B){F.push(c(B,t,!0)+" => "+c(C,t))}),Oa("Map",Cn.call(t),F,d)}if(hf(t)){var T=[];return Aa&&Aa.call(t,function(C){T.push(c(C,t))}),Oa("Set",Sn.call(t),T,d)}if(cf(t))return vi("WeakMap");if(pf(t))return vi("WeakSet");if(ff(t))return vi("WeakRef");if(nf(t))return Cr(c(Number(t)));if(af(t))return Cr(c(Co.call(t)));if(of(t))return Cr(Wc.call(t));if(rf(t))return Cr(c(String(t)));if(typeof window!="undefined"&&t===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&t===globalThis||typeof xe!="undefined"&&t===xe)return"{ [object globalThis] }";if(!ef(t)&&!Ra(t)){var I=on(t,c),D=Ta?Ta(t)===Object.prototype:t instanceof Object||t.constructor===Object,X=t instanceof Object?"":"null prototype",K=!D&&Ir&&Object(t)===t&&Ir in t?Go.call(Rt(t),8,-1):X?"Object":"",E=D||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",A=E+(K||X?"["+bt.call(Ba.call([],K||[],X||[]),": ")+"] ":"");return I.length===0?A+"{}":d?A+"{"+To(I,d)+"}":A+"{ "+bt.call(I,", ")+" }"}return String(t)};function hl(e,t,r){var n=r.quoteStyle||t,l=fl[n];return l+e+l}function Jc(e){return It.call(String(e),/"/g,""")}function Xt(e){return!Ir||!(typeof e=="object"&&(Ir in e||typeof e[Ir]!="undefined"))}function ko(e){return Rt(e)==="[object Array]"&&Xt(e)}function ef(e){return Rt(e)==="[object Date]"&&Xt(e)}function Ra(e){return Rt(e)==="[object RegExp]"&&Xt(e)}function tf(e){return Rt(e)==="[object Error]"&&Xt(e)}function rf(e){return Rt(e)==="[object String]"&&Xt(e)}function nf(e){return Rt(e)==="[object Number]"&&Xt(e)}function of(e){return Rt(e)==="[object Boolean]"&&Xt(e)}function pl(e){if(hr)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!So)return!1;try{return So.call(e),!0}catch(t){}return!1}function af(e){if(!e||typeof e!="object"||!Co)return!1;try{return Co.call(e),!0}catch(t){}return!1}var sf=Object.prototype.hasOwnProperty||function(e){return e in this};function Ct(e,t){return sf.call(e,t)}function Rt(e){return Kc.call(e)}function lf(e){if(e.name)return e.name;var t=Qc.call(Gc.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function dl(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function uf(e){if(!Cn||!e||typeof e!="object")return!1;try{Cn.call(e);try{Sn.call(e)}catch(t){return!0}return e instanceof Map}catch(t){}return!1}function cf(e){if(!Tr||!e||typeof e!="object")return!1;try{Tr.call(e,Tr);try{Fr.call(e,Fr)}catch(t){return!0}return e instanceof WeakMap}catch(t){}return!1}function ff(e){if(!Ca||!e||typeof e!="object")return!1;try{return Ca.call(e),!0}catch(t){}return!1}function hf(e){if(!Sn||!e||typeof e!="object")return!1;try{Sn.call(e);try{Cn.call(e)}catch(t){return!0}return e instanceof Set}catch(t){}return!1}function pf(e){if(!Fr||!e||typeof e!="object")return!1;try{Fr.call(e,Fr);try{Tr.call(e,Tr)}catch(t){return!0}return e instanceof WeakSet}catch(t){}return!1}function df(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function ml(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ml(Go.call(e,0,t.maxStringLength),t)+n}var l=Zc[t.quoteStyle||"single"];l.lastIndex=0;var o=It.call(It.call(e,l,"\\$1"),/[\x00-\x1f]/g,mf);return hl(o,"single",t)}function mf(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Yc.call(t.toString(16))}function Cr(e){return"Object("+e+")"}function vi(e){return e+" { ? }"}function Oa(e,t,r,n){var l=n?To(r,n):bt.call(r,", ");return e+" ("+t+") {"+l+"}"}function vf(e){for(var t=0;t<e.length;t++)if(dl(e[t],`
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
1
|
+
"use strict";require('./graph.css');var mc=Object.defineProperty,vc=Object.defineProperties;var yc=Object.getOwnPropertyDescriptors;var nn=Object.getOwnPropertySymbols;var va=Object.prototype.hasOwnProperty,ya=Object.prototype.propertyIsEnumerable;var nr=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),gc=e=>{throw TypeError(e)},dt=Math.pow,ui=(e,t,r)=>t in e?mc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,he=(e,t)=>{for(var r in t||(t={}))va.call(t,r)&&ui(e,r,t[r]);if(nn)for(var r of nn(t))ya.call(t,r)&&ui(e,r,t[r]);return e},_e=(e,t)=>vc(e,yc(t));var ga=(e,t)=>{var r={};for(var n in e)va.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&nn)for(var n of nn(e))t.indexOf(n)<0&&ya.call(e,n)&&(r[n]=e[n]);return r};var Tt=(e,t,r)=>ui(e,typeof t!="symbol"?t+"":t,r);var He=(e,t,r)=>new Promise((n,l)=>{var o=h=>{try{u(r.next(h))}catch(a){l(a)}},s=h=>{try{u(r.throw(h))}catch(a){l(a)}},u=h=>h.done?n(h.value):Promise.resolve(h.value).then(o,s);u((r=r.apply(e,t)).next())}),Ut=function(e,t){this[0]=e,this[1]=t},ci=(e,t,r)=>{var n=(s,u,h,a)=>{try{var i=r[s](u),d=(u=i.value)instanceof Ut,c=i.done;Promise.resolve(d?u[0]:u).then(f=>d?n(s==="return"?s:"next",u[1]?{done:f.done,value:f.value}:f,h,a):h({value:f,done:c})).catch(f=>n("throw",f,h,a))}catch(f){a(f)}},l=s=>o[s]=u=>new Promise((h,a)=>n(s,u,h,a)),o={};return r=r.apply(e,t),o[nr("asyncIterator")]=()=>o,l("next"),l("throw"),l("return"),o},fi=e=>{var t=e[nr("asyncIterator")],r=!1,n,l={};return t==null?(t=e[nr("iterator")](),n=o=>l[o]=s=>t[o](s)):(t=t.call(e),n=o=>l[o]=s=>{if(r){if(r=!1,o==="throw")throw s;return s}return r=!0,{done:!1,value:new Ut(new Promise(u=>{var h=t[o](s);h instanceof Object||gc("Object expected"),u(h)}),1)}}),l[nr("iterator")]=()=>l,n("next"),"throw"in t?n("throw"):l.throw=o=>{throw o},"return"in t&&n("return"),l},xa=(e,t,r)=>(t=e[nr("asyncIterator")])?t.call(e):(e=e[nr("iterator")](),t={},r=(n,l)=>(l=e[n])&&(t[n]=o=>new Promise((s,u,h)=>(o=l.call(e,o),h=o.done,Promise.resolve(o.value).then(a=>s({value:a,done:h}),u)))),r("next"),r("return"),t);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const N=require("vue"),On=require("lodash-es"),V0=require("@meta2d/utils"),Pe=require("@meta2d/core"),xc=require("@meta2d/plugin-mind-core"),bc=require("@meta2d/plugin-mind-collapse"),wc=require("@meta2d/form-diagram"),_c=require("@meta2d/class-diagram"),Ec=require("@meta2d/le5le-charts"),ba=require("@meta2d/flow-diagram"),hi=require("@meta2d/fta-diagram"),wa=require("@meta2d/sequence-diagram"),_a=require("@meta2d/activity-diagram");var xe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Vo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ac(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),r}var gr=TypeError;const Cc={},Sc=Object.freeze(Object.defineProperty({__proto__:null,default:Cc},Symbol.toStringTag,{value:"Module"})),W0=Ac(Sc);var Wo=typeof Map=="function"&&Map.prototype,pi=Object.getOwnPropertyDescriptor&&Wo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Cn=Wo&&pi&&typeof pi.get=="function"?pi.get:null,Ea=Wo&&Map.prototype.forEach,Ko=typeof Set=="function"&&Set.prototype,di=Object.getOwnPropertyDescriptor&&Ko?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Sn=Ko&&di&&typeof di.get=="function"?di.get:null,Aa=Ko&&Set.prototype.forEach,Bc=typeof WeakMap=="function"&&WeakMap.prototype,Tr=Bc?WeakMap.prototype.has:null,kc=typeof WeakSet=="function"&&WeakSet.prototype,Fr=kc?WeakSet.prototype.has:null,Tc=typeof WeakRef=="function"&&WeakRef.prototype,Ca=Tc?WeakRef.prototype.deref:null,Fc=Boolean.prototype.valueOf,Ic=Object.prototype.toString,Dc=Function.prototype.toString,Rc=String.prototype.match,Go=String.prototype.slice,It=String.prototype.replace,Oc=String.prototype.toUpperCase,Sa=String.prototype.toLowerCase,K0=RegExp.prototype.test,Ba=Array.prototype.concat,bt=Array.prototype.join,Pc=Array.prototype.slice,ka=Math.floor,Co=typeof BigInt=="function"?BigInt.prototype.valueOf:null,mi=Object.getOwnPropertySymbols,So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ir=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hr||!0)?Symbol.toStringTag:null,G0=Object.prototype.propertyIsEnumerable,Ta=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Fa(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||K0.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-ka(-e):ka(e);if(n!==e){var l=String(n),o=Go.call(t,l.length+1);return It.call(l,r,"$&_")+"."+It.call(It.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return It.call(t,r,"$&_")}var Bo=W0,Ia=Bo.custom,Da=X0(Ia)?Ia:null,Q0={__proto__:null,double:'"',single:"'"},Mc={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Pn=function e(t,r,n,l){var o=r||{};if(Ct(o,"quoteStyle")&&!Ct(Q0,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ct(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Ct(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ct(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ct(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=o.numericSeparator;if(typeof t=="undefined")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return J0(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var h=String(t);return u?Fa(t,h):h}if(typeof t=="bigint"){var a=String(t)+"n";return u?Fa(t,a):a}var i=typeof o.depth=="undefined"?5:o.depth;if(typeof n=="undefined"&&(n=0),n>=i&&i>0&&typeof t=="object")return ko(t)?"[Array]":"[Object]";var d=ef(o,n);if(typeof l=="undefined")l=[];else if(Z0(l,t)>=0)return"[Circular]";function c(S,D,P){if(D&&(l=Pc.call(l),l.push(D)),P){var j={depth:o.depth};return Ct(o,"quoteStyle")&&(j.quoteStyle=o.quoteStyle),e(S,j,n+1,l)}return e(S,o,n+1,l)}if(typeof t=="function"&&!Ra(t)){var f=Vc(t),p=on(t,c);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(p.length>0?" { "+bt.call(p,", ")+" }":"")}if(X0(t)){var v=hr?It.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):So.call(t);return typeof t=="object"&&!hr?Cr(v):v}if(Xc(t)){for(var m="<"+Sa.call(String(t.nodeName)),g=t.attributes||[],x=0;x<g.length;x++)m+=" "+g[x].name+"="+Y0(Nc(g[x].value),"double",o);return m+=">",t.childNodes&&t.childNodes.length&&(m+="..."),m+="</"+Sa.call(String(t.nodeName))+">",m}if(ko(t)){if(t.length===0)return"[]";var y=on(t,c);return d&&!Jc(y)?"["+To(y,d)+"]":"[ "+bt.call(y,", ")+" ]"}if(Uc(t)){var w=on(t,c);return!("cause"in Error.prototype)&&"cause"in t&&!G0.call(t,"cause")?"{ ["+String(t)+"] "+bt.call(Ba.call("[cause]: "+c(t.cause),w),", ")+" }":w.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+bt.call(w,", ")+" }"}if(typeof t=="object"&&s){if(Da&&typeof t[Da]=="function"&&Bo)return Bo(t,{depth:i-n});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Wc(t)){var k=[];return Ea&&Ea.call(t,function(S,D){k.push(c(D,t,!0)+" => "+c(S,t))}),Oa("Map",Cn.call(t),k,d)}if(Qc(t)){var T=[];return Aa&&Aa.call(t,function(S){T.push(c(S,t))}),Oa("Set",Sn.call(t),T,d)}if(Kc(t))return vi("WeakMap");if(Yc(t))return vi("WeakSet");if(Gc(t))return vi("WeakRef");if(qc(t))return Cr(c(Number(t)));if(Hc(t))return Cr(c(Co.call(t)));if(jc(t))return Cr(Fc.call(t));if(zc(t))return Cr(c(String(t)));if(typeof window!="undefined"&&t===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&t===globalThis||typeof xe!="undefined"&&t===xe)return"{ [object globalThis] }";if(!Lc(t)&&!Ra(t)){var F=on(t,c),I=Ta?Ta(t)===Object.prototype:t instanceof Object||t.constructor===Object,G=t instanceof Object?"":"null prototype",K=!I&&Ir&&Object(t)===t&&Ir in t?Go.call(Rt(t),8,-1):G?"Object":"",E=I||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",A=E+(K||G?"["+bt.call(Ba.call([],K||[],G||[]),": ")+"] ":"");return F.length===0?A+"{}":d?A+"{"+To(F,d)+"}":A+"{ "+bt.call(F,", ")+" }"}return String(t)};function Y0(e,t,r){var n=r.quoteStyle||t,l=Q0[n];return l+e+l}function Nc(e){return It.call(String(e),/"/g,""")}function Xt(e){return!Ir||!(typeof e=="object"&&(Ir in e||typeof e[Ir]!="undefined"))}function ko(e){return Rt(e)==="[object Array]"&&Xt(e)}function Lc(e){return Rt(e)==="[object Date]"&&Xt(e)}function Ra(e){return Rt(e)==="[object RegExp]"&&Xt(e)}function Uc(e){return Rt(e)==="[object Error]"&&Xt(e)}function zc(e){return Rt(e)==="[object String]"&&Xt(e)}function qc(e){return Rt(e)==="[object Number]"&&Xt(e)}function jc(e){return Rt(e)==="[object Boolean]"&&Xt(e)}function X0(e){if(hr)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!So)return!1;try{return So.call(e),!0}catch(t){}return!1}function Hc(e){if(!e||typeof e!="object"||!Co)return!1;try{return Co.call(e),!0}catch(t){}return!1}var $c=Object.prototype.hasOwnProperty||function(e){return e in this};function Ct(e,t){return $c.call(e,t)}function Rt(e){return Ic.call(e)}function Vc(e){if(e.name)return e.name;var t=Rc.call(Dc.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Z0(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Wc(e){if(!Cn||!e||typeof e!="object")return!1;try{Cn.call(e);try{Sn.call(e)}catch(t){return!0}return e instanceof Map}catch(t){}return!1}function Kc(e){if(!Tr||!e||typeof e!="object")return!1;try{Tr.call(e,Tr);try{Fr.call(e,Fr)}catch(t){return!0}return e instanceof WeakMap}catch(t){}return!1}function Gc(e){if(!Ca||!e||typeof e!="object")return!1;try{return Ca.call(e),!0}catch(t){}return!1}function Qc(e){if(!Sn||!e||typeof e!="object")return!1;try{Sn.call(e);try{Cn.call(e)}catch(t){return!0}return e instanceof Set}catch(t){}return!1}function Yc(e){if(!Fr||!e||typeof e!="object")return!1;try{Fr.call(e,Fr);try{Tr.call(e,Tr)}catch(t){return!0}return e instanceof WeakSet}catch(t){}return!1}function Xc(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function J0(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return J0(Go.call(e,0,t.maxStringLength),t)+n}var l=Mc[t.quoteStyle||"single"];l.lastIndex=0;var o=It.call(It.call(e,l,"\\$1"),/[\x00-\x1f]/g,Zc);return Y0(o,"single",t)}function Zc(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Oc.call(t.toString(16))}function Cr(e){return"Object("+e+")"}function vi(e){return e+" { ? }"}function Oa(e,t,r,n){var l=n?To(r,n):bt.call(r,", ");return e+" ("+t+") {"+l+"}"}function Jc(e){for(var t=0;t<e.length;t++)if(Z0(e[t],`
|
|
2
|
+
`)>=0)return!1;return!0}function ef(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=bt.call(Array(e.indent+1)," ");else return null;return{base:r,prev:bt.call(Array(t+1),r)}}function To(e,t){if(e.length===0)return"";var r=`
|
|
3
3
|
`+t.prev+t.base;return r+bt.call(e,","+r)+`
|
|
4
|
-
`+t.prev}function on(e,t){var r=ko(e),n=[];if(r){n.length=e.length;for(var l=0;l<e.length;l++)n[l]=Ct(e,l)?t(e[l],e):""}var o=typeof mi=="function"?mi(e):[],s;if(hr){s={};for(var u=0;u<o.length;u++)s["$"+o[u]]=o[u]}for(var h in e)Ct(e,h)&&(r&&String(Number(h))===h&&h<e.length||hr&&s["$"+h]instanceof Symbol||(ul.call(/[^\w$]/,h)?n.push(t(h,e)+": "+t(e[h],e)):n.push(h+": "+t(e[h],e))));if(typeof mi=="function")for(var a=0;a<o.length;a++)cl.call(e,o[a])&&n.push("["+t(o[a])+"]: "+t(e[o[a]],e));return n}var gf=Pn,xf=gr,Mn=function(e,t,r){for(var n=e,l;(l=n.next)!=null;n=l)if(l.key===t)return n.next=l.next,r||(l.next=e.next,e.next=l),l},bf=function(e,t){if(e){var r=Mn(e,t);return r&&r.value}},wf=function(e,t,r){var n=Mn(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},_f=function(e,t){return e?!!Mn(e,t):!1},Ef=function(e,t){if(e)return Mn(e,t,!0)},Af=function(){var t,r={assert:function(n){if(!r.has(n))throw new xf("Side channel does not contain "+gf(n))},delete:function(n){var l=t&&t.next,o=Ef(t,n);return o&&l&&l===o&&(t=void 0),!!o},get:function(n){return bf(t,n)},has:function(n){return _f(t,n)},set:function(n,l){t||(t={next:void 0}),wf(t,n,l)}};return r},vl=Object,Cf=Error,Sf=EvalError,Bf=RangeError,kf=ReferenceError,Tf=SyntaxError,Ff=URIError,If=Math.abs,Df=Math.floor,Rf=Math.max,Of=Math.min,Pf=Math.pow,Mf=Math.round,Nf=Number.isNaN||function(t){return t!==t},Lf=Nf,Uf=function(t){return Lf(t)||t===0?t:t<0?-1:1},zf=Object.getOwnPropertyDescriptor,yn=zf;if(yn)try{yn([],"length")}catch(e){yn=null}var yl=yn,gn=Object.defineProperty||!1;if(gn)try{gn({},"a",{value:1})}catch(e){gn=!1}var qf=gn,yi,Pa;function jf(){return Pa||(Pa=1,yi=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var l=42;t[r]=l;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==l||u.enumerable!==!0)return!1}return!0}),yi}var gi,Ma;function Hf(){if(Ma)return gi;Ma=1;var e=typeof Symbol!="undefined"&&Symbol,t=jf();return gi=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},gi}var xi,Na;function gl(){return Na||(Na=1,xi=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),xi}var bi,La;function xl(){if(La)return bi;La=1;var e=vl;return bi=e.getPrototypeOf||null,bi}var wi,Ua;function $f(){if(Ua)return wi;Ua=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",l=function(h,a){for(var i=[],d=0;d<h.length;d+=1)i[d]=h[d];for(var c=0;c<a.length;c+=1)i[c+h.length]=a[c];return i},o=function(h,a){for(var i=[],d=a,c=0;d<h.length;d+=1,c+=1)i[c]=h[d];return i},s=function(u,h){for(var a="",i=0;i<u.length;i+=1)a+=u[i],i+1<u.length&&(a+=h);return a};return wi=function(h){var a=this;if(typeof a!="function"||t.apply(a)!==n)throw new TypeError(e+a);for(var i=o(arguments,1),d,c=function(){if(this instanceof d){var g=a.apply(this,l(i,arguments));return Object(g)===g?g:this}return a.apply(h,l(i,arguments))},f=r(0,a.length-i.length),p=[],v=0;v<f;v++)p[v]="$"+v;if(d=Function("binder","return function ("+s(p,",")+"){ return binder.apply(this,arguments); }")(c),a.prototype){var m=function(){};m.prototype=a.prototype,d.prototype=new m,m.prototype=null}return d},wi}var _i,za;function Nn(){if(za)return _i;za=1;var e=$f();return _i=Function.prototype.bind||e,_i}var Ei,qa;function Qo(){return qa||(qa=1,Ei=Function.prototype.call),Ei}var Ai,ja;function bl(){return ja||(ja=1,Ai=Function.prototype.apply),Ai}var Vf=typeof Reflect!="undefined"&&Reflect&&Reflect.apply,Wf=Nn(),Kf=bl(),Gf=Qo(),Qf=Vf,Yf=Qf||Wf.call(Gf,Kf),Xf=Nn(),Zf=gr,Jf=Qo(),eh=Yf,wl=function(t){if(t.length<1||typeof t[0]!="function")throw new Zf("a function is required");return eh(Xf,Jf,t)},Ci,Ha;function th(){if(Ha)return Ci;Ha=1;var e=wl,t=yl,r;try{r=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var n=!!r&&t&&t(Object.prototype,"__proto__"),l=Object,o=l.getPrototypeOf;return Ci=n&&typeof n.get=="function"?e([n.get]):typeof o=="function"?function(u){return o(u==null?u:l(u))}:!1,Ci}var Si,$a;function rh(){if($a)return Si;$a=1;var e=gl(),t=xl(),r=th();return Si=e?function(l){return e(l)}:t?function(l){if(!l||typeof l!="object"&&typeof l!="function")throw new TypeError("getProto: not an object");return t(l)}:r?function(l){return r(l)}:null,Si}var Bi,Va;function nh(){if(Va)return Bi;Va=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Nn();return Bi=r.call(e,t),Bi}var Ee,ih=vl,oh=Cf,ah=Sf,sh=Bf,lh=kf,pr=Tf,cr=gr,uh=Ff,ch=If,fh=Df,hh=Rf,ph=Of,dh=Pf,mh=Mf,vh=Uf,_l=Function,ki=function(e){try{return _l('"use strict"; return ('+e+").constructor;")()}catch(t){}},Rr=yl,yh=qf,Ti=function(){throw new cr},gh=Rr?function(){try{return arguments.callee,Ti}catch(e){try{return Rr(arguments,"callee").get}catch(t){return Ti}}}():Ti,ir=Hf()(),ze=rh(),xh=xl(),bh=gl(),El=bl(),Ur=Qo(),lr={},wh=typeof Uint8Array=="undefined"||!ze?Ee:ze(Uint8Array),__$t__={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Ee:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Ee:ArrayBuffer,"%ArrayIteratorPrototype%":ir&&ze?ze([][Symbol.iterator]()):Ee,"%AsyncFromSyncIteratorPrototype%":Ee,"%AsyncFunction%":lr,"%AsyncGenerator%":lr,"%AsyncGeneratorFunction%":lr,"%AsyncIteratorPrototype%":lr,"%Atomics%":typeof Atomics=="undefined"?Ee:Atomics,"%BigInt%":typeof BigInt=="undefined"?Ee:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Ee:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Ee:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Ee:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":oh,"%eval%":eval,"%EvalError%":ah,"%Float16Array%":typeof Float16Array=="undefined"?Ee:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Ee:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Ee:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Ee:FinalizationRegistry,"%Function%":_l,"%GeneratorFunction%":lr,"%Int8Array%":typeof Int8Array=="undefined"?Ee:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Ee:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Ee:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ir&&ze?ze(ze([][Symbol.iterator]())):Ee,"%JSON%":typeof JSON=="object"?JSON:Ee,"%Map%":typeof Map=="undefined"?Ee:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ir||!ze?Ee:ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ih,"%Object.getOwnPropertyDescriptor%":Rr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Ee:Promise,"%Proxy%":typeof Proxy=="undefined"?Ee:Proxy,"%RangeError%":sh,"%ReferenceError%":lh,"%Reflect%":typeof Reflect=="undefined"?Ee:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Ee:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ir||!ze?Ee:ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Ee:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ir&&ze?ze(""[Symbol.iterator]()):Ee,"%Symbol%":ir?Symbol:Ee,"%SyntaxError%":pr,"%ThrowTypeError%":gh,"%TypedArray%":wh,"%TypeError%":cr,"%Uint8Array%":typeof Uint8Array=="undefined"?Ee:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Ee:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Ee:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Ee:Uint32Array,"%URIError%":uh,"%WeakMap%":typeof WeakMap=="undefined"?Ee:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Ee:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Ee:WeakSet,"%Function.prototype.call%":Ur,"%Function.prototype.apply%":El,"%Object.defineProperty%":yh,"%Object.getPrototypeOf%":xh,"%Math.abs%":ch,"%Math.floor%":fh,"%Math.max%":hh,"%Math.min%":ph,"%Math.pow%":dh,"%Math.round%":mh,"%Math.sign%":vh,"%Reflect.getPrototypeOf%":bh};if(ze)try{null.error}catch(e){var _h=ze(ze(e));__$t__["%Error.prototype%"]=_h}var Eh=function e(t){var r;if(t==="%AsyncFunction%")r=ki("async function () {}");else if(t==="%GeneratorFunction%")r=ki("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=ki("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var l=e("%AsyncGenerator%");l&&ze&&(r=ze(l.prototype))}return __$t__[t]=r,r},Wa={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},zr=Nn(),Bn=nh(),Ah=zr.call(Ur,Array.prototype.concat),Ch=zr.call(El,Array.prototype.splice),Ka=zr.call(Ur,String.prototype.replace),kn=zr.call(Ur,String.prototype.slice),Sh=zr.call(Ur,RegExp.prototype.exec),Bh=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kh=/\\(\\)?/g,Th=function(t){var r=kn(t,0,1),n=kn(t,-1);if(r==="%"&&n!=="%")throw new pr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new pr("invalid intrinsic syntax, expected opening `%`");var l=[];return Ka(t,Bh,function(o,s,u,h){l[l.length]=u?Ka(h,kh,"$1"):s||o}),l},Fh=function(t,r){var n=t,l;if(Bn(Wa,n)&&(l=Wa[n],n="%"+l[0]+"%"),Bn(__$t__,n)){var o=__$t__[n];if(o===lr&&(o=Eh(n)),typeof o=="undefined"&&!r)throw new cr("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:l,name:n,value:o}}throw new pr("intrinsic "+t+" does not exist!")},Yo=function(t,r){if(typeof t!="string"||t.length===0)throw new cr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new cr('"allowMissing" argument must be a boolean');if(Sh(/^%?[^%]*%?$/,t)===null)throw new pr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Th(t),l=n.length>0?n[0]:"",o=Fh("%"+l+"%",r),s=o.name,u=o.value,h=!1,a=o.alias;a&&(l=a[0],Ch(n,Ah([0,1],a)));for(var i=1,d=!0;i<n.length;i+=1){var c=n[i],f=kn(c,0,1),p=kn(c,-1);if((f==='"'||f==="'"||f==="`"||p==='"'||p==="'"||p==="`")&&f!==p)throw new pr("property names with quotes must have matching quotes");if((c==="constructor"||!d)&&(h=!0),l+="."+c,s="%"+l+"%",Bn(__$t__,s))u=__$t__[s];else if(u!=null){if(!(c in u)){if(!r)throw new cr("base intrinsic for "+t+" exists, but the property is not available.");return}if(Rr&&i+1>=n.length){var v=Rr(u,c);d=!!v,d&&"get"in v&&!("originalValue"in v.get)?u=v.get:u=u[c]}else d=Bn(u,c),u=u[c];d&&!h&&(__$t__[s]=u)}}return u},Al=Yo,Cl=wl,Ih=Cl([Al("%String.prototype.indexOf%")]),Sl=function(t,r){var n=Al(t,!!r);return typeof n=="function"&&Ih(t,".prototype.")>-1?Cl([n]):n},Dh=Yo,qr=Sl,Rh=Pn,Oh=gr,Ga=Dh("%Map%",!0),Ph=qr("Map.prototype.get",!0),Mh=qr("Map.prototype.set",!0),Nh=qr("Map.prototype.has",!0),Lh=qr("Map.prototype.delete",!0),Uh=qr("Map.prototype.size",!0),Bl=!!Ga&&function(){var t,r={assert:function(n){if(!r.has(n))throw new Oh("Side channel does not contain "+Rh(n))},delete:function(n){if(t){var l=Lh(t,n);return Uh(t)===0&&(t=void 0),l}return!1},get:function(n){if(t)return Ph(t,n)},has:function(n){return t?Nh(t,n):!1},set:function(n,l){t||(t=new Ga),Mh(t,n,l)}};return r},zh=Yo,Ln=Sl,qh=Pn,an=Bl,jh=gr,or=zh("%WeakMap%",!0),Hh=Ln("WeakMap.prototype.get",!0),$h=Ln("WeakMap.prototype.set",!0),Vh=Ln("WeakMap.prototype.has",!0),Wh=Ln("WeakMap.prototype.delete",!0),Kh=or?function(){var t,r,n={assert:function(l){if(!n.has(l))throw new jh("Side channel does not contain "+qh(l))},delete:function(l){if(or&&l&&(typeof l=="object"||typeof l=="function")){if(t)return Wh(t,l)}else if(an&&r)return r.delete(l);return!1},get:function(l){return or&&l&&(typeof l=="object"||typeof l=="function")&&t?Hh(t,l):r&&r.get(l)},has:function(l){return or&&l&&(typeof l=="object"||typeof l=="function")&&t?Vh(t,l):!!r&&r.has(l)},set:function(l,o){or&&l&&(typeof l=="object"||typeof l=="function")?(t||(t=new or),$h(t,l,o)):an&&(r||(r=an()),r.set(l,o))}};return n}:an,Gh=gr,Qh=Pn,Yh=Af,Xh=Bl,Zh=Kh,Jh=Zh||Xh||Yh,ep=function(){var t,r={assert:function(n){if(!r.has(n))throw new Gh("Side channel does not contain "+Qh(n))},delete:function(n){return!!t&&t.delete(n)},get:function(n){return t&&t.get(n)},has:function(n){return!!t&&t.has(n)},set:function(n,l){t||(t=Jh()),t.set(n,l)}};return r},tp=String.prototype.replace,rp=/%20/g,Fi={RFC1738:"RFC1738",RFC3986:"RFC3986"},Xo={default:Fi.RFC3986,formatters:{RFC1738:function(e){return tp.call(e,rp,"+")},RFC3986:function(e){return String(e)}},RFC1738:Fi.RFC1738,RFC3986:Fi.RFC3986},np=Xo,Ii=Object.prototype.hasOwnProperty,qt=Array.isArray,mt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),ip=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(qt(n)){for(var l=[],o=0;o<n.length;++o)typeof n[o]!="undefined"&&l.push(n[o]);r.obj[r.prop]=l}}},kl=function(t,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},l=0;l<t.length;++l)typeof t[l]!="undefined"&&(n[l]=t[l]);return n},op=function e(t,r,n){if(!r)return t;if(typeof r!="object"&&typeof r!="function"){if(qt(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Ii.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var l=t;return qt(t)&&!qt(r)&&(l=kl(t,n)),qt(t)&&qt(r)?(r.forEach(function(o,s){if(Ii.call(t,s)){var u=t[s];u&&typeof u=="object"&&o&&typeof o=="object"?t[s]=e(u,o,n):t.push(o)}else t[s]=o}),t):Object.keys(r).reduce(function(o,s){var u=r[s];return Ii.call(o,s)?o[s]=e(o[s],u,n):o[s]=u,o},l)},ap=function(t,r){return Object.keys(r).reduce(function(n,l){return n[l]=r[l],n},t)},sp=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(l){return n}},Di=1024,lp=function(t,r,n,l,o){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var u="",h=0;h<s.length;h+=Di){for(var a=s.length>=Di?s.slice(h,h+Di):s,i=[],d=0;d<a.length;++d){var c=a.charCodeAt(d);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===np.RFC1738&&(c===40||c===41)){i[i.length]=a.charAt(d);continue}if(c<128){i[i.length]=mt[c];continue}if(c<2048){i[i.length]=mt[192|c>>6]+mt[128|c&63];continue}if(c<55296||c>=57344){i[i.length]=mt[224|c>>12]+mt[128|c>>6&63]+mt[128|c&63];continue}d+=1,c=65536+((c&1023)<<10|a.charCodeAt(d)&1023),i[i.length]=mt[240|c>>18]+mt[128|c>>12&63]+mt[128|c>>6&63]+mt[128|c&63]}u+=i.join("")}return u},up=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],l=0;l<r.length;++l)for(var o=r[l],s=o.obj[o.prop],u=Object.keys(s),h=0;h<u.length;++h){var a=u[h],i=s[a];typeof i=="object"&&i!==null&&n.indexOf(i)===-1&&(r.push({obj:s,prop:a}),n.push(i))}return ip(r),t},cp=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},fp=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},hp=function(t,r){return[].concat(t,r)},pp=function(t,r){if(qt(t)){for(var n=[],l=0;l<t.length;l+=1)n.push(r(t[l]));return n}return r(t)},Tl={arrayToObject:kl,assign:ap,combine:hp,compact:up,decode:sp,encode:lp,isBuffer:fp,isRegExp:cp,maybeMap:pp,merge:op},Fl=ep,xn=Tl,Dr=Xo,dp=Object.prototype.hasOwnProperty,Il={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},xt=Array.isArray,mp=Array.prototype.push,Dl=function(e,t){mp.apply(e,xt(t)?t:[t])},vp=Date.prototype.toISOString,Qa=Dr.default,Me={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:xn.encode,encodeValuesOnly:!1,filter:void 0,format:Qa,formatter:Dr.formatters[Qa],indices:!1,serializeDate:function(t){return vp.call(t)},skipNulls:!1,strictNullHandling:!1},yp=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Ri={},gp=function e(t,r,n,l,o,s,u,h,a,i,d,c,f,p,v,m,g,x){for(var y=t,w=x,F=0,T=!1;(w=w.get(Ri))!==void 0&&!T;){var I=w.get(t);if(F+=1,typeof I!="undefined"){if(I===F)throw new RangeError("Cyclic object value");T=!0}typeof w.get(Ri)=="undefined"&&(F=0)}if(typeof i=="function"?y=i(r,y):y instanceof Date?y=f(y):n==="comma"&&xt(y)&&(y=xn.maybeMap(y,function(V){return V instanceof Date?f(V):V})),y===null){if(s)return a&&!m?a(r,Me.encoder,g,"key",p):r;y=""}if(yp(y)||xn.isBuffer(y)){if(a){var D=m?r:a(r,Me.encoder,g,"key",p);return[v(D)+"="+v(a(y,Me.encoder,g,"value",p))]}return[v(r)+"="+v(String(y))]}var X=[];if(typeof y=="undefined")return X;var K;if(n==="comma"&&xt(y))m&&a&&(y=xn.maybeMap(y,a)),K=[{value:y.length>0?y.join(",")||null:void 0}];else if(xt(i))K=i;else{var E=Object.keys(y);K=d?E.sort(d):E}var A=h?String(r).replace(/\./g,"%2E"):String(r),C=l&&xt(y)&&y.length===1?A+"[]":A;if(o&&xt(y)&&y.length===0)return C+"[]";for(var B=0;B<K.length;++B){var U=K[B],q=typeof U=="object"&&U&&typeof U.value!="undefined"?U.value:y[U];if(!(u&&q===null)){var Z=c&&h?String(U).replace(/\./g,"%2E"):String(U),$=xt(y)?typeof n=="function"?n(C,Z):C:C+(c?"."+Z:"["+Z+"]");x.set(t,F);var N=Fl();N.set(Ri,x),Dl(X,e(q,$,n,l,o,s,u,h,n==="comma"&&m&&xt(y)?null:a,i,d,c,f,p,v,m,g,N))}}return X},xp=function(t){if(!t)return Me;if(typeof t.allowEmptyArrays!="undefined"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys!="undefined"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder!="undefined"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Me.charset;if(typeof t.charset!="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Dr.default;if(typeof t.format!="undefined"){if(!dp.call(Dr.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var l=Dr.formatters[n],o=Me.filter;(typeof t.filter=="function"||xt(t.filter))&&(o=t.filter);var s;if(t.arrayFormat in Il?s=t.arrayFormat:"indices"in t?s=t.indices?"indices":"repeat":s=Me.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=typeof t.allowDots=="undefined"?t.encodeDotInKeys===!0?!0:Me.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Me.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Me.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Me.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter=="undefined"?Me.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Me.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Me.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Me.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Me.encodeValuesOnly,filter:o,format:n,formatter:l,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Me.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Me.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Me.strictNullHandling}},bp=function(e,t){var r=e,n=xp(t),l,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):xt(n.filter)&&(o=n.filter,l=o);var s=[];if(typeof r!="object"||r===null)return"";var u=Il[n.arrayFormat],h=u==="comma"&&n.commaRoundTrip;l||(l=Object.keys(r)),n.sort&&l.sort(n.sort);for(var a=Fl(),i=0;i<l.length;++i){var d=l[i],c=r[d];n.skipNulls&&c===null||Dl(s,gp(c,d,u,h,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,a))}var f=s.join(n.delimiter),p=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),f.length>0?p+f:""},Wt=Tl,Fo=Object.prototype.hasOwnProperty,Ya=Array.isArray,De={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Wt.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},wp=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Rl=function(e,t,r){if(e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");return e},_p="utf8=%26%2310003%3B",Ep="utf8=%E2%9C%93",Ap=function(t,r){var n={__proto__:null},l=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=r.parameterLimit===1/0?void 0:r.parameterLimit,s=l.split(r.delimiter,r.throwOnLimitExceeded?o+1:o);if(r.throwOnLimitExceeded&&s.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(o===1?"":"s")+" allowed.");var u=-1,h,a=r.charset;if(r.charsetSentinel)for(h=0;h<s.length;++h)s[h].indexOf("utf8=")===0&&(s[h]===Ep?a="utf-8":s[h]===_p&&(a="iso-8859-1"),u=h,h=s.length);for(h=0;h<s.length;++h)if(h!==u){var i=s[h],d=i.indexOf("]="),c=d===-1?i.indexOf("="):d+1,f,p;c===-1?(f=r.decoder(i,De.decoder,a,"key"),p=r.strictNullHandling?null:""):(f=r.decoder(i.slice(0,c),De.decoder,a,"key"),p=Wt.maybeMap(Rl(i.slice(c+1),r,Ya(n[f])?n[f].length:0),function(m){return r.decoder(m,De.decoder,a,"value")})),p&&r.interpretNumericEntities&&a==="iso-8859-1"&&(p=wp(String(p))),i.indexOf("[]=")>-1&&(p=Ya(p)?[p]:p);var v=Fo.call(n,f);v&&r.duplicates==="combine"?n[f]=Wt.combine(n[f],p):(!v||r.duplicates==="last")&&(n[f]=p)}return n},Cp=function(e,t,r,n){var l=0;if(e.length>0&&e[e.length-1]==="[]"){var o=e.slice(0,-1).join("");l=Array.isArray(t)&&t[o]?t[o].length:0}for(var s=n?t:Rl(t,r,l),u=e.length-1;u>=0;--u){var h,a=e[u];if(a==="[]"&&r.parseArrays)h=r.allowEmptyArrays&&(s===""||r.strictNullHandling&&s===null)?[]:Wt.combine([],s);else{h=r.plainObjects?{__proto__:null}:{};var i=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,d=r.decodeDotInKeys?i.replace(/%2E/g,"."):i,c=parseInt(d,10);!r.parseArrays&&d===""?h={0:s}:!isNaN(c)&&a!==d&&String(c)===d&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(h=[],h[c]=s):d!=="__proto__"&&(h[d]=s)}s=h}return s},Sp=function(t,r,n,l){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,h=n.depth>0&&s.exec(o),a=h?o.slice(0,h.index):o,i=[];if(a){if(!n.plainObjects&&Fo.call(Object.prototype,a)&&!n.allowPrototypes)return;i.push(a)}for(var d=0;n.depth>0&&(h=u.exec(o))!==null&&d<n.depth;){if(d+=1,!n.plainObjects&&Fo.call(Object.prototype,h[1].slice(1,-1))&&!n.allowPrototypes)return;i.push(h[1])}if(h){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");i.push("["+o.slice(h.index)+"]")}return Cp(i,r,n,l)}},Bp=function(t){if(!t)return De;if(typeof t.allowEmptyArrays!="undefined"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys!="undefined"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder!="undefined"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset!="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof t.throwOnLimitExceeded!="undefined"&&typeof t.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof t.charset=="undefined"?De.charset:t.charset,n=typeof t.duplicates=="undefined"?De.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var l=typeof t.allowDots=="undefined"?t.decodeDotInKeys===!0?!0:De.allowDots:!!t.allowDots;return{allowDots:l,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:De.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:De.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:De.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:De.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:De.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:De.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:De.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:De.decoder,delimiter:typeof t.delimiter=="string"||Wt.isRegExp(t.delimiter)?t.delimiter:De.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:De.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:De.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:De.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:De.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:De.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:De.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded=="boolean"?t.throwOnLimitExceeded:!1}},kp=function(e,t){var r=Bp(t);if(e===""||e===null||typeof e=="undefined")return r.plainObjects?{__proto__:null}:{};for(var n=typeof e=="string"?Ap(e,r):e,l=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),s=0;s<o.length;++s){var u=o[s],h=Sp(u,n[u],r,typeof e=="string");l=Wt.merge(l,h,r)}return r.allowSparse===!0?l:Wt.compact(l)},Tp=bp,Fp=kp,Ip=Xo,Dp={formats:Ip,parse:Fp,stringify:Tp};const Rp=Vo(Dp);function Ol(e,t){return function(){return e.apply(t,arguments)}}const{toString:Op}=Object.prototype,{getPrototypeOf:Zo}=Object,{iterator:Un,toStringTag:Pl}=Symbol,zn=(e=>t=>{const r=Op.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ht=e=>(e=e.toLowerCase(),t=>zn(t)===e),qn=e=>t=>typeof t===e,{isArray:xr}=Array,Or=qn("undefined");function jr(e){return e!==null&&!Or(e)&&e.constructor!==null&&!Or(e.constructor)&&Xe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ml=ht("ArrayBuffer");function Pp(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ml(e.buffer),t}const Mp=qn("string"),Xe=qn("function"),Nl=qn("number"),Hr=e=>e!==null&&typeof e=="object",Np=e=>e===!0||e===!1,bn=e=>{if(zn(e)!=="object")return!1;const t=Zo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Pl in e)&&!(Un in e)},Lp=e=>{if(!Hr(e)||jr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},Up=ht("Date"),zp=ht("File"),qp=ht("Blob"),jp=ht("FileList"),Hp=e=>Hr(e)&&Xe(e.pipe),$p=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xe(e.append)&&((t=zn(e))==="formdata"||t==="object"&&Xe(e.toString)&&e.toString()==="[object FormData]"))},Vp=ht("URLSearchParams"),[Wp,Kp,Gp,Qp]=["ReadableStream","Request","Response","Headers"].map(ht),Yp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $r(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e=="undefined")return;let n,l;if(typeof e!="object"&&(e=[e]),xr(e))for(n=0,l=e.length;n<l;n++)t.call(null,e[n],n,e);else{if(jr(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let u;for(n=0;n<s;n++)u=o[n],t.call(null,e[u],u,e)}}function Ll(e,t){if(jr(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,l;for(;n-- >0;)if(l=r[n],t===l.toLowerCase())return l;return null}const jt=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Ul=e=>!Or(e)&&e!==jt;function Io(){const{caseless:e}=Ul(this)&&this||{},t={},r=(n,l)=>{const o=e&&Ll(t,l)||l;bn(t[o])&&bn(n)?t[o]=Io(t[o],n):bn(n)?t[o]=Io({},n):xr(n)?t[o]=n.slice():t[o]=n};for(let n=0,l=arguments.length;n<l;n++)arguments[n]&&$r(arguments[n],r);return t}const Xp=(e,t,r,{allOwnKeys:n}={})=>($r(t,(l,o)=>{r&&Xe(l)?e[o]=Ol(l,r):e[o]=l},{allOwnKeys:n}),e),Zp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Jp=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},ed=(e,t,r,n)=>{let l,o,s;const u={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)s=l[o],(!n||n(s,e,t))&&!u[s]&&(t[s]=e[s],u[s]=!0);e=r!==!1&&Zo(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},td=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},rd=e=>{if(!e)return null;if(xr(e))return e;let t=e.length;if(!Nl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},nd=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&Zo(Uint8Array)),id=(e,t)=>{const n=(e&&e[Un]).call(e);let l;for(;(l=n.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},od=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ad=ht("HTMLFormElement"),sd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,l){return n.toUpperCase()+l}),Xa=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ld=ht("RegExp"),zl=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};$r(r,(l,o)=>{let s;(s=t(l,o,e))!==!1&&(n[o]=s||l)}),Object.defineProperties(e,n)},ud=e=>{zl(e,(t,r)=>{if(Xe(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Xe(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},cd=(e,t)=>{const r={},n=l=>{l.forEach(o=>{r[o]=!0})};return xr(e)?n(e):n(String(e).split(t)),r},fd=()=>{},hd=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function pd(e){return!!(e&&Xe(e.append)&&e[Pl]==="FormData"&&e[Un])}const dd=e=>{const t=new Array(10),r=(n,l)=>{if(Hr(n)){if(t.indexOf(n)>=0)return;if(jr(n))return n;if(!("toJSON"in n)){t[l]=n;const o=xr(n)?[]:{};return $r(n,(s,u)=>{const h=r(s,l+1);!Or(h)&&(o[u]=h)}),t[l]=void 0,o}}return n};return r(e,0)},md=ht("AsyncFunction"),vd=e=>e&&(Hr(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),ql=((e,t)=>e?setImmediate:t?((r,n)=>(jt.addEventListener("message",({source:l,data:o})=>{l===jt&&o===r&&n.length&&n.shift()()},!1),l=>{n.push(l),jt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Xe(jt.postMessage)),yd=typeof queueMicrotask!="undefined"?queueMicrotask.bind(jt):typeof process!="undefined"&&process.nextTick||ql,gd=e=>e!=null&&Xe(e[Un]),le={isArray:xr,isArrayBuffer:Ml,isBuffer:jr,isFormData:$p,isArrayBufferView:Pp,isString:Mp,isNumber:Nl,isBoolean:Np,isObject:Hr,isPlainObject:bn,isEmptyObject:Lp,isReadableStream:Wp,isRequest:Kp,isResponse:Gp,isHeaders:Qp,isUndefined:Or,isDate:Up,isFile:zp,isBlob:qp,isRegExp:ld,isFunction:Xe,isStream:Hp,isURLSearchParams:Vp,isTypedArray:nd,isFileList:jp,forEach:$r,merge:Io,extend:Xp,trim:Yp,stripBOM:Zp,inherits:Jp,toFlatObject:ed,kindOf:zn,kindOfTest:ht,endsWith:td,toArray:rd,forEachEntry:id,matchAll:od,isHTMLForm:ad,hasOwnProperty:Xa,hasOwnProp:Xa,reduceDescriptors:zl,freezeMethods:ud,toObjectSet:cd,toCamelCase:sd,noop:fd,toFiniteNumber:hd,findKey:Ll,global:jt,isContextDefined:Ul,isSpecCompliantForm:pd,toJSONObject:dd,isAsyncFn:md,isThenable:vd,setImmediate:ql,asap:yd,isIterable:gd};function be(e,t,r,n,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),l&&(this.response=l,this.status=l.status?l.status:null)}le.inherits(be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:le.toJSONObject(this.config),code:this.code,status:this.status}}});const jl=be.prototype,Hl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Hl[e]={value:e}});Object.defineProperties(be,Hl);Object.defineProperty(jl,"isAxiosError",{value:!0});be.from=(e,t,r,n,l,o)=>{const s=Object.create(jl);return le.toFlatObject(e,s,function(h){return h!==Error.prototype},u=>u!=="isAxiosError"),be.call(s,e.message,t,r,n,l),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const xd=null;function Do(e){return le.isPlainObject(e)||le.isArray(e)}function $l(e){return le.endsWith(e,"[]")?e.slice(0,-2):e}function Za(e,t,r){return e?e.concat(t).map(function(l,o){return l=$l(l),!r&&o?"["+l+"]":l}).join(r?".":""):t}function bd(e){return le.isArray(e)&&!e.some(Do)}const wd=le.toFlatObject(le,{},null,function(t){return/^is[A-Z]/.test(t)});function jn(e,t,r){if(!le.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=le.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,m){return!le.isUndefined(m[v])});const n=r.metaTokens,l=r.visitor||i,o=r.dots,s=r.indexes,h=(r.Blob||typeof Blob!="undefined"&&Blob)&&le.isSpecCompliantForm(t);if(!le.isFunction(l))throw new TypeError("visitor must be a function");function a(p){if(p===null)return"";if(le.isDate(p))return p.toISOString();if(le.isBoolean(p))return p.toString();if(!h&&le.isBlob(p))throw new be("Blob is not supported. Use a Buffer instead.");return le.isArrayBuffer(p)||le.isTypedArray(p)?h&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function i(p,v,m){let g=p;if(p&&!m&&typeof p=="object"){if(le.endsWith(v,"{}"))v=n?v:v.slice(0,-2),p=JSON.stringify(p);else if(le.isArray(p)&&bd(p)||(le.isFileList(p)||le.endsWith(v,"[]"))&&(g=le.toArray(p)))return v=$l(v),g.forEach(function(y,w){!(le.isUndefined(y)||y===null)&&t.append(s===!0?Za([v],w,o):s===null?v:v+"[]",a(y))}),!1}return Do(p)?!0:(t.append(Za(m,v,o),a(p)),!1)}const d=[],c=Object.assign(wd,{defaultVisitor:i,convertValue:a,isVisitable:Do});function f(p,v){if(!le.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(p),le.forEach(p,function(g,x){(!(le.isUndefined(g)||g===null)&&l.call(t,g,le.isString(x)?x.trim():x,v,c))===!0&&f(g,v?v.concat(x):[x])}),d.pop()}}if(!le.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Ja(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Jo(e,t){this._pairs=[],e&&jn(e,this,t)}const Vl=Jo.prototype;Vl.append=function(t,r){this._pairs.push([t,r])};Vl.toString=function(t){const r=t?function(n){return t.call(this,n,Ja)}:Ja;return this._pairs.map(function(l){return r(l[0])+"="+r(l[1])},"").join("&")};function _d(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wl(e,t,r){if(!t)return e;const n=r&&r.encode||_d;le.isFunction(r)&&(r={serialize:r});const l=r&&r.serialize;let o;if(l?o=l(t,r):o=le.isURLSearchParams(t)?t.toString():new Jo(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class es{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){le.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Kl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ed=typeof URLSearchParams!="undefined"?URLSearchParams:Jo,Ad=typeof FormData!="undefined"?FormData:null,Cd=typeof Blob!="undefined"?Blob:null,Sd={isBrowser:!0,classes:{URLSearchParams:Ed,FormData:Ad,Blob:Cd},protocols:["http","https","file","blob","url","data"]},ea=typeof window!="undefined"&&typeof document!="undefined",Ro=typeof navigator=="object"&&navigator||void 0,Bd=ea&&(!Ro||["ReactNative","NativeScript","NS"].indexOf(Ro.product)<0),kd=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Td=ea&&window.location.href||"http://localhost",Fd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ea,hasStandardBrowserEnv:Bd,hasStandardBrowserWebWorkerEnv:kd,navigator:Ro,origin:Td},Symbol.toStringTag,{value:"Module"})),Ve=he(he({},Fd),Sd);function Id(e,t){return jn(e,new Ve.classes.URLSearchParams,he({visitor:function(r,n,l,o){return Ve.isNode&&le.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Dd(e){return le.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Rd(e){const t={},r=Object.keys(e);let n;const l=r.length;let o;for(n=0;n<l;n++)o=r[n],t[o]=e[o];return t}function Gl(e){function t(r,n,l,o){let s=r[o++];if(s==="__proto__")return!0;const u=Number.isFinite(+s),h=o>=r.length;return s=!s&&le.isArray(l)?l.length:s,h?(le.hasOwnProp(l,s)?l[s]=[l[s],n]:l[s]=n,!u):((!l[s]||!le.isObject(l[s]))&&(l[s]=[]),t(r,n,l[s],o)&&le.isArray(l[s])&&(l[s]=Rd(l[s])),!u)}if(le.isFormData(e)&&le.isFunction(e.entries)){const r={};return le.forEachEntry(e,(n,l)=>{t(Dd(n),l,r,0)}),r}return null}function Od(e,t,r){if(le.isString(e))try{return(t||JSON.parse)(e),le.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Vr={transitional:Kl,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",l=n.indexOf("application/json")>-1,o=le.isObject(t);if(o&&le.isHTMLForm(t)&&(t=new FormData(t)),le.isFormData(t))return l?JSON.stringify(Gl(t)):t;if(le.isArrayBuffer(t)||le.isBuffer(t)||le.isStream(t)||le.isFile(t)||le.isBlob(t)||le.isReadableStream(t))return t;if(le.isArrayBufferView(t))return t.buffer;if(le.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Id(t,this.formSerializer).toString();if((u=le.isFileList(t))||n.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return jn(u?{"files[]":t}:t,h&&new h,this.formSerializer)}}return o||l?(r.setContentType("application/json",!1),Od(t)):t}],transformResponse:[function(t){const r=this.transitional||Vr.transitional,n=r&&r.forcedJSONParsing,l=this.responseType==="json";if(le.isResponse(t)||le.isReadableStream(t))return t;if(t&&le.isString(t)&&(n&&!this.responseType||l)){const s=!(r&&r.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(u){if(s)throw u.name==="SyntaxError"?be.from(u,be.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};le.forEach(["delete","get","head","post","put","patch"],e=>{Vr.headers[e]={}});const Pd=le.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Md=e=>{const t={};let r,n,l;return e&&e.split(`
|
|
5
|
-
`).forEach(function(s){l=s.indexOf(":"),r=s.substring(0,l).trim().toLowerCase(),n=s.substring(l+1).trim(),!(!r||t[r]&&
|
|
6
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(l=>n.set(l)),n}static accessor(t){const n=(this[ts]=this[ts]={accessors:{}}).accessors,l=this.prototype;function o(s){const u=Sr(s);n[u]||(zd(l,s),n[u]=!0)}return le.isArray(t)?t.forEach(o):o(t),this}};Ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);le.reduceDescriptors(Ze.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});le.freezeMethods(Ze);function Pi(e,t){const r=this||Vr,n=t||r,l=Ze.from(n.headers);let o=n.data;return le.forEach(e,function(u){o=u.call(r,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function Ql(e){return!!(e&&e.__CANCEL__)}function br(e,t,r){be.call(this,e==null?"canceled":e,be.ERR_CANCELED,t,r),this.name="CanceledError"}le.inherits(br,be,{__CANCEL__:!0});function Yl(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new be("Request failed with status code "+r.status,[be.ERR_BAD_REQUEST,be.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function qd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let l=0,o=0,s;return t=t!==void 0?t:1e3,function(h){const a=Date.now(),i=n[o];s||(s=a),r[l]=h,n[l]=a;let d=o,c=0;for(;d!==l;)c+=r[d++],d=d%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),a-s<t)return;const f=i&&a-i;return f?Math.round(c*1e3/f):void 0}}function Hd(e,t){let r=0,n=1e3/t,l,o;const s=(a,i=Date.now())=>{r=i,l=null,o&&(clearTimeout(o),o=null),e(...a)};return[(...a)=>{const i=Date.now(),d=i-r;d>=n?s(a,i):(l=a,o||(o=setTimeout(()=>{o=null,s(l)},n-d)))},()=>l&&s(l)]}const Tn=(e,t,r=3)=>{let n=0;const l=jd(50,250);return Hd(o=>{const s=o.loaded,u=o.lengthComputable?o.total:void 0,h=s-n,a=l(h),i=s<=u;n=s;const d={loaded:s,total:u,progress:u?s/u:void 0,bytes:h,rate:a||void 0,estimated:a&&u&&i?(u-s)/a:void 0,event:o,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(d)},r)},rs=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},ns=e=>(...t)=>le.asap(()=>e(...t)),$d=Ve.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ve.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ve.origin),Ve.navigator&&/(msie|trident)/i.test(Ve.navigator.userAgent)):()=>!0,Vd=Ve.hasStandardBrowserEnv?{write(e,t,r,n,l,o){const s=[e+"="+encodeURIComponent(t)];le.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),le.isString(n)&&s.push("path="+n),le.isString(l)&&s.push("domain="+l),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Wd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Kd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Xl(e,t,r){let n=!Wd(t);return e&&(n||r==!1)?Kd(e,t):t}const is=e=>e instanceof Ze?he({},e):e;function Kt(e,t){t=t||{};const r={};function n(a,i,d,c){return le.isPlainObject(a)&&le.isPlainObject(i)?le.merge.call({caseless:c},a,i):le.isPlainObject(i)?le.merge({},i):le.isArray(i)?i.slice():i}function l(a,i,d,c){if(le.isUndefined(i)){if(!le.isUndefined(a))return n(void 0,a,d,c)}else return n(a,i,d,c)}function o(a,i){if(!le.isUndefined(i))return n(void 0,i)}function s(a,i){if(le.isUndefined(i)){if(!le.isUndefined(a))return n(void 0,a)}else return n(void 0,i)}function u(a,i,d){if(d in t)return n(a,i);if(d in e)return n(void 0,a)}const h={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(a,i,d)=>l(is(a),is(i),d,!0)};return le.forEach(Object.keys(he(he({},e),t)),function(i){const d=h[i]||l,c=d(e[i],t[i],i);le.isUndefined(c)&&d!==u||(r[i]=c)}),r}const Zl=e=>{const t=Kt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:l,xsrfCookieName:o,headers:s,auth:u}=t;t.headers=s=Ze.from(s),t.url=Wl(Xl(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let h;if(le.isFormData(r)){if(Ve.hasStandardBrowserEnv||Ve.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((h=s.getContentType())!==!1){const[a,...i]=h?h.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([a||"multipart/form-data",...i].join("; "))}}if(Ve.hasStandardBrowserEnv&&(n&&le.isFunction(n)&&(n=n(t)),n||n!==!1&&$d(t.url))){const a=l&&o&&Vd.read(o);a&&s.set(l,a)}return t},Gd=typeof XMLHttpRequest!="undefined",Qd=Gd&&function(e){return new Promise(function(r,n){const l=Zl(e);let o=l.data;const s=Ze.from(l.headers).normalize();let{responseType:u,onUploadProgress:h,onDownloadProgress:a}=l,i,d,c,f,p;function v(){f&&f(),p&&p(),l.cancelToken&&l.cancelToken.unsubscribe(i),l.signal&&l.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout;function g(){if(!m)return;const y=Ze.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),F={data:!u||u==="text"||u==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:y,config:e,request:m};Yl(function(I){r(I),v()},function(I){n(I),v()},F),m=null}"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){m&&(n(new be("Request aborted",be.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new be("Network Error",be.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let w=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const F=l.transitional||Kl;l.timeoutErrorMessage&&(w=l.timeoutErrorMessage),n(new be(w,F.clarifyTimeoutError?be.ETIMEDOUT:be.ECONNABORTED,e,m)),m=null},o===void 0&&s.setContentType(null),"setRequestHeader"in m&&le.forEach(s.toJSON(),function(w,F){m.setRequestHeader(F,w)}),le.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),u&&u!=="json"&&(m.responseType=l.responseType),a&&([c,p]=Tn(a,!0),m.addEventListener("progress",c)),h&&m.upload&&([d,f]=Tn(h),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",f)),(l.cancelToken||l.signal)&&(i=y=>{m&&(n(!y||y.type?new br(null,e,m):y),m.abort(),m=null)},l.cancelToken&&l.cancelToken.subscribe(i),l.signal&&(l.signal.aborted?i():l.signal.addEventListener("abort",i)));const x=qd(l.url);if(x&&Ve.protocols.indexOf(x)===-1){n(new be("Unsupported protocol "+x+":",be.ERR_BAD_REQUEST,e));return}m.send(o||null)})},Yd=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,l;const o=function(a){if(!l){l=!0,u();const i=a instanceof Error?a:this.reason;n.abort(i instanceof be?i:new br(i instanceof Error?i.message:i))}};let s=t&&setTimeout(()=>{s=null,o(new be(`timeout ${t} of ms exceeded`,be.ETIMEDOUT))},t);const u=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(o):a.removeEventListener("abort",o)}),e=null)};e.forEach(a=>a.addEventListener("abort",o));const{signal:h}=n;return h.unsubscribe=()=>le.asap(u),h}},Xd=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,l;for(;n<r;)l=n+t,yield e.slice(n,l),n=l},Zd=function(e,t){return ci(this,null,function*(){try{for(var r=xa(Jd(e)),n,l,o;n=!(l=yield new Ut(r.next())).done;n=!1){const s=l.value;yield*fi(Xd(s,t))}}catch(l){o=[l]}finally{try{n&&(l=r.return)&&(yield new Ut(l.call(r)))}finally{if(o)throw o[0]}}})},Jd=function(e){return ci(this,null,function*(){if(e[Symbol.asyncIterator]){yield*fi(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new Ut(t.read());if(r)break;yield n}}finally{yield new Ut(t.cancel())}})},os=(e,t,r,n)=>{const l=Zd(e,t);let o=0,s,u=a=>{s||(s=!0,n&&n(a))};return new ReadableStream({pull(a){return He(this,null,function*(){try{const{done:i,value:d}=yield l.next();if(i){u(),a.close();return}let c=d.byteLength;if(r){let f=o+=c;r(f)}a.enqueue(new Uint8Array(d))}catch(i){throw u(i),i}})},cancel(a){return u(a),l.return()}},{highWaterMark:2})},Hn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Jl=Hn&&typeof ReadableStream=="function",e1=Hn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>He(exports,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),eu=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},t1=Jl&&eu(()=>{let e=!1;const t=new Request(Ve.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),as=64*1024,Oo=Jl&&eu(()=>le.isReadableStream(new Response("").body)),Fn={stream:Oo&&(e=>e.body)};Hn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Fn[t]&&(Fn[t]=le.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new be(`Response type '${t}' is not supported`,be.ERR_NOT_SUPPORT,n)})})})(new Response);const r1=e=>He(exports,null,function*(){if(e==null)return 0;if(le.isBlob(e))return e.size;if(le.isSpecCompliantForm(e))return(yield new Request(Ve.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(le.isArrayBufferView(e)||le.isArrayBuffer(e))return e.byteLength;if(le.isURLSearchParams(e)&&(e=e+""),le.isString(e))return(yield e1(e)).byteLength}),n1=(e,t)=>He(exports,null,function*(){const r=le.toFiniteNumber(e.getContentLength());return r==null?r1(t):r}),i1=Hn&&(e=>He(exports,null,function*(){let{url:t,method:r,data:n,signal:l,cancelToken:o,timeout:s,onDownloadProgress:u,onUploadProgress:h,responseType:a,headers:i,withCredentials:d="same-origin",fetchOptions:c}=Zl(e);a=a?(a+"").toLowerCase():"text";let f=Yd([l,o&&o.toAbortSignal()],s),p;const v=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let m;try{if(h&&t1&&r!=="get"&&r!=="head"&&(m=yield n1(i,n))!==0){let F=new Request(t,{method:"POST",body:n,duplex:"half"}),T;if(le.isFormData(n)&&(T=F.headers.get("content-type"))&&i.setContentType(T),F.body){const[I,D]=rs(m,Tn(ns(h)));n=os(F.body,as,I,D)}}le.isString(d)||(d=d?"include":"omit");const g="credentials"in Request.prototype;p=new Request(t,_e(he({},c),{signal:f,method:r.toUpperCase(),headers:i.normalize().toJSON(),body:n,duplex:"half",credentials:g?d:void 0}));let x=yield fetch(p,c);const y=Oo&&(a==="stream"||a==="response");if(Oo&&(u||y&&v)){const F={};["status","statusText","headers"].forEach(X=>{F[X]=x[X]});const T=le.toFiniteNumber(x.headers.get("content-length")),[I,D]=u&&rs(T,Tn(ns(u),!0))||[];x=new Response(os(x.body,as,I,()=>{D&&D(),v&&v()}),F)}a=a||"text";let w=yield Fn[le.findKey(Fn,a)||"text"](x,e);return!y&&v&&v(),yield new Promise((F,T)=>{Yl(F,T,{data:w,headers:Ze.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:p})})}catch(g){throw v&&v(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new be("Network Error",be.ERR_NETWORK,e,p),{cause:g.cause||g}):be.from(g,g&&g.code,e,p)}})),Po={http:xd,xhr:Qd,fetch:i1};le.forEach(Po,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const ss=e=>`- ${e}`,o1=e=>le.isFunction(e)||e===null||e===!1,tu={getAdapter:e=>{e=le.isArray(e)?e:[e];const{length:t}=e;let r,n;const l={};for(let o=0;o<t;o++){r=e[o];let s;if(n=r,!o1(r)&&(n=Po[(s=String(r)).toLowerCase()],n===void 0))throw new be(`Unknown adapter '${s}'`);if(n)break;l[s||"#"+o]=n}if(!n){const o=Object.entries(l).map(([u,h])=>`adapter ${u} `+(h===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
|
|
4
|
+
`+t.prev}function on(e,t){var r=ko(e),n=[];if(r){n.length=e.length;for(var l=0;l<e.length;l++)n[l]=Ct(e,l)?t(e[l],e):""}var o=typeof mi=="function"?mi(e):[],s;if(hr){s={};for(var u=0;u<o.length;u++)s["$"+o[u]]=o[u]}for(var h in e)Ct(e,h)&&(r&&String(Number(h))===h&&h<e.length||hr&&s["$"+h]instanceof Symbol||(K0.call(/[^\w$]/,h)?n.push(t(h,e)+": "+t(e[h],e)):n.push(h+": "+t(e[h],e))));if(typeof mi=="function")for(var a=0;a<o.length;a++)G0.call(e,o[a])&&n.push("["+t(o[a])+"]: "+t(e[o[a]],e));return n}var tf=Pn,rf=gr,Mn=function(e,t,r){for(var n=e,l;(l=n.next)!=null;n=l)if(l.key===t)return n.next=l.next,r||(l.next=e.next,e.next=l),l},nf=function(e,t){if(e){var r=Mn(e,t);return r&&r.value}},of=function(e,t,r){var n=Mn(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},af=function(e,t){return e?!!Mn(e,t):!1},sf=function(e,t){if(e)return Mn(e,t,!0)},lf=function(){var t,r={assert:function(n){if(!r.has(n))throw new rf("Side channel does not contain "+tf(n))},delete:function(n){var l=t&&t.next,o=sf(t,n);return o&&l&&l===o&&(t=void 0),!!o},get:function(n){return nf(t,n)},has:function(n){return af(t,n)},set:function(n,l){t||(t={next:void 0}),of(t,n,l)}};return r},el=Object,uf=Error,cf=EvalError,ff=RangeError,hf=ReferenceError,pf=SyntaxError,df=URIError,mf=Math.abs,vf=Math.floor,yf=Math.max,gf=Math.min,xf=Math.pow,bf=Math.round,wf=Number.isNaN||function(t){return t!==t},_f=wf,Ef=function(t){return _f(t)||t===0?t:t<0?-1:1},Af=Object.getOwnPropertyDescriptor,yn=Af;if(yn)try{yn([],"length")}catch(e){yn=null}var tl=yn,gn=Object.defineProperty||!1;if(gn)try{gn({},"a",{value:1})}catch(e){gn=!1}var Cf=gn,yi,Pa;function Sf(){return Pa||(Pa=1,yi=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var l=42;t[r]=l;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==l||u.enumerable!==!0)return!1}return!0}),yi}var gi,Ma;function Bf(){if(Ma)return gi;Ma=1;var e=typeof Symbol!="undefined"&&Symbol,t=Sf();return gi=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},gi}var xi,Na;function rl(){return Na||(Na=1,xi=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),xi}var bi,La;function nl(){if(La)return bi;La=1;var e=el;return bi=e.getPrototypeOf||null,bi}var wi,Ua;function kf(){if(Ua)return wi;Ua=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",l=function(h,a){for(var i=[],d=0;d<h.length;d+=1)i[d]=h[d];for(var c=0;c<a.length;c+=1)i[c+h.length]=a[c];return i},o=function(h,a){for(var i=[],d=a,c=0;d<h.length;d+=1,c+=1)i[c]=h[d];return i},s=function(u,h){for(var a="",i=0;i<u.length;i+=1)a+=u[i],i+1<u.length&&(a+=h);return a};return wi=function(h){var a=this;if(typeof a!="function"||t.apply(a)!==n)throw new TypeError(e+a);for(var i=o(arguments,1),d,c=function(){if(this instanceof d){var g=a.apply(this,l(i,arguments));return Object(g)===g?g:this}return a.apply(h,l(i,arguments))},f=r(0,a.length-i.length),p=[],v=0;v<f;v++)p[v]="$"+v;if(d=Function("binder","return function ("+s(p,",")+"){ return binder.apply(this,arguments); }")(c),a.prototype){var m=function(){};m.prototype=a.prototype,d.prototype=new m,m.prototype=null}return d},wi}var _i,za;function Nn(){if(za)return _i;za=1;var e=kf();return _i=Function.prototype.bind||e,_i}var Ei,qa;function Qo(){return qa||(qa=1,Ei=Function.prototype.call),Ei}var Ai,ja;function il(){return ja||(ja=1,Ai=Function.prototype.apply),Ai}var Tf=typeof Reflect!="undefined"&&Reflect&&Reflect.apply,Ff=Nn(),If=il(),Df=Qo(),Rf=Tf,Of=Rf||Ff.call(Df,If),Pf=Nn(),Mf=gr,Nf=Qo(),Lf=Of,ol=function(t){if(t.length<1||typeof t[0]!="function")throw new Mf("a function is required");return Lf(Pf,Nf,t)},Ci,Ha;function Uf(){if(Ha)return Ci;Ha=1;var e=ol,t=tl,r;try{r=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var n=!!r&&t&&t(Object.prototype,"__proto__"),l=Object,o=l.getPrototypeOf;return Ci=n&&typeof n.get=="function"?e([n.get]):typeof o=="function"?function(u){return o(u==null?u:l(u))}:!1,Ci}var Si,$a;function zf(){if($a)return Si;$a=1;var e=rl(),t=nl(),r=Uf();return Si=e?function(l){return e(l)}:t?function(l){if(!l||typeof l!="object"&&typeof l!="function")throw new TypeError("getProto: not an object");return t(l)}:r?function(l){return r(l)}:null,Si}var Bi,Va;function qf(){if(Va)return Bi;Va=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Nn();return Bi=r.call(e,t),Bi}var Ee,jf=el,Hf=uf,$f=cf,Vf=ff,Wf=hf,pr=pf,cr=gr,Kf=df,Gf=mf,Qf=vf,Yf=yf,Xf=gf,Zf=xf,Jf=bf,eh=Ef,al=Function,ki=function(e){try{return al('"use strict"; return ('+e+").constructor;")()}catch(t){}},Rr=tl,th=Cf,Ti=function(){throw new cr},rh=Rr?function(){try{return arguments.callee,Ti}catch(e){try{return Rr(arguments,"callee").get}catch(t){return Ti}}}():Ti,ir=Bf()(),ze=zf(),nh=nl(),ih=rl(),sl=il(),Ur=Qo(),lr={},oh=typeof Uint8Array=="undefined"||!ze?Ee:ze(Uint8Array),__$t__={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Ee:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Ee:ArrayBuffer,"%ArrayIteratorPrototype%":ir&&ze?ze([][Symbol.iterator]()):Ee,"%AsyncFromSyncIteratorPrototype%":Ee,"%AsyncFunction%":lr,"%AsyncGenerator%":lr,"%AsyncGeneratorFunction%":lr,"%AsyncIteratorPrototype%":lr,"%Atomics%":typeof Atomics=="undefined"?Ee:Atomics,"%BigInt%":typeof BigInt=="undefined"?Ee:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Ee:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Ee:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Ee:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Hf,"%eval%":eval,"%EvalError%":$f,"%Float16Array%":typeof Float16Array=="undefined"?Ee:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Ee:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Ee:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Ee:FinalizationRegistry,"%Function%":al,"%GeneratorFunction%":lr,"%Int8Array%":typeof Int8Array=="undefined"?Ee:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Ee:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Ee:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ir&&ze?ze(ze([][Symbol.iterator]())):Ee,"%JSON%":typeof JSON=="object"?JSON:Ee,"%Map%":typeof Map=="undefined"?Ee:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ir||!ze?Ee:ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":jf,"%Object.getOwnPropertyDescriptor%":Rr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Ee:Promise,"%Proxy%":typeof Proxy=="undefined"?Ee:Proxy,"%RangeError%":Vf,"%ReferenceError%":Wf,"%Reflect%":typeof Reflect=="undefined"?Ee:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Ee:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ir||!ze?Ee:ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Ee:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ir&&ze?ze(""[Symbol.iterator]()):Ee,"%Symbol%":ir?Symbol:Ee,"%SyntaxError%":pr,"%ThrowTypeError%":rh,"%TypedArray%":oh,"%TypeError%":cr,"%Uint8Array%":typeof Uint8Array=="undefined"?Ee:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Ee:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Ee:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Ee:Uint32Array,"%URIError%":Kf,"%WeakMap%":typeof WeakMap=="undefined"?Ee:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Ee:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Ee:WeakSet,"%Function.prototype.call%":Ur,"%Function.prototype.apply%":sl,"%Object.defineProperty%":th,"%Object.getPrototypeOf%":nh,"%Math.abs%":Gf,"%Math.floor%":Qf,"%Math.max%":Yf,"%Math.min%":Xf,"%Math.pow%":Zf,"%Math.round%":Jf,"%Math.sign%":eh,"%Reflect.getPrototypeOf%":ih};if(ze)try{null.error}catch(e){var ah=ze(ze(e));__$t__["%Error.prototype%"]=ah}var sh=function e(t){var r;if(t==="%AsyncFunction%")r=ki("async function () {}");else if(t==="%GeneratorFunction%")r=ki("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=ki("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var l=e("%AsyncGenerator%");l&&ze&&(r=ze(l.prototype))}return __$t__[t]=r,r},Wa={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},zr=Nn(),Bn=qf(),lh=zr.call(Ur,Array.prototype.concat),uh=zr.call(sl,Array.prototype.splice),Ka=zr.call(Ur,String.prototype.replace),kn=zr.call(Ur,String.prototype.slice),ch=zr.call(Ur,RegExp.prototype.exec),fh=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,hh=/\\(\\)?/g,ph=function(t){var r=kn(t,0,1),n=kn(t,-1);if(r==="%"&&n!=="%")throw new pr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new pr("invalid intrinsic syntax, expected opening `%`");var l=[];return Ka(t,fh,function(o,s,u,h){l[l.length]=u?Ka(h,hh,"$1"):s||o}),l},dh=function(t,r){var n=t,l;if(Bn(Wa,n)&&(l=Wa[n],n="%"+l[0]+"%"),Bn(__$t__,n)){var o=__$t__[n];if(o===lr&&(o=sh(n)),typeof o=="undefined"&&!r)throw new cr("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:l,name:n,value:o}}throw new pr("intrinsic "+t+" does not exist!")},Yo=function(t,r){if(typeof t!="string"||t.length===0)throw new cr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new cr('"allowMissing" argument must be a boolean');if(ch(/^%?[^%]*%?$/,t)===null)throw new pr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ph(t),l=n.length>0?n[0]:"",o=dh("%"+l+"%",r),s=o.name,u=o.value,h=!1,a=o.alias;a&&(l=a[0],uh(n,lh([0,1],a)));for(var i=1,d=!0;i<n.length;i+=1){var c=n[i],f=kn(c,0,1),p=kn(c,-1);if((f==='"'||f==="'"||f==="`"||p==='"'||p==="'"||p==="`")&&f!==p)throw new pr("property names with quotes must have matching quotes");if((c==="constructor"||!d)&&(h=!0),l+="."+c,s="%"+l+"%",Bn(__$t__,s))u=__$t__[s];else if(u!=null){if(!(c in u)){if(!r)throw new cr("base intrinsic for "+t+" exists, but the property is not available.");return}if(Rr&&i+1>=n.length){var v=Rr(u,c);d=!!v,d&&"get"in v&&!("originalValue"in v.get)?u=v.get:u=u[c]}else d=Bn(u,c),u=u[c];d&&!h&&(__$t__[s]=u)}}return u},ll=Yo,ul=ol,mh=ul([ll("%String.prototype.indexOf%")]),cl=function(t,r){var n=ll(t,!!r);return typeof n=="function"&&mh(t,".prototype.")>-1?ul([n]):n},vh=Yo,qr=cl,yh=Pn,gh=gr,Ga=vh("%Map%",!0),xh=qr("Map.prototype.get",!0),bh=qr("Map.prototype.set",!0),wh=qr("Map.prototype.has",!0),_h=qr("Map.prototype.delete",!0),Eh=qr("Map.prototype.size",!0),fl=!!Ga&&function(){var t,r={assert:function(n){if(!r.has(n))throw new gh("Side channel does not contain "+yh(n))},delete:function(n){if(t){var l=_h(t,n);return Eh(t)===0&&(t=void 0),l}return!1},get:function(n){if(t)return xh(t,n)},has:function(n){return t?wh(t,n):!1},set:function(n,l){t||(t=new Ga),bh(t,n,l)}};return r},Ah=Yo,Ln=cl,Ch=Pn,an=fl,Sh=gr,or=Ah("%WeakMap%",!0),Bh=Ln("WeakMap.prototype.get",!0),kh=Ln("WeakMap.prototype.set",!0),Th=Ln("WeakMap.prototype.has",!0),Fh=Ln("WeakMap.prototype.delete",!0),Ih=or?function(){var t,r,n={assert:function(l){if(!n.has(l))throw new Sh("Side channel does not contain "+Ch(l))},delete:function(l){if(or&&l&&(typeof l=="object"||typeof l=="function")){if(t)return Fh(t,l)}else if(an&&r)return r.delete(l);return!1},get:function(l){return or&&l&&(typeof l=="object"||typeof l=="function")&&t?Bh(t,l):r&&r.get(l)},has:function(l){return or&&l&&(typeof l=="object"||typeof l=="function")&&t?Th(t,l):!!r&&r.has(l)},set:function(l,o){or&&l&&(typeof l=="object"||typeof l=="function")?(t||(t=new or),kh(t,l,o)):an&&(r||(r=an()),r.set(l,o))}};return n}:an,Dh=gr,Rh=Pn,Oh=lf,Ph=fl,Mh=Ih,Nh=Mh||Ph||Oh,Lh=function(){var t,r={assert:function(n){if(!r.has(n))throw new Dh("Side channel does not contain "+Rh(n))},delete:function(n){return!!t&&t.delete(n)},get:function(n){return t&&t.get(n)},has:function(n){return!!t&&t.has(n)},set:function(n,l){t||(t=Nh()),t.set(n,l)}};return r},Uh=String.prototype.replace,zh=/%20/g,Fi={RFC1738:"RFC1738",RFC3986:"RFC3986"},Xo={default:Fi.RFC3986,formatters:{RFC1738:function(e){return Uh.call(e,zh,"+")},RFC3986:function(e){return String(e)}},RFC1738:Fi.RFC1738,RFC3986:Fi.RFC3986},qh=Xo,Ii=Object.prototype.hasOwnProperty,qt=Array.isArray,mt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),jh=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(qt(n)){for(var l=[],o=0;o<n.length;++o)typeof n[o]!="undefined"&&l.push(n[o]);r.obj[r.prop]=l}}},hl=function(t,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},l=0;l<t.length;++l)typeof t[l]!="undefined"&&(n[l]=t[l]);return n},Hh=function e(t,r,n){if(!r)return t;if(typeof r!="object"&&typeof r!="function"){if(qt(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Ii.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var l=t;return qt(t)&&!qt(r)&&(l=hl(t,n)),qt(t)&&qt(r)?(r.forEach(function(o,s){if(Ii.call(t,s)){var u=t[s];u&&typeof u=="object"&&o&&typeof o=="object"?t[s]=e(u,o,n):t.push(o)}else t[s]=o}),t):Object.keys(r).reduce(function(o,s){var u=r[s];return Ii.call(o,s)?o[s]=e(o[s],u,n):o[s]=u,o},l)},$h=function(t,r){return Object.keys(r).reduce(function(n,l){return n[l]=r[l],n},t)},Vh=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(l){return n}},Di=1024,Wh=function(t,r,n,l,o){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var u="",h=0;h<s.length;h+=Di){for(var a=s.length>=Di?s.slice(h,h+Di):s,i=[],d=0;d<a.length;++d){var c=a.charCodeAt(d);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===qh.RFC1738&&(c===40||c===41)){i[i.length]=a.charAt(d);continue}if(c<128){i[i.length]=mt[c];continue}if(c<2048){i[i.length]=mt[192|c>>6]+mt[128|c&63];continue}if(c<55296||c>=57344){i[i.length]=mt[224|c>>12]+mt[128|c>>6&63]+mt[128|c&63];continue}d+=1,c=65536+((c&1023)<<10|a.charCodeAt(d)&1023),i[i.length]=mt[240|c>>18]+mt[128|c>>12&63]+mt[128|c>>6&63]+mt[128|c&63]}u+=i.join("")}return u},Kh=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],l=0;l<r.length;++l)for(var o=r[l],s=o.obj[o.prop],u=Object.keys(s),h=0;h<u.length;++h){var a=u[h],i=s[a];typeof i=="object"&&i!==null&&n.indexOf(i)===-1&&(r.push({obj:s,prop:a}),n.push(i))}return jh(r),t},Gh=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Qh=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Yh=function(t,r){return[].concat(t,r)},Xh=function(t,r){if(qt(t)){for(var n=[],l=0;l<t.length;l+=1)n.push(r(t[l]));return n}return r(t)},pl={arrayToObject:hl,assign:$h,combine:Yh,compact:Kh,decode:Vh,encode:Wh,isBuffer:Qh,isRegExp:Gh,maybeMap:Xh,merge:Hh},dl=Lh,xn=pl,Dr=Xo,Zh=Object.prototype.hasOwnProperty,ml={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},xt=Array.isArray,Jh=Array.prototype.push,vl=function(e,t){Jh.apply(e,xt(t)?t:[t])},ep=Date.prototype.toISOString,Qa=Dr.default,Me={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:xn.encode,encodeValuesOnly:!1,filter:void 0,format:Qa,formatter:Dr.formatters[Qa],indices:!1,serializeDate:function(t){return ep.call(t)},skipNulls:!1,strictNullHandling:!1},tp=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Ri={},rp=function e(t,r,n,l,o,s,u,h,a,i,d,c,f,p,v,m,g,x){for(var y=t,w=x,k=0,T=!1;(w=w.get(Ri))!==void 0&&!T;){var F=w.get(t);if(k+=1,typeof F!="undefined"){if(F===k)throw new RangeError("Cyclic object value");T=!0}typeof w.get(Ri)=="undefined"&&(k=0)}if(typeof i=="function"?y=i(r,y):y instanceof Date?y=f(y):n==="comma"&&xt(y)&&(y=xn.maybeMap(y,function(H){return H instanceof Date?f(H):H})),y===null){if(s)return a&&!m?a(r,Me.encoder,g,"key",p):r;y=""}if(tp(y)||xn.isBuffer(y)){if(a){var I=m?r:a(r,Me.encoder,g,"key",p);return[v(I)+"="+v(a(y,Me.encoder,g,"value",p))]}return[v(r)+"="+v(String(y))]}var G=[];if(typeof y=="undefined")return G;var K;if(n==="comma"&&xt(y))m&&a&&(y=xn.maybeMap(y,a)),K=[{value:y.length>0?y.join(",")||null:void 0}];else if(xt(i))K=i;else{var E=Object.keys(y);K=d?E.sort(d):E}var A=h?String(r).replace(/\./g,"%2E"):String(r),S=l&&xt(y)&&y.length===1?A+"[]":A;if(o&&xt(y)&&y.length===0)return S+"[]";for(var D=0;D<K.length;++D){var P=K[D],j=typeof P=="object"&&P&&typeof P.value!="undefined"?P.value:y[P];if(!(u&&j===null)){var Z=c&&h?String(P).replace(/\./g,"%2E"):String(P),V=xt(y)?typeof n=="function"?n(S,Z):S:S+(c?"."+Z:"["+Z+"]");x.set(t,k);var L=dl();L.set(Ri,x),vl(G,e(j,V,n,l,o,s,u,h,n==="comma"&&m&&xt(y)?null:a,i,d,c,f,p,v,m,g,L))}}return G},np=function(t){if(!t)return Me;if(typeof t.allowEmptyArrays!="undefined"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys!="undefined"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder!="undefined"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Me.charset;if(typeof t.charset!="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Dr.default;if(typeof t.format!="undefined"){if(!Zh.call(Dr.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var l=Dr.formatters[n],o=Me.filter;(typeof t.filter=="function"||xt(t.filter))&&(o=t.filter);var s;if(t.arrayFormat in ml?s=t.arrayFormat:"indices"in t?s=t.indices?"indices":"repeat":s=Me.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=typeof t.allowDots=="undefined"?t.encodeDotInKeys===!0?!0:Me.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Me.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Me.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Me.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter=="undefined"?Me.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Me.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Me.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Me.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Me.encodeValuesOnly,filter:o,format:n,formatter:l,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Me.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Me.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Me.strictNullHandling}},ip=function(e,t){var r=e,n=np(t),l,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):xt(n.filter)&&(o=n.filter,l=o);var s=[];if(typeof r!="object"||r===null)return"";var u=ml[n.arrayFormat],h=u==="comma"&&n.commaRoundTrip;l||(l=Object.keys(r)),n.sort&&l.sort(n.sort);for(var a=dl(),i=0;i<l.length;++i){var d=l[i],c=r[d];n.skipNulls&&c===null||vl(s,rp(c,d,u,h,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,a))}var f=s.join(n.delimiter),p=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),f.length>0?p+f:""},Wt=pl,Fo=Object.prototype.hasOwnProperty,Ya=Array.isArray,De={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Wt.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},op=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},yl=function(e,t,r){if(e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");return e},ap="utf8=%26%2310003%3B",sp="utf8=%E2%9C%93",lp=function(t,r){var n={__proto__:null},l=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=r.parameterLimit===1/0?void 0:r.parameterLimit,s=l.split(r.delimiter,r.throwOnLimitExceeded?o+1:o);if(r.throwOnLimitExceeded&&s.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(o===1?"":"s")+" allowed.");var u=-1,h,a=r.charset;if(r.charsetSentinel)for(h=0;h<s.length;++h)s[h].indexOf("utf8=")===0&&(s[h]===sp?a="utf-8":s[h]===ap&&(a="iso-8859-1"),u=h,h=s.length);for(h=0;h<s.length;++h)if(h!==u){var i=s[h],d=i.indexOf("]="),c=d===-1?i.indexOf("="):d+1,f,p;c===-1?(f=r.decoder(i,De.decoder,a,"key"),p=r.strictNullHandling?null:""):(f=r.decoder(i.slice(0,c),De.decoder,a,"key"),p=Wt.maybeMap(yl(i.slice(c+1),r,Ya(n[f])?n[f].length:0),function(m){return r.decoder(m,De.decoder,a,"value")})),p&&r.interpretNumericEntities&&a==="iso-8859-1"&&(p=op(String(p))),i.indexOf("[]=")>-1&&(p=Ya(p)?[p]:p);var v=Fo.call(n,f);v&&r.duplicates==="combine"?n[f]=Wt.combine(n[f],p):(!v||r.duplicates==="last")&&(n[f]=p)}return n},up=function(e,t,r,n){var l=0;if(e.length>0&&e[e.length-1]==="[]"){var o=e.slice(0,-1).join("");l=Array.isArray(t)&&t[o]?t[o].length:0}for(var s=n?t:yl(t,r,l),u=e.length-1;u>=0;--u){var h,a=e[u];if(a==="[]"&&r.parseArrays)h=r.allowEmptyArrays&&(s===""||r.strictNullHandling&&s===null)?[]:Wt.combine([],s);else{h=r.plainObjects?{__proto__:null}:{};var i=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,d=r.decodeDotInKeys?i.replace(/%2E/g,"."):i,c=parseInt(d,10);!r.parseArrays&&d===""?h={0:s}:!isNaN(c)&&a!==d&&String(c)===d&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(h=[],h[c]=s):d!=="__proto__"&&(h[d]=s)}s=h}return s},cp=function(t,r,n,l){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,h=n.depth>0&&s.exec(o),a=h?o.slice(0,h.index):o,i=[];if(a){if(!n.plainObjects&&Fo.call(Object.prototype,a)&&!n.allowPrototypes)return;i.push(a)}for(var d=0;n.depth>0&&(h=u.exec(o))!==null&&d<n.depth;){if(d+=1,!n.plainObjects&&Fo.call(Object.prototype,h[1].slice(1,-1))&&!n.allowPrototypes)return;i.push(h[1])}if(h){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");i.push("["+o.slice(h.index)+"]")}return up(i,r,n,l)}},fp=function(t){if(!t)return De;if(typeof t.allowEmptyArrays!="undefined"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys!="undefined"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder!="undefined"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset!="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof t.throwOnLimitExceeded!="undefined"&&typeof t.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof t.charset=="undefined"?De.charset:t.charset,n=typeof t.duplicates=="undefined"?De.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var l=typeof t.allowDots=="undefined"?t.decodeDotInKeys===!0?!0:De.allowDots:!!t.allowDots;return{allowDots:l,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:De.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:De.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:De.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:De.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:De.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:De.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:De.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:De.decoder,delimiter:typeof t.delimiter=="string"||Wt.isRegExp(t.delimiter)?t.delimiter:De.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:De.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:De.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:De.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:De.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:De.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:De.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded=="boolean"?t.throwOnLimitExceeded:!1}},hp=function(e,t){var r=fp(t);if(e===""||e===null||typeof e=="undefined")return r.plainObjects?{__proto__:null}:{};for(var n=typeof e=="string"?lp(e,r):e,l=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),s=0;s<o.length;++s){var u=o[s],h=cp(u,n[u],r,typeof e=="string");l=Wt.merge(l,h,r)}return r.allowSparse===!0?l:Wt.compact(l)},pp=ip,dp=hp,mp=Xo,vp={formats:mp,parse:dp,stringify:pp};const yp=Vo(vp);function gl(e,t){return function(){return e.apply(t,arguments)}}const{toString:gp}=Object.prototype,{getPrototypeOf:Zo}=Object,{iterator:Un,toStringTag:xl}=Symbol,zn=(e=>t=>{const r=gp.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ht=e=>(e=e.toLowerCase(),t=>zn(t)===e),qn=e=>t=>typeof t===e,{isArray:xr}=Array,Or=qn("undefined");function jr(e){return e!==null&&!Or(e)&&e.constructor!==null&&!Or(e.constructor)&&Xe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bl=ht("ArrayBuffer");function xp(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&bl(e.buffer),t}const bp=qn("string"),Xe=qn("function"),wl=qn("number"),Hr=e=>e!==null&&typeof e=="object",wp=e=>e===!0||e===!1,bn=e=>{if(zn(e)!=="object")return!1;const t=Zo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(xl in e)&&!(Un in e)},_p=e=>{if(!Hr(e)||jr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},Ep=ht("Date"),Ap=ht("File"),Cp=ht("Blob"),Sp=ht("FileList"),Bp=e=>Hr(e)&&Xe(e.pipe),kp=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xe(e.append)&&((t=zn(e))==="formdata"||t==="object"&&Xe(e.toString)&&e.toString()==="[object FormData]"))},Tp=ht("URLSearchParams"),[Fp,Ip,Dp,Rp]=["ReadableStream","Request","Response","Headers"].map(ht),Op=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $r(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e=="undefined")return;let n,l;if(typeof e!="object"&&(e=[e]),xr(e))for(n=0,l=e.length;n<l;n++)t.call(null,e[n],n,e);else{if(jr(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let u;for(n=0;n<s;n++)u=o[n],t.call(null,e[u],u,e)}}function _l(e,t){if(jr(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,l;for(;n-- >0;)if(l=r[n],t===l.toLowerCase())return l;return null}const jt=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,El=e=>!Or(e)&&e!==jt;function Io(){const{caseless:e}=El(this)&&this||{},t={},r=(n,l)=>{const o=e&&_l(t,l)||l;bn(t[o])&&bn(n)?t[o]=Io(t[o],n):bn(n)?t[o]=Io({},n):xr(n)?t[o]=n.slice():t[o]=n};for(let n=0,l=arguments.length;n<l;n++)arguments[n]&&$r(arguments[n],r);return t}const Pp=(e,t,r,{allOwnKeys:n}={})=>($r(t,(l,o)=>{r&&Xe(l)?e[o]=gl(l,r):e[o]=l},{allOwnKeys:n}),e),Mp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Np=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Lp=(e,t,r,n)=>{let l,o,s;const u={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)s=l[o],(!n||n(s,e,t))&&!u[s]&&(t[s]=e[s],u[s]=!0);e=r!==!1&&Zo(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Up=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},zp=e=>{if(!e)return null;if(xr(e))return e;let t=e.length;if(!wl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},qp=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&Zo(Uint8Array)),jp=(e,t)=>{const n=(e&&e[Un]).call(e);let l;for(;(l=n.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},Hp=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},$p=ht("HTMLFormElement"),Vp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,l){return n.toUpperCase()+l}),Xa=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Wp=ht("RegExp"),Al=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};$r(r,(l,o)=>{let s;(s=t(l,o,e))!==!1&&(n[o]=s||l)}),Object.defineProperties(e,n)},Kp=e=>{Al(e,(t,r)=>{if(Xe(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Xe(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Gp=(e,t)=>{const r={},n=l=>{l.forEach(o=>{r[o]=!0})};return xr(e)?n(e):n(String(e).split(t)),r},Qp=()=>{},Yp=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Xp(e){return!!(e&&Xe(e.append)&&e[xl]==="FormData"&&e[Un])}const Zp=e=>{const t=new Array(10),r=(n,l)=>{if(Hr(n)){if(t.indexOf(n)>=0)return;if(jr(n))return n;if(!("toJSON"in n)){t[l]=n;const o=xr(n)?[]:{};return $r(n,(s,u)=>{const h=r(s,l+1);!Or(h)&&(o[u]=h)}),t[l]=void 0,o}}return n};return r(e,0)},Jp=ht("AsyncFunction"),ed=e=>e&&(Hr(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),Cl=((e,t)=>e?setImmediate:t?((r,n)=>(jt.addEventListener("message",({source:l,data:o})=>{l===jt&&o===r&&n.length&&n.shift()()},!1),l=>{n.push(l),jt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Xe(jt.postMessage)),td=typeof queueMicrotask!="undefined"?queueMicrotask.bind(jt):typeof process!="undefined"&&process.nextTick||Cl,rd=e=>e!=null&&Xe(e[Un]),le={isArray:xr,isArrayBuffer:bl,isBuffer:jr,isFormData:kp,isArrayBufferView:xp,isString:bp,isNumber:wl,isBoolean:wp,isObject:Hr,isPlainObject:bn,isEmptyObject:_p,isReadableStream:Fp,isRequest:Ip,isResponse:Dp,isHeaders:Rp,isUndefined:Or,isDate:Ep,isFile:Ap,isBlob:Cp,isRegExp:Wp,isFunction:Xe,isStream:Bp,isURLSearchParams:Tp,isTypedArray:qp,isFileList:Sp,forEach:$r,merge:Io,extend:Pp,trim:Op,stripBOM:Mp,inherits:Np,toFlatObject:Lp,kindOf:zn,kindOfTest:ht,endsWith:Up,toArray:zp,forEachEntry:jp,matchAll:Hp,isHTMLForm:$p,hasOwnProperty:Xa,hasOwnProp:Xa,reduceDescriptors:Al,freezeMethods:Kp,toObjectSet:Gp,toCamelCase:Vp,noop:Qp,toFiniteNumber:Yp,findKey:_l,global:jt,isContextDefined:El,isSpecCompliantForm:Xp,toJSONObject:Zp,isAsyncFn:Jp,isThenable:ed,setImmediate:Cl,asap:td,isIterable:rd};function be(e,t,r,n,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),l&&(this.response=l,this.status=l.status?l.status:null)}le.inherits(be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:le.toJSONObject(this.config),code:this.code,status:this.status}}});const Sl=be.prototype,Bl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Bl[e]={value:e}});Object.defineProperties(be,Bl);Object.defineProperty(Sl,"isAxiosError",{value:!0});be.from=(e,t,r,n,l,o)=>{const s=Object.create(Sl);return le.toFlatObject(e,s,function(h){return h!==Error.prototype},u=>u!=="isAxiosError"),be.call(s,e.message,t,r,n,l),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const nd=null;function Do(e){return le.isPlainObject(e)||le.isArray(e)}function kl(e){return le.endsWith(e,"[]")?e.slice(0,-2):e}function Za(e,t,r){return e?e.concat(t).map(function(l,o){return l=kl(l),!r&&o?"["+l+"]":l}).join(r?".":""):t}function id(e){return le.isArray(e)&&!e.some(Do)}const od=le.toFlatObject(le,{},null,function(t){return/^is[A-Z]/.test(t)});function jn(e,t,r){if(!le.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=le.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,m){return!le.isUndefined(m[v])});const n=r.metaTokens,l=r.visitor||i,o=r.dots,s=r.indexes,h=(r.Blob||typeof Blob!="undefined"&&Blob)&&le.isSpecCompliantForm(t);if(!le.isFunction(l))throw new TypeError("visitor must be a function");function a(p){if(p===null)return"";if(le.isDate(p))return p.toISOString();if(le.isBoolean(p))return p.toString();if(!h&&le.isBlob(p))throw new be("Blob is not supported. Use a Buffer instead.");return le.isArrayBuffer(p)||le.isTypedArray(p)?h&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function i(p,v,m){let g=p;if(p&&!m&&typeof p=="object"){if(le.endsWith(v,"{}"))v=n?v:v.slice(0,-2),p=JSON.stringify(p);else if(le.isArray(p)&&id(p)||(le.isFileList(p)||le.endsWith(v,"[]"))&&(g=le.toArray(p)))return v=kl(v),g.forEach(function(y,w){!(le.isUndefined(y)||y===null)&&t.append(s===!0?Za([v],w,o):s===null?v:v+"[]",a(y))}),!1}return Do(p)?!0:(t.append(Za(m,v,o),a(p)),!1)}const d=[],c=Object.assign(od,{defaultVisitor:i,convertValue:a,isVisitable:Do});function f(p,v){if(!le.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(p),le.forEach(p,function(g,x){(!(le.isUndefined(g)||g===null)&&l.call(t,g,le.isString(x)?x.trim():x,v,c))===!0&&f(g,v?v.concat(x):[x])}),d.pop()}}if(!le.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Ja(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Jo(e,t){this._pairs=[],e&&jn(e,this,t)}const Tl=Jo.prototype;Tl.append=function(t,r){this._pairs.push([t,r])};Tl.toString=function(t){const r=t?function(n){return t.call(this,n,Ja)}:Ja;return this._pairs.map(function(l){return r(l[0])+"="+r(l[1])},"").join("&")};function ad(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fl(e,t,r){if(!t)return e;const n=r&&r.encode||ad;le.isFunction(r)&&(r={serialize:r});const l=r&&r.serialize;let o;if(l?o=l(t,r):o=le.isURLSearchParams(t)?t.toString():new Jo(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class es{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){le.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Il={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sd=typeof URLSearchParams!="undefined"?URLSearchParams:Jo,ld=typeof FormData!="undefined"?FormData:null,ud=typeof Blob!="undefined"?Blob:null,cd={isBrowser:!0,classes:{URLSearchParams:sd,FormData:ld,Blob:ud},protocols:["http","https","file","blob","url","data"]},ea=typeof window!="undefined"&&typeof document!="undefined",Ro=typeof navigator=="object"&&navigator||void 0,fd=ea&&(!Ro||["ReactNative","NativeScript","NS"].indexOf(Ro.product)<0),hd=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pd=ea&&window.location.href||"http://localhost",dd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ea,hasStandardBrowserEnv:fd,hasStandardBrowserWebWorkerEnv:hd,navigator:Ro,origin:pd},Symbol.toStringTag,{value:"Module"})),Ve=he(he({},dd),cd);function md(e,t){return jn(e,new Ve.classes.URLSearchParams,he({visitor:function(r,n,l,o){return Ve.isNode&&le.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function vd(e){return le.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yd(e){const t={},r=Object.keys(e);let n;const l=r.length;let o;for(n=0;n<l;n++)o=r[n],t[o]=e[o];return t}function Dl(e){function t(r,n,l,o){let s=r[o++];if(s==="__proto__")return!0;const u=Number.isFinite(+s),h=o>=r.length;return s=!s&&le.isArray(l)?l.length:s,h?(le.hasOwnProp(l,s)?l[s]=[l[s],n]:l[s]=n,!u):((!l[s]||!le.isObject(l[s]))&&(l[s]=[]),t(r,n,l[s],o)&&le.isArray(l[s])&&(l[s]=yd(l[s])),!u)}if(le.isFormData(e)&&le.isFunction(e.entries)){const r={};return le.forEachEntry(e,(n,l)=>{t(vd(n),l,r,0)}),r}return null}function gd(e,t,r){if(le.isString(e))try{return(t||JSON.parse)(e),le.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Vr={transitional:Il,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",l=n.indexOf("application/json")>-1,o=le.isObject(t);if(o&&le.isHTMLForm(t)&&(t=new FormData(t)),le.isFormData(t))return l?JSON.stringify(Dl(t)):t;if(le.isArrayBuffer(t)||le.isBuffer(t)||le.isStream(t)||le.isFile(t)||le.isBlob(t)||le.isReadableStream(t))return t;if(le.isArrayBufferView(t))return t.buffer;if(le.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return md(t,this.formSerializer).toString();if((u=le.isFileList(t))||n.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return jn(u?{"files[]":t}:t,h&&new h,this.formSerializer)}}return o||l?(r.setContentType("application/json",!1),gd(t)):t}],transformResponse:[function(t){const r=this.transitional||Vr.transitional,n=r&&r.forcedJSONParsing,l=this.responseType==="json";if(le.isResponse(t)||le.isReadableStream(t))return t;if(t&&le.isString(t)&&(n&&!this.responseType||l)){const s=!(r&&r.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(u){if(s)throw u.name==="SyntaxError"?be.from(u,be.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};le.forEach(["delete","get","head","post","put","patch"],e=>{Vr.headers[e]={}});const xd=le.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bd=e=>{const t={};let r,n,l;return e&&e.split(`
|
|
5
|
+
`).forEach(function(s){l=s.indexOf(":"),r=s.substring(0,l).trim().toLowerCase(),n=s.substring(l+1).trim(),!(!r||t[r]&&xd[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},ts=Symbol("internals");function Sr(e){return e&&String(e).trim().toLowerCase()}function wn(e){return e===!1||e==null?e:le.isArray(e)?e.map(wn):String(e)}function wd(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const _d=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Oi(e,t,r,n,l){if(le.isFunction(n))return n.call(this,t,r);if(l&&(t=r),!!le.isString(t)){if(le.isString(n))return t.indexOf(n)!==-1;if(le.isRegExp(n))return n.test(t)}}function Ed(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Ad(e,t){const r=le.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(l,o,s){return this[n].call(this,t,l,o,s)},configurable:!0})})}let Ze=class{constructor(t){t&&this.set(t)}set(t,r,n){const l=this;function o(u,h,a){const i=Sr(h);if(!i)throw new Error("header name must be a non-empty string");const d=le.findKey(l,i);(!d||l[d]===void 0||a===!0||a===void 0&&l[d]!==!1)&&(l[d||h]=wn(u))}const s=(u,h)=>le.forEach(u,(a,i)=>o(a,i,h));if(le.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(le.isString(t)&&(t=t.trim())&&!_d(t))s(bd(t),r);else if(le.isObject(t)&&le.isIterable(t)){let u={},h,a;for(const i of t){if(!le.isArray(i))throw TypeError("Object iterator must return a key-value pair");u[a=i[0]]=(h=u[a])?le.isArray(h)?[...h,i[1]]:[h,i[1]]:i[1]}s(u,r)}else t!=null&&o(r,t,n);return this}get(t,r){if(t=Sr(t),t){const n=le.findKey(this,t);if(n){const l=this[n];if(!r)return l;if(r===!0)return wd(l);if(le.isFunction(r))return r.call(this,l,n);if(le.isRegExp(r))return r.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Sr(t),t){const n=le.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Oi(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let l=!1;function o(s){if(s=Sr(s),s){const u=le.findKey(n,s);u&&(!r||Oi(n,n[u],u,r))&&(delete n[u],l=!0)}}return le.isArray(t)?t.forEach(o):o(t),l}clear(t){const r=Object.keys(this);let n=r.length,l=!1;for(;n--;){const o=r[n];(!t||Oi(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const r=this,n={};return le.forEach(this,(l,o)=>{const s=le.findKey(n,o);if(s){r[s]=wn(l),delete r[o];return}const u=t?Ed(o):String(o).trim();u!==o&&delete r[o],r[u]=wn(l),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return le.forEach(this,(n,l)=>{n!=null&&n!==!1&&(r[l]=t&&le.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
6
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(l=>n.set(l)),n}static accessor(t){const n=(this[ts]=this[ts]={accessors:{}}).accessors,l=this.prototype;function o(s){const u=Sr(s);n[u]||(Ad(l,s),n[u]=!0)}return le.isArray(t)?t.forEach(o):o(t),this}};Ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);le.reduceDescriptors(Ze.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});le.freezeMethods(Ze);function Pi(e,t){const r=this||Vr,n=t||r,l=Ze.from(n.headers);let o=n.data;return le.forEach(e,function(u){o=u.call(r,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function Rl(e){return!!(e&&e.__CANCEL__)}function br(e,t,r){be.call(this,e==null?"canceled":e,be.ERR_CANCELED,t,r),this.name="CanceledError"}le.inherits(br,be,{__CANCEL__:!0});function Ol(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new be("Request failed with status code "+r.status,[be.ERR_BAD_REQUEST,be.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Cd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Sd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let l=0,o=0,s;return t=t!==void 0?t:1e3,function(h){const a=Date.now(),i=n[o];s||(s=a),r[l]=h,n[l]=a;let d=o,c=0;for(;d!==l;)c+=r[d++],d=d%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),a-s<t)return;const f=i&&a-i;return f?Math.round(c*1e3/f):void 0}}function Bd(e,t){let r=0,n=1e3/t,l,o;const s=(a,i=Date.now())=>{r=i,l=null,o&&(clearTimeout(o),o=null),e(...a)};return[(...a)=>{const i=Date.now(),d=i-r;d>=n?s(a,i):(l=a,o||(o=setTimeout(()=>{o=null,s(l)},n-d)))},()=>l&&s(l)]}const Tn=(e,t,r=3)=>{let n=0;const l=Sd(50,250);return Bd(o=>{const s=o.loaded,u=o.lengthComputable?o.total:void 0,h=s-n,a=l(h),i=s<=u;n=s;const d={loaded:s,total:u,progress:u?s/u:void 0,bytes:h,rate:a||void 0,estimated:a&&u&&i?(u-s)/a:void 0,event:o,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(d)},r)},rs=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},ns=e=>(...t)=>le.asap(()=>e(...t)),kd=Ve.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ve.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ve.origin),Ve.navigator&&/(msie|trident)/i.test(Ve.navigator.userAgent)):()=>!0,Td=Ve.hasStandardBrowserEnv?{write(e,t,r,n,l,o){const s=[e+"="+encodeURIComponent(t)];le.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),le.isString(n)&&s.push("path="+n),le.isString(l)&&s.push("domain="+l),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Fd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Id(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Pl(e,t,r){let n=!Fd(t);return e&&(n||r==!1)?Id(e,t):t}const is=e=>e instanceof Ze?he({},e):e;function Kt(e,t){t=t||{};const r={};function n(a,i,d,c){return le.isPlainObject(a)&&le.isPlainObject(i)?le.merge.call({caseless:c},a,i):le.isPlainObject(i)?le.merge({},i):le.isArray(i)?i.slice():i}function l(a,i,d,c){if(le.isUndefined(i)){if(!le.isUndefined(a))return n(void 0,a,d,c)}else return n(a,i,d,c)}function o(a,i){if(!le.isUndefined(i))return n(void 0,i)}function s(a,i){if(le.isUndefined(i)){if(!le.isUndefined(a))return n(void 0,a)}else return n(void 0,i)}function u(a,i,d){if(d in t)return n(a,i);if(d in e)return n(void 0,a)}const h={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(a,i,d)=>l(is(a),is(i),d,!0)};return le.forEach(Object.keys(he(he({},e),t)),function(i){const d=h[i]||l,c=d(e[i],t[i],i);le.isUndefined(c)&&d!==u||(r[i]=c)}),r}const Ml=e=>{const t=Kt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:l,xsrfCookieName:o,headers:s,auth:u}=t;t.headers=s=Ze.from(s),t.url=Fl(Pl(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let h;if(le.isFormData(r)){if(Ve.hasStandardBrowserEnv||Ve.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((h=s.getContentType())!==!1){const[a,...i]=h?h.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([a||"multipart/form-data",...i].join("; "))}}if(Ve.hasStandardBrowserEnv&&(n&&le.isFunction(n)&&(n=n(t)),n||n!==!1&&kd(t.url))){const a=l&&o&&Td.read(o);a&&s.set(l,a)}return t},Dd=typeof XMLHttpRequest!="undefined",Rd=Dd&&function(e){return new Promise(function(r,n){const l=Ml(e);let o=l.data;const s=Ze.from(l.headers).normalize();let{responseType:u,onUploadProgress:h,onDownloadProgress:a}=l,i,d,c,f,p;function v(){f&&f(),p&&p(),l.cancelToken&&l.cancelToken.unsubscribe(i),l.signal&&l.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout;function g(){if(!m)return;const y=Ze.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),k={data:!u||u==="text"||u==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:y,config:e,request:m};Ol(function(F){r(F),v()},function(F){n(F),v()},k),m=null}"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){m&&(n(new be("Request aborted",be.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new be("Network Error",be.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let w=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const k=l.transitional||Il;l.timeoutErrorMessage&&(w=l.timeoutErrorMessage),n(new be(w,k.clarifyTimeoutError?be.ETIMEDOUT:be.ECONNABORTED,e,m)),m=null},o===void 0&&s.setContentType(null),"setRequestHeader"in m&&le.forEach(s.toJSON(),function(w,k){m.setRequestHeader(k,w)}),le.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),u&&u!=="json"&&(m.responseType=l.responseType),a&&([c,p]=Tn(a,!0),m.addEventListener("progress",c)),h&&m.upload&&([d,f]=Tn(h),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",f)),(l.cancelToken||l.signal)&&(i=y=>{m&&(n(!y||y.type?new br(null,e,m):y),m.abort(),m=null)},l.cancelToken&&l.cancelToken.subscribe(i),l.signal&&(l.signal.aborted?i():l.signal.addEventListener("abort",i)));const x=Cd(l.url);if(x&&Ve.protocols.indexOf(x)===-1){n(new be("Unsupported protocol "+x+":",be.ERR_BAD_REQUEST,e));return}m.send(o||null)})},Od=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,l;const o=function(a){if(!l){l=!0,u();const i=a instanceof Error?a:this.reason;n.abort(i instanceof be?i:new br(i instanceof Error?i.message:i))}};let s=t&&setTimeout(()=>{s=null,o(new be(`timeout ${t} of ms exceeded`,be.ETIMEDOUT))},t);const u=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(o):a.removeEventListener("abort",o)}),e=null)};e.forEach(a=>a.addEventListener("abort",o));const{signal:h}=n;return h.unsubscribe=()=>le.asap(u),h}},Pd=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,l;for(;n<r;)l=n+t,yield e.slice(n,l),n=l},Md=function(e,t){return ci(this,null,function*(){try{for(var r=xa(Nd(e)),n,l,o;n=!(l=yield new Ut(r.next())).done;n=!1){const s=l.value;yield*fi(Pd(s,t))}}catch(l){o=[l]}finally{try{n&&(l=r.return)&&(yield new Ut(l.call(r)))}finally{if(o)throw o[0]}}})},Nd=function(e){return ci(this,null,function*(){if(e[Symbol.asyncIterator]){yield*fi(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new Ut(t.read());if(r)break;yield n}}finally{yield new Ut(t.cancel())}})},os=(e,t,r,n)=>{const l=Md(e,t);let o=0,s,u=a=>{s||(s=!0,n&&n(a))};return new ReadableStream({pull(a){return He(this,null,function*(){try{const{done:i,value:d}=yield l.next();if(i){u(),a.close();return}let c=d.byteLength;if(r){let f=o+=c;r(f)}a.enqueue(new Uint8Array(d))}catch(i){throw u(i),i}})},cancel(a){return u(a),l.return()}},{highWaterMark:2})},Hn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Nl=Hn&&typeof ReadableStream=="function",Ld=Hn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>He(exports,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Ll=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},Ud=Nl&&Ll(()=>{let e=!1;const t=new Request(Ve.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),as=64*1024,Oo=Nl&&Ll(()=>le.isReadableStream(new Response("").body)),Fn={stream:Oo&&(e=>e.body)};Hn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Fn[t]&&(Fn[t]=le.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new be(`Response type '${t}' is not supported`,be.ERR_NOT_SUPPORT,n)})})})(new Response);const zd=e=>He(exports,null,function*(){if(e==null)return 0;if(le.isBlob(e))return e.size;if(le.isSpecCompliantForm(e))return(yield new Request(Ve.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(le.isArrayBufferView(e)||le.isArrayBuffer(e))return e.byteLength;if(le.isURLSearchParams(e)&&(e=e+""),le.isString(e))return(yield Ld(e)).byteLength}),qd=(e,t)=>He(exports,null,function*(){const r=le.toFiniteNumber(e.getContentLength());return r==null?zd(t):r}),jd=Hn&&(e=>He(exports,null,function*(){let{url:t,method:r,data:n,signal:l,cancelToken:o,timeout:s,onDownloadProgress:u,onUploadProgress:h,responseType:a,headers:i,withCredentials:d="same-origin",fetchOptions:c}=Ml(e);a=a?(a+"").toLowerCase():"text";let f=Od([l,o&&o.toAbortSignal()],s),p;const v=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let m;try{if(h&&Ud&&r!=="get"&&r!=="head"&&(m=yield qd(i,n))!==0){let k=new Request(t,{method:"POST",body:n,duplex:"half"}),T;if(le.isFormData(n)&&(T=k.headers.get("content-type"))&&i.setContentType(T),k.body){const[F,I]=rs(m,Tn(ns(h)));n=os(k.body,as,F,I)}}le.isString(d)||(d=d?"include":"omit");const g="credentials"in Request.prototype;p=new Request(t,_e(he({},c),{signal:f,method:r.toUpperCase(),headers:i.normalize().toJSON(),body:n,duplex:"half",credentials:g?d:void 0}));let x=yield fetch(p,c);const y=Oo&&(a==="stream"||a==="response");if(Oo&&(u||y&&v)){const k={};["status","statusText","headers"].forEach(G=>{k[G]=x[G]});const T=le.toFiniteNumber(x.headers.get("content-length")),[F,I]=u&&rs(T,Tn(ns(u),!0))||[];x=new Response(os(x.body,as,F,()=>{I&&I(),v&&v()}),k)}a=a||"text";let w=yield Fn[le.findKey(Fn,a)||"text"](x,e);return!y&&v&&v(),yield new Promise((k,T)=>{Ol(k,T,{data:w,headers:Ze.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:p})})}catch(g){throw v&&v(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new be("Network Error",be.ERR_NETWORK,e,p),{cause:g.cause||g}):be.from(g,g&&g.code,e,p)}})),Po={http:nd,xhr:Rd,fetch:jd};le.forEach(Po,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const ss=e=>`- ${e}`,Hd=e=>le.isFunction(e)||e===null||e===!1,Ul={getAdapter:e=>{e=le.isArray(e)?e:[e];const{length:t}=e;let r,n;const l={};for(let o=0;o<t;o++){r=e[o];let s;if(n=r,!Hd(r)&&(n=Po[(s=String(r)).toLowerCase()],n===void 0))throw new be(`Unknown adapter '${s}'`);if(n)break;l[s||"#"+o]=n}if(!n){const o=Object.entries(l).map(([u,h])=>`adapter ${u} `+(h===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
|
|
7
7
|
`+o.map(ss).join(`
|
|
8
|
-
`):" "+ss(o[0]):"as no adapter specified";throw new be("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Po};function Mi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new br(null,e)}function ls(e){return Mi(e),e.headers=Ze.from(e.headers),e.data=Pi.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),
|
|
9
|
-
`+o):n.stack=o}catch(s){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Kt(this.defaults,r);const{transitional:n,paramsSerializer:l,headers:o}=r;n!==void 0&&_n.assertOptions(n,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),l!=null&&(le.isFunction(l)?r.paramsSerializer={serialize:l}:_n.assertOptions(l,{encode:vt.function,serialize:vt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),_n.assertOptions(r,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&le.merge(o.common,o[r.method]);o&&le.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),r.headers=Ze.concat(s,o);const u=[];let h=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(h=h&&v.synchronous,u.unshift(v.fulfilled,v.rejected))});const a=[];this.interceptors.response.forEach(function(v){a.push(v.fulfilled,v.rejected)});let i,d=0,c;if(!h){const p=[ls.bind(this),void 0];for(p.unshift(...u),p.push(...a),c=p.length,i=Promise.resolve(r);d<c;)i=i.then(p[d++],p[d++]);return i}c=u.length;let f=r;for(d=0;d<c;){const p=u[d++],v=u[d++];try{f=p(f)}catch(m){v.call(this,m);break}}try{i=ls.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,c=a.length;d<c;)i=i.then(a[d++],a[d++]);return i}getUri(t){t=Kt(this.defaults,t);const r=Xl(t.baseURL,t.url,t.allowAbsoluteUrls);return Wl(r,t.params,t.paramsSerializer)}};le.forEach(["delete","get","head","options"],function(t){Vt.prototype[t]=function(r,n){return this.request(Kt(n||{},{method:t,url:r,data:(n||{}).data}))}});le.forEach(["post","put","patch"],function(t){function r(n){return function(o,s,u){return this.request(Kt(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Vt.prototype[t]=r(),Vt.prototype[t+"Form"]=r(!0)});let s1=class nu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(l=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](l);n._listeners=null}),this.promise.then=l=>{let o;const s=new Promise(u=>{n.subscribe(u),o=u}).then(l);return s.cancel=function(){n.unsubscribe(o)},s},t(function(o,s,u){n.reason||(n.reason=new br(o,s,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new nu(function(l){t=l}),cancel:t}}};function l1(e){return function(r){return e.apply(null,r)}}function u1(e){return le.isObject(e)&&e.isAxiosError===!0}const Mo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Mo).forEach(([e,t])=>{Mo[t]=e});function iu(e){const t=new Vt(e),r=Ol(Vt.prototype.request,t);return le.extend(r,Vt.prototype,t,{allOwnKeys:!0}),le.extend(r,t,null,{allOwnKeys:!0}),r.create=function(l){return iu(Kt(e,l))},r}const Re=iu(Vr);Re.Axios=Vt;Re.CanceledError=br;Re.CancelToken=s1;Re.isCancel=Ql;Re.VERSION=ru;Re.toFormData=jn;Re.AxiosError=be;Re.Cancel=Re.CanceledError;Re.all=function(t){return Promise.all(t)};Re.spread=l1;Re.isAxiosError=u1;Re.mergeConfig=Kt;Re.AxiosHeaders=Ze;Re.formToJSON=e=>Gl(le.isHTMLForm(e)?new FormData(e):e);Re.getAdapter=tu.getAdapter;Re.HttpStatusCode=Mo;Re.default=Re;const{Axios:hy,AxiosError:py,CanceledError:dy,isCancel:my,CancelToken:vy,VERSION:yy,all:gy,Cancel:xy,isAxiosError:by,spread:wy,toFormData:_y,AxiosHeaders:Ey,HttpStatusCode:Ay,formToJSON:Cy,getAdapter:Sy,mergeConfig:By}=Re,ct={CUSTOM_MSG:"CUSTOM_MSG",OPEN_CAMERA:"OPEN_CAMERA",CLOSE_CAMERA:"CLOSE_CAMERA",OPEN_AUDIO:"OPEN_AUDIO",CLOSE_AUDIO:"CLOSE_AUDIO",CHANGE_GRAPH:"CHANGE_GRAPH",NOTIFY_DIALOG:"NOTIFY_DIALOG"},c1={OFFLINE:0},Be={NORMAL:"NORMAL",TEXT:"TEXT",AUDIO:"AUDIO",MP4:"MP4",CAMERA:"CAMERA",VIDEO_STREAM:"VIDEO_STREAM",POINT_VALUE:"POINT_VALUE",LIGHT_PLATE:"LIGHT_PLATE",SENSOR:"SENSOR",TABLE:"TABLE",SWITCH:"SWITCH",RADIO:"RADIO",SLIDER:"SLIDER",SELECT:"SELECT",CHECKBOX:"CHECKBOX",TIME:"TIME",BUTTON:"BUTTON",INPUT:"INPUT"},Ni={POINT:5,YX:6,YC:7},sn={Emit:7},f1={STOP:2},h1={1:1,2:2,3:3,4:4,5:5},Vn={WUJIE:"wujie",QIANKUN:"qiankun",MICROAPP:"microapp"},cs={GRAPH:{SOCKET:"GRAPH_SOCKET"}},fs={AC:{ALARM:"ac.channel.alarm",CONDITION:"ac.channel.gk",OPERATION:"ac.channel.op"},AUDIT:{MSG:"audit.msg",ALARM:"audit.alarm"},DATA:{TASK_STATUS:"data.patroldevice.taskstatus",TASK_RESULT:"data.patroldevice.taskresult"},HOST:{STATUS:"status.platform.hoststatus"},NEST:{BATTERY:"status.platform.nestbattery",HUMIDITY:"status.platform.nesthumidity",TEMPERATURE:"status.platform.nesttemperature",AIR_STATE:"status.platform.nestairstate",DOOR_STATE:"status.platform.nestdoorstate",CHARGE_STATE:"status.platform.nestchargestate",RUNNING_STATE:"status.platform.nestrunningstate",BATTERY_STATE:"status.platform.nestbatterystate",BATTERY_ENABLE:"status.platform.nestbatteryenable",BATTERY_VOLTAGE:"status.platform.nestbatteryvoltage",PLATFORM_STATE:"status.platform.nestsysstate"},MEDIA:{NVR_INFO:"status.platform.nvrinfo",NVR_STATUS:"status.platform.nvrstatus",CAMERA_STATUS:"status.platform.camerastatus"},DRONE:{STATUS:"status.platform.dronestatus",ELECTRICITY:"status.platform.droneelectricity",FLIGHT_TIME:"status.platform.flighttime",FLIGHT_HEIGHT:"status.platform.flightheight",FLIGHT_STATUS:"status.platform.flightstatus",FLIGHT_DISTANCE:"status.platform.flightdistance",PTZ_ELEVATION:"status.platform.ptzelevation",PTZ_YAW_ANGLE:"status.platform.ptzyawangle",PTZ_ROLL_ANGLE:"status.platform.ptzrollangle",LOW_BATTERY:"status.platform.lowbattery",COMM_ABNORMAL:"status.platform.commabnormal",DRIVE_EXCEPTION:"status.platform.driveexception",FAULT_ALARM:"status.platform.faultalarm",CONTROL_STATUS:"status.platform.controlstatus",MILEAGE:"status.platform.mileage",CONTROL_MODE:"status.platform.controlmode"},ROBOT:{SPEED:"status.platform.robotspeed",STATUS:"status.platform.robotstatus",BATTERY:"status.platform.robotbattery",MILEAGE:"status.platform.robotmileage",HUMIDITY:"status.platform.robothumidity",WINDSPEED:"status.platform.robotwindspeed",COORDINATE:"status.platform.robotcoordinate",COORDINATES:"status.platform.robotcoordinates",FAULT_ALARM:"status.platform.robotfaultalarm",LOW_BATTERY:"status.platform.robotlowbattery",TEMPERATURE:"status.platform.robottemperature",CONTROL_MODE:"status.platform.robotcontrolmode",COMM_ABNORMAL:"status.platform.robotcommabnormal",RUNNING_STATE:"status.platform.robotrunningstate",CONTROL_STATUS:"status.platform.robotcontrolstatus",DRIVE_EXCEPTION:"status.platform.robotdriveexception",TRANSPORT_STATUS:"status.platform.robottransportstatus",ULTRASONIC_STOPPING:"status.platform.robotultrasonicstopping"},VOICE:{STATUS:"voiceprint.status",DATA:"voice.data",VOICEPRINT:"voiceprint.data",TIME_DOMAIN:"voiceprint.time.domain",FREQ_DOMAIN:"voiceprint.freq.domain"},PATROL:{ALARM:"patrol.alarm",TASK_ITEM:"patrol.task.item",TASK_INDEX:"patrol.task.index",SINGLE_RESULT:"patrol.single.result",CAMERA_ITEM:"patrol.camera.item",PATROLDEVICE_TASKSTATUS:"data.patroldevice.taskstatus",PATROLDEVICE_TASKRESULT:"data.patroldevice.taskresult",MASTER_ALARM:"patrol.master.alarm",MASTER_SILENCE:"patrol.task.master.silence",MASTER_TASK_ITEM:"patrol.task.master.item",MASTER_TASK_INDEX:"patrol.task.master.index"},REPORT:{ALARM:"report.alarm.message",EXCEL:"report.excel.message",PATROL:"report.patrol.message",PICTURE:"report.picture.message"},ACPOINT:{YCVALUE:"status.platform.ycvalue",YXVALUE:"status.platform.yxvalue"},ALARM:{VOICE:"alarm.platform.alarm"},LINKAGE:{TASK:"linkage.record.task",CAMERA:"linkage.record.camera",PRESET:"linkage.record.preset",CONTROL:"linkage.record.control",PATROLPOINT:"linkage.record.patrolpoint"},METRICS:{SERVER:"metrics.metrics.server",CONTAINER:"metrics.metrics.container"},STATION:{SF6:"status.platform.stationsf6",OXYGEN:"status.platform.stationoxygen",HUMIDITY:"status.platform.stationhumidity",PRESSURE:"status.platform.stationpressure",RAINFALL:"status.platform.stationrainfall",WINDSPEED:"status.platform.stationwindspeed",TEMPERATURE:"status.platform.stationtemperature",WINDDIRECTION:"status.platform.stationwinddirection"},INTERFACE:{ANALYSIS:"analyse.pic.result",ALGORITHM:"algorithm.update.result"},PATROL_DEVICE:{BATTERY:"status.platform.battery",MILEAGE:"status.platform.mileage",GEOGRAPHY:"status.platform.coordinate_geography",COORDINATE:"status.platform.coordinate",COORDINATES:"status.platform.coordinates",ELECTRICITY:"status.platform.electricity",PTZYAWANGLE:"status.platform.ptzyawangle",PTZELEVATION:"status.platform.ptzelevation",PTZROLLANGLE:"status.platform.ptzrollangle",VERTICAL_SPEED:"status.platform.verticalspeed",HORIZONTAL_SPEED:"status.platform.horizontalspeed",FAULT_ALARM:"status.platform.faultalarm",LOW_BATTERY:"status.platform.lowbattery",CONTROL_MODE:"status.platform.controlmode",COMM_ABNORMAL:"status.platform.commabnormal",RUNNING_STATE:"status.platform.runningstate",CONTROL_STATUS:"status.platform.controlstatus",DRIVE_EXCEPTION:"status.platform.driveexception",TRANSPORT_STATUS:"status.platform.transportstatus",ULTRASONIC_STOPPING:"status.platform.ultrasonicstopping"}};var Wn={};/*!
|
|
8
|
+
`):" "+ss(o[0]):"as no adapter specified";throw new be("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Po};function Mi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new br(null,e)}function ls(e){return Mi(e),e.headers=Ze.from(e.headers),e.data=Pi.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ul.getAdapter(e.adapter||Vr.adapter)(e).then(function(n){return Mi(e),n.data=Pi.call(e,e.transformResponse,n),n.headers=Ze.from(n.headers),n},function(n){return Rl(n)||(Mi(e),n&&n.response&&(n.response.data=Pi.call(e,e.transformResponse,n.response),n.response.headers=Ze.from(n.response.headers))),Promise.reject(n)})}const zl="1.11.0",$n={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$n[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const us={};$n.transitional=function(t,r,n){function l(o,s){return"[Axios v"+zl+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,u)=>{if(t===!1)throw new be(l(s," has been removed"+(r?" in "+r:"")),be.ERR_DEPRECATED);return r&&!us[s]&&(us[s]=!0,console.warn(l(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,s,u):!0}};$n.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function $d(e,t,r){if(typeof e!="object")throw new be("options must be an object",be.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let l=n.length;for(;l-- >0;){const o=n[l],s=t[o];if(s){const u=e[o],h=u===void 0||s(u,o,e);if(h!==!0)throw new be("option "+o+" must be "+h,be.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new be("Unknown option "+o,be.ERR_BAD_OPTION)}}const _n={assertOptions:$d,validators:$n},vt=_n.validators;let Vt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new es,response:new es}}request(t,r){return He(this,null,function*(){try{return yield this._request(t,r)}catch(n){if(n instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const o=l.stack?l.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
9
|
+
`+o):n.stack=o}catch(s){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Kt(this.defaults,r);const{transitional:n,paramsSerializer:l,headers:o}=r;n!==void 0&&_n.assertOptions(n,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),l!=null&&(le.isFunction(l)?r.paramsSerializer={serialize:l}:_n.assertOptions(l,{encode:vt.function,serialize:vt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),_n.assertOptions(r,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&le.merge(o.common,o[r.method]);o&&le.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),r.headers=Ze.concat(s,o);const u=[];let h=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(h=h&&v.synchronous,u.unshift(v.fulfilled,v.rejected))});const a=[];this.interceptors.response.forEach(function(v){a.push(v.fulfilled,v.rejected)});let i,d=0,c;if(!h){const p=[ls.bind(this),void 0];for(p.unshift(...u),p.push(...a),c=p.length,i=Promise.resolve(r);d<c;)i=i.then(p[d++],p[d++]);return i}c=u.length;let f=r;for(d=0;d<c;){const p=u[d++],v=u[d++];try{f=p(f)}catch(m){v.call(this,m);break}}try{i=ls.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,c=a.length;d<c;)i=i.then(a[d++],a[d++]);return i}getUri(t){t=Kt(this.defaults,t);const r=Pl(t.baseURL,t.url,t.allowAbsoluteUrls);return Fl(r,t.params,t.paramsSerializer)}};le.forEach(["delete","get","head","options"],function(t){Vt.prototype[t]=function(r,n){return this.request(Kt(n||{},{method:t,url:r,data:(n||{}).data}))}});le.forEach(["post","put","patch"],function(t){function r(n){return function(o,s,u){return this.request(Kt(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Vt.prototype[t]=r(),Vt.prototype[t+"Form"]=r(!0)});let Vd=class ql{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(l=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](l);n._listeners=null}),this.promise.then=l=>{let o;const s=new Promise(u=>{n.subscribe(u),o=u}).then(l);return s.cancel=function(){n.unsubscribe(o)},s},t(function(o,s,u){n.reason||(n.reason=new br(o,s,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new ql(function(l){t=l}),cancel:t}}};function Wd(e){return function(r){return e.apply(null,r)}}function Kd(e){return le.isObject(e)&&e.isAxiosError===!0}const Mo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Mo).forEach(([e,t])=>{Mo[t]=e});function jl(e){const t=new Vt(e),r=gl(Vt.prototype.request,t);return le.extend(r,Vt.prototype,t,{allOwnKeys:!0}),le.extend(r,t,null,{allOwnKeys:!0}),r.create=function(l){return jl(Kt(e,l))},r}const Re=jl(Vr);Re.Axios=Vt;Re.CanceledError=br;Re.CancelToken=Vd;Re.isCancel=Rl;Re.VERSION=zl;Re.toFormData=jn;Re.AxiosError=be;Re.Cancel=Re.CanceledError;Re.all=function(t){return Promise.all(t)};Re.spread=Wd;Re.isAxiosError=Kd;Re.mergeConfig=Kt;Re.AxiosHeaders=Ze;Re.formToJSON=e=>Dl(le.isHTMLForm(e)?new FormData(e):e);Re.getAdapter=Ul.getAdapter;Re.HttpStatusCode=Mo;Re.default=Re;const{Axios:Yv,AxiosError:Xv,CanceledError:Zv,isCancel:Jv,CancelToken:ey,VERSION:ty,all:ry,Cancel:ny,isAxiosError:iy,spread:oy,toFormData:ay,AxiosHeaders:sy,HttpStatusCode:ly,formToJSON:uy,getAdapter:cy,mergeConfig:fy}=Re,ct={CUSTOM_MSG:"CUSTOM_MSG",OPEN_CAMERA:"OPEN_CAMERA",CLOSE_CAMERA:"CLOSE_CAMERA",OPEN_AUDIO:"OPEN_AUDIO",CLOSE_AUDIO:"CLOSE_AUDIO",CHANGE_GRAPH:"CHANGE_GRAPH",NOTIFY_DIALOG:"NOTIFY_DIALOG"},Gd={OFFLINE:0},Se={NORMAL:"NORMAL",TEXT:"TEXT",AUDIO:"AUDIO",MP4:"MP4",CAMERA:"CAMERA",VIDEO_STREAM:"VIDEO_STREAM",POINT_VALUE:"POINT_VALUE",LIGHT_PLATE:"LIGHT_PLATE",SENSOR:"SENSOR",TABLE:"TABLE",SWITCH:"SWITCH",RADIO:"RADIO",SLIDER:"SLIDER",SELECT:"SELECT",CHECKBOX:"CHECKBOX",TIME:"TIME",BUTTON:"BUTTON",INPUT:"INPUT"},Ni={POINT:5,YX:6,YC:7},sn={Emit:7},Qd={STOP:2},Yd={1:1,2:2,3:3,4:4,5:5},Vn={WUJIE:"wujie",QIANKUN:"qiankun",MICROAPP:"microapp"},cs={GRAPH:{SOCKET:"GRAPH_SOCKET"}},fs={AC:{ALARM:"ac.channel.alarm",CONDITION:"ac.channel.gk",OPERATION:"ac.channel.op"},AUDIT:{MSG:"audit.msg",ALARM:"audit.alarm"},DATA:{TASK_STATUS:"data.patroldevice.taskstatus",TASK_RESULT:"data.patroldevice.taskresult"},HOST:{STATUS:"status.platform.hoststatus"},NEST:{BATTERY:"status.platform.nestbattery",HUMIDITY:"status.platform.nesthumidity",TEMPERATURE:"status.platform.nesttemperature",AIR_STATE:"status.platform.nestairstate",DOOR_STATE:"status.platform.nestdoorstate",CHARGE_STATE:"status.platform.nestchargestate",RUNNING_STATE:"status.platform.nestrunningstate",BATTERY_STATE:"status.platform.nestbatterystate",BATTERY_ENABLE:"status.platform.nestbatteryenable",BATTERY_VOLTAGE:"status.platform.nestbatteryvoltage",PLATFORM_STATE:"status.platform.nestsysstate"},MEDIA:{NVR_INFO:"status.platform.nvrinfo",NVR_STATUS:"status.platform.nvrstatus",CAMERA_STATUS:"status.platform.camerastatus"},DRONE:{STATUS:"status.platform.dronestatus",ELECTRICITY:"status.platform.droneelectricity",FLIGHT_TIME:"status.platform.flighttime",FLIGHT_HEIGHT:"status.platform.flightheight",FLIGHT_STATUS:"status.platform.flightstatus",FLIGHT_DISTANCE:"status.platform.flightdistance",PTZ_ELEVATION:"status.platform.ptzelevation",PTZ_YAW_ANGLE:"status.platform.ptzyawangle",PTZ_ROLL_ANGLE:"status.platform.ptzrollangle",LOW_BATTERY:"status.platform.lowbattery",COMM_ABNORMAL:"status.platform.commabnormal",DRIVE_EXCEPTION:"status.platform.driveexception",FAULT_ALARM:"status.platform.faultalarm",CONTROL_STATUS:"status.platform.controlstatus",MILEAGE:"status.platform.mileage",CONTROL_MODE:"status.platform.controlmode"},ROBOT:{SPEED:"status.platform.robotspeed",STATUS:"status.platform.robotstatus",BATTERY:"status.platform.robotbattery",MILEAGE:"status.platform.robotmileage",HUMIDITY:"status.platform.robothumidity",WINDSPEED:"status.platform.robotwindspeed",COORDINATE:"status.platform.robotcoordinate",COORDINATES:"status.platform.robotcoordinates",FAULT_ALARM:"status.platform.robotfaultalarm",LOW_BATTERY:"status.platform.robotlowbattery",TEMPERATURE:"status.platform.robottemperature",CONTROL_MODE:"status.platform.robotcontrolmode",COMM_ABNORMAL:"status.platform.robotcommabnormal",RUNNING_STATE:"status.platform.robotrunningstate",CONTROL_STATUS:"status.platform.robotcontrolstatus",DRIVE_EXCEPTION:"status.platform.robotdriveexception",TRANSPORT_STATUS:"status.platform.robottransportstatus",ULTRASONIC_STOPPING:"status.platform.robotultrasonicstopping"},VOICE:{STATUS:"voiceprint.status",DATA:"voice.data",VOICEPRINT:"voiceprint.data",TIME_DOMAIN:"voiceprint.time.domain",FREQ_DOMAIN:"voiceprint.freq.domain"},PATROL:{ALARM:"patrol.alarm",TASK_ITEM:"patrol.task.item",TASK_INDEX:"patrol.task.index",SINGLE_RESULT:"patrol.single.result",CAMERA_ITEM:"patrol.camera.item",PATROLDEVICE_TASKSTATUS:"data.patroldevice.taskstatus",PATROLDEVICE_TASKRESULT:"data.patroldevice.taskresult",MASTER_ALARM:"patrol.master.alarm",MASTER_SILENCE:"patrol.task.master.silence",MASTER_TASK_ITEM:"patrol.task.master.item",MASTER_TASK_INDEX:"patrol.task.master.index"},REPORT:{ALARM:"report.alarm.message",EXCEL:"report.excel.message",PATROL:"report.patrol.message",PICTURE:"report.picture.message"},ACPOINT:{YCVALUE:"status.platform.ycvalue",YXVALUE:"status.platform.yxvalue"},ALARM:{VOICE:"alarm.platform.alarm"},LINKAGE:{TASK:"linkage.record.task",CAMERA:"linkage.record.camera",PRESET:"linkage.record.preset",CONTROL:"linkage.record.control",PATROLPOINT:"linkage.record.patrolpoint"},METRICS:{SERVER:"metrics.metrics.server",CONTAINER:"metrics.metrics.container"},STATION:{SF6:"status.platform.stationsf6",OXYGEN:"status.platform.stationoxygen",HUMIDITY:"status.platform.stationhumidity",PRESSURE:"status.platform.stationpressure",RAINFALL:"status.platform.stationrainfall",WINDSPEED:"status.platform.stationwindspeed",TEMPERATURE:"status.platform.stationtemperature",WINDDIRECTION:"status.platform.stationwinddirection"},INTERFACE:{ANALYSIS:"analyse.pic.result",ALGORITHM:"algorithm.update.result"},PATROL_DEVICE:{BATTERY:"status.platform.battery",MILEAGE:"status.platform.mileage",GEOGRAPHY:"status.platform.coordinate_geography",COORDINATE:"status.platform.coordinate",COORDINATES:"status.platform.coordinates",ELECTRICITY:"status.platform.electricity",PTZYAWANGLE:"status.platform.ptzyawangle",PTZELEVATION:"status.platform.ptzelevation",PTZROLLANGLE:"status.platform.ptzrollangle",VERTICAL_SPEED:"status.platform.verticalspeed",HORIZONTAL_SPEED:"status.platform.horizontalspeed",FAULT_ALARM:"status.platform.faultalarm",LOW_BATTERY:"status.platform.lowbattery",CONTROL_MODE:"status.platform.controlmode",COMM_ABNORMAL:"status.platform.commabnormal",RUNNING_STATE:"status.platform.runningstate",CONTROL_STATUS:"status.platform.controlstatus",DRIVE_EXCEPTION:"status.platform.driveexception",TRANSPORT_STATUS:"status.platform.transportstatus",ULTRASONIC_STOPPING:"status.platform.ultrasonicstopping"}};var Wn={};/*!
|
|
10
10
|
* vite-plugin-qiankun.js v1.0.14
|
|
11
11
|
* (c) 2021-2022 Teng Mao Qing
|
|
12
12
|
* Released under the MIT License.
|
|
13
|
-
*/Object.defineProperty(Wn,"__esModule",{value:!0});var ur=typeof window!="undefined"?window.proxy||window:{},ou=function(e){ur!=null&&ur.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),ur.qiankunName&&(window.moudleQiankunAppLifeCycles[ur.qiankunName]=e))};Wn.default=ou;var p1=Wn.qiankunWindow=ur;Wn.renderWithQiankun=ou;const d1="/",m1=p1||window;var $0,V0,W0;const ta=((W0=(V0=($0=m1.meta)==null?void 0:$0.vite)==null?void 0:V0.micro)==null?void 0:W0.type)||Vn.QIANKUN,au=ta===Vn.WUJIE,su=ta===Vn.QIANKUN,lu=ta===Vn.MICROAPP,v1=window.top!==window.self||au||su||lu;console.log("🚀 ~ isNested:",v1,au,su,lu);const y1=location.protocol==="https:";var K0,G0;const g1=((G0=(K0=window.meta)==null?void 0:K0.app)==null?void 0:G0.server_ip)||location.origin,x1=y1?"wss:":"ws:";var Q0,Y0;const b1=((Y0=(Q0=window.meta)==null?void 0:Q0.app)==null?void 0:Y0.server_port)||location.port,w1=location.origin;var X0,Z0,J0,el;(Z0=(X0=window==null?void 0:window.meta)==null?void 0:X0.graph)!=null&&Z0.savePath,(el=(J0=window==null?void 0:window.meta)==null?void 0:J0.graph)!=null&&el.templatePath;const hs=`${x1}//${location.host}/ws`,Ie=Re.create({baseURL:w1,timeout:window.REQUEST_TIMEOUT||3e4,withCredentials:!1,paramsSerializer:e=>Rp.stringify(e)});Ie.interceptors.request.use(e=>(e.headers["x-token"]="ewoglCJhbGcilDogpc3",e),e=>Promise.reject(e));Ie.interceptors.response.use(e=>{const{data:t}=e;return Promise.resolve(t)},e=>Promise.reject(e));function _1(e,t={},r={}){return new Promise(n=>{Ie.get(e,he({params:t},r)).then(l=>n({res:l,err:null})).catch(l=>n({res:null,err:l}))})}function E1(e,t={},r={}){return new Promise(n=>{Ie.post(e,t,r).then(l=>n({res:l,err:null})).catch(l=>n({res:null,err:l}))})}function A1(e,t={},r={}){return Ie.get(e,he({params:t},r))}function C1(e,t={},r={}){return Ie.post(e,t,r)}function S1(e,t={}){return Ie.get(`/filehandle/${e}`,{params:t})}function B1(e,t={},r={}){return Ie.post(`/filehandle/${e}`,t,r)}function k1(e,t={}){return Ie.get(`/user/${e}`,{params:t})}function T1(e,t={},r={}){return Ie.post(`/user/${e}`,t,r)}function F1(e,t={}){return Ie.get(`${e}`,t.local?{params:t,baseURL:d1}:{params:t})}function I1(e,t={}){return Ie.get(`/media/${e}/`,{params:t})}function D1(e,t={},r={}){return Ie.post(`/media/${e}/`,t,r)}function R1(e,t={}){return Ie.get(`/common/${e}/`,{params:t})}function O1(e,t={},r={}){return Ie.post(`/common/${e}/`,t,r)}function P1(e,t={}){return Ie.get(`/history/${e}`,{params:t})}function M1(e,t={},r={}){return Ie.post(`/history/${e}`,t,r)}function N1(e,t={}){return Ie.get(`/scada/${e}`,{params:t})}function L1(e,t={},r={}){return Ie.post(`/scada/${e}`,t,r)}function U1(e,t={}){return Ie.get(`/common/factory/${e}`,{params:t})}function z1(e,t={},r={}){return Ie.post(`/common/factory/${e}`,t,r)}function q1(e,t={}){return Ie.get(`/factory/${e}`,{params:t})}function j1(e,t={},r={}){return Ie.post(`/factory/${e}`,t,r)}const No={getApi:_1,postApi:E1,getFileApi:S1,postFileApi:B1,getBaseApi:A1,postBaseApi:C1,getUserApi:k1,postUserApi:T1,getGraphApi:F1,getMediaApi:I1,postMediaApi:D1,getScadaApi:N1,postScadaApi:L1,getCommonApi:R1,postCommonApi:O1,getHistoryApi:P1,postHistoryApi:M1,getFactoryApi:q1,postFactoryApi:j1,getCommonFactoryApi:U1,postCommonFactoryApi:z1};function H1(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(l){l(r)}),(n=e.get("*"))&&n.slice().map(function(l){l(t,r)})}}}const Lo=H1();function ps(e){return Object.prototype.toString.call(e).slice(8,-1)}function ds(e){if(typeof e!="string")return!1;const t=/^-?\d+(\.\d+)?$/;return e.trim()!==""&&t.test(e.trim())}var $1={exports:{}};function Br(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 Li={exports:{}},ms;function Ae(){return ms||(ms=1,function(e,t){(function(r,n){e.exports=n()})(xe,function(){var r=r||function(n,l){var o;if(typeof window!="undefined"&&window.crypto&&(o=window.crypto),typeof self!="undefined"&&self.crypto&&(o=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window!="undefined"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof xe!="undefined"&&xe.crypto&&(o=xe.crypto),!o&&typeof Br=="function")try{o=ll}catch(x){}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(x){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(x){}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function x(){}return function(y){var w;return x.prototype=y,w=new x,x.prototype=null,w}}(),h={},a=h.lib={},i=a.Base=function(){return{extend:function(x){var y=u(this);return x&&y.mixIn(x),(!y.hasOwnProperty("init")||this.init===y.init)&&(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var y in x)x.hasOwnProperty(y)&&(this[y]=x[y]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=a.WordArray=i.extend({init:function(x,y){x=this.words=x||[],y!=l?this.sigBytes=y:this.sigBytes=x.length*4},toString:function(x){return(x||f).stringify(this)},concat:function(x){var y=this.words,w=x.words,F=this.sigBytes,T=x.sigBytes;if(this.clamp(),F%4)for(var I=0;I<T;I++){var D=w[I>>>2]>>>24-I%4*8&255;y[F+I>>>2]|=D<<24-(F+I)%4*8}else for(var X=0;X<T;X+=4)y[F+X>>>2]=w[X>>>2];return this.sigBytes+=T,this},clamp:function(){var x=this.words,y=this.sigBytes;x[y>>>2]&=4294967295<<32-y%4*8,x.length=n.ceil(y/4)},clone:function(){var x=i.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var y=[],w=0;w<x;w+=4)y.push(s());return new d.init(y,x)}}),c=h.enc={},f=c.Hex={stringify:function(x){for(var y=x.words,w=x.sigBytes,F=[],T=0;T<w;T++){var I=y[T>>>2]>>>24-T%4*8&255;F.push((I>>>4).toString(16)),F.push((I&15).toString(16))}return F.join("")},parse:function(x){for(var y=x.length,w=[],F=0;F<y;F+=2)w[F>>>3]|=parseInt(x.substr(F,2),16)<<24-F%8*4;return new d.init(w,y/2)}},p=c.Latin1={stringify:function(x){for(var y=x.words,w=x.sigBytes,F=[],T=0;T<w;T++){var I=y[T>>>2]>>>24-T%4*8&255;F.push(String.fromCharCode(I))}return F.join("")},parse:function(x){for(var y=x.length,w=[],F=0;F<y;F++)w[F>>>2]|=(x.charCodeAt(F)&255)<<24-F%4*8;return new d.init(w,y)}},v=c.Utf8={stringify:function(x){try{return decodeURIComponent(escape(p.stringify(x)))}catch(y){throw new Error("Malformed UTF-8 data")}},parse:function(x){return p.parse(unescape(encodeURIComponent(x)))}},m=a.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=v.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var y,w=this._data,F=w.words,T=w.sigBytes,I=this.blockSize,D=I*4,X=T/D;x?X=n.ceil(X):X=n.max((X|0)-this._minBufferSize,0);var K=X*I,E=n.min(K*4,T);if(K){for(var A=0;A<K;A+=I)this._doProcessBlock(F,A);y=F.splice(0,K),w.sigBytes-=E}return new d.init(y,E)},clone:function(){var x=i.clone.call(this);return x._data=this._data.clone(),x},_minBufferSize:0});a.Hasher=m.extend({cfg:i.extend(),init:function(x){this.cfg=this.cfg.extend(x),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(x){return this._append(x),this._process(),this},finalize:function(x){x&&this._append(x);var y=this._doFinalize();return y},blockSize:16,_createHelper:function(x){return function(y,w){return new x.init(w).finalize(y)}},_createHmacHelper:function(x){return function(y,w){return new g.HMAC.init(x,w).finalize(y)}}});var g=h.algo={};return h}(Math);return r})}(Li)),Li.exports}var Ui={exports:{}},vs;function Kn(){return vs||(vs=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(n){var l=r,o=l.lib,s=o.Base,u=o.WordArray,h=l.x64={};h.Word=s.extend({init:function(a,i){this.high=a,this.low=i}}),h.WordArray=s.extend({init:function(a,i){a=this.words=a||[],i!=n?this.sigBytes=i:this.sigBytes=a.length*8},toX32:function(){for(var a=this.words,i=a.length,d=[],c=0;c<i;c++){var f=a[c];d.push(f.high),d.push(f.low)}return u.create(d,this.sigBytes)},clone:function(){for(var a=s.clone.call(this),i=a.words=this.words.slice(0),d=i.length,c=0;c<d;c++)i[c]=i[c].clone();return a}})}(),r})}(Ui)),Ui.exports}var zi={exports:{}},ys;function V1(){return ys||(ys=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,l=n.lib,o=l.WordArray,s=o.init,u=o.init=function(h){if(h instanceof ArrayBuffer&&(h=new Uint8Array(h)),(h instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&h instanceof Uint8ClampedArray||h instanceof Int16Array||h instanceof Uint16Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array)&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),h instanceof Uint8Array){for(var a=h.byteLength,i=[],d=0;d<a;d++)i[d>>>2]|=h[d]<<24-d%4*8;s.call(this,i,a)}else s.apply(this,arguments)};u.prototype=o}}(),r.lib.WordArray})}(zi)),zi.exports}var qi={exports:{}},gs;function W1(){return gs||(gs=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.WordArray,s=n.enc;s.Utf16=s.Utf16BE={stringify:function(h){for(var a=h.words,i=h.sigBytes,d=[],c=0;c<i;c+=2){var f=a[c>>>2]>>>16-c%4*8&65535;d.push(String.fromCharCode(f))}return d.join("")},parse:function(h){for(var a=h.length,i=[],d=0;d<a;d++)i[d>>>1]|=h.charCodeAt(d)<<16-d%2*16;return o.create(i,a*2)}},s.Utf16LE={stringify:function(h){for(var a=h.words,i=h.sigBytes,d=[],c=0;c<i;c+=2){var f=u(a[c>>>2]>>>16-c%4*8&65535);d.push(String.fromCharCode(f))}return d.join("")},parse:function(h){for(var a=h.length,i=[],d=0;d<a;d++)i[d>>>1]|=u(h.charCodeAt(d)<<16-d%2*16);return o.create(i,a*2)}};function u(h){return h<<8&4278255360|h>>>8&16711935}}(),r.enc.Utf16})}(qi)),qi.exports}var ji={exports:{}},xs;function Zt(){return xs||(xs=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.WordArray,s=n.enc;s.Base64={stringify:function(h){var a=h.words,i=h.sigBytes,d=this._map;h.clamp();for(var c=[],f=0;f<i;f+=3)for(var p=a[f>>>2]>>>24-f%4*8&255,v=a[f+1>>>2]>>>24-(f+1)%4*8&255,m=a[f+2>>>2]>>>24-(f+2)%4*8&255,g=p<<16|v<<8|m,x=0;x<4&&f+x*.75<i;x++)c.push(d.charAt(g>>>6*(3-x)&63));var y=d.charAt(64);if(y)for(;c.length%4;)c.push(y);return c.join("")},parse:function(h){var a=h.length,i=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var c=0;c<i.length;c++)d[i.charCodeAt(c)]=c}var f=i.charAt(64);if(f){var p=h.indexOf(f);p!==-1&&(a=p)}return u(h,a,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(h,a,i){for(var d=[],c=0,f=0;f<a;f++)if(f%4){var p=i[h.charCodeAt(f-1)]<<f%4*2,v=i[h.charCodeAt(f)]>>>6-f%4*2,m=p|v;d[c>>>2]|=m<<24-c%4*8,c++}return o.create(d,c)}}(),r.enc.Base64})}(ji)),ji.exports}var Hi={exports:{}},bs;function K1(){return bs||(bs=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.WordArray,s=n.enc;s.Base64url={stringify:function(h,a){a===void 0&&(a=!0);var i=h.words,d=h.sigBytes,c=a?this._safe_map:this._map;h.clamp();for(var f=[],p=0;p<d;p+=3)for(var v=i[p>>>2]>>>24-p%4*8&255,m=i[p+1>>>2]>>>24-(p+1)%4*8&255,g=i[p+2>>>2]>>>24-(p+2)%4*8&255,x=v<<16|m<<8|g,y=0;y<4&&p+y*.75<d;y++)f.push(c.charAt(x>>>6*(3-y)&63));var w=c.charAt(64);if(w)for(;f.length%4;)f.push(w);return f.join("")},parse:function(h,a){a===void 0&&(a=!0);var i=h.length,d=a?this._safe_map:this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var f=0;f<d.length;f++)c[d.charCodeAt(f)]=f}var p=d.charAt(64);if(p){var v=h.indexOf(p);v!==-1&&(i=v)}return u(h,i,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function u(h,a,i){for(var d=[],c=0,f=0;f<a;f++)if(f%4){var p=i[h.charCodeAt(f-1)]<<f%4*2,v=i[h.charCodeAt(f)]>>>6-f%4*2,m=p|v;d[c>>>2]|=m<<24-c%4*8,c++}return o.create(d,c)}}(),r.enc.Base64url})}(Hi)),Hi.exports}var $i={exports:{}},ws;function Jt(){return ws||(ws=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(n){var l=r,o=l.lib,s=o.WordArray,u=o.Hasher,h=l.algo,a=[];(function(){for(var v=0;v<64;v++)a[v]=n.abs(n.sin(v+1))*4294967296|0})();var i=h.MD5=u.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,m){for(var g=0;g<16;g++){var x=m+g,y=v[x];v[x]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var w=this._hash.words,F=v[m+0],T=v[m+1],I=v[m+2],D=v[m+3],X=v[m+4],K=v[m+5],E=v[m+6],A=v[m+7],C=v[m+8],B=v[m+9],U=v[m+10],q=v[m+11],Z=v[m+12],$=v[m+13],N=v[m+14],V=v[m+15],M=w[0],O=w[1],H=w[2],W=w[3];M=d(M,O,H,W,F,7,a[0]),W=d(W,M,O,H,T,12,a[1]),H=d(H,W,M,O,I,17,a[2]),O=d(O,H,W,M,D,22,a[3]),M=d(M,O,H,W,X,7,a[4]),W=d(W,M,O,H,K,12,a[5]),H=d(H,W,M,O,E,17,a[6]),O=d(O,H,W,M,A,22,a[7]),M=d(M,O,H,W,C,7,a[8]),W=d(W,M,O,H,B,12,a[9]),H=d(H,W,M,O,U,17,a[10]),O=d(O,H,W,M,q,22,a[11]),M=d(M,O,H,W,Z,7,a[12]),W=d(W,M,O,H,$,12,a[13]),H=d(H,W,M,O,N,17,a[14]),O=d(O,H,W,M,V,22,a[15]),M=c(M,O,H,W,T,5,a[16]),W=c(W,M,O,H,E,9,a[17]),H=c(H,W,M,O,q,14,a[18]),O=c(O,H,W,M,F,20,a[19]),M=c(M,O,H,W,K,5,a[20]),W=c(W,M,O,H,U,9,a[21]),H=c(H,W,M,O,V,14,a[22]),O=c(O,H,W,M,X,20,a[23]),M=c(M,O,H,W,B,5,a[24]),W=c(W,M,O,H,N,9,a[25]),H=c(H,W,M,O,D,14,a[26]),O=c(O,H,W,M,C,20,a[27]),M=c(M,O,H,W,$,5,a[28]),W=c(W,M,O,H,I,9,a[29]),H=c(H,W,M,O,A,14,a[30]),O=c(O,H,W,M,Z,20,a[31]),M=f(M,O,H,W,K,4,a[32]),W=f(W,M,O,H,C,11,a[33]),H=f(H,W,M,O,q,16,a[34]),O=f(O,H,W,M,N,23,a[35]),M=f(M,O,H,W,T,4,a[36]),W=f(W,M,O,H,X,11,a[37]),H=f(H,W,M,O,A,16,a[38]),O=f(O,H,W,M,U,23,a[39]),M=f(M,O,H,W,$,4,a[40]),W=f(W,M,O,H,F,11,a[41]),H=f(H,W,M,O,D,16,a[42]),O=f(O,H,W,M,E,23,a[43]),M=f(M,O,H,W,B,4,a[44]),W=f(W,M,O,H,Z,11,a[45]),H=f(H,W,M,O,V,16,a[46]),O=f(O,H,W,M,I,23,a[47]),M=p(M,O,H,W,F,6,a[48]),W=p(W,M,O,H,A,10,a[49]),H=p(H,W,M,O,N,15,a[50]),O=p(O,H,W,M,K,21,a[51]),M=p(M,O,H,W,Z,6,a[52]),W=p(W,M,O,H,D,10,a[53]),H=p(H,W,M,O,U,15,a[54]),O=p(O,H,W,M,T,21,a[55]),M=p(M,O,H,W,C,6,a[56]),W=p(W,M,O,H,V,10,a[57]),H=p(H,W,M,O,E,15,a[58]),O=p(O,H,W,M,$,21,a[59]),M=p(M,O,H,W,X,6,a[60]),W=p(W,M,O,H,q,10,a[61]),H=p(H,W,M,O,I,15,a[62]),O=p(O,H,W,M,B,21,a[63]),w[0]=w[0]+M|0,w[1]=w[1]+O|0,w[2]=w[2]+H|0,w[3]=w[3]+W|0},_doFinalize:function(){var v=this._data,m=v.words,g=this._nDataBytes*8,x=v.sigBytes*8;m[x>>>5]|=128<<24-x%32;var y=n.floor(g/4294967296),w=g;m[(x+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,m[(x+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,v.sigBytes=(m.length+1)*4,this._process();for(var F=this._hash,T=F.words,I=0;I<4;I++){var D=T[I];T[I]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return F},clone:function(){var v=u.clone.call(this);return v._hash=this._hash.clone(),v}});function d(v,m,g,x,y,w,F){var T=v+(m&g|~m&x)+y+F;return(T<<w|T>>>32-w)+m}function c(v,m,g,x,y,w,F){var T=v+(m&x|g&~x)+y+F;return(T<<w|T>>>32-w)+m}function f(v,m,g,x,y,w,F){var T=v+(m^g^x)+y+F;return(T<<w|T>>>32-w)+m}function p(v,m,g,x,y,w,F){var T=v+(g^(m|~x))+y+F;return(T<<w|T>>>32-w)+m}l.MD5=u._createHelper(i),l.HmacMD5=u._createHmacHelper(i)}(Math),r.MD5})}($i)),$i.exports}var Vi={exports:{}},_s;function uu(){return _s||(_s=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.WordArray,s=l.Hasher,u=n.algo,h=[],a=u.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(i,d){for(var c=this._hash.words,f=c[0],p=c[1],v=c[2],m=c[3],g=c[4],x=0;x<80;x++){if(x<16)h[x]=i[d+x]|0;else{var y=h[x-3]^h[x-8]^h[x-14]^h[x-16];h[x]=y<<1|y>>>31}var w=(f<<5|f>>>27)+g+h[x];x<20?w+=(p&v|~p&m)+1518500249:x<40?w+=(p^v^m)+1859775393:x<60?w+=(p&v|p&m|v&m)-1894007588:w+=(p^v^m)-899497514,g=m,m=v,v=p<<30|p>>>2,p=f,f=w}c[0]=c[0]+f|0,c[1]=c[1]+p|0,c[2]=c[2]+v|0,c[3]=c[3]+m|0,c[4]=c[4]+g|0},_doFinalize:function(){var i=this._data,d=i.words,c=this._nDataBytes*8,f=i.sigBytes*8;return d[f>>>5]|=128<<24-f%32,d[(f+64>>>9<<4)+14]=Math.floor(c/4294967296),d[(f+64>>>9<<4)+15]=c,i.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var i=s.clone.call(this);return i._hash=this._hash.clone(),i}});n.SHA1=s._createHelper(a),n.HmacSHA1=s._createHmacHelper(a)}(),r.SHA1})}(Vi)),Vi.exports}var Wi={exports:{}},Es;function ra(){return Es||(Es=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(n){var l=r,o=l.lib,s=o.WordArray,u=o.Hasher,h=l.algo,a=[],i=[];(function(){function f(g){for(var x=n.sqrt(g),y=2;y<=x;y++)if(!(g%y))return!1;return!0}function p(g){return(g-(g|0))*4294967296|0}for(var v=2,m=0;m<64;)f(v)&&(m<8&&(a[m]=p(n.pow(v,1/2))),i[m]=p(n.pow(v,1/3)),m++),v++})();var d=[],c=h.SHA256=u.extend({_doReset:function(){this._hash=new s.init(a.slice(0))},_doProcessBlock:function(f,p){for(var v=this._hash.words,m=v[0],g=v[1],x=v[2],y=v[3],w=v[4],F=v[5],T=v[6],I=v[7],D=0;D<64;D++){if(D<16)d[D]=f[p+D]|0;else{var X=d[D-15],K=(X<<25|X>>>7)^(X<<14|X>>>18)^X>>>3,E=d[D-2],A=(E<<15|E>>>17)^(E<<13|E>>>19)^E>>>10;d[D]=K+d[D-7]+A+d[D-16]}var C=w&F^~w&T,B=m&g^m&x^g&x,U=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),q=(w<<26|w>>>6)^(w<<21|w>>>11)^(w<<7|w>>>25),Z=I+q+C+i[D]+d[D],$=U+B;I=T,T=F,F=w,w=y+Z|0,y=x,x=g,g=m,m=Z+$|0}v[0]=v[0]+m|0,v[1]=v[1]+g|0,v[2]=v[2]+x|0,v[3]=v[3]+y|0,v[4]=v[4]+w|0,v[5]=v[5]+F|0,v[6]=v[6]+T|0,v[7]=v[7]+I|0},_doFinalize:function(){var f=this._data,p=f.words,v=this._nDataBytes*8,m=f.sigBytes*8;return p[m>>>5]|=128<<24-m%32,p[(m+64>>>9<<4)+14]=n.floor(v/4294967296),p[(m+64>>>9<<4)+15]=v,f.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var f=u.clone.call(this);return f._hash=this._hash.clone(),f}});l.SHA256=u._createHelper(c),l.HmacSHA256=u._createHmacHelper(c)}(Math),r.SHA256})}(Wi)),Wi.exports}var Ki={exports:{}},As;function G1(){return As||(As=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),ra())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.WordArray,s=n.algo,u=s.SHA256,h=s.SHA224=u.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=u._doFinalize.call(this);return a.sigBytes-=4,a}});n.SHA224=u._createHelper(h),n.HmacSHA224=u._createHmacHelper(h)}(),r.SHA224})}(Ki)),Ki.exports}var Gi={exports:{}},Cs;function cu(){return Cs||(Cs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Kn())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.Hasher,s=n.x64,u=s.Word,h=s.WordArray,a=n.algo;function i(){return u.create.apply(u,arguments)}var d=[i(1116352408,3609767458),i(1899447441,602891725),i(3049323471,3964484399),i(3921009573,2173295548),i(961987163,4081628472),i(1508970993,3053834265),i(2453635748,2937671579),i(2870763221,3664609560),i(3624381080,2734883394),i(310598401,1164996542),i(607225278,1323610764),i(1426881987,3590304994),i(1925078388,4068182383),i(2162078206,991336113),i(2614888103,633803317),i(3248222580,3479774868),i(3835390401,2666613458),i(4022224774,944711139),i(264347078,2341262773),i(604807628,2007800933),i(770255983,1495990901),i(1249150122,1856431235),i(1555081692,3175218132),i(1996064986,2198950837),i(2554220882,3999719339),i(2821834349,766784016),i(2952996808,2566594879),i(3210313671,3203337956),i(3336571891,1034457026),i(3584528711,2466948901),i(113926993,3758326383),i(338241895,168717936),i(666307205,1188179964),i(773529912,1546045734),i(1294757372,1522805485),i(1396182291,2643833823),i(1695183700,2343527390),i(1986661051,1014477480),i(2177026350,1206759142),i(2456956037,344077627),i(2730485921,1290863460),i(2820302411,3158454273),i(3259730800,3505952657),i(3345764771,106217008),i(3516065817,3606008344),i(3600352804,1432725776),i(4094571909,1467031594),i(275423344,851169720),i(430227734,3100823752),i(506948616,1363258195),i(659060556,3750685593),i(883997877,3785050280),i(958139571,3318307427),i(1322822218,3812723403),i(1537002063,2003034995),i(1747873779,3602036899),i(1955562222,1575990012),i(2024104815,1125592928),i(2227730452,2716904306),i(2361852424,442776044),i(2428436474,593698344),i(2756734187,3733110249),i(3204031479,2999351573),i(3329325298,3815920427),i(3391569614,3928383900),i(3515267271,566280711),i(3940187606,3454069534),i(4118630271,4000239992),i(116418474,1914138554),i(174292421,2731055270),i(289380356,3203993006),i(460393269,320620315),i(685471733,587496836),i(852142971,1086792851),i(1017036298,365543100),i(1126000580,2618297676),i(1288033470,3409855158),i(1501505948,4234509866),i(1607167915,987167468),i(1816402316,1246189591)],c=[];(function(){for(var p=0;p<80;p++)c[p]=i()})();var f=a.SHA512=o.extend({_doReset:function(){this._hash=new h.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(p,v){for(var m=this._hash.words,g=m[0],x=m[1],y=m[2],w=m[3],F=m[4],T=m[5],I=m[6],D=m[7],X=g.high,K=g.low,E=x.high,A=x.low,C=y.high,B=y.low,U=w.high,q=w.low,Z=F.high,$=F.low,N=T.high,V=T.low,M=I.high,O=I.low,H=D.high,W=D.low,ee=X,oe=K,ie=E,ae=A,b=C,_=B,R=U,G=q,J=Z,te=$,se=N,j=V,S=M,k=O,Y=H,ne=W,ue=0;ue<80;ue++){var ce,me,ge=c[ue];if(ue<16)me=ge.high=p[v+ue*2]|0,ce=ge.low=p[v+ue*2+1]|0;else{var Ce=c[ue-15],Te=Ce.high,Se=Ce.low,St=(Te>>>1|Se<<31)^(Te>>>8|Se<<24)^Te>>>7,Pt=(Se>>>1|Te<<31)^(Se>>>8|Te<<24)^(Se>>>7|Te<<25),Mt=c[ue-2],Bt=Mt.high,Nt=Mt.low,Qn=(Bt>>>19|Nt<<13)^(Bt<<3|Nt>>>29)^Bt>>>6,rr=(Nt>>>19|Bt<<13)^(Nt<<3|Bt>>>29)^(Nt>>>6|Bt<<26),Wr=c[ue-7],Kr=Wr.high,Yn=Wr.low,Er=c[ue-16],Xn=Er.high,Gr=Er.low;ce=Pt+Yn,me=St+Kr+(ce>>>0<Pt>>>0?1:0),ce=ce+rr,me=me+Qn+(ce>>>0<rr>>>0?1:0),ce=ce+Gr,me=me+Xn+(ce>>>0<Gr>>>0?1:0),ge.high=me,ge.low=ce}var Zn=J&se^~J&S,Qr=te&j^~te&k,Jn=ee&ie^ee&b^ie&b,ei=oe&ae^oe&_^ae&_,ti=(ee>>>28|oe<<4)^(ee<<30|oe>>>2)^(ee<<25|oe>>>7),Yr=(oe>>>28|ee<<4)^(oe<<30|ee>>>2)^(oe<<25|ee>>>7),ri=(J>>>14|te<<18)^(J>>>18|te<<14)^(J<<23|te>>>9),ni=(te>>>14|J<<18)^(te>>>18|J<<14)^(te<<23|J>>>9),Xr=d[ue],ii=Xr.high,Zr=Xr.low,We=ne+ni,pt=Y+ri+(We>>>0<ne>>>0?1:0),We=We+Qr,pt=pt+Zn+(We>>>0<Qr>>>0?1:0),We=We+Zr,pt=pt+ii+(We>>>0<Zr>>>0?1:0),We=We+ce,pt=pt+me+(We>>>0<ce>>>0?1:0),Jr=Yr+ei,oi=ti+Jn+(Jr>>>0<Yr>>>0?1:0);Y=S,ne=k,S=se,k=j,se=J,j=te,te=G+We|0,J=R+pt+(te>>>0<G>>>0?1:0)|0,R=b,G=_,b=ie,_=ae,ie=ee,ae=oe,oe=We+Jr|0,ee=pt+oi+(oe>>>0<We>>>0?1:0)|0}K=g.low=K+oe,g.high=X+ee+(K>>>0<oe>>>0?1:0),A=x.low=A+ae,x.high=E+ie+(A>>>0<ae>>>0?1:0),B=y.low=B+_,y.high=C+b+(B>>>0<_>>>0?1:0),q=w.low=q+G,w.high=U+R+(q>>>0<G>>>0?1:0),$=F.low=$+te,F.high=Z+J+($>>>0<te>>>0?1:0),V=T.low=V+j,T.high=N+se+(V>>>0<j>>>0?1:0),O=I.low=O+k,I.high=M+S+(O>>>0<k>>>0?1:0),W=D.low=W+ne,D.high=H+Y+(W>>>0<ne>>>0?1:0)},_doFinalize:function(){var p=this._data,v=p.words,m=this._nDataBytes*8,g=p.sigBytes*8;v[g>>>5]|=128<<24-g%32,v[(g+128>>>10<<5)+30]=Math.floor(m/4294967296),v[(g+128>>>10<<5)+31]=m,p.sigBytes=v.length*4,this._process();var x=this._hash.toX32();return x},clone:function(){var p=o.clone.call(this);return p._hash=this._hash.clone(),p},blockSize:1024/32});n.SHA512=o._createHelper(f),n.HmacSHA512=o._createHmacHelper(f)}(),r.SHA512})}(Gi)),Gi.exports}var Qi={exports:{}},Ss;function Q1(){return Ss||(Ss=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Kn(),cu())})(xe,function(r){return function(){var n=r,l=n.x64,o=l.Word,s=l.WordArray,u=n.algo,h=u.SHA512,a=u.SHA384=h.extend({_doReset:function(){this._hash=new s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var i=h._doFinalize.call(this);return i.sigBytes-=16,i}});n.SHA384=h._createHelper(a),n.HmacSHA384=h._createHmacHelper(a)}(),r.SHA384})}(Qi)),Qi.exports}var Yi={exports:{}},Bs;function Y1(){return Bs||(Bs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Kn())})(xe,function(r){return function(n){var l=r,o=l.lib,s=o.WordArray,u=o.Hasher,h=l.x64,a=h.Word,i=l.algo,d=[],c=[],f=[];(function(){for(var m=1,g=0,x=0;x<24;x++){d[m+5*g]=(x+1)*(x+2)/2%64;var y=g%5,w=(2*m+3*g)%5;m=y,g=w}for(var m=0;m<5;m++)for(var g=0;g<5;g++)c[m+5*g]=g+(2*m+3*g)%5*5;for(var F=1,T=0;T<24;T++){for(var I=0,D=0,X=0;X<7;X++){if(F&1){var K=(1<<X)-1;K<32?D^=1<<K:I^=1<<K-32}F&128?F=F<<1^113:F<<=1}f[T]=a.create(I,D)}})();var p=[];(function(){for(var m=0;m<25;m++)p[m]=a.create()})();var v=i.SHA3=u.extend({cfg:u.cfg.extend({outputLength:512}),_doReset:function(){for(var m=this._state=[],g=0;g<25;g++)m[g]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(m,g){for(var x=this._state,y=this.blockSize/2,w=0;w<y;w++){var F=m[g+2*w],T=m[g+2*w+1];F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var I=x[w];I.high^=T,I.low^=F}for(var D=0;D<24;D++){for(var X=0;X<5;X++){for(var K=0,E=0,A=0;A<5;A++){var I=x[X+5*A];K^=I.high,E^=I.low}var C=p[X];C.high=K,C.low=E}for(var X=0;X<5;X++)for(var B=p[(X+4)%5],U=p[(X+1)%5],q=U.high,Z=U.low,K=B.high^(q<<1|Z>>>31),E=B.low^(Z<<1|q>>>31),A=0;A<5;A++){var I=x[X+5*A];I.high^=K,I.low^=E}for(var $=1;$<25;$++){var K,E,I=x[$],N=I.high,V=I.low,M=d[$];M<32?(K=N<<M|V>>>32-M,E=V<<M|N>>>32-M):(K=V<<M-32|N>>>64-M,E=N<<M-32|V>>>64-M);var O=p[c[$]];O.high=K,O.low=E}var H=p[0],W=x[0];H.high=W.high,H.low=W.low;for(var X=0;X<5;X++)for(var A=0;A<5;A++){var $=X+5*A,I=x[$],ee=p[$],oe=p[(X+1)%5+5*A],ie=p[(X+2)%5+5*A];I.high=ee.high^~oe.high&ie.high,I.low=ee.low^~oe.low&ie.low}var I=x[0],ae=f[D];I.high^=ae.high,I.low^=ae.low}},_doFinalize:function(){var m=this._data,g=m.words;this._nDataBytes*8;var x=m.sigBytes*8,y=this.blockSize*32;g[x>>>5]|=1<<24-x%32,g[(n.ceil((x+1)/y)*y>>>5)-1]|=128,m.sigBytes=g.length*4,this._process();for(var w=this._state,F=this.cfg.outputLength/8,T=F/8,I=[],D=0;D<T;D++){var X=w[D],K=X.high,E=X.low;K=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360,E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,I.push(E),I.push(K)}return new s.init(I,F)},clone:function(){for(var m=u.clone.call(this),g=m._state=this._state.slice(0),x=0;x<25;x++)g[x]=g[x].clone();return m}});l.SHA3=u._createHelper(v),l.HmacSHA3=u._createHmacHelper(v)}(Math),r.SHA3})}(Yi)),Yi.exports}var Xi={exports:{}},ks;function X1(){return ks||(ks=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){/** @preserve
|
|
13
|
+
*/Object.defineProperty(Wn,"__esModule",{value:!0});var ur=typeof window!="undefined"?window.proxy||window:{},Hl=function(e){ur!=null&&ur.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),ur.qiankunName&&(window.moudleQiankunAppLifeCycles[ur.qiankunName]=e))};Wn.default=Hl;var Xd=Wn.qiankunWindow=ur;Wn.renderWithQiankun=Hl;const Zd="/",Jd=Xd||window,ta=Jd.meta.vite.micro.type||Vn.QIANKUN,$l=ta===Vn.WUJIE,Vl=ta===Vn.QIANKUN,Wl=ta===Vn.MICROAPP,e1=window.top!==window.self||$l||Vl||Wl;console.log("🚀 ~ isNested:",e1,$l,Vl,Wl);const t1=location.protocol==="https:",r1=location.hostname,n1=t1?"wss:":"ws:",i1=location.port,o1=location.origin;window.meta.graph.savePath,window.meta.graph.templatePath,window.meta.graph.graphPenPath,window.meta.graph.graphImgUploadPath;const hs=`${n1}//${location.host}/ws`;var $0;const Ie=Re.create({baseURL:o1,timeout:(($0=window==null?void 0:window.axios)==null?void 0:$0.timeout)||12e4,withCredentials:!1,paramsSerializer:e=>yp.stringify(e)});Ie.interceptors.request.use(e=>(e.headers["x-token"]="ewoglCJhbGcilDogpc3",e),e=>Promise.reject(e));Ie.interceptors.response.use(e=>{const{data:t}=e;return Promise.resolve(t)},e=>Promise.reject(e));function a1(e,t={},r={}){return new Promise(n=>{Ie.get(e,he({params:t},r)).then(l=>n({res:l,err:null})).catch(l=>n({res:null,err:l}))})}function s1(e,t={},r={}){return new Promise(n=>{Ie.post(e,t,r).then(l=>n({res:l,err:null})).catch(l=>n({res:null,err:l}))})}function l1(e,t={},r={}){return Ie.get(e,he({params:t},r))}function u1(e,t={},r={}){return Ie.post(e,t,r)}function c1(e,t={}){return Ie.get(`/filehandle/${e}`,{params:t})}function f1(e,t={},r={}){return Ie.post(`/filehandle/${e}`,t,r)}function h1(e,t={}){return Ie.get(`/user/${e}`,{params:t})}function p1(e,t={},r={}){return Ie.post(`/user/${e}`,t,r)}function d1(e,t={}){return Ie.get(`${e}`,t.local?{params:t,baseURL:Zd}:{params:t})}function m1(e,t={}){return Ie.get(`/media/${e}/`,{params:t})}function v1(e,t={},r={}){return Ie.post(`/media/${e}/`,t,r)}function y1(e,t={}){return Ie.get(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${e}/`,{params:t})}function g1(e,t={},r={}){return Ie.post(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${e}/`,t,r)}function x1(e,t={}){return Ie.get(`/history/${e}`,{params:t})}function b1(e,t={},r={}){return Ie.post(`/history/${e}`,t,r)}function w1(e,t={}){return Ie.get(`/scada/${e}`,{params:t})}function _1(e,t={},r={}){return Ie.post(`/scada/${e}`,t,r)}function E1(e,t={}){return Ie.get(`/common/factory/${e}`,{params:t})}function A1(e,t={},r={}){return Ie.post(`/common/factory/${e}`,t,r)}function C1(e,t={}){return Ie.get(`/factory/${e}`,{params:t})}function S1(e,t={},r={}){return Ie.post(`/factory/${e}`,t,r)}const No={getApi:a1,postApi:s1,getFileApi:c1,postFileApi:f1,getBaseApi:l1,postBaseApi:u1,getUserApi:h1,postUserApi:p1,getGraphApi:d1,getMediaApi:m1,postMediaApi:v1,getScadaApi:w1,postScadaApi:_1,getCommonApi:y1,postCommonApi:g1,getHistoryApi:x1,postHistoryApi:b1,getFactoryApi:C1,postFactoryApi:S1,getCommonFactoryApi:E1,postCommonFactoryApi:A1};function B1(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(l){l(r)}),(n=e.get("*"))&&n.slice().map(function(l){l(t,r)})}}}const Lo=B1();function ps(e){return Object.prototype.toString.call(e).slice(8,-1)}function ds(e){if(typeof e!="string")return!1;const t=/^-?\d+(\.\d+)?$/;return e.trim()!==""&&t.test(e.trim())}var k1={exports:{}};function Br(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 Li={exports:{}},ms;function Ae(){return ms||(ms=1,function(e,t){(function(r,n){e.exports=n()})(xe,function(){var r=r||function(n,l){var o;if(typeof window!="undefined"&&window.crypto&&(o=window.crypto),typeof self!="undefined"&&self.crypto&&(o=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window!="undefined"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof xe!="undefined"&&xe.crypto&&(o=xe.crypto),!o&&typeof Br=="function")try{o=W0}catch(x){}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(x){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(x){}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function x(){}return function(y){var w;return x.prototype=y,w=new x,x.prototype=null,w}}(),h={},a=h.lib={},i=a.Base=function(){return{extend:function(x){var y=u(this);return x&&y.mixIn(x),(!y.hasOwnProperty("init")||this.init===y.init)&&(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var y in x)x.hasOwnProperty(y)&&(this[y]=x[y]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=a.WordArray=i.extend({init:function(x,y){x=this.words=x||[],y!=l?this.sigBytes=y:this.sigBytes=x.length*4},toString:function(x){return(x||f).stringify(this)},concat:function(x){var y=this.words,w=x.words,k=this.sigBytes,T=x.sigBytes;if(this.clamp(),k%4)for(var F=0;F<T;F++){var I=w[F>>>2]>>>24-F%4*8&255;y[k+F>>>2]|=I<<24-(k+F)%4*8}else for(var G=0;G<T;G+=4)y[k+G>>>2]=w[G>>>2];return this.sigBytes+=T,this},clamp:function(){var x=this.words,y=this.sigBytes;x[y>>>2]&=4294967295<<32-y%4*8,x.length=n.ceil(y/4)},clone:function(){var x=i.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var y=[],w=0;w<x;w+=4)y.push(s());return new d.init(y,x)}}),c=h.enc={},f=c.Hex={stringify:function(x){for(var y=x.words,w=x.sigBytes,k=[],T=0;T<w;T++){var F=y[T>>>2]>>>24-T%4*8&255;k.push((F>>>4).toString(16)),k.push((F&15).toString(16))}return k.join("")},parse:function(x){for(var y=x.length,w=[],k=0;k<y;k+=2)w[k>>>3]|=parseInt(x.substr(k,2),16)<<24-k%8*4;return new d.init(w,y/2)}},p=c.Latin1={stringify:function(x){for(var y=x.words,w=x.sigBytes,k=[],T=0;T<w;T++){var F=y[T>>>2]>>>24-T%4*8&255;k.push(String.fromCharCode(F))}return k.join("")},parse:function(x){for(var y=x.length,w=[],k=0;k<y;k++)w[k>>>2]|=(x.charCodeAt(k)&255)<<24-k%4*8;return new d.init(w,y)}},v=c.Utf8={stringify:function(x){try{return decodeURIComponent(escape(p.stringify(x)))}catch(y){throw new Error("Malformed UTF-8 data")}},parse:function(x){return p.parse(unescape(encodeURIComponent(x)))}},m=a.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=v.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var y,w=this._data,k=w.words,T=w.sigBytes,F=this.blockSize,I=F*4,G=T/I;x?G=n.ceil(G):G=n.max((G|0)-this._minBufferSize,0);var K=G*F,E=n.min(K*4,T);if(K){for(var A=0;A<K;A+=F)this._doProcessBlock(k,A);y=k.splice(0,K),w.sigBytes-=E}return new d.init(y,E)},clone:function(){var x=i.clone.call(this);return x._data=this._data.clone(),x},_minBufferSize:0});a.Hasher=m.extend({cfg:i.extend(),init:function(x){this.cfg=this.cfg.extend(x),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(x){return this._append(x),this._process(),this},finalize:function(x){x&&this._append(x);var y=this._doFinalize();return y},blockSize:16,_createHelper:function(x){return function(y,w){return new x.init(w).finalize(y)}},_createHmacHelper:function(x){return function(y,w){return new g.HMAC.init(x,w).finalize(y)}}});var g=h.algo={};return h}(Math);return r})}(Li)),Li.exports}var Ui={exports:{}},vs;function Kn(){return vs||(vs=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(n){var l=r,o=l.lib,s=o.Base,u=o.WordArray,h=l.x64={};h.Word=s.extend({init:function(a,i){this.high=a,this.low=i}}),h.WordArray=s.extend({init:function(a,i){a=this.words=a||[],i!=n?this.sigBytes=i:this.sigBytes=a.length*8},toX32:function(){for(var a=this.words,i=a.length,d=[],c=0;c<i;c++){var f=a[c];d.push(f.high),d.push(f.low)}return u.create(d,this.sigBytes)},clone:function(){for(var a=s.clone.call(this),i=a.words=this.words.slice(0),d=i.length,c=0;c<d;c++)i[c]=i[c].clone();return a}})}(),r})}(Ui)),Ui.exports}var zi={exports:{}},ys;function T1(){return ys||(ys=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,l=n.lib,o=l.WordArray,s=o.init,u=o.init=function(h){if(h instanceof ArrayBuffer&&(h=new Uint8Array(h)),(h instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&h instanceof Uint8ClampedArray||h instanceof Int16Array||h instanceof Uint16Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array)&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),h instanceof Uint8Array){for(var a=h.byteLength,i=[],d=0;d<a;d++)i[d>>>2]|=h[d]<<24-d%4*8;s.call(this,i,a)}else s.apply(this,arguments)};u.prototype=o}}(),r.lib.WordArray})}(zi)),zi.exports}var qi={exports:{}},gs;function F1(){return gs||(gs=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.WordArray,s=n.enc;s.Utf16=s.Utf16BE={stringify:function(h){for(var a=h.words,i=h.sigBytes,d=[],c=0;c<i;c+=2){var f=a[c>>>2]>>>16-c%4*8&65535;d.push(String.fromCharCode(f))}return d.join("")},parse:function(h){for(var a=h.length,i=[],d=0;d<a;d++)i[d>>>1]|=h.charCodeAt(d)<<16-d%2*16;return o.create(i,a*2)}},s.Utf16LE={stringify:function(h){for(var a=h.words,i=h.sigBytes,d=[],c=0;c<i;c+=2){var f=u(a[c>>>2]>>>16-c%4*8&65535);d.push(String.fromCharCode(f))}return d.join("")},parse:function(h){for(var a=h.length,i=[],d=0;d<a;d++)i[d>>>1]|=u(h.charCodeAt(d)<<16-d%2*16);return o.create(i,a*2)}};function u(h){return h<<8&4278255360|h>>>8&16711935}}(),r.enc.Utf16})}(qi)),qi.exports}var ji={exports:{}},xs;function Zt(){return xs||(xs=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.WordArray,s=n.enc;s.Base64={stringify:function(h){var a=h.words,i=h.sigBytes,d=this._map;h.clamp();for(var c=[],f=0;f<i;f+=3)for(var p=a[f>>>2]>>>24-f%4*8&255,v=a[f+1>>>2]>>>24-(f+1)%4*8&255,m=a[f+2>>>2]>>>24-(f+2)%4*8&255,g=p<<16|v<<8|m,x=0;x<4&&f+x*.75<i;x++)c.push(d.charAt(g>>>6*(3-x)&63));var y=d.charAt(64);if(y)for(;c.length%4;)c.push(y);return c.join("")},parse:function(h){var a=h.length,i=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var c=0;c<i.length;c++)d[i.charCodeAt(c)]=c}var f=i.charAt(64);if(f){var p=h.indexOf(f);p!==-1&&(a=p)}return u(h,a,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(h,a,i){for(var d=[],c=0,f=0;f<a;f++)if(f%4){var p=i[h.charCodeAt(f-1)]<<f%4*2,v=i[h.charCodeAt(f)]>>>6-f%4*2,m=p|v;d[c>>>2]|=m<<24-c%4*8,c++}return o.create(d,c)}}(),r.enc.Base64})}(ji)),ji.exports}var Hi={exports:{}},bs;function I1(){return bs||(bs=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.WordArray,s=n.enc;s.Base64url={stringify:function(h,a){a===void 0&&(a=!0);var i=h.words,d=h.sigBytes,c=a?this._safe_map:this._map;h.clamp();for(var f=[],p=0;p<d;p+=3)for(var v=i[p>>>2]>>>24-p%4*8&255,m=i[p+1>>>2]>>>24-(p+1)%4*8&255,g=i[p+2>>>2]>>>24-(p+2)%4*8&255,x=v<<16|m<<8|g,y=0;y<4&&p+y*.75<d;y++)f.push(c.charAt(x>>>6*(3-y)&63));var w=c.charAt(64);if(w)for(;f.length%4;)f.push(w);return f.join("")},parse:function(h,a){a===void 0&&(a=!0);var i=h.length,d=a?this._safe_map:this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var f=0;f<d.length;f++)c[d.charCodeAt(f)]=f}var p=d.charAt(64);if(p){var v=h.indexOf(p);v!==-1&&(i=v)}return u(h,i,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function u(h,a,i){for(var d=[],c=0,f=0;f<a;f++)if(f%4){var p=i[h.charCodeAt(f-1)]<<f%4*2,v=i[h.charCodeAt(f)]>>>6-f%4*2,m=p|v;d[c>>>2]|=m<<24-c%4*8,c++}return o.create(d,c)}}(),r.enc.Base64url})}(Hi)),Hi.exports}var $i={exports:{}},ws;function Jt(){return ws||(ws=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(n){var l=r,o=l.lib,s=o.WordArray,u=o.Hasher,h=l.algo,a=[];(function(){for(var v=0;v<64;v++)a[v]=n.abs(n.sin(v+1))*4294967296|0})();var i=h.MD5=u.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,m){for(var g=0;g<16;g++){var x=m+g,y=v[x];v[x]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var w=this._hash.words,k=v[m+0],T=v[m+1],F=v[m+2],I=v[m+3],G=v[m+4],K=v[m+5],E=v[m+6],A=v[m+7],S=v[m+8],D=v[m+9],P=v[m+10],j=v[m+11],Z=v[m+12],V=v[m+13],L=v[m+14],H=v[m+15],U=w[0],O=w[1],W=w[2],$=w[3];U=d(U,O,W,$,k,7,a[0]),$=d($,U,O,W,T,12,a[1]),W=d(W,$,U,O,F,17,a[2]),O=d(O,W,$,U,I,22,a[3]),U=d(U,O,W,$,G,7,a[4]),$=d($,U,O,W,K,12,a[5]),W=d(W,$,U,O,E,17,a[6]),O=d(O,W,$,U,A,22,a[7]),U=d(U,O,W,$,S,7,a[8]),$=d($,U,O,W,D,12,a[9]),W=d(W,$,U,O,P,17,a[10]),O=d(O,W,$,U,j,22,a[11]),U=d(U,O,W,$,Z,7,a[12]),$=d($,U,O,W,V,12,a[13]),W=d(W,$,U,O,L,17,a[14]),O=d(O,W,$,U,H,22,a[15]),U=c(U,O,W,$,T,5,a[16]),$=c($,U,O,W,E,9,a[17]),W=c(W,$,U,O,j,14,a[18]),O=c(O,W,$,U,k,20,a[19]),U=c(U,O,W,$,K,5,a[20]),$=c($,U,O,W,P,9,a[21]),W=c(W,$,U,O,H,14,a[22]),O=c(O,W,$,U,G,20,a[23]),U=c(U,O,W,$,D,5,a[24]),$=c($,U,O,W,L,9,a[25]),W=c(W,$,U,O,I,14,a[26]),O=c(O,W,$,U,S,20,a[27]),U=c(U,O,W,$,V,5,a[28]),$=c($,U,O,W,F,9,a[29]),W=c(W,$,U,O,A,14,a[30]),O=c(O,W,$,U,Z,20,a[31]),U=f(U,O,W,$,K,4,a[32]),$=f($,U,O,W,S,11,a[33]),W=f(W,$,U,O,j,16,a[34]),O=f(O,W,$,U,L,23,a[35]),U=f(U,O,W,$,T,4,a[36]),$=f($,U,O,W,G,11,a[37]),W=f(W,$,U,O,A,16,a[38]),O=f(O,W,$,U,P,23,a[39]),U=f(U,O,W,$,V,4,a[40]),$=f($,U,O,W,k,11,a[41]),W=f(W,$,U,O,I,16,a[42]),O=f(O,W,$,U,E,23,a[43]),U=f(U,O,W,$,D,4,a[44]),$=f($,U,O,W,Z,11,a[45]),W=f(W,$,U,O,H,16,a[46]),O=f(O,W,$,U,F,23,a[47]),U=p(U,O,W,$,k,6,a[48]),$=p($,U,O,W,A,10,a[49]),W=p(W,$,U,O,L,15,a[50]),O=p(O,W,$,U,K,21,a[51]),U=p(U,O,W,$,Z,6,a[52]),$=p($,U,O,W,I,10,a[53]),W=p(W,$,U,O,P,15,a[54]),O=p(O,W,$,U,T,21,a[55]),U=p(U,O,W,$,S,6,a[56]),$=p($,U,O,W,H,10,a[57]),W=p(W,$,U,O,E,15,a[58]),O=p(O,W,$,U,V,21,a[59]),U=p(U,O,W,$,G,6,a[60]),$=p($,U,O,W,j,10,a[61]),W=p(W,$,U,O,F,15,a[62]),O=p(O,W,$,U,D,21,a[63]),w[0]=w[0]+U|0,w[1]=w[1]+O|0,w[2]=w[2]+W|0,w[3]=w[3]+$|0},_doFinalize:function(){var v=this._data,m=v.words,g=this._nDataBytes*8,x=v.sigBytes*8;m[x>>>5]|=128<<24-x%32;var y=n.floor(g/4294967296),w=g;m[(x+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,m[(x+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,v.sigBytes=(m.length+1)*4,this._process();for(var k=this._hash,T=k.words,F=0;F<4;F++){var I=T[F];T[F]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return k},clone:function(){var v=u.clone.call(this);return v._hash=this._hash.clone(),v}});function d(v,m,g,x,y,w,k){var T=v+(m&g|~m&x)+y+k;return(T<<w|T>>>32-w)+m}function c(v,m,g,x,y,w,k){var T=v+(m&x|g&~x)+y+k;return(T<<w|T>>>32-w)+m}function f(v,m,g,x,y,w,k){var T=v+(m^g^x)+y+k;return(T<<w|T>>>32-w)+m}function p(v,m,g,x,y,w,k){var T=v+(g^(m|~x))+y+k;return(T<<w|T>>>32-w)+m}l.MD5=u._createHelper(i),l.HmacMD5=u._createHmacHelper(i)}(Math),r.MD5})}($i)),$i.exports}var Vi={exports:{}},_s;function Kl(){return _s||(_s=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.WordArray,s=l.Hasher,u=n.algo,h=[],a=u.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(i,d){for(var c=this._hash.words,f=c[0],p=c[1],v=c[2],m=c[3],g=c[4],x=0;x<80;x++){if(x<16)h[x]=i[d+x]|0;else{var y=h[x-3]^h[x-8]^h[x-14]^h[x-16];h[x]=y<<1|y>>>31}var w=(f<<5|f>>>27)+g+h[x];x<20?w+=(p&v|~p&m)+1518500249:x<40?w+=(p^v^m)+1859775393:x<60?w+=(p&v|p&m|v&m)-1894007588:w+=(p^v^m)-899497514,g=m,m=v,v=p<<30|p>>>2,p=f,f=w}c[0]=c[0]+f|0,c[1]=c[1]+p|0,c[2]=c[2]+v|0,c[3]=c[3]+m|0,c[4]=c[4]+g|0},_doFinalize:function(){var i=this._data,d=i.words,c=this._nDataBytes*8,f=i.sigBytes*8;return d[f>>>5]|=128<<24-f%32,d[(f+64>>>9<<4)+14]=Math.floor(c/4294967296),d[(f+64>>>9<<4)+15]=c,i.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var i=s.clone.call(this);return i._hash=this._hash.clone(),i}});n.SHA1=s._createHelper(a),n.HmacSHA1=s._createHmacHelper(a)}(),r.SHA1})}(Vi)),Vi.exports}var Wi={exports:{}},Es;function ra(){return Es||(Es=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){return function(n){var l=r,o=l.lib,s=o.WordArray,u=o.Hasher,h=l.algo,a=[],i=[];(function(){function f(g){for(var x=n.sqrt(g),y=2;y<=x;y++)if(!(g%y))return!1;return!0}function p(g){return(g-(g|0))*4294967296|0}for(var v=2,m=0;m<64;)f(v)&&(m<8&&(a[m]=p(n.pow(v,1/2))),i[m]=p(n.pow(v,1/3)),m++),v++})();var d=[],c=h.SHA256=u.extend({_doReset:function(){this._hash=new s.init(a.slice(0))},_doProcessBlock:function(f,p){for(var v=this._hash.words,m=v[0],g=v[1],x=v[2],y=v[3],w=v[4],k=v[5],T=v[6],F=v[7],I=0;I<64;I++){if(I<16)d[I]=f[p+I]|0;else{var G=d[I-15],K=(G<<25|G>>>7)^(G<<14|G>>>18)^G>>>3,E=d[I-2],A=(E<<15|E>>>17)^(E<<13|E>>>19)^E>>>10;d[I]=K+d[I-7]+A+d[I-16]}var S=w&k^~w&T,D=m&g^m&x^g&x,P=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),j=(w<<26|w>>>6)^(w<<21|w>>>11)^(w<<7|w>>>25),Z=F+j+S+i[I]+d[I],V=P+D;F=T,T=k,k=w,w=y+Z|0,y=x,x=g,g=m,m=Z+V|0}v[0]=v[0]+m|0,v[1]=v[1]+g|0,v[2]=v[2]+x|0,v[3]=v[3]+y|0,v[4]=v[4]+w|0,v[5]=v[5]+k|0,v[6]=v[6]+T|0,v[7]=v[7]+F|0},_doFinalize:function(){var f=this._data,p=f.words,v=this._nDataBytes*8,m=f.sigBytes*8;return p[m>>>5]|=128<<24-m%32,p[(m+64>>>9<<4)+14]=n.floor(v/4294967296),p[(m+64>>>9<<4)+15]=v,f.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var f=u.clone.call(this);return f._hash=this._hash.clone(),f}});l.SHA256=u._createHelper(c),l.HmacSHA256=u._createHmacHelper(c)}(Math),r.SHA256})}(Wi)),Wi.exports}var Ki={exports:{}},As;function D1(){return As||(As=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),ra())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.WordArray,s=n.algo,u=s.SHA256,h=s.SHA224=u.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=u._doFinalize.call(this);return a.sigBytes-=4,a}});n.SHA224=u._createHelper(h),n.HmacSHA224=u._createHmacHelper(h)}(),r.SHA224})}(Ki)),Ki.exports}var Gi={exports:{}},Cs;function Gl(){return Cs||(Cs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Kn())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.Hasher,s=n.x64,u=s.Word,h=s.WordArray,a=n.algo;function i(){return u.create.apply(u,arguments)}var d=[i(1116352408,3609767458),i(1899447441,602891725),i(3049323471,3964484399),i(3921009573,2173295548),i(961987163,4081628472),i(1508970993,3053834265),i(2453635748,2937671579),i(2870763221,3664609560),i(3624381080,2734883394),i(310598401,1164996542),i(607225278,1323610764),i(1426881987,3590304994),i(1925078388,4068182383),i(2162078206,991336113),i(2614888103,633803317),i(3248222580,3479774868),i(3835390401,2666613458),i(4022224774,944711139),i(264347078,2341262773),i(604807628,2007800933),i(770255983,1495990901),i(1249150122,1856431235),i(1555081692,3175218132),i(1996064986,2198950837),i(2554220882,3999719339),i(2821834349,766784016),i(2952996808,2566594879),i(3210313671,3203337956),i(3336571891,1034457026),i(3584528711,2466948901),i(113926993,3758326383),i(338241895,168717936),i(666307205,1188179964),i(773529912,1546045734),i(1294757372,1522805485),i(1396182291,2643833823),i(1695183700,2343527390),i(1986661051,1014477480),i(2177026350,1206759142),i(2456956037,344077627),i(2730485921,1290863460),i(2820302411,3158454273),i(3259730800,3505952657),i(3345764771,106217008),i(3516065817,3606008344),i(3600352804,1432725776),i(4094571909,1467031594),i(275423344,851169720),i(430227734,3100823752),i(506948616,1363258195),i(659060556,3750685593),i(883997877,3785050280),i(958139571,3318307427),i(1322822218,3812723403),i(1537002063,2003034995),i(1747873779,3602036899),i(1955562222,1575990012),i(2024104815,1125592928),i(2227730452,2716904306),i(2361852424,442776044),i(2428436474,593698344),i(2756734187,3733110249),i(3204031479,2999351573),i(3329325298,3815920427),i(3391569614,3928383900),i(3515267271,566280711),i(3940187606,3454069534),i(4118630271,4000239992),i(116418474,1914138554),i(174292421,2731055270),i(289380356,3203993006),i(460393269,320620315),i(685471733,587496836),i(852142971,1086792851),i(1017036298,365543100),i(1126000580,2618297676),i(1288033470,3409855158),i(1501505948,4234509866),i(1607167915,987167468),i(1816402316,1246189591)],c=[];(function(){for(var p=0;p<80;p++)c[p]=i()})();var f=a.SHA512=o.extend({_doReset:function(){this._hash=new h.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(p,v){for(var m=this._hash.words,g=m[0],x=m[1],y=m[2],w=m[3],k=m[4],T=m[5],F=m[6],I=m[7],G=g.high,K=g.low,E=x.high,A=x.low,S=y.high,D=y.low,P=w.high,j=w.low,Z=k.high,V=k.low,L=T.high,H=T.low,U=F.high,O=F.low,W=I.high,$=I.low,J=G,ie=K,ae=E,oe=A,b=S,_=D,R=P,Q=j,ee=Z,te=V,se=L,q=H,C=U,B=O,X=W,ne=$,ue=0;ue<80;ue++){var ce,me,ge=c[ue];if(ue<16)me=ge.high=p[v+ue*2]|0,ce=ge.low=p[v+ue*2+1]|0;else{var Ce=c[ue-15],Te=Ce.high,Be=Ce.low,St=(Te>>>1|Be<<31)^(Te>>>8|Be<<24)^Te>>>7,Pt=(Be>>>1|Te<<31)^(Be>>>8|Te<<24)^(Be>>>7|Te<<25),Mt=c[ue-2],Bt=Mt.high,Nt=Mt.low,Qn=(Bt>>>19|Nt<<13)^(Bt<<3|Nt>>>29)^Bt>>>6,rr=(Nt>>>19|Bt<<13)^(Nt<<3|Bt>>>29)^(Nt>>>6|Bt<<26),Wr=c[ue-7],Kr=Wr.high,Yn=Wr.low,Er=c[ue-16],Xn=Er.high,Gr=Er.low;ce=Pt+Yn,me=St+Kr+(ce>>>0<Pt>>>0?1:0),ce=ce+rr,me=me+Qn+(ce>>>0<rr>>>0?1:0),ce=ce+Gr,me=me+Xn+(ce>>>0<Gr>>>0?1:0),ge.high=me,ge.low=ce}var Zn=ee&se^~ee&C,Qr=te&q^~te&B,Jn=J&ae^J&b^ae&b,ei=ie&oe^ie&_^oe&_,ti=(J>>>28|ie<<4)^(J<<30|ie>>>2)^(J<<25|ie>>>7),Yr=(ie>>>28|J<<4)^(ie<<30|J>>>2)^(ie<<25|J>>>7),ri=(ee>>>14|te<<18)^(ee>>>18|te<<14)^(ee<<23|te>>>9),ni=(te>>>14|ee<<18)^(te>>>18|ee<<14)^(te<<23|ee>>>9),Xr=d[ue],ii=Xr.high,Zr=Xr.low,We=ne+ni,pt=X+ri+(We>>>0<ne>>>0?1:0),We=We+Qr,pt=pt+Zn+(We>>>0<Qr>>>0?1:0),We=We+Zr,pt=pt+ii+(We>>>0<Zr>>>0?1:0),We=We+ce,pt=pt+me+(We>>>0<ce>>>0?1:0),Jr=Yr+ei,oi=ti+Jn+(Jr>>>0<Yr>>>0?1:0);X=C,ne=B,C=se,B=q,se=ee,q=te,te=Q+We|0,ee=R+pt+(te>>>0<Q>>>0?1:0)|0,R=b,Q=_,b=ae,_=oe,ae=J,oe=ie,ie=We+Jr|0,J=pt+oi+(ie>>>0<We>>>0?1:0)|0}K=g.low=K+ie,g.high=G+J+(K>>>0<ie>>>0?1:0),A=x.low=A+oe,x.high=E+ae+(A>>>0<oe>>>0?1:0),D=y.low=D+_,y.high=S+b+(D>>>0<_>>>0?1:0),j=w.low=j+Q,w.high=P+R+(j>>>0<Q>>>0?1:0),V=k.low=V+te,k.high=Z+ee+(V>>>0<te>>>0?1:0),H=T.low=H+q,T.high=L+se+(H>>>0<q>>>0?1:0),O=F.low=O+B,F.high=U+C+(O>>>0<B>>>0?1:0),$=I.low=$+ne,I.high=W+X+($>>>0<ne>>>0?1:0)},_doFinalize:function(){var p=this._data,v=p.words,m=this._nDataBytes*8,g=p.sigBytes*8;v[g>>>5]|=128<<24-g%32,v[(g+128>>>10<<5)+30]=Math.floor(m/4294967296),v[(g+128>>>10<<5)+31]=m,p.sigBytes=v.length*4,this._process();var x=this._hash.toX32();return x},clone:function(){var p=o.clone.call(this);return p._hash=this._hash.clone(),p},blockSize:1024/32});n.SHA512=o._createHelper(f),n.HmacSHA512=o._createHmacHelper(f)}(),r.SHA512})}(Gi)),Gi.exports}var Qi={exports:{}},Ss;function R1(){return Ss||(Ss=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Kn(),Gl())})(xe,function(r){return function(){var n=r,l=n.x64,o=l.Word,s=l.WordArray,u=n.algo,h=u.SHA512,a=u.SHA384=h.extend({_doReset:function(){this._hash=new s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var i=h._doFinalize.call(this);return i.sigBytes-=16,i}});n.SHA384=h._createHelper(a),n.HmacSHA384=h._createHmacHelper(a)}(),r.SHA384})}(Qi)),Qi.exports}var Yi={exports:{}},Bs;function O1(){return Bs||(Bs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Kn())})(xe,function(r){return function(n){var l=r,o=l.lib,s=o.WordArray,u=o.Hasher,h=l.x64,a=h.Word,i=l.algo,d=[],c=[],f=[];(function(){for(var m=1,g=0,x=0;x<24;x++){d[m+5*g]=(x+1)*(x+2)/2%64;var y=g%5,w=(2*m+3*g)%5;m=y,g=w}for(var m=0;m<5;m++)for(var g=0;g<5;g++)c[m+5*g]=g+(2*m+3*g)%5*5;for(var k=1,T=0;T<24;T++){for(var F=0,I=0,G=0;G<7;G++){if(k&1){var K=(1<<G)-1;K<32?I^=1<<K:F^=1<<K-32}k&128?k=k<<1^113:k<<=1}f[T]=a.create(F,I)}})();var p=[];(function(){for(var m=0;m<25;m++)p[m]=a.create()})();var v=i.SHA3=u.extend({cfg:u.cfg.extend({outputLength:512}),_doReset:function(){for(var m=this._state=[],g=0;g<25;g++)m[g]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(m,g){for(var x=this._state,y=this.blockSize/2,w=0;w<y;w++){var k=m[g+2*w],T=m[g+2*w+1];k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var F=x[w];F.high^=T,F.low^=k}for(var I=0;I<24;I++){for(var G=0;G<5;G++){for(var K=0,E=0,A=0;A<5;A++){var F=x[G+5*A];K^=F.high,E^=F.low}var S=p[G];S.high=K,S.low=E}for(var G=0;G<5;G++)for(var D=p[(G+4)%5],P=p[(G+1)%5],j=P.high,Z=P.low,K=D.high^(j<<1|Z>>>31),E=D.low^(Z<<1|j>>>31),A=0;A<5;A++){var F=x[G+5*A];F.high^=K,F.low^=E}for(var V=1;V<25;V++){var K,E,F=x[V],L=F.high,H=F.low,U=d[V];U<32?(K=L<<U|H>>>32-U,E=H<<U|L>>>32-U):(K=H<<U-32|L>>>64-U,E=L<<U-32|H>>>64-U);var O=p[c[V]];O.high=K,O.low=E}var W=p[0],$=x[0];W.high=$.high,W.low=$.low;for(var G=0;G<5;G++)for(var A=0;A<5;A++){var V=G+5*A,F=x[V],J=p[V],ie=p[(G+1)%5+5*A],ae=p[(G+2)%5+5*A];F.high=J.high^~ie.high&ae.high,F.low=J.low^~ie.low&ae.low}var F=x[0],oe=f[I];F.high^=oe.high,F.low^=oe.low}},_doFinalize:function(){var m=this._data,g=m.words;this._nDataBytes*8;var x=m.sigBytes*8,y=this.blockSize*32;g[x>>>5]|=1<<24-x%32,g[(n.ceil((x+1)/y)*y>>>5)-1]|=128,m.sigBytes=g.length*4,this._process();for(var w=this._state,k=this.cfg.outputLength/8,T=k/8,F=[],I=0;I<T;I++){var G=w[I],K=G.high,E=G.low;K=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360,E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,F.push(E),F.push(K)}return new s.init(F,k)},clone:function(){for(var m=u.clone.call(this),g=m._state=this._state.slice(0),x=0;x<25;x++)g[x]=g[x].clone();return m}});l.SHA3=u._createHelper(v),l.HmacSHA3=u._createHmacHelper(v)}(Math),r.SHA3})}(Yi)),Yi.exports}var Xi={exports:{}},ks;function P1(){return ks||(ks=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){/** @preserve
|
|
14
14
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
15
15
|
|
|
16
16
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -19,26 +19,26 @@
|
|
|
19
19
|
- 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.
|
|
20
20
|
|
|
21
21
|
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.
|
|
22
|
-
*/return function(n){var l=r,o=l.lib,s=o.WordArray,u=o.Hasher,h=l.algo,a=s.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]),i=s.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]),d=s.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]),c=s.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]),f=s.create([0,1518500249,1859775393,2400959708,2840853838]),p=s.create([1352829926,1548603684,1836072691,2053994217,0]),v=h.RIPEMD160=u.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,I){for(var D=0;D<16;D++){var X=I+D,K=T[X];T[X]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360}var E=this._hash.words,A=f.words,C=p.words,B=a.words,U=i.words,q=d.words,Z=c.words,$,N,V,M,O,H,W,ee,oe,ie;H=$=E[0],W=N=E[1],ee=V=E[2],oe=M=E[3],ie=O=E[4];for(var ae,D=0;D<80;D+=1)ae=$+T[I+B[D]]|0,D<16?ae+=m(N,V,M)+A[0]:D<32?ae+=g(N,V,M)+A[1]:D<48?ae+=x(N,V,M)+A[2]:D<64?ae+=y(N,V,M)+A[3]:ae+=w(N,V,M)+A[4],ae=ae|0,ae=F(ae,q[D]),ae=ae+O|0,$=O,O=M,M=F(V,10),V=N,N=ae,ae=H+T[I+U[D]]|0,D<16?ae+=w(W,ee,oe)+C[0]:D<32?ae+=y(W,ee,oe)+C[1]:D<48?ae+=x(W,ee,oe)+C[2]:D<64?ae+=g(W,ee,oe)+C[3]:ae+=m(W,ee,oe)+C[4],ae=ae|0,ae=F(ae,Z[D]),ae=ae+ie|0,H=ie,ie=oe,oe=F(ee,10),ee=W,W=ae;ae=E[1]+V+oe|0,E[1]=E[2]+M+ie|0,E[2]=E[3]+O+H|0,E[3]=E[4]+$+W|0,E[4]=E[0]+N+ee|0,E[0]=ae},_doFinalize:function(){var T=this._data,I=T.words,D=this._nDataBytes*8,X=T.sigBytes*8;I[X>>>5]|=128<<24-X%32,I[(X+64>>>9<<4)+14]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,T.sigBytes=(I.length+1)*4,this._process();for(var K=this._hash,E=K.words,A=0;A<5;A++){var C=E[A];E[A]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return K},clone:function(){var T=u.clone.call(this);return T._hash=this._hash.clone(),T}});function m(T,I,D){return T^I^D}function g(T,I,D){return T&I|~T&D}function x(T,I,D){return(T|~I)^D}function y(T,I,D){return T&D|I&~D}function w(T,I,D){return T^(I|~D)}function F(T,I){return T<<I|T>>>32-I}l.RIPEMD160=u._createHelper(v),l.HmacRIPEMD160=u._createHmacHelper(v)}(),r.RIPEMD160})}(Xi)),Xi.exports}var Zi={exports:{}},Ts;function na(){return Ts||(Ts=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){(function(){var n=r,l=n.lib,o=l.Base,s=n.enc,u=s.Utf8,h=n.algo;h.HMAC=o.extend({init:function(a,i){a=this._hasher=new a.init,typeof i=="string"&&(i=u.parse(i));var d=a.blockSize,c=d*4;i.sigBytes>c&&(i=a.finalize(i)),i.clamp();for(var f=this._oKey=i.clone(),p=this._iKey=i.clone(),v=f.words,m=p.words,g=0;g<d;g++)v[g]^=1549556828,m[g]^=909522486;f.sigBytes=p.sigBytes=c,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var i=this._hasher,d=i.finalize(a);i.reset();var c=i.finalize(this._oKey.clone().concat(d));return c}})})()})}(Zi)),Zi.exports}var Ji={exports:{}},Fs;function Z1(){return Fs||(Fs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),ra(),na())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.Base,s=l.WordArray,u=n.algo,h=u.SHA256,a=u.HMAC,i=u.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:h,iterations:25e4}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,c){for(var f=this.cfg,p=a.create(f.hasher,d),v=s.create(),m=s.create([1]),g=v.words,x=m.words,y=f.keySize,w=f.iterations;g.length<y;){var F=p.update(c).finalize(m);p.reset();for(var T=F.words,I=T.length,D=F,X=1;X<w;X++){D=p.finalize(D),p.reset();for(var K=D.words,E=0;E<I;E++)T[E]^=K[E]}v.concat(F),x[0]++}return v.sigBytes=y*4,v}});n.PBKDF2=function(d,c,f){return i.create(f).compute(d,c)}}(),r.PBKDF2})}(Ji)),Ji.exports}var eo={exports:{}},Is;function Ot(){return Is||(Is=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),uu(),na())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.Base,s=l.WordArray,u=n.algo,h=u.MD5,a=u.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:h,iterations:1}),init:function(i){this.cfg=this.cfg.extend(i)},compute:function(i,d){for(var c,f=this.cfg,p=f.hasher.create(),v=s.create(),m=v.words,g=f.keySize,x=f.iterations;m.length<g;){c&&p.update(c),c=p.update(i).finalize(d),p.reset();for(var y=1;y<x;y++)c=p.finalize(c),p.reset();v.concat(c)}return v.sigBytes=g*4,v}});n.EvpKDF=function(i,d,c){return a.create(c).compute(i,d)}}(),r.EvpKDF})}(eo)),eo.exports}var to={exports:{}},Ds;function je(){return Ds||(Ds=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Ot())})(xe,function(r){r.lib.Cipher||function(n){var l=r,o=l.lib,s=o.Base,u=o.WordArray,h=o.BufferedBlockAlgorithm,a=l.enc;a.Utf8;var i=a.Base64,d=l.algo,c=d.EvpKDF,f=o.Cipher=h.extend({cfg:s.extend(),createEncryptor:function(K,E){return this.create(this._ENC_XFORM_MODE,K,E)},createDecryptor:function(K,E){return this.create(this._DEC_XFORM_MODE,K,E)},init:function(K,E,A){this.cfg=this.cfg.extend(A),this._xformMode=K,this._key=E,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(K){return this._append(K),this._process()},finalize:function(K){K&&this._append(K);var E=this._doFinalize();return E},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function K(E){return typeof E=="string"?X:T}return function(E){return{encrypt:function(A,C,B){return K(C).encrypt(E,A,C,B)},decrypt:function(A,C,B){return K(C).decrypt(E,A,C,B)}}}}()});o.StreamCipher=f.extend({_doFinalize:function(){var K=this._process(!0);return K},blockSize:1});var p=l.mode={},v=o.BlockCipherMode=s.extend({createEncryptor:function(K,E){return this.Encryptor.create(K,E)},createDecryptor:function(K,E){return this.Decryptor.create(K,E)},init:function(K,E){this._cipher=K,this._iv=E}}),m=p.CBC=function(){var K=v.extend();K.Encryptor=K.extend({processBlock:function(A,C){var B=this._cipher,U=B.blockSize;E.call(this,A,C,U),B.encryptBlock(A,C),this._prevBlock=A.slice(C,C+U)}}),K.Decryptor=K.extend({processBlock:function(A,C){var B=this._cipher,U=B.blockSize,q=A.slice(C,C+U);B.decryptBlock(A,C),E.call(this,A,C,U),this._prevBlock=q}});function E(A,C,B){var U,q=this._iv;q?(U=q,this._iv=n):U=this._prevBlock;for(var Z=0;Z<B;Z++)A[C+Z]^=U[Z]}return K}(),g=l.pad={},x=g.Pkcs7={pad:function(K,E){for(var A=E*4,C=A-K.sigBytes%A,B=C<<24|C<<16|C<<8|C,U=[],q=0;q<C;q+=4)U.push(B);var Z=u.create(U,C);K.concat(Z)},unpad:function(K){var E=K.words[K.sigBytes-1>>>2]&255;K.sigBytes-=E}};o.BlockCipher=f.extend({cfg:f.cfg.extend({mode:m,padding:x}),reset:function(){var K;f.reset.call(this);var E=this.cfg,A=E.iv,C=E.mode;this._xformMode==this._ENC_XFORM_MODE?K=C.createEncryptor:(K=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==K?this._mode.init(this,A&&A.words):(this._mode=K.call(C,this,A&&A.words),this._mode.__creator=K)},_doProcessBlock:function(K,E){this._mode.processBlock(K,E)},_doFinalize:function(){var K,E=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(E.pad(this._data,this.blockSize),K=this._process(!0)):(K=this._process(!0),E.unpad(K)),K},blockSize:128/32});var y=o.CipherParams=s.extend({init:function(K){this.mixIn(K)},toString:function(K){return(K||this.formatter).stringify(this)}}),w=l.format={},F=w.OpenSSL={stringify:function(K){var E,A=K.ciphertext,C=K.salt;return C?E=u.create([1398893684,1701076831]).concat(C).concat(A):E=A,E.toString(i)},parse:function(K){var E,A=i.parse(K),C=A.words;return C[0]==1398893684&&C[1]==1701076831&&(E=u.create(C.slice(2,4)),C.splice(0,4),A.sigBytes-=16),y.create({ciphertext:A,salt:E})}},T=o.SerializableCipher=s.extend({cfg:s.extend({format:F}),encrypt:function(K,E,A,C){C=this.cfg.extend(C);var B=K.createEncryptor(A,C),U=B.finalize(E),q=B.cfg;return y.create({ciphertext:U,key:A,iv:q.iv,algorithm:K,mode:q.mode,padding:q.padding,blockSize:K.blockSize,formatter:C.format})},decrypt:function(K,E,A,C){C=this.cfg.extend(C),E=this._parse(E,C.format);var B=K.createDecryptor(A,C).finalize(E.ciphertext);return B},_parse:function(K,E){return typeof K=="string"?E.parse(K,this):K}}),I=l.kdf={},D=I.OpenSSL={execute:function(K,E,A,C,B){if(C||(C=u.random(64/8)),B)var U=c.create({keySize:E+A,hasher:B}).compute(K,C);else var U=c.create({keySize:E+A}).compute(K,C);var q=u.create(U.words.slice(E),A*4);return U.sigBytes=E*4,y.create({key:U,iv:q,salt:C})}},X=o.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:D}),encrypt:function(K,E,A,C){C=this.cfg.extend(C);var B=C.kdf.execute(A,K.keySize,K.ivSize,C.salt,C.hasher);C.iv=B.iv;var U=T.encrypt.call(this,K,E,B.key,C);return U.mixIn(B),U},decrypt:function(K,E,A,C){C=this.cfg.extend(C),E=this._parse(E,C.format);var B=C.kdf.execute(A,K.keySize,K.ivSize,E.salt,C.hasher);C.iv=B.iv;var U=T.decrypt.call(this,K,E,B.key,C);return U}})}()})}(to)),to.exports}var ro={exports:{}},Rs;function J1(){return Rs||(Rs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(o,s){var u=this._cipher,h=u.blockSize;l.call(this,o,s,h,u),this._prevBlock=o.slice(s,s+h)}}),n.Decryptor=n.extend({processBlock:function(o,s){var u=this._cipher,h=u.blockSize,a=o.slice(s,s+h);l.call(this,o,s,h,u),this._prevBlock=a}});function l(o,s,u,h){var a,i=this._iv;i?(a=i.slice(0),this._iv=void 0):a=this._prevBlock,h.encryptBlock(a,0);for(var d=0;d<u;d++)o[s+d]^=a[d]}return n}(),r.mode.CFB})}(ro)),ro.exports}var no={exports:{}},Os;function em(){return Os||(Os=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),l=n.Encryptor=n.extend({processBlock:function(o,s){var u=this._cipher,h=u.blockSize,a=this._iv,i=this._counter;a&&(i=this._counter=a.slice(0),this._iv=void 0);var d=i.slice(0);u.encryptBlock(d,0),i[h-1]=i[h-1]+1|0;for(var c=0;c<h;c++)o[s+c]^=d[c]}});return n.Decryptor=l,n}(),r.mode.CTR})}(no)),no.exports}var io={exports:{}},Ps;function tm(){return Ps||(Ps=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){/** @preserve
|
|
22
|
+
*/return function(n){var l=r,o=l.lib,s=o.WordArray,u=o.Hasher,h=l.algo,a=s.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]),i=s.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]),d=s.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]),c=s.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]),f=s.create([0,1518500249,1859775393,2400959708,2840853838]),p=s.create([1352829926,1548603684,1836072691,2053994217,0]),v=h.RIPEMD160=u.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,F){for(var I=0;I<16;I++){var G=F+I,K=T[G];T[G]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360}var E=this._hash.words,A=f.words,S=p.words,D=a.words,P=i.words,j=d.words,Z=c.words,V,L,H,U,O,W,$,J,ie,ae;W=V=E[0],$=L=E[1],J=H=E[2],ie=U=E[3],ae=O=E[4];for(var oe,I=0;I<80;I+=1)oe=V+T[F+D[I]]|0,I<16?oe+=m(L,H,U)+A[0]:I<32?oe+=g(L,H,U)+A[1]:I<48?oe+=x(L,H,U)+A[2]:I<64?oe+=y(L,H,U)+A[3]:oe+=w(L,H,U)+A[4],oe=oe|0,oe=k(oe,j[I]),oe=oe+O|0,V=O,O=U,U=k(H,10),H=L,L=oe,oe=W+T[F+P[I]]|0,I<16?oe+=w($,J,ie)+S[0]:I<32?oe+=y($,J,ie)+S[1]:I<48?oe+=x($,J,ie)+S[2]:I<64?oe+=g($,J,ie)+S[3]:oe+=m($,J,ie)+S[4],oe=oe|0,oe=k(oe,Z[I]),oe=oe+ae|0,W=ae,ae=ie,ie=k(J,10),J=$,$=oe;oe=E[1]+H+ie|0,E[1]=E[2]+U+ae|0,E[2]=E[3]+O+W|0,E[3]=E[4]+V+$|0,E[4]=E[0]+L+J|0,E[0]=oe},_doFinalize:function(){var T=this._data,F=T.words,I=this._nDataBytes*8,G=T.sigBytes*8;F[G>>>5]|=128<<24-G%32,F[(G+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,T.sigBytes=(F.length+1)*4,this._process();for(var K=this._hash,E=K.words,A=0;A<5;A++){var S=E[A];E[A]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return K},clone:function(){var T=u.clone.call(this);return T._hash=this._hash.clone(),T}});function m(T,F,I){return T^F^I}function g(T,F,I){return T&F|~T&I}function x(T,F,I){return(T|~F)^I}function y(T,F,I){return T&I|F&~I}function w(T,F,I){return T^(F|~I)}function k(T,F){return T<<F|T>>>32-F}l.RIPEMD160=u._createHelper(v),l.HmacRIPEMD160=u._createHmacHelper(v)}(),r.RIPEMD160})}(Xi)),Xi.exports}var Zi={exports:{}},Ts;function na(){return Ts||(Ts=1,function(e,t){(function(r,n){e.exports=n(Ae())})(xe,function(r){(function(){var n=r,l=n.lib,o=l.Base,s=n.enc,u=s.Utf8,h=n.algo;h.HMAC=o.extend({init:function(a,i){a=this._hasher=new a.init,typeof i=="string"&&(i=u.parse(i));var d=a.blockSize,c=d*4;i.sigBytes>c&&(i=a.finalize(i)),i.clamp();for(var f=this._oKey=i.clone(),p=this._iKey=i.clone(),v=f.words,m=p.words,g=0;g<d;g++)v[g]^=1549556828,m[g]^=909522486;f.sigBytes=p.sigBytes=c,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var i=this._hasher,d=i.finalize(a);i.reset();var c=i.finalize(this._oKey.clone().concat(d));return c}})})()})}(Zi)),Zi.exports}var Ji={exports:{}},Fs;function M1(){return Fs||(Fs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),ra(),na())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.Base,s=l.WordArray,u=n.algo,h=u.SHA256,a=u.HMAC,i=u.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:h,iterations:25e4}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,c){for(var f=this.cfg,p=a.create(f.hasher,d),v=s.create(),m=s.create([1]),g=v.words,x=m.words,y=f.keySize,w=f.iterations;g.length<y;){var k=p.update(c).finalize(m);p.reset();for(var T=k.words,F=T.length,I=k,G=1;G<w;G++){I=p.finalize(I),p.reset();for(var K=I.words,E=0;E<F;E++)T[E]^=K[E]}v.concat(k),x[0]++}return v.sigBytes=y*4,v}});n.PBKDF2=function(d,c,f){return i.create(f).compute(d,c)}}(),r.PBKDF2})}(Ji)),Ji.exports}var eo={exports:{}},Is;function Ot(){return Is||(Is=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Kl(),na())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.Base,s=l.WordArray,u=n.algo,h=u.MD5,a=u.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:h,iterations:1}),init:function(i){this.cfg=this.cfg.extend(i)},compute:function(i,d){for(var c,f=this.cfg,p=f.hasher.create(),v=s.create(),m=v.words,g=f.keySize,x=f.iterations;m.length<g;){c&&p.update(c),c=p.update(i).finalize(d),p.reset();for(var y=1;y<x;y++)c=p.finalize(c),p.reset();v.concat(c)}return v.sigBytes=g*4,v}});n.EvpKDF=function(i,d,c){return a.create(c).compute(i,d)}}(),r.EvpKDF})}(eo)),eo.exports}var to={exports:{}},Ds;function je(){return Ds||(Ds=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Ot())})(xe,function(r){r.lib.Cipher||function(n){var l=r,o=l.lib,s=o.Base,u=o.WordArray,h=o.BufferedBlockAlgorithm,a=l.enc;a.Utf8;var i=a.Base64,d=l.algo,c=d.EvpKDF,f=o.Cipher=h.extend({cfg:s.extend(),createEncryptor:function(K,E){return this.create(this._ENC_XFORM_MODE,K,E)},createDecryptor:function(K,E){return this.create(this._DEC_XFORM_MODE,K,E)},init:function(K,E,A){this.cfg=this.cfg.extend(A),this._xformMode=K,this._key=E,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(K){return this._append(K),this._process()},finalize:function(K){K&&this._append(K);var E=this._doFinalize();return E},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function K(E){return typeof E=="string"?G:T}return function(E){return{encrypt:function(A,S,D){return K(S).encrypt(E,A,S,D)},decrypt:function(A,S,D){return K(S).decrypt(E,A,S,D)}}}}()});o.StreamCipher=f.extend({_doFinalize:function(){var K=this._process(!0);return K},blockSize:1});var p=l.mode={},v=o.BlockCipherMode=s.extend({createEncryptor:function(K,E){return this.Encryptor.create(K,E)},createDecryptor:function(K,E){return this.Decryptor.create(K,E)},init:function(K,E){this._cipher=K,this._iv=E}}),m=p.CBC=function(){var K=v.extend();K.Encryptor=K.extend({processBlock:function(A,S){var D=this._cipher,P=D.blockSize;E.call(this,A,S,P),D.encryptBlock(A,S),this._prevBlock=A.slice(S,S+P)}}),K.Decryptor=K.extend({processBlock:function(A,S){var D=this._cipher,P=D.blockSize,j=A.slice(S,S+P);D.decryptBlock(A,S),E.call(this,A,S,P),this._prevBlock=j}});function E(A,S,D){var P,j=this._iv;j?(P=j,this._iv=n):P=this._prevBlock;for(var Z=0;Z<D;Z++)A[S+Z]^=P[Z]}return K}(),g=l.pad={},x=g.Pkcs7={pad:function(K,E){for(var A=E*4,S=A-K.sigBytes%A,D=S<<24|S<<16|S<<8|S,P=[],j=0;j<S;j+=4)P.push(D);var Z=u.create(P,S);K.concat(Z)},unpad:function(K){var E=K.words[K.sigBytes-1>>>2]&255;K.sigBytes-=E}};o.BlockCipher=f.extend({cfg:f.cfg.extend({mode:m,padding:x}),reset:function(){var K;f.reset.call(this);var E=this.cfg,A=E.iv,S=E.mode;this._xformMode==this._ENC_XFORM_MODE?K=S.createEncryptor:(K=S.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==K?this._mode.init(this,A&&A.words):(this._mode=K.call(S,this,A&&A.words),this._mode.__creator=K)},_doProcessBlock:function(K,E){this._mode.processBlock(K,E)},_doFinalize:function(){var K,E=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(E.pad(this._data,this.blockSize),K=this._process(!0)):(K=this._process(!0),E.unpad(K)),K},blockSize:128/32});var y=o.CipherParams=s.extend({init:function(K){this.mixIn(K)},toString:function(K){return(K||this.formatter).stringify(this)}}),w=l.format={},k=w.OpenSSL={stringify:function(K){var E,A=K.ciphertext,S=K.salt;return S?E=u.create([1398893684,1701076831]).concat(S).concat(A):E=A,E.toString(i)},parse:function(K){var E,A=i.parse(K),S=A.words;return S[0]==1398893684&&S[1]==1701076831&&(E=u.create(S.slice(2,4)),S.splice(0,4),A.sigBytes-=16),y.create({ciphertext:A,salt:E})}},T=o.SerializableCipher=s.extend({cfg:s.extend({format:k}),encrypt:function(K,E,A,S){S=this.cfg.extend(S);var D=K.createEncryptor(A,S),P=D.finalize(E),j=D.cfg;return y.create({ciphertext:P,key:A,iv:j.iv,algorithm:K,mode:j.mode,padding:j.padding,blockSize:K.blockSize,formatter:S.format})},decrypt:function(K,E,A,S){S=this.cfg.extend(S),E=this._parse(E,S.format);var D=K.createDecryptor(A,S).finalize(E.ciphertext);return D},_parse:function(K,E){return typeof K=="string"?E.parse(K,this):K}}),F=l.kdf={},I=F.OpenSSL={execute:function(K,E,A,S,D){if(S||(S=u.random(64/8)),D)var P=c.create({keySize:E+A,hasher:D}).compute(K,S);else var P=c.create({keySize:E+A}).compute(K,S);var j=u.create(P.words.slice(E),A*4);return P.sigBytes=E*4,y.create({key:P,iv:j,salt:S})}},G=o.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:I}),encrypt:function(K,E,A,S){S=this.cfg.extend(S);var D=S.kdf.execute(A,K.keySize,K.ivSize,S.salt,S.hasher);S.iv=D.iv;var P=T.encrypt.call(this,K,E,D.key,S);return P.mixIn(D),P},decrypt:function(K,E,A,S){S=this.cfg.extend(S),E=this._parse(E,S.format);var D=S.kdf.execute(A,K.keySize,K.ivSize,E.salt,S.hasher);S.iv=D.iv;var P=T.decrypt.call(this,K,E,D.key,S);return P}})}()})}(to)),to.exports}var ro={exports:{}},Rs;function N1(){return Rs||(Rs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(o,s){var u=this._cipher,h=u.blockSize;l.call(this,o,s,h,u),this._prevBlock=o.slice(s,s+h)}}),n.Decryptor=n.extend({processBlock:function(o,s){var u=this._cipher,h=u.blockSize,a=o.slice(s,s+h);l.call(this,o,s,h,u),this._prevBlock=a}});function l(o,s,u,h){var a,i=this._iv;i?(a=i.slice(0),this._iv=void 0):a=this._prevBlock,h.encryptBlock(a,0);for(var d=0;d<u;d++)o[s+d]^=a[d]}return n}(),r.mode.CFB})}(ro)),ro.exports}var no={exports:{}},Os;function L1(){return Os||(Os=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),l=n.Encryptor=n.extend({processBlock:function(o,s){var u=this._cipher,h=u.blockSize,a=this._iv,i=this._counter;a&&(i=this._counter=a.slice(0),this._iv=void 0);var d=i.slice(0);u.encryptBlock(d,0),i[h-1]=i[h-1]+1|0;for(var c=0;c<h;c++)o[s+c]^=d[c]}});return n.Decryptor=l,n}(),r.mode.CTR})}(no)),no.exports}var io={exports:{}},Ps;function U1(){return Ps||(Ps=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){/** @preserve
|
|
23
23
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
24
24
|
* derived from CryptoJS.mode.CTR
|
|
25
25
|
* Jan Hruby jhruby.web@gmail.com
|
|
26
|
-
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function l(u){if((u>>24&255)===255){var h=u>>16&255,a=u>>8&255,i=u&255;h===255?(h=0,a===255?(a=0,i===255?i=0:++i):++a):++h,u=0,u+=h<<16,u+=a<<8,u+=i}else u+=1<<24;return u}function o(u){return(u[0]=l(u[0]))===0&&(u[1]=l(u[1])),u}var s=n.Encryptor=n.extend({processBlock:function(u,h){var a=this._cipher,i=a.blockSize,d=this._iv,c=this._counter;d&&(c=this._counter=d.slice(0),this._iv=void 0),o(c);var f=c.slice(0);a.encryptBlock(f,0);for(var p=0;p<i;p++)u[h+p]^=f[p]}});return n.Decryptor=s,n}(),r.mode.CTRGladman})}(io)),io.exports}var oo={exports:{}},Ms;function rm(){return Ms||(Ms=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),l=n.Encryptor=n.extend({processBlock:function(o,s){var u=this._cipher,h=u.blockSize,a=this._iv,i=this._keystream;a&&(i=this._keystream=a.slice(0),this._iv=void 0),u.encryptBlock(i,0);for(var d=0;d<h;d++)o[s+d]^=i[d]}});return n.Decryptor=l,n}(),r.mode.OFB})}(oo)),oo.exports}var ao={exports:{}},Ns;function nm(){return Ns||(Ns=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(l,o){this._cipher.encryptBlock(l,o)}}),n.Decryptor=n.extend({processBlock:function(l,o){this._cipher.decryptBlock(l,o)}}),n}(),r.mode.ECB})}(ao)),ao.exports}var so={exports:{}},Ls;function im(){return Ls||(Ls=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.pad.AnsiX923={pad:function(n,l){var o=n.sigBytes,s=l*4,u=s-o%s,h=o+u-1;n.clamp(),n.words[h>>>2]|=u<<24-h%4*8,n.sigBytes+=u},unpad:function(n){var l=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=l}},r.pad.Ansix923})}(so)),so.exports}var lo={exports:{}},Us;function om(){return Us||(Us=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.pad.Iso10126={pad:function(n,l){var o=l*4,s=o-n.sigBytes%o;n.concat(r.lib.WordArray.random(s-1)).concat(r.lib.WordArray.create([s<<24],1))},unpad:function(n){var l=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=l}},r.pad.Iso10126})}(lo)),lo.exports}var uo={exports:{}},zs;function am(){return zs||(zs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.pad.Iso97971={pad:function(n,l){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,l)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}(uo)),uo.exports}var co={exports:{}},qs;function sm(){return qs||(qs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.pad.ZeroPadding={pad:function(n,l){var o=l*4;n.clamp(),n.sigBytes+=o-(n.sigBytes%o||o)},unpad:function(n){for(var l=n.words,o=n.sigBytes-1,o=n.sigBytes-1;o>=0;o--)if(l[o>>>2]>>>24-o%4*8&255){n.sigBytes=o+1;break}}},r.pad.ZeroPadding})}(co)),co.exports}var fo={exports:{}},js;function lm(){return js||(js=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(fo)),fo.exports}var ho={exports:{}},Hs;function um(){return Hs||(Hs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return function(n){var l=r,o=l.lib,s=o.CipherParams,u=l.enc,h=u.Hex,a=l.format;a.Hex={stringify:function(i){return i.ciphertext.toString(h)},parse:function(i){var d=h.parse(i);return s.create({ciphertext:d})}}}(),r.format.Hex})}(ho)),ho.exports}var po={exports:{}},$s;function cm(){return $s||($s=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Zt(),Jt(),Ot(),je())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.BlockCipher,s=n.algo,u=[],h=[],a=[],i=[],d=[],c=[],f=[],p=[],v=[],m=[];(function(){for(var y=[],w=0;w<256;w++)w<128?y[w]=w<<1:y[w]=w<<1^283;for(var F=0,T=0,w=0;w<256;w++){var I=T^T<<1^T<<2^T<<3^T<<4;I=I>>>8^I&255^99,u[F]=I,h[I]=F;var D=y[F],X=y[D],K=y[X],E=y[I]*257^I*16843008;a[F]=E<<24|E>>>8,i[F]=E<<16|E>>>16,d[F]=E<<8|E>>>24,c[F]=E;var E=K*16843009^X*65537^D*257^F*16843008;f[I]=E<<24|E>>>8,p[I]=E<<16|E>>>16,v[I]=E<<8|E>>>24,m[I]=E,F?(F=D^y[y[y[K^D]]],T^=y[y[T]]):F=T=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],x=s.AES=o.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,F=w.words,T=w.sigBytes/4,I=this._nRounds=T+6,D=(I+1)*4,X=this._keySchedule=[],K=0;K<D;K++)K<T?X[K]=F[K]:(y=X[K-1],K%T?T>6&&K%T==4&&(y=u[y>>>24]<<24|u[y>>>16&255]<<16|u[y>>>8&255]<<8|u[y&255]):(y=y<<8|y>>>24,y=u[y>>>24]<<24|u[y>>>16&255]<<16|u[y>>>8&255]<<8|u[y&255],y^=g[K/T|0]<<24),X[K]=X[K-T]^y);for(var E=this._invKeySchedule=[],A=0;A<D;A++){var K=D-A;if(A%4)var y=X[K];else var y=X[K-4];A<4||K<=4?E[A]=y:E[A]=f[u[y>>>24]]^p[u[y>>>16&255]]^v[u[y>>>8&255]]^m[u[y&255]]}}},encryptBlock:function(y,w){this._doCryptBlock(y,w,this._keySchedule,a,i,d,c,u)},decryptBlock:function(y,w){var F=y[w+1];y[w+1]=y[w+3],y[w+3]=F,this._doCryptBlock(y,w,this._invKeySchedule,f,p,v,m,h);var F=y[w+1];y[w+1]=y[w+3],y[w+3]=F},_doCryptBlock:function(y,w,F,T,I,D,X,K){for(var E=this._nRounds,A=y[w]^F[0],C=y[w+1]^F[1],B=y[w+2]^F[2],U=y[w+3]^F[3],q=4,Z=1;Z<E;Z++){var $=T[A>>>24]^I[C>>>16&255]^D[B>>>8&255]^X[U&255]^F[q++],N=T[C>>>24]^I[B>>>16&255]^D[U>>>8&255]^X[A&255]^F[q++],V=T[B>>>24]^I[U>>>16&255]^D[A>>>8&255]^X[C&255]^F[q++],M=T[U>>>24]^I[A>>>16&255]^D[C>>>8&255]^X[B&255]^F[q++];A=$,C=N,B=V,U=M}var $=(K[A>>>24]<<24|K[C>>>16&255]<<16|K[B>>>8&255]<<8|K[U&255])^F[q++],N=(K[C>>>24]<<24|K[B>>>16&255]<<16|K[U>>>8&255]<<8|K[A&255])^F[q++],V=(K[B>>>24]<<24|K[U>>>16&255]<<16|K[A>>>8&255]<<8|K[C&255])^F[q++],M=(K[U>>>24]<<24|K[A>>>16&255]<<16|K[C>>>8&255]<<8|K[B&255])^F[q++];y[w]=$,y[w+1]=N,y[w+2]=V,y[w+3]=M},keySize:256/32});n.AES=o._createHelper(x)}(),r.AES})}(po)),po.exports}var mo={exports:{}},Vs;function fm(){return Vs||(Vs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Zt(),Jt(),Ot(),je())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.WordArray,s=l.BlockCipher,u=n.algo,h=[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],a=[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],i=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{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}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=u.DES=s.extend({_doReset:function(){for(var g=this._key,x=g.words,y=[],w=0;w<56;w++){var F=h[w]-1;y[w]=x[F>>>5]>>>31-F%32&1}for(var T=this._subKeys=[],I=0;I<16;I++){for(var D=T[I]=[],X=i[I],w=0;w<24;w++)D[w/6|0]|=y[(a[w]-1+X)%28]<<31-w%6,D[4+(w/6|0)]|=y[28+(a[w+24]-1+X)%28]<<31-w%6;D[0]=D[0]<<1|D[0]>>>31;for(var w=1;w<7;w++)D[w]=D[w]>>>(w-1)*4+3;D[7]=D[7]<<5|D[7]>>>27}for(var K=this._invSubKeys=[],w=0;w<16;w++)K[w]=T[15-w]},encryptBlock:function(g,x){this._doCryptBlock(g,x,this._subKeys)},decryptBlock:function(g,x){this._doCryptBlock(g,x,this._invSubKeys)},_doCryptBlock:function(g,x,y){this._lBlock=g[x],this._rBlock=g[x+1],p.call(this,4,252645135),p.call(this,16,65535),v.call(this,2,858993459),v.call(this,8,16711935),p.call(this,1,1431655765);for(var w=0;w<16;w++){for(var F=y[w],T=this._lBlock,I=this._rBlock,D=0,X=0;X<8;X++)D|=d[X][((I^F[X])&c[X])>>>0];this._lBlock=I,this._rBlock=T^D}var K=this._lBlock;this._lBlock=this._rBlock,this._rBlock=K,p.call(this,1,1431655765),v.call(this,8,16711935),v.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),g[x]=this._lBlock,g[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function p(g,x){var y=(this._lBlock>>>g^this._rBlock)&x;this._rBlock^=y,this._lBlock^=y<<g}function v(g,x){var y=(this._rBlock>>>g^this._lBlock)&x;this._lBlock^=y,this._rBlock^=y<<g}n.DES=s._createHelper(f);var m=u.TripleDES=s.extend({_doReset:function(){var g=this._key,x=g.words;if(x.length!==2&&x.length!==4&&x.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var y=x.slice(0,2),w=x.length<4?x.slice(0,2):x.slice(2,4),F=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=f.createEncryptor(o.create(y)),this._des2=f.createEncryptor(o.create(w)),this._des3=f.createEncryptor(o.create(F))},encryptBlock:function(g,x){this._des1.encryptBlock(g,x),this._des2.decryptBlock(g,x),this._des3.encryptBlock(g,x)},decryptBlock:function(g,x){this._des3.decryptBlock(g,x),this._des2.encryptBlock(g,x),this._des1.decryptBlock(g,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=s._createHelper(m)}(),r.TripleDES})}(mo)),mo.exports}var vo={exports:{}},Ws;function hm(){return Ws||(Ws=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Zt(),Jt(),Ot(),je())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.StreamCipher,s=n.algo,u=s.RC4=o.extend({_doReset:function(){for(var i=this._key,d=i.words,c=i.sigBytes,f=this._S=[],p=0;p<256;p++)f[p]=p;for(var p=0,v=0;p<256;p++){var m=p%c,g=d[m>>>2]>>>24-m%4*8&255;v=(v+f[p]+g)%256;var x=f[p];f[p]=f[v],f[v]=x}this._i=this._j=0},_doProcessBlock:function(i,d){i[d]^=h.call(this)},keySize:256/32,ivSize:0});function h(){for(var i=this._S,d=this._i,c=this._j,f=0,p=0;p<4;p++){d=(d+1)%256,c=(c+i[d])%256;var v=i[d];i[d]=i[c],i[c]=v,f|=i[(i[d]+i[c])%256]<<24-p*8}return this._i=d,this._j=c,f}n.RC4=o._createHelper(u);var a=s.RC4Drop=u.extend({cfg:u.cfg.extend({drop:192}),_doReset:function(){u._doReset.call(this);for(var i=this.cfg.drop;i>0;i--)h.call(this)}});n.RC4Drop=o._createHelper(a)}(),r.RC4})}(vo)),vo.exports}var yo={exports:{}},Ks;function pm(){return Ks||(Ks=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Zt(),Jt(),Ot(),je())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.StreamCipher,s=n.algo,u=[],h=[],a=[],i=s.Rabbit=o.extend({_doReset:function(){for(var c=this._key.words,f=this.cfg.iv,p=0;p<4;p++)c[p]=(c[p]<<8|c[p]>>>24)&16711935|(c[p]<<24|c[p]>>>8)&4278255360;var v=this._X=[c[0],c[3]<<16|c[2]>>>16,c[1],c[0]<<16|c[3]>>>16,c[2],c[1]<<16|c[0]>>>16,c[3],c[2]<<16|c[1]>>>16],m=this._C=[c[2]<<16|c[2]>>>16,c[0]&4294901760|c[1]&65535,c[3]<<16|c[3]>>>16,c[1]&4294901760|c[2]&65535,c[0]<<16|c[0]>>>16,c[2]&4294901760|c[3]&65535,c[1]<<16|c[1]>>>16,c[3]&4294901760|c[0]&65535];this._b=0;for(var p=0;p<4;p++)d.call(this);for(var p=0;p<8;p++)m[p]^=v[p+4&7];if(f){var g=f.words,x=g[0],y=g[1],w=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,F=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,T=w>>>16|F&4294901760,I=F<<16|w&65535;m[0]^=w,m[1]^=T,m[2]^=F,m[3]^=I,m[4]^=w,m[5]^=T,m[6]^=F,m[7]^=I;for(var p=0;p<4;p++)d.call(this)}},_doProcessBlock:function(c,f){var p=this._X;d.call(this),u[0]=p[0]^p[5]>>>16^p[3]<<16,u[1]=p[2]^p[7]>>>16^p[5]<<16,u[2]=p[4]^p[1]>>>16^p[7]<<16,u[3]=p[6]^p[3]>>>16^p[1]<<16;for(var v=0;v<4;v++)u[v]=(u[v]<<8|u[v]>>>24)&16711935|(u[v]<<24|u[v]>>>8)&4278255360,c[f+v]^=u[v]},blockSize:128/32,ivSize:64/32});function d(){for(var c=this._X,f=this._C,p=0;p<8;p++)h[p]=f[p];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0<h[0]>>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0<h[1]>>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0<h[2]>>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0<h[3]>>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0<h[4]>>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0<h[5]>>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0<h[6]>>>0?1:0)|0,this._b=f[7]>>>0<h[7]>>>0?1:0;for(var p=0;p<8;p++){var v=c[p]+f[p],m=v&65535,g=v>>>16,x=((m*m>>>17)+m*g>>>15)+g*g,y=((v&4294901760)*v|0)+((v&65535)*v|0);a[p]=x^y}c[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,c[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,c[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,c[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,c[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,c[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,c[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,c[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}n.Rabbit=o._createHelper(i)}(),r.Rabbit})}(yo)),yo.exports}var go={exports:{}},Gs;function dm(){return Gs||(Gs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Zt(),Jt(),Ot(),je())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.StreamCipher,s=n.algo,u=[],h=[],a=[],i=s.RabbitLegacy=o.extend({_doReset:function(){var c=this._key.words,f=this.cfg.iv,p=this._X=[c[0],c[3]<<16|c[2]>>>16,c[1],c[0]<<16|c[3]>>>16,c[2],c[1]<<16|c[0]>>>16,c[3],c[2]<<16|c[1]>>>16],v=this._C=[c[2]<<16|c[2]>>>16,c[0]&4294901760|c[1]&65535,c[3]<<16|c[3]>>>16,c[1]&4294901760|c[2]&65535,c[0]<<16|c[0]>>>16,c[2]&4294901760|c[3]&65535,c[1]<<16|c[1]>>>16,c[3]&4294901760|c[0]&65535];this._b=0;for(var m=0;m<4;m++)d.call(this);for(var m=0;m<8;m++)v[m]^=p[m+4&7];if(f){var g=f.words,x=g[0],y=g[1],w=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,F=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,T=w>>>16|F&4294901760,I=F<<16|w&65535;v[0]^=w,v[1]^=T,v[2]^=F,v[3]^=I,v[4]^=w,v[5]^=T,v[6]^=F,v[7]^=I;for(var m=0;m<4;m++)d.call(this)}},_doProcessBlock:function(c,f){var p=this._X;d.call(this),u[0]=p[0]^p[5]>>>16^p[3]<<16,u[1]=p[2]^p[7]>>>16^p[5]<<16,u[2]=p[4]^p[1]>>>16^p[7]<<16,u[3]=p[6]^p[3]>>>16^p[1]<<16;for(var v=0;v<4;v++)u[v]=(u[v]<<8|u[v]>>>24)&16711935|(u[v]<<24|u[v]>>>8)&4278255360,c[f+v]^=u[v]},blockSize:128/32,ivSize:64/32});function d(){for(var c=this._X,f=this._C,p=0;p<8;p++)h[p]=f[p];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0<h[0]>>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0<h[1]>>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0<h[2]>>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0<h[3]>>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0<h[4]>>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0<h[5]>>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0<h[6]>>>0?1:0)|0,this._b=f[7]>>>0<h[7]>>>0?1:0;for(var p=0;p<8;p++){var v=c[p]+f[p],m=v&65535,g=v>>>16,x=((m*m>>>17)+m*g>>>15)+g*g,y=((v&4294901760)*v|0)+((v&65535)*v|0);a[p]=x^y}c[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,c[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,c[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,c[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,c[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,c[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,c[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,c[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}n.RabbitLegacy=o._createHelper(i)}(),r.RabbitLegacy})}(go)),go.exports}var xo={exports:{}},Qs;function mm(){return Qs||(Qs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Zt(),Jt(),Ot(),je())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.BlockCipher,s=n.algo;const u=16,h=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var i={pbox:[],sbox:[]};function d(m,g){let x=g>>24&255,y=g>>16&255,w=g>>8&255,F=g&255,T=m.sbox[0][x]+m.sbox[1][y];return T=T^m.sbox[2][w],T=T+m.sbox[3][F],T}function c(m,g,x){let y=g,w=x,F;for(let T=0;T<u;++T)y=y^m.pbox[T],w=d(m,y)^w,F=y,y=w,w=F;return F=y,y=w,w=F,w=w^m.pbox[u],y=y^m.pbox[u+1],{left:y,right:w}}function f(m,g,x){let y=g,w=x,F;for(let T=u+1;T>1;--T)y=y^m.pbox[T],w=d(m,y)^w,F=y,y=w,w=F;return F=y,y=w,w=F,w=w^m.pbox[1],y=y^m.pbox[0],{left:y,right:w}}function p(m,g,x){for(let I=0;I<4;I++){m.sbox[I]=[];for(let D=0;D<256;D++)m.sbox[I][D]=a[I][D]}let y=0;for(let I=0;I<u+2;I++)m.pbox[I]=h[I]^g[y],y++,y>=x&&(y=0);let w=0,F=0,T=0;for(let I=0;I<u+2;I+=2)T=c(m,w,F),w=T.left,F=T.right,m.pbox[I]=w,m.pbox[I+1]=F;for(let I=0;I<4;I++)for(let D=0;D<256;D+=2)T=c(m,w,F),w=T.left,F=T.right,m.sbox[I][D]=w,m.sbox[I][D+1]=F;return!0}var v=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var m=this._keyPriorReset=this._key,g=m.words,x=m.sigBytes/4;p(i,g,x)}},encryptBlock:function(m,g){var x=c(i,m[g],m[g+1]);m[g]=x.left,m[g+1]=x.right},decryptBlock:function(m,g){var x=f(i,m[g],m[g+1]);m[g]=x.left,m[g+1]=x.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=o._createHelper(v)}(),r.Blowfish})}(xo)),xo.exports}(function(e,t){(function(r,n,l){e.exports=n(Ae(),Kn(),V1(),W1(),Zt(),K1(),Jt(),uu(),ra(),G1(),cu(),Q1(),Y1(),X1(),na(),Z1(),Ot(),je(),J1(),em(),tm(),rm(),nm(),im(),om(),am(),sm(),lm(),um(),cm(),fm(),hm(),pm(),dm(),mm())})(xe,function(r){return r})})($1);var we={},Gn={};Gn.byteLength=gm;Gn.toByteArray=bm;Gn.fromByteArray=Em;var wt=[],it=[],vm=typeof Uint8Array!="undefined"?Uint8Array:Array,bo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var ar=0,ym=bo.length;ar<ym;++ar)wt[ar]=bo[ar],it[bo.charCodeAt(ar)]=ar;it[45]=62;it[95]=63;function fu(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function gm(e){var t=fu(e),r=t[0],n=t[1];return(r+n)*3/4-n}function xm(e,t,r){return(t+r)*3/4-r}function bm(e){var t,r=fu(e),n=r[0],l=r[1],o=new vm(xm(e,n,l)),s=0,u=l>0?n-4:n,h;for(h=0;h<u;h+=4)t=it[e.charCodeAt(h)]<<18|it[e.charCodeAt(h+1)]<<12|it[e.charCodeAt(h+2)]<<6|it[e.charCodeAt(h+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=t&255;return l===2&&(t=it[e.charCodeAt(h)]<<2|it[e.charCodeAt(h+1)]>>4,o[s++]=t&255),l===1&&(t=it[e.charCodeAt(h)]<<10|it[e.charCodeAt(h+1)]<<4|it[e.charCodeAt(h+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255),o}function wm(e){return wt[e>>18&63]+wt[e>>12&63]+wt[e>>6&63]+wt[e&63]}function _m(e,t,r){for(var n,l=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),l.push(wm(n));return l.join("")}function Em(e){for(var t,r=e.length,n=r%3,l=[],o=16383,s=0,u=r-n;s<u;s+=o)l.push(_m(e,s,s+o>u?u:s+o));return n===1?(t=e[r-1],l.push(wt[t>>2]+wt[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],l.push(wt[t>>10]+wt[t>>4&63]+wt[t<<2&63]+"=")),l.join("")}var ia={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ia.read=function(e,t,r,n,l){var o,s,u=l*8-n-1,h=(1<<u)-1,a=h>>1,i=-7,d=r?l-1:0,c=r?-1:1,f=e[t+d];for(d+=c,o=f&(1<<-i)-1,f>>=-i,i+=u;i>0;o=o*256+e[t+d],d+=c,i-=8);for(s=o&(1<<-i)-1,o>>=-i,i+=n;i>0;s=s*256+e[t+d],d+=c,i-=8);if(o===0)o=1-a;else{if(o===h)return s?NaN:(f?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-a}return(f?-1:1)*s*Math.pow(2,o-n)};ia.write=function(e,t,r,n,l,o){var s,u,h,a=o*8-l-1,i=(1<<a)-1,d=i>>1,c=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,s=i):(s=Math.floor(Math.log(t)/Math.LN2),t*(h=Math.pow(2,-s))<1&&(s--,h*=2),s+d>=1?t+=c/h:t+=c*Math.pow(2,1-d),t*h>=2&&(s++,h/=2),s+d>=i?(u=0,s=i):s+d>=1?(u=(t*h-1)*Math.pow(2,l),s=s+d):(u=t*Math.pow(2,d-1)*Math.pow(2,l),s=0));l>=8;e[r+f]=u&255,f+=p,u/=256,l-=8);for(s=s<<l|u,a+=l;a>0;e[r+f]=s&255,f+=p,s/=256,a-=8);e[r+f-p]|=v*128};/*!
|
|
26
|
+
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function l(u){if((u>>24&255)===255){var h=u>>16&255,a=u>>8&255,i=u&255;h===255?(h=0,a===255?(a=0,i===255?i=0:++i):++a):++h,u=0,u+=h<<16,u+=a<<8,u+=i}else u+=1<<24;return u}function o(u){return(u[0]=l(u[0]))===0&&(u[1]=l(u[1])),u}var s=n.Encryptor=n.extend({processBlock:function(u,h){var a=this._cipher,i=a.blockSize,d=this._iv,c=this._counter;d&&(c=this._counter=d.slice(0),this._iv=void 0),o(c);var f=c.slice(0);a.encryptBlock(f,0);for(var p=0;p<i;p++)u[h+p]^=f[p]}});return n.Decryptor=s,n}(),r.mode.CTRGladman})}(io)),io.exports}var oo={exports:{}},Ms;function z1(){return Ms||(Ms=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),l=n.Encryptor=n.extend({processBlock:function(o,s){var u=this._cipher,h=u.blockSize,a=this._iv,i=this._keystream;a&&(i=this._keystream=a.slice(0),this._iv=void 0),u.encryptBlock(i,0);for(var d=0;d<h;d++)o[s+d]^=i[d]}});return n.Decryptor=l,n}(),r.mode.OFB})}(oo)),oo.exports}var ao={exports:{}},Ns;function q1(){return Ns||(Ns=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(l,o){this._cipher.encryptBlock(l,o)}}),n.Decryptor=n.extend({processBlock:function(l,o){this._cipher.decryptBlock(l,o)}}),n}(),r.mode.ECB})}(ao)),ao.exports}var so={exports:{}},Ls;function j1(){return Ls||(Ls=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.pad.AnsiX923={pad:function(n,l){var o=n.sigBytes,s=l*4,u=s-o%s,h=o+u-1;n.clamp(),n.words[h>>>2]|=u<<24-h%4*8,n.sigBytes+=u},unpad:function(n){var l=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=l}},r.pad.Ansix923})}(so)),so.exports}var lo={exports:{}},Us;function H1(){return Us||(Us=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.pad.Iso10126={pad:function(n,l){var o=l*4,s=o-n.sigBytes%o;n.concat(r.lib.WordArray.random(s-1)).concat(r.lib.WordArray.create([s<<24],1))},unpad:function(n){var l=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=l}},r.pad.Iso10126})}(lo)),lo.exports}var uo={exports:{}},zs;function $1(){return zs||(zs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.pad.Iso97971={pad:function(n,l){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,l)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}(uo)),uo.exports}var co={exports:{}},qs;function V1(){return qs||(qs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.pad.ZeroPadding={pad:function(n,l){var o=l*4;n.clamp(),n.sigBytes+=o-(n.sigBytes%o||o)},unpad:function(n){for(var l=n.words,o=n.sigBytes-1,o=n.sigBytes-1;o>=0;o--)if(l[o>>>2]>>>24-o%4*8&255){n.sigBytes=o+1;break}}},r.pad.ZeroPadding})}(co)),co.exports}var fo={exports:{}},js;function W1(){return js||(js=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(fo)),fo.exports}var ho={exports:{}},Hs;function K1(){return Hs||(Hs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),je())})(xe,function(r){return function(n){var l=r,o=l.lib,s=o.CipherParams,u=l.enc,h=u.Hex,a=l.format;a.Hex={stringify:function(i){return i.ciphertext.toString(h)},parse:function(i){var d=h.parse(i);return s.create({ciphertext:d})}}}(),r.format.Hex})}(ho)),ho.exports}var po={exports:{}},$s;function G1(){return $s||($s=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Zt(),Jt(),Ot(),je())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.BlockCipher,s=n.algo,u=[],h=[],a=[],i=[],d=[],c=[],f=[],p=[],v=[],m=[];(function(){for(var y=[],w=0;w<256;w++)w<128?y[w]=w<<1:y[w]=w<<1^283;for(var k=0,T=0,w=0;w<256;w++){var F=T^T<<1^T<<2^T<<3^T<<4;F=F>>>8^F&255^99,u[k]=F,h[F]=k;var I=y[k],G=y[I],K=y[G],E=y[F]*257^F*16843008;a[k]=E<<24|E>>>8,i[k]=E<<16|E>>>16,d[k]=E<<8|E>>>24,c[k]=E;var E=K*16843009^G*65537^I*257^k*16843008;f[F]=E<<24|E>>>8,p[F]=E<<16|E>>>16,v[F]=E<<8|E>>>24,m[F]=E,k?(k=I^y[y[y[K^I]]],T^=y[y[T]]):k=T=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],x=s.AES=o.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,k=w.words,T=w.sigBytes/4,F=this._nRounds=T+6,I=(F+1)*4,G=this._keySchedule=[],K=0;K<I;K++)K<T?G[K]=k[K]:(y=G[K-1],K%T?T>6&&K%T==4&&(y=u[y>>>24]<<24|u[y>>>16&255]<<16|u[y>>>8&255]<<8|u[y&255]):(y=y<<8|y>>>24,y=u[y>>>24]<<24|u[y>>>16&255]<<16|u[y>>>8&255]<<8|u[y&255],y^=g[K/T|0]<<24),G[K]=G[K-T]^y);for(var E=this._invKeySchedule=[],A=0;A<I;A++){var K=I-A;if(A%4)var y=G[K];else var y=G[K-4];A<4||K<=4?E[A]=y:E[A]=f[u[y>>>24]]^p[u[y>>>16&255]]^v[u[y>>>8&255]]^m[u[y&255]]}}},encryptBlock:function(y,w){this._doCryptBlock(y,w,this._keySchedule,a,i,d,c,u)},decryptBlock:function(y,w){var k=y[w+1];y[w+1]=y[w+3],y[w+3]=k,this._doCryptBlock(y,w,this._invKeySchedule,f,p,v,m,h);var k=y[w+1];y[w+1]=y[w+3],y[w+3]=k},_doCryptBlock:function(y,w,k,T,F,I,G,K){for(var E=this._nRounds,A=y[w]^k[0],S=y[w+1]^k[1],D=y[w+2]^k[2],P=y[w+3]^k[3],j=4,Z=1;Z<E;Z++){var V=T[A>>>24]^F[S>>>16&255]^I[D>>>8&255]^G[P&255]^k[j++],L=T[S>>>24]^F[D>>>16&255]^I[P>>>8&255]^G[A&255]^k[j++],H=T[D>>>24]^F[P>>>16&255]^I[A>>>8&255]^G[S&255]^k[j++],U=T[P>>>24]^F[A>>>16&255]^I[S>>>8&255]^G[D&255]^k[j++];A=V,S=L,D=H,P=U}var V=(K[A>>>24]<<24|K[S>>>16&255]<<16|K[D>>>8&255]<<8|K[P&255])^k[j++],L=(K[S>>>24]<<24|K[D>>>16&255]<<16|K[P>>>8&255]<<8|K[A&255])^k[j++],H=(K[D>>>24]<<24|K[P>>>16&255]<<16|K[A>>>8&255]<<8|K[S&255])^k[j++],U=(K[P>>>24]<<24|K[A>>>16&255]<<16|K[S>>>8&255]<<8|K[D&255])^k[j++];y[w]=V,y[w+1]=L,y[w+2]=H,y[w+3]=U},keySize:256/32});n.AES=o._createHelper(x)}(),r.AES})}(po)),po.exports}var mo={exports:{}},Vs;function Q1(){return Vs||(Vs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Zt(),Jt(),Ot(),je())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.WordArray,s=l.BlockCipher,u=n.algo,h=[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],a=[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],i=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{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}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=u.DES=s.extend({_doReset:function(){for(var g=this._key,x=g.words,y=[],w=0;w<56;w++){var k=h[w]-1;y[w]=x[k>>>5]>>>31-k%32&1}for(var T=this._subKeys=[],F=0;F<16;F++){for(var I=T[F]=[],G=i[F],w=0;w<24;w++)I[w/6|0]|=y[(a[w]-1+G)%28]<<31-w%6,I[4+(w/6|0)]|=y[28+(a[w+24]-1+G)%28]<<31-w%6;I[0]=I[0]<<1|I[0]>>>31;for(var w=1;w<7;w++)I[w]=I[w]>>>(w-1)*4+3;I[7]=I[7]<<5|I[7]>>>27}for(var K=this._invSubKeys=[],w=0;w<16;w++)K[w]=T[15-w]},encryptBlock:function(g,x){this._doCryptBlock(g,x,this._subKeys)},decryptBlock:function(g,x){this._doCryptBlock(g,x,this._invSubKeys)},_doCryptBlock:function(g,x,y){this._lBlock=g[x],this._rBlock=g[x+1],p.call(this,4,252645135),p.call(this,16,65535),v.call(this,2,858993459),v.call(this,8,16711935),p.call(this,1,1431655765);for(var w=0;w<16;w++){for(var k=y[w],T=this._lBlock,F=this._rBlock,I=0,G=0;G<8;G++)I|=d[G][((F^k[G])&c[G])>>>0];this._lBlock=F,this._rBlock=T^I}var K=this._lBlock;this._lBlock=this._rBlock,this._rBlock=K,p.call(this,1,1431655765),v.call(this,8,16711935),v.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),g[x]=this._lBlock,g[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function p(g,x){var y=(this._lBlock>>>g^this._rBlock)&x;this._rBlock^=y,this._lBlock^=y<<g}function v(g,x){var y=(this._rBlock>>>g^this._lBlock)&x;this._lBlock^=y,this._rBlock^=y<<g}n.DES=s._createHelper(f);var m=u.TripleDES=s.extend({_doReset:function(){var g=this._key,x=g.words;if(x.length!==2&&x.length!==4&&x.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var y=x.slice(0,2),w=x.length<4?x.slice(0,2):x.slice(2,4),k=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=f.createEncryptor(o.create(y)),this._des2=f.createEncryptor(o.create(w)),this._des3=f.createEncryptor(o.create(k))},encryptBlock:function(g,x){this._des1.encryptBlock(g,x),this._des2.decryptBlock(g,x),this._des3.encryptBlock(g,x)},decryptBlock:function(g,x){this._des3.decryptBlock(g,x),this._des2.encryptBlock(g,x),this._des1.decryptBlock(g,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=s._createHelper(m)}(),r.TripleDES})}(mo)),mo.exports}var vo={exports:{}},Ws;function Y1(){return Ws||(Ws=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Zt(),Jt(),Ot(),je())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.StreamCipher,s=n.algo,u=s.RC4=o.extend({_doReset:function(){for(var i=this._key,d=i.words,c=i.sigBytes,f=this._S=[],p=0;p<256;p++)f[p]=p;for(var p=0,v=0;p<256;p++){var m=p%c,g=d[m>>>2]>>>24-m%4*8&255;v=(v+f[p]+g)%256;var x=f[p];f[p]=f[v],f[v]=x}this._i=this._j=0},_doProcessBlock:function(i,d){i[d]^=h.call(this)},keySize:256/32,ivSize:0});function h(){for(var i=this._S,d=this._i,c=this._j,f=0,p=0;p<4;p++){d=(d+1)%256,c=(c+i[d])%256;var v=i[d];i[d]=i[c],i[c]=v,f|=i[(i[d]+i[c])%256]<<24-p*8}return this._i=d,this._j=c,f}n.RC4=o._createHelper(u);var a=s.RC4Drop=u.extend({cfg:u.cfg.extend({drop:192}),_doReset:function(){u._doReset.call(this);for(var i=this.cfg.drop;i>0;i--)h.call(this)}});n.RC4Drop=o._createHelper(a)}(),r.RC4})}(vo)),vo.exports}var yo={exports:{}},Ks;function X1(){return Ks||(Ks=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Zt(),Jt(),Ot(),je())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.StreamCipher,s=n.algo,u=[],h=[],a=[],i=s.Rabbit=o.extend({_doReset:function(){for(var c=this._key.words,f=this.cfg.iv,p=0;p<4;p++)c[p]=(c[p]<<8|c[p]>>>24)&16711935|(c[p]<<24|c[p]>>>8)&4278255360;var v=this._X=[c[0],c[3]<<16|c[2]>>>16,c[1],c[0]<<16|c[3]>>>16,c[2],c[1]<<16|c[0]>>>16,c[3],c[2]<<16|c[1]>>>16],m=this._C=[c[2]<<16|c[2]>>>16,c[0]&4294901760|c[1]&65535,c[3]<<16|c[3]>>>16,c[1]&4294901760|c[2]&65535,c[0]<<16|c[0]>>>16,c[2]&4294901760|c[3]&65535,c[1]<<16|c[1]>>>16,c[3]&4294901760|c[0]&65535];this._b=0;for(var p=0;p<4;p++)d.call(this);for(var p=0;p<8;p++)m[p]^=v[p+4&7];if(f){var g=f.words,x=g[0],y=g[1],w=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,k=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,T=w>>>16|k&4294901760,F=k<<16|w&65535;m[0]^=w,m[1]^=T,m[2]^=k,m[3]^=F,m[4]^=w,m[5]^=T,m[6]^=k,m[7]^=F;for(var p=0;p<4;p++)d.call(this)}},_doProcessBlock:function(c,f){var p=this._X;d.call(this),u[0]=p[0]^p[5]>>>16^p[3]<<16,u[1]=p[2]^p[7]>>>16^p[5]<<16,u[2]=p[4]^p[1]>>>16^p[7]<<16,u[3]=p[6]^p[3]>>>16^p[1]<<16;for(var v=0;v<4;v++)u[v]=(u[v]<<8|u[v]>>>24)&16711935|(u[v]<<24|u[v]>>>8)&4278255360,c[f+v]^=u[v]},blockSize:128/32,ivSize:64/32});function d(){for(var c=this._X,f=this._C,p=0;p<8;p++)h[p]=f[p];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0<h[0]>>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0<h[1]>>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0<h[2]>>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0<h[3]>>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0<h[4]>>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0<h[5]>>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0<h[6]>>>0?1:0)|0,this._b=f[7]>>>0<h[7]>>>0?1:0;for(var p=0;p<8;p++){var v=c[p]+f[p],m=v&65535,g=v>>>16,x=((m*m>>>17)+m*g>>>15)+g*g,y=((v&4294901760)*v|0)+((v&65535)*v|0);a[p]=x^y}c[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,c[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,c[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,c[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,c[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,c[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,c[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,c[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}n.Rabbit=o._createHelper(i)}(),r.Rabbit})}(yo)),yo.exports}var go={exports:{}},Gs;function Z1(){return Gs||(Gs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Zt(),Jt(),Ot(),je())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.StreamCipher,s=n.algo,u=[],h=[],a=[],i=s.RabbitLegacy=o.extend({_doReset:function(){var c=this._key.words,f=this.cfg.iv,p=this._X=[c[0],c[3]<<16|c[2]>>>16,c[1],c[0]<<16|c[3]>>>16,c[2],c[1]<<16|c[0]>>>16,c[3],c[2]<<16|c[1]>>>16],v=this._C=[c[2]<<16|c[2]>>>16,c[0]&4294901760|c[1]&65535,c[3]<<16|c[3]>>>16,c[1]&4294901760|c[2]&65535,c[0]<<16|c[0]>>>16,c[2]&4294901760|c[3]&65535,c[1]<<16|c[1]>>>16,c[3]&4294901760|c[0]&65535];this._b=0;for(var m=0;m<4;m++)d.call(this);for(var m=0;m<8;m++)v[m]^=p[m+4&7];if(f){var g=f.words,x=g[0],y=g[1],w=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,k=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,T=w>>>16|k&4294901760,F=k<<16|w&65535;v[0]^=w,v[1]^=T,v[2]^=k,v[3]^=F,v[4]^=w,v[5]^=T,v[6]^=k,v[7]^=F;for(var m=0;m<4;m++)d.call(this)}},_doProcessBlock:function(c,f){var p=this._X;d.call(this),u[0]=p[0]^p[5]>>>16^p[3]<<16,u[1]=p[2]^p[7]>>>16^p[5]<<16,u[2]=p[4]^p[1]>>>16^p[7]<<16,u[3]=p[6]^p[3]>>>16^p[1]<<16;for(var v=0;v<4;v++)u[v]=(u[v]<<8|u[v]>>>24)&16711935|(u[v]<<24|u[v]>>>8)&4278255360,c[f+v]^=u[v]},blockSize:128/32,ivSize:64/32});function d(){for(var c=this._X,f=this._C,p=0;p<8;p++)h[p]=f[p];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0<h[0]>>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0<h[1]>>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0<h[2]>>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0<h[3]>>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0<h[4]>>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0<h[5]>>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0<h[6]>>>0?1:0)|0,this._b=f[7]>>>0<h[7]>>>0?1:0;for(var p=0;p<8;p++){var v=c[p]+f[p],m=v&65535,g=v>>>16,x=((m*m>>>17)+m*g>>>15)+g*g,y=((v&4294901760)*v|0)+((v&65535)*v|0);a[p]=x^y}c[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,c[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,c[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,c[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,c[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,c[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,c[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,c[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}n.RabbitLegacy=o._createHelper(i)}(),r.RabbitLegacy})}(go)),go.exports}var xo={exports:{}},Qs;function J1(){return Qs||(Qs=1,function(e,t){(function(r,n,l){e.exports=n(Ae(),Zt(),Jt(),Ot(),je())})(xe,function(r){return function(){var n=r,l=n.lib,o=l.BlockCipher,s=n.algo;const u=16,h=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var i={pbox:[],sbox:[]};function d(m,g){let x=g>>24&255,y=g>>16&255,w=g>>8&255,k=g&255,T=m.sbox[0][x]+m.sbox[1][y];return T=T^m.sbox[2][w],T=T+m.sbox[3][k],T}function c(m,g,x){let y=g,w=x,k;for(let T=0;T<u;++T)y=y^m.pbox[T],w=d(m,y)^w,k=y,y=w,w=k;return k=y,y=w,w=k,w=w^m.pbox[u],y=y^m.pbox[u+1],{left:y,right:w}}function f(m,g,x){let y=g,w=x,k;for(let T=u+1;T>1;--T)y=y^m.pbox[T],w=d(m,y)^w,k=y,y=w,w=k;return k=y,y=w,w=k,w=w^m.pbox[1],y=y^m.pbox[0],{left:y,right:w}}function p(m,g,x){for(let F=0;F<4;F++){m.sbox[F]=[];for(let I=0;I<256;I++)m.sbox[F][I]=a[F][I]}let y=0;for(let F=0;F<u+2;F++)m.pbox[F]=h[F]^g[y],y++,y>=x&&(y=0);let w=0,k=0,T=0;for(let F=0;F<u+2;F+=2)T=c(m,w,k),w=T.left,k=T.right,m.pbox[F]=w,m.pbox[F+1]=k;for(let F=0;F<4;F++)for(let I=0;I<256;I+=2)T=c(m,w,k),w=T.left,k=T.right,m.sbox[F][I]=w,m.sbox[F][I+1]=k;return!0}var v=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var m=this._keyPriorReset=this._key,g=m.words,x=m.sigBytes/4;p(i,g,x)}},encryptBlock:function(m,g){var x=c(i,m[g],m[g+1]);m[g]=x.left,m[g+1]=x.right},decryptBlock:function(m,g){var x=f(i,m[g],m[g+1]);m[g]=x.left,m[g+1]=x.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=o._createHelper(v)}(),r.Blowfish})}(xo)),xo.exports}(function(e,t){(function(r,n,l){e.exports=n(Ae(),Kn(),T1(),F1(),Zt(),I1(),Jt(),Kl(),ra(),D1(),Gl(),R1(),O1(),P1(),na(),M1(),Ot(),je(),N1(),L1(),U1(),z1(),q1(),j1(),H1(),$1(),V1(),W1(),K1(),G1(),Q1(),Y1(),X1(),Z1(),J1())})(xe,function(r){return r})})(k1);var we={},Gn={};Gn.byteLength=rm;Gn.toByteArray=im;Gn.fromByteArray=sm;var wt=[],it=[],em=typeof Uint8Array!="undefined"?Uint8Array:Array,bo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var ar=0,tm=bo.length;ar<tm;++ar)wt[ar]=bo[ar],it[bo.charCodeAt(ar)]=ar;it[45]=62;it[95]=63;function Ql(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function rm(e){var t=Ql(e),r=t[0],n=t[1];return(r+n)*3/4-n}function nm(e,t,r){return(t+r)*3/4-r}function im(e){var t,r=Ql(e),n=r[0],l=r[1],o=new em(nm(e,n,l)),s=0,u=l>0?n-4:n,h;for(h=0;h<u;h+=4)t=it[e.charCodeAt(h)]<<18|it[e.charCodeAt(h+1)]<<12|it[e.charCodeAt(h+2)]<<6|it[e.charCodeAt(h+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=t&255;return l===2&&(t=it[e.charCodeAt(h)]<<2|it[e.charCodeAt(h+1)]>>4,o[s++]=t&255),l===1&&(t=it[e.charCodeAt(h)]<<10|it[e.charCodeAt(h+1)]<<4|it[e.charCodeAt(h+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255),o}function om(e){return wt[e>>18&63]+wt[e>>12&63]+wt[e>>6&63]+wt[e&63]}function am(e,t,r){for(var n,l=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),l.push(om(n));return l.join("")}function sm(e){for(var t,r=e.length,n=r%3,l=[],o=16383,s=0,u=r-n;s<u;s+=o)l.push(am(e,s,s+o>u?u:s+o));return n===1?(t=e[r-1],l.push(wt[t>>2]+wt[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],l.push(wt[t>>10]+wt[t>>4&63]+wt[t<<2&63]+"=")),l.join("")}var ia={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ia.read=function(e,t,r,n,l){var o,s,u=l*8-n-1,h=(1<<u)-1,a=h>>1,i=-7,d=r?l-1:0,c=r?-1:1,f=e[t+d];for(d+=c,o=f&(1<<-i)-1,f>>=-i,i+=u;i>0;o=o*256+e[t+d],d+=c,i-=8);for(s=o&(1<<-i)-1,o>>=-i,i+=n;i>0;s=s*256+e[t+d],d+=c,i-=8);if(o===0)o=1-a;else{if(o===h)return s?NaN:(f?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-a}return(f?-1:1)*s*Math.pow(2,o-n)};ia.write=function(e,t,r,n,l,o){var s,u,h,a=o*8-l-1,i=(1<<a)-1,d=i>>1,c=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,s=i):(s=Math.floor(Math.log(t)/Math.LN2),t*(h=Math.pow(2,-s))<1&&(s--,h*=2),s+d>=1?t+=c/h:t+=c*Math.pow(2,1-d),t*h>=2&&(s++,h/=2),s+d>=i?(u=0,s=i):s+d>=1?(u=(t*h-1)*Math.pow(2,l),s=s+d):(u=t*Math.pow(2,d-1)*Math.pow(2,l),s=0));l>=8;e[r+f]=u&255,f+=p,u/=256,l-=8);for(s=s<<l|u,a+=l;a>0;e[r+f]=s&255,f+=p,s/=256,a-=8);e[r+f-p]|=v*128};/*!
|
|
27
27
|
* The buffer module from node.js, for the browser.
|
|
28
28
|
*
|
|
29
29
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
30
30
|
* @license MIT
|
|
31
|
-
*/(function(e){var t=Gn,r=ia,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=x,e.INSPECT_MAX_BYTES=50;var l=2147483647;e.kMaxLength=l,u.TYPED_ARRAY_SUPPORT=o(),!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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.");function o(){try{var j=new Uint8Array(1),S={foo:function(){return 42}};return Object.setPrototypeOf(S,Uint8Array.prototype),Object.setPrototypeOf(j,S),j.foo()===42}catch(k){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function s(j){if(j>l)throw new RangeError('The value "'+j+'" is invalid for option "size"');var S=new Uint8Array(j);return Object.setPrototypeOf(S,u.prototype),S}function u(j,S,k){if(typeof j=="number"){if(typeof S=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(j)}return h(j,S,k)}u.poolSize=8192;function h(j,S,k){if(typeof j=="string")return c(j,S);if(ArrayBuffer.isView(j))return p(j);if(j==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j);if(J(j,ArrayBuffer)||j&&J(j.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(J(j,SharedArrayBuffer)||j&&J(j.buffer,SharedArrayBuffer)))return v(j,S,k);if(typeof j=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Y=j.valueOf&&j.valueOf();if(Y!=null&&Y!==j)return u.from(Y,S,k);var ne=m(j);if(ne)return ne;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof j[Symbol.toPrimitive]=="function")return u.from(j[Symbol.toPrimitive]("string"),S,k);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j)}u.from=function(j,S,k){return h(j,S,k)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function a(j){if(typeof j!="number")throw new TypeError('"size" argument must be of type number');if(j<0)throw new RangeError('The value "'+j+'" is invalid for option "size"')}function i(j,S,k){return a(j),j<=0?s(j):S!==void 0?typeof k=="string"?s(j).fill(S,k):s(j).fill(S):s(j)}u.alloc=function(j,S,k){return i(j,S,k)};function d(j){return a(j),s(j<0?0:g(j)|0)}u.allocUnsafe=function(j){return d(j)},u.allocUnsafeSlow=function(j){return d(j)};function c(j,S){if((typeof S!="string"||S==="")&&(S="utf8"),!u.isEncoding(S))throw new TypeError("Unknown encoding: "+S);var k=y(j,S)|0,Y=s(k),ne=Y.write(j,S);return ne!==k&&(Y=Y.slice(0,ne)),Y}function f(j){for(var S=j.length<0?0:g(j.length)|0,k=s(S),Y=0;Y<S;Y+=1)k[Y]=j[Y]&255;return k}function p(j){if(J(j,Uint8Array)){var S=new Uint8Array(j);return v(S.buffer,S.byteOffset,S.byteLength)}return f(j)}function v(j,S,k){if(S<0||j.byteLength<S)throw new RangeError('"offset" is outside of buffer bounds');if(j.byteLength<S+(k||0))throw new RangeError('"length" is outside of buffer bounds');var Y;return S===void 0&&k===void 0?Y=new Uint8Array(j):k===void 0?Y=new Uint8Array(j,S):Y=new Uint8Array(j,S,k),Object.setPrototypeOf(Y,u.prototype),Y}function m(j){if(u.isBuffer(j)){var S=g(j.length)|0,k=s(S);return k.length===0||j.copy(k,0,0,S),k}if(j.length!==void 0)return typeof j.length!="number"||te(j.length)?s(0):f(j);if(j.type==="Buffer"&&Array.isArray(j.data))return f(j.data)}function g(j){if(j>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return j|0}function x(j){return+j!=j&&(j=0),u.alloc(+j)}u.isBuffer=function(S){return S!=null&&S._isBuffer===!0&&S!==u.prototype},u.compare=function(S,k){if(J(S,Uint8Array)&&(S=u.from(S,S.offset,S.byteLength)),J(k,Uint8Array)&&(k=u.from(k,k.offset,k.byteLength)),!u.isBuffer(S)||!u.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(S===k)return 0;for(var Y=S.length,ne=k.length,ue=0,ce=Math.min(Y,ne);ue<ce;++ue)if(S[ue]!==k[ue]){Y=S[ue],ne=k[ue];break}return Y<ne?-1:ne<Y?1:0},u.isEncoding=function(S){switch(String(S).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}},u.concat=function(S,k){if(!Array.isArray(S))throw new TypeError('"list" argument must be an Array of Buffers');if(S.length===0)return u.alloc(0);var Y;if(k===void 0)for(k=0,Y=0;Y<S.length;++Y)k+=S[Y].length;var ne=u.allocUnsafe(k),ue=0;for(Y=0;Y<S.length;++Y){var ce=S[Y];if(J(ce,Uint8Array))ue+ce.length>ne.length?u.from(ce).copy(ne,ue):Uint8Array.prototype.set.call(ne,ce,ue);else if(u.isBuffer(ce))ce.copy(ne,ue);else throw new TypeError('"list" argument must be an Array of Buffers');ue+=ce.length}return ne};function y(j,S){if(u.isBuffer(j))return j.length;if(ArrayBuffer.isView(j)||J(j,ArrayBuffer))return j.byteLength;if(typeof j!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof j);var k=j.length,Y=arguments.length>2&&arguments[2]===!0;if(!Y&&k===0)return 0;for(var ne=!1;;)switch(S){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":return ae(j).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k*2;case"hex":return k>>>1;case"base64":return R(j).length;default:if(ne)return Y?-1:ae(j).length;S=(""+S).toLowerCase(),ne=!0}}u.byteLength=y;function w(j,S,k){var Y=!1;if((S===void 0||S<0)&&(S=0),S>this.length||((k===void 0||k>this.length)&&(k=this.length),k<=0)||(k>>>=0,S>>>=0,k<=S))return"";for(j||(j="utf8");;)switch(j){case"hex":return N(this,S,k);case"utf8":case"utf-8":return B(this,S,k);case"ascii":return Z(this,S,k);case"latin1":case"binary":return $(this,S,k);case"base64":return C(this,S,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,S,k);default:if(Y)throw new TypeError("Unknown encoding: "+j);j=(j+"").toLowerCase(),Y=!0}}u.prototype._isBuffer=!0;function F(j,S,k){var Y=j[S];j[S]=j[k],j[k]=Y}u.prototype.swap16=function(){var S=this.length;if(S%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var k=0;k<S;k+=2)F(this,k,k+1);return this},u.prototype.swap32=function(){var S=this.length;if(S%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var k=0;k<S;k+=4)F(this,k,k+3),F(this,k+1,k+2);return this},u.prototype.swap64=function(){var S=this.length;if(S%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var k=0;k<S;k+=8)F(this,k,k+7),F(this,k+1,k+6),F(this,k+2,k+5),F(this,k+3,k+4);return this},u.prototype.toString=function(){var S=this.length;return S===0?"":arguments.length===0?B(this,0,S):w.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(S){if(!u.isBuffer(S))throw new TypeError("Argument must be a Buffer");return this===S?!0:u.compare(this,S)===0},u.prototype.inspect=function(){var S="",k=e.INSPECT_MAX_BYTES;return S=this.toString("hex",0,k).replace(/(.{2})/g,"$1 ").trim(),this.length>k&&(S+=" ... "),"<Buffer "+S+">"},n&&(u.prototype[n]=u.prototype.inspect),u.prototype.compare=function(S,k,Y,ne,ue){if(J(S,Uint8Array)&&(S=u.from(S,S.offset,S.byteLength)),!u.isBuffer(S))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof S);if(k===void 0&&(k=0),Y===void 0&&(Y=S?S.length:0),ne===void 0&&(ne=0),ue===void 0&&(ue=this.length),k<0||Y>S.length||ne<0||ue>this.length)throw new RangeError("out of range index");if(ne>=ue&&k>=Y)return 0;if(ne>=ue)return-1;if(k>=Y)return 1;if(k>>>=0,Y>>>=0,ne>>>=0,ue>>>=0,this===S)return 0;for(var ce=ue-ne,me=Y-k,ge=Math.min(ce,me),Ce=this.slice(ne,ue),Te=S.slice(k,Y),Se=0;Se<ge;++Se)if(Ce[Se]!==Te[Se]){ce=Ce[Se],me=Te[Se];break}return ce<me?-1:me<ce?1:0};function T(j,S,k,Y,ne){if(j.length===0)return-1;if(typeof k=="string"?(Y=k,k=0):k>2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),k=+k,te(k)&&(k=ne?0:j.length-1),k<0&&(k=j.length+k),k>=j.length){if(ne)return-1;k=j.length-1}else if(k<0)if(ne)k=0;else return-1;if(typeof S=="string"&&(S=u.from(S,Y)),u.isBuffer(S))return S.length===0?-1:I(j,S,k,Y,ne);if(typeof S=="number")return S=S&255,typeof Uint8Array.prototype.indexOf=="function"?ne?Uint8Array.prototype.indexOf.call(j,S,k):Uint8Array.prototype.lastIndexOf.call(j,S,k):I(j,[S],k,Y,ne);throw new TypeError("val must be string, number or Buffer")}function I(j,S,k,Y,ne){var ue=1,ce=j.length,me=S.length;if(Y!==void 0&&(Y=String(Y).toLowerCase(),Y==="ucs2"||Y==="ucs-2"||Y==="utf16le"||Y==="utf-16le")){if(j.length<2||S.length<2)return-1;ue=2,ce/=2,me/=2,k/=2}function ge(Pt,Mt){return ue===1?Pt[Mt]:Pt.readUInt16BE(Mt*ue)}var Ce;if(ne){var Te=-1;for(Ce=k;Ce<ce;Ce++)if(ge(j,Ce)===ge(S,Te===-1?0:Ce-Te)){if(Te===-1&&(Te=Ce),Ce-Te+1===me)return Te*ue}else Te!==-1&&(Ce-=Ce-Te),Te=-1}else for(k+me>ce&&(k=ce-me),Ce=k;Ce>=0;Ce--){for(var Se=!0,St=0;St<me;St++)if(ge(j,Ce+St)!==ge(S,St)){Se=!1;break}if(Se)return Ce}return-1}u.prototype.includes=function(S,k,Y){return this.indexOf(S,k,Y)!==-1},u.prototype.indexOf=function(S,k,Y){return T(this,S,k,Y,!0)},u.prototype.lastIndexOf=function(S,k,Y){return T(this,S,k,Y,!1)};function D(j,S,k,Y){k=Number(k)||0;var ne=j.length-k;Y?(Y=Number(Y),Y>ne&&(Y=ne)):Y=ne;var ue=S.length;Y>ue/2&&(Y=ue/2);for(var ce=0;ce<Y;++ce){var me=parseInt(S.substr(ce*2,2),16);if(te(me))return ce;j[k+ce]=me}return ce}function X(j,S,k,Y){return G(ae(S,j.length-k),j,k,Y)}function K(j,S,k,Y){return G(b(S),j,k,Y)}function E(j,S,k,Y){return G(R(S),j,k,Y)}function A(j,S,k,Y){return G(_(S,j.length-k),j,k,Y)}u.prototype.write=function(S,k,Y,ne){if(k===void 0)ne="utf8",Y=this.length,k=0;else if(Y===void 0&&typeof k=="string")ne=k,Y=this.length,k=0;else if(isFinite(k))k=k>>>0,isFinite(Y)?(Y=Y>>>0,ne===void 0&&(ne="utf8")):(ne=Y,Y=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ue=this.length-k;if((Y===void 0||Y>ue)&&(Y=ue),S.length>0&&(Y<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");ne||(ne="utf8");for(var ce=!1;;)switch(ne){case"hex":return D(this,S,k,Y);case"utf8":case"utf-8":return X(this,S,k,Y);case"ascii":case"latin1":case"binary":return K(this,S,k,Y);case"base64":return E(this,S,k,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,S,k,Y);default:if(ce)throw new TypeError("Unknown encoding: "+ne);ne=(""+ne).toLowerCase(),ce=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(j,S,k){return S===0&&k===j.length?t.fromByteArray(j):t.fromByteArray(j.slice(S,k))}function B(j,S,k){k=Math.min(j.length,k);for(var Y=[],ne=S;ne<k;){var ue=j[ne],ce=null,me=ue>239?4:ue>223?3:ue>191?2:1;if(ne+me<=k){var ge,Ce,Te,Se;switch(me){case 1:ue<128&&(ce=ue);break;case 2:ge=j[ne+1],(ge&192)===128&&(Se=(ue&31)<<6|ge&63,Se>127&&(ce=Se));break;case 3:ge=j[ne+1],Ce=j[ne+2],(ge&192)===128&&(Ce&192)===128&&(Se=(ue&15)<<12|(ge&63)<<6|Ce&63,Se>2047&&(Se<55296||Se>57343)&&(ce=Se));break;case 4:ge=j[ne+1],Ce=j[ne+2],Te=j[ne+3],(ge&192)===128&&(Ce&192)===128&&(Te&192)===128&&(Se=(ue&15)<<18|(ge&63)<<12|(Ce&63)<<6|Te&63,Se>65535&&Se<1114112&&(ce=Se))}}ce===null?(ce=65533,me=1):ce>65535&&(ce-=65536,Y.push(ce>>>10&1023|55296),ce=56320|ce&1023),Y.push(ce),ne+=me}return q(Y)}var U=4096;function q(j){var S=j.length;if(S<=U)return String.fromCharCode.apply(String,j);for(var k="",Y=0;Y<S;)k+=String.fromCharCode.apply(String,j.slice(Y,Y+=U));return k}function Z(j,S,k){var Y="";k=Math.min(j.length,k);for(var ne=S;ne<k;++ne)Y+=String.fromCharCode(j[ne]&127);return Y}function $(j,S,k){var Y="";k=Math.min(j.length,k);for(var ne=S;ne<k;++ne)Y+=String.fromCharCode(j[ne]);return Y}function N(j,S,k){var Y=j.length;(!S||S<0)&&(S=0),(!k||k<0||k>Y)&&(k=Y);for(var ne="",ue=S;ue<k;++ue)ne+=se[j[ue]];return ne}function V(j,S,k){for(var Y=j.slice(S,k),ne="",ue=0;ue<Y.length-1;ue+=2)ne+=String.fromCharCode(Y[ue]+Y[ue+1]*256);return ne}u.prototype.slice=function(S,k){var Y=this.length;S=~~S,k=k===void 0?Y:~~k,S<0?(S+=Y,S<0&&(S=0)):S>Y&&(S=Y),k<0?(k+=Y,k<0&&(k=0)):k>Y&&(k=Y),k<S&&(k=S);var ne=this.subarray(S,k);return Object.setPrototypeOf(ne,u.prototype),ne};function M(j,S,k){if(j%1!==0||j<0)throw new RangeError("offset is not uint");if(j+S>k)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(S,k,Y){S=S>>>0,k=k>>>0,Y||M(S,k,this.length);for(var ne=this[S],ue=1,ce=0;++ce<k&&(ue*=256);)ne+=this[S+ce]*ue;return ne},u.prototype.readUintBE=u.prototype.readUIntBE=function(S,k,Y){S=S>>>0,k=k>>>0,Y||M(S,k,this.length);for(var ne=this[S+--k],ue=1;k>0&&(ue*=256);)ne+=this[S+--k]*ue;return ne},u.prototype.readUint8=u.prototype.readUInt8=function(S,k){return S=S>>>0,k||M(S,1,this.length),this[S]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(S,k){return S=S>>>0,k||M(S,2,this.length),this[S]|this[S+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(S,k){return S=S>>>0,k||M(S,2,this.length),this[S]<<8|this[S+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(S,k){return S=S>>>0,k||M(S,4,this.length),(this[S]|this[S+1]<<8|this[S+2]<<16)+this[S+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(S,k){return S=S>>>0,k||M(S,4,this.length),this[S]*16777216+(this[S+1]<<16|this[S+2]<<8|this[S+3])},u.prototype.readIntLE=function(S,k,Y){S=S>>>0,k=k>>>0,Y||M(S,k,this.length);for(var ne=this[S],ue=1,ce=0;++ce<k&&(ue*=256);)ne+=this[S+ce]*ue;return ue*=128,ne>=ue&&(ne-=Math.pow(2,8*k)),ne},u.prototype.readIntBE=function(S,k,Y){S=S>>>0,k=k>>>0,Y||M(S,k,this.length);for(var ne=k,ue=1,ce=this[S+--ne];ne>0&&(ue*=256);)ce+=this[S+--ne]*ue;return ue*=128,ce>=ue&&(ce-=Math.pow(2,8*k)),ce},u.prototype.readInt8=function(S,k){return S=S>>>0,k||M(S,1,this.length),this[S]&128?(255-this[S]+1)*-1:this[S]},u.prototype.readInt16LE=function(S,k){S=S>>>0,k||M(S,2,this.length);var Y=this[S]|this[S+1]<<8;return Y&32768?Y|4294901760:Y},u.prototype.readInt16BE=function(S,k){S=S>>>0,k||M(S,2,this.length);var Y=this[S+1]|this[S]<<8;return Y&32768?Y|4294901760:Y},u.prototype.readInt32LE=function(S,k){return S=S>>>0,k||M(S,4,this.length),this[S]|this[S+1]<<8|this[S+2]<<16|this[S+3]<<24},u.prototype.readInt32BE=function(S,k){return S=S>>>0,k||M(S,4,this.length),this[S]<<24|this[S+1]<<16|this[S+2]<<8|this[S+3]},u.prototype.readFloatLE=function(S,k){return S=S>>>0,k||M(S,4,this.length),r.read(this,S,!0,23,4)},u.prototype.readFloatBE=function(S,k){return S=S>>>0,k||M(S,4,this.length),r.read(this,S,!1,23,4)},u.prototype.readDoubleLE=function(S,k){return S=S>>>0,k||M(S,8,this.length),r.read(this,S,!0,52,8)},u.prototype.readDoubleBE=function(S,k){return S=S>>>0,k||M(S,8,this.length),r.read(this,S,!1,52,8)};function O(j,S,k,Y,ne,ue){if(!u.isBuffer(j))throw new TypeError('"buffer" argument must be a Buffer instance');if(S>ne||S<ue)throw new RangeError('"value" argument is out of bounds');if(k+Y>j.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(S,k,Y,ne){if(S=+S,k=k>>>0,Y=Y>>>0,!ne){var ue=Math.pow(2,8*Y)-1;O(this,S,k,Y,ue,0)}var ce=1,me=0;for(this[k]=S&255;++me<Y&&(ce*=256);)this[k+me]=S/ce&255;return k+Y},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(S,k,Y,ne){if(S=+S,k=k>>>0,Y=Y>>>0,!ne){var ue=Math.pow(2,8*Y)-1;O(this,S,k,Y,ue,0)}var ce=Y-1,me=1;for(this[k+ce]=S&255;--ce>=0&&(me*=256);)this[k+ce]=S/me&255;return k+Y},u.prototype.writeUint8=u.prototype.writeUInt8=function(S,k,Y){return S=+S,k=k>>>0,Y||O(this,S,k,1,255,0),this[k]=S&255,k+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(S,k,Y){return S=+S,k=k>>>0,Y||O(this,S,k,2,65535,0),this[k]=S&255,this[k+1]=S>>>8,k+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(S,k,Y){return S=+S,k=k>>>0,Y||O(this,S,k,2,65535,0),this[k]=S>>>8,this[k+1]=S&255,k+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(S,k,Y){return S=+S,k=k>>>0,Y||O(this,S,k,4,4294967295,0),this[k+3]=S>>>24,this[k+2]=S>>>16,this[k+1]=S>>>8,this[k]=S&255,k+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(S,k,Y){return S=+S,k=k>>>0,Y||O(this,S,k,4,4294967295,0),this[k]=S>>>24,this[k+1]=S>>>16,this[k+2]=S>>>8,this[k+3]=S&255,k+4},u.prototype.writeIntLE=function(S,k,Y,ne){if(S=+S,k=k>>>0,!ne){var ue=Math.pow(2,8*Y-1);O(this,S,k,Y,ue-1,-ue)}var ce=0,me=1,ge=0;for(this[k]=S&255;++ce<Y&&(me*=256);)S<0&&ge===0&&this[k+ce-1]!==0&&(ge=1),this[k+ce]=(S/me>>0)-ge&255;return k+Y},u.prototype.writeIntBE=function(S,k,Y,ne){if(S=+S,k=k>>>0,!ne){var ue=Math.pow(2,8*Y-1);O(this,S,k,Y,ue-1,-ue)}var ce=Y-1,me=1,ge=0;for(this[k+ce]=S&255;--ce>=0&&(me*=256);)S<0&&ge===0&&this[k+ce+1]!==0&&(ge=1),this[k+ce]=(S/me>>0)-ge&255;return k+Y},u.prototype.writeInt8=function(S,k,Y){return S=+S,k=k>>>0,Y||O(this,S,k,1,127,-128),S<0&&(S=255+S+1),this[k]=S&255,k+1},u.prototype.writeInt16LE=function(S,k,Y){return S=+S,k=k>>>0,Y||O(this,S,k,2,32767,-32768),this[k]=S&255,this[k+1]=S>>>8,k+2},u.prototype.writeInt16BE=function(S,k,Y){return S=+S,k=k>>>0,Y||O(this,S,k,2,32767,-32768),this[k]=S>>>8,this[k+1]=S&255,k+2},u.prototype.writeInt32LE=function(S,k,Y){return S=+S,k=k>>>0,Y||O(this,S,k,4,2147483647,-2147483648),this[k]=S&255,this[k+1]=S>>>8,this[k+2]=S>>>16,this[k+3]=S>>>24,k+4},u.prototype.writeInt32BE=function(S,k,Y){return S=+S,k=k>>>0,Y||O(this,S,k,4,2147483647,-2147483648),S<0&&(S=4294967295+S+1),this[k]=S>>>24,this[k+1]=S>>>16,this[k+2]=S>>>8,this[k+3]=S&255,k+4};function H(j,S,k,Y,ne,ue){if(k+Y>j.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function W(j,S,k,Y,ne){return S=+S,k=k>>>0,ne||H(j,S,k,4),r.write(j,S,k,Y,23,4),k+4}u.prototype.writeFloatLE=function(S,k,Y){return W(this,S,k,!0,Y)},u.prototype.writeFloatBE=function(S,k,Y){return W(this,S,k,!1,Y)};function ee(j,S,k,Y,ne){return S=+S,k=k>>>0,ne||H(j,S,k,8),r.write(j,S,k,Y,52,8),k+8}u.prototype.writeDoubleLE=function(S,k,Y){return ee(this,S,k,!0,Y)},u.prototype.writeDoubleBE=function(S,k,Y){return ee(this,S,k,!1,Y)},u.prototype.copy=function(S,k,Y,ne){if(!u.isBuffer(S))throw new TypeError("argument should be a Buffer");if(Y||(Y=0),!ne&&ne!==0&&(ne=this.length),k>=S.length&&(k=S.length),k||(k=0),ne>0&&ne<Y&&(ne=Y),ne===Y||S.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if(Y<0||Y>=this.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("sourceEnd out of bounds");ne>this.length&&(ne=this.length),S.length-k<ne-Y&&(ne=S.length-k+Y);var ue=ne-Y;return this===S&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(k,Y,ne):Uint8Array.prototype.set.call(S,this.subarray(Y,ne),k),ue},u.prototype.fill=function(S,k,Y,ne){if(typeof S=="string"){if(typeof k=="string"?(ne=k,k=0,Y=this.length):typeof Y=="string"&&(ne=Y,Y=this.length),ne!==void 0&&typeof ne!="string")throw new TypeError("encoding must be a string");if(typeof ne=="string"&&!u.isEncoding(ne))throw new TypeError("Unknown encoding: "+ne);if(S.length===1){var ue=S.charCodeAt(0);(ne==="utf8"&&ue<128||ne==="latin1")&&(S=ue)}}else typeof S=="number"?S=S&255:typeof S=="boolean"&&(S=Number(S));if(k<0||this.length<k||this.length<Y)throw new RangeError("Out of range index");if(Y<=k)return this;k=k>>>0,Y=Y===void 0?this.length:Y>>>0,S||(S=0);var ce;if(typeof S=="number")for(ce=k;ce<Y;++ce)this[ce]=S;else{var me=u.isBuffer(S)?S:u.from(S,ne),ge=me.length;if(ge===0)throw new TypeError('The value "'+S+'" is invalid for argument "value"');for(ce=0;ce<Y-k;++ce)this[ce+k]=me[ce%ge]}return this};var oe=/[^+/0-9A-Za-z-_]/g;function ie(j){if(j=j.split("=")[0],j=j.trim().replace(oe,""),j.length<2)return"";for(;j.length%4!==0;)j=j+"=";return j}function ae(j,S){S=S||1/0;for(var k,Y=j.length,ne=null,ue=[],ce=0;ce<Y;++ce){if(k=j.charCodeAt(ce),k>55295&&k<57344){if(!ne){if(k>56319){(S-=3)>-1&&ue.push(239,191,189);continue}else if(ce+1===Y){(S-=3)>-1&&ue.push(239,191,189);continue}ne=k;continue}if(k<56320){(S-=3)>-1&&ue.push(239,191,189),ne=k;continue}k=(ne-55296<<10|k-56320)+65536}else ne&&(S-=3)>-1&&ue.push(239,191,189);if(ne=null,k<128){if((S-=1)<0)break;ue.push(k)}else if(k<2048){if((S-=2)<0)break;ue.push(k>>6|192,k&63|128)}else if(k<65536){if((S-=3)<0)break;ue.push(k>>12|224,k>>6&63|128,k&63|128)}else if(k<1114112){if((S-=4)<0)break;ue.push(k>>18|240,k>>12&63|128,k>>6&63|128,k&63|128)}else throw new Error("Invalid code point")}return ue}function b(j){for(var S=[],k=0;k<j.length;++k)S.push(j.charCodeAt(k)&255);return S}function _(j,S){for(var k,Y,ne,ue=[],ce=0;ce<j.length&&!((S-=2)<0);++ce)k=j.charCodeAt(ce),Y=k>>8,ne=k%256,ue.push(ne),ue.push(Y);return ue}function R(j){return t.toByteArray(ie(j))}function G(j,S,k,Y){for(var ne=0;ne<Y&&!(ne+k>=S.length||ne>=j.length);++ne)S[ne+k]=j[ne];return ne}function J(j,S){return j instanceof S||j!=null&&j.constructor!=null&&j.constructor.name!=null&&j.constructor.name===S.name}function te(j){return j!==j}var se=function(){for(var j="0123456789abcdef",S=new Array(256),k=0;k<16;++k)for(var Y=k*16,ne=0;ne<16;++ne)S[Y+ne]=j[k]+j[ne];return S}()})(we);var Am=we.Buffer,Cm=function(e){if(e instanceof Uint8Array){if(e.byteOffset===0&&e.byteLength===e.buffer.byteLength)return e.buffer;if(typeof e.buffer.slice=="function")return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(Am.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,n=0;n<r;n++)t[n]=e[n];return t.buffer}else throw new Error("Argument must be a Buffer")};const Pr=Vo(Cm);var hu={exports:{}};(function(e,t){(function(){var r,n=0xdeadbeefcafe,l=(n&16777215)==15715070;function o(P,z,Q){P!=null&&(typeof P=="number"?this.fromNumber(P,z,Q):z==null&&typeof P!="string"?this.fromString(P,256):this.fromString(P,z))}function s(){return new o(null)}function u(P,z,Q,re,fe,pe){for(;--pe>=0;){var de=z*this[P++]+Q[re]+fe;fe=Math.floor(de/67108864),Q[re++]=de&67108863}return fe}function h(P,z,Q,re,fe,pe){for(var de=z&32767,ve=z>>15;--pe>=0;){var Fe=this[P]&32767,Le=this[P++]>>15,nt=ve*Fe+Le*de;Fe=de*Fe+((nt&32767)<<15)+Q[re]+(fe&1073741823),fe=(Fe>>>30)+(nt>>>15)+ve*Le+(fe>>>30),Q[re++]=Fe&1073741823}return fe}function a(P,z,Q,re,fe,pe){for(var de=z&16383,ve=z>>14;--pe>=0;){var Fe=this[P]&16383,Le=this[P++]>>14,nt=ve*Fe+Le*de;Fe=de*Fe+((nt&16383)<<14)+Q[re]+fe,fe=(Fe>>28)+(nt>>14)+ve*Le,Q[re++]=Fe&268435455}return fe}var i=typeof navigator!="undefined";i&&l&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=h,r=30):i&&l&&navigator.appName!="Netscape"?(o.prototype.am=u,r=26):(o.prototype.am=a,r=28),o.prototype.DB=r,o.prototype.DM=(1<<r)-1,o.prototype.DV=1<<r;var d=52;o.prototype.FV=Math.pow(2,d),o.prototype.F1=d-r,o.prototype.F2=2*r-d;var c="0123456789abcdefghijklmnopqrstuvwxyz",f=new Array,p,v;for(p=48,v=0;v<=9;++v)f[p++]=v;for(p=97,v=10;v<36;++v)f[p++]=v;for(p=65,v=10;v<36;++v)f[p++]=v;function m(P){return c.charAt(P)}function g(P,z){var Q=f[P.charCodeAt(z)];return Q==null?-1:Q}function x(P){for(var z=this.t-1;z>=0;--z)P[z]=this[z];P.t=this.t,P.s=this.s}function y(P){this.t=1,this.s=P<0?-1:0,P>0?this[0]=P:P<-1?this[0]=P+this.DV:this.t=0}function w(P){var z=s();return z.fromInt(P),z}function F(P,z){var Q;if(z==16)Q=4;else if(z==8)Q=3;else if(z==256)Q=8;else if(z==2)Q=1;else if(z==32)Q=5;else if(z==4)Q=2;else{this.fromRadix(P,z);return}this.t=0,this.s=0;for(var re=P.length,fe=!1,pe=0;--re>=0;){var de=Q==8?P[re]&255:g(P,re);if(de<0){P.charAt(re)=="-"&&(fe=!0);continue}fe=!1,pe==0?this[this.t++]=de:pe+Q>this.DB?(this[this.t-1]|=(de&(1<<this.DB-pe)-1)<<pe,this[this.t++]=de>>this.DB-pe):this[this.t-1]|=de<<pe,pe+=Q,pe>=this.DB&&(pe-=this.DB)}Q==8&&P[0]&128&&(this.s=-1,pe>0&&(this[this.t-1]|=(1<<this.DB-pe)-1<<pe)),this.clamp(),fe&&o.ZERO.subTo(this,this)}function T(){for(var P=this.s&this.DM;this.t>0&&this[this.t-1]==P;)--this.t}function I(P){if(this.s<0)return"-"+this.negate().toString(P);var z;if(P==16)z=4;else if(P==8)z=3;else if(P==2)z=1;else if(P==32)z=5;else if(P==4)z=2;else return this.toRadix(P);var Q=(1<<z)-1,re,fe=!1,pe="",de=this.t,ve=this.DB-de*this.DB%z;if(de-- >0)for(ve<this.DB&&(re=this[de]>>ve)>0&&(fe=!0,pe=m(re));de>=0;)ve<z?(re=(this[de]&(1<<ve)-1)<<z-ve,re|=this[--de]>>(ve+=this.DB-z)):(re=this[de]>>(ve-=z)&Q,ve<=0&&(ve+=this.DB,--de)),re>0&&(fe=!0),fe&&(pe+=m(re));return fe?pe:"0"}function D(){var P=s();return o.ZERO.subTo(this,P),P}function X(){return this.s<0?this.negate():this}function K(P){var z=this.s-P.s;if(z!=0)return z;var Q=this.t;if(z=Q-P.t,z!=0)return this.s<0?-z:z;for(;--Q>=0;)if((z=this[Q]-P[Q])!=0)return z;return 0}function E(P){var z=1,Q;return(Q=P>>>16)!=0&&(P=Q,z+=16),(Q=P>>8)!=0&&(P=Q,z+=8),(Q=P>>4)!=0&&(P=Q,z+=4),(Q=P>>2)!=0&&(P=Q,z+=2),(Q=P>>1)!=0&&(P=Q,z+=1),z}function A(){return this.t<=0?0:this.DB*(this.t-1)+E(this[this.t-1]^this.s&this.DM)}function C(P,z){var Q;for(Q=this.t-1;Q>=0;--Q)z[Q+P]=this[Q];for(Q=P-1;Q>=0;--Q)z[Q]=0;z.t=this.t+P,z.s=this.s}function B(P,z){for(var Q=P;Q<this.t;++Q)z[Q-P]=this[Q];z.t=Math.max(this.t-P,0),z.s=this.s}function U(P,z){var Q=P%this.DB,re=this.DB-Q,fe=(1<<re)-1,pe=Math.floor(P/this.DB),de=this.s<<Q&this.DM,ve;for(ve=this.t-1;ve>=0;--ve)z[ve+pe+1]=this[ve]>>re|de,de=(this[ve]&fe)<<Q;for(ve=pe-1;ve>=0;--ve)z[ve]=0;z[pe]=de,z.t=this.t+pe+1,z.s=this.s,z.clamp()}function q(P,z){z.s=this.s;var Q=Math.floor(P/this.DB);if(Q>=this.t){z.t=0;return}var re=P%this.DB,fe=this.DB-re,pe=(1<<re)-1;z[0]=this[Q]>>re;for(var de=Q+1;de<this.t;++de)z[de-Q-1]|=(this[de]&pe)<<fe,z[de-Q]=this[de]>>re;re>0&&(z[this.t-Q-1]|=(this.s&pe)<<fe),z.t=this.t-Q,z.clamp()}function Z(P,z){for(var Q=0,re=0,fe=Math.min(P.t,this.t);Q<fe;)re+=this[Q]-P[Q],z[Q++]=re&this.DM,re>>=this.DB;if(P.t<this.t){for(re-=P.s;Q<this.t;)re+=this[Q],z[Q++]=re&this.DM,re>>=this.DB;re+=this.s}else{for(re+=this.s;Q<P.t;)re-=P[Q],z[Q++]=re&this.DM,re>>=this.DB;re-=P.s}z.s=re<0?-1:0,re<-1?z[Q++]=this.DV+re:re>0&&(z[Q++]=re),z.t=Q,z.clamp()}function $(P,z){var Q=this.abs(),re=P.abs(),fe=Q.t;for(z.t=fe+re.t;--fe>=0;)z[fe]=0;for(fe=0;fe<re.t;++fe)z[fe+Q.t]=Q.am(0,re[fe],z,fe,0,Q.t);z.s=0,z.clamp(),this.s!=P.s&&o.ZERO.subTo(z,z)}function N(P){for(var z=this.abs(),Q=P.t=2*z.t;--Q>=0;)P[Q]=0;for(Q=0;Q<z.t-1;++Q){var re=z.am(Q,z[Q],P,2*Q,0,1);(P[Q+z.t]+=z.am(Q+1,2*z[Q],P,2*Q+1,re,z.t-Q-1))>=z.DV&&(P[Q+z.t]-=z.DV,P[Q+z.t+1]=1)}P.t>0&&(P[P.t-1]+=z.am(Q,z[Q],P,2*Q,0,1)),P.s=0,P.clamp()}function V(P,z,Q){var re=P.abs();if(!(re.t<=0)){var fe=this.abs();if(fe.t<re.t){z!=null&&z.fromInt(0),Q!=null&&this.copyTo(Q);return}Q==null&&(Q=s());var pe=s(),de=this.s,ve=P.s,Fe=this.DB-E(re[re.t-1]);Fe>0?(re.lShiftTo(Fe,pe),fe.lShiftTo(Fe,Q)):(re.copyTo(pe),fe.copyTo(Q));var Le=pe.t,nt=pe[Le-1];if(nt!=0){var et=nt*(1<<this.F1)+(Le>1?pe[Le-2]>>this.F2:0),_t=this.FV/et,tn=(1<<this.F1)/et,st=1<<this.F2,lt=Q.t,rn=lt-Le,kt=z==null?s():z;for(pe.dlShiftTo(rn,kt),Q.compareTo(kt)>=0&&(Q[Q.t++]=1,Q.subTo(kt,Q)),o.ONE.dlShiftTo(Le,kt),kt.subTo(pe,pe);pe.t<Le;)pe[pe.t++]=0;for(;--rn>=0;){var li=Q[--lt]==nt?this.DM:Math.floor(Q[lt]*_t+(Q[lt-1]+st)*tn);if((Q[lt]+=pe.am(0,li,Q,rn,0,Le))<li)for(pe.dlShiftTo(rn,kt),Q.subTo(kt,Q);Q[lt]<--li;)Q.subTo(kt,Q)}z!=null&&(Q.drShiftTo(Le,z),de!=ve&&o.ZERO.subTo(z,z)),Q.t=Le,Q.clamp(),Fe>0&&Q.rShiftTo(Fe,Q),de<0&&o.ZERO.subTo(Q,Q)}}}function M(P){var z=s();return this.abs().divRemTo(P,null,z),this.s<0&&z.compareTo(o.ZERO)>0&&P.subTo(z,z),z}function O(P){this.m=P}function H(P){return P.s<0||P.compareTo(this.m)>=0?P.mod(this.m):P}function W(P){return P}function ee(P){P.divRemTo(this.m,null,P)}function oe(P,z,Q){P.multiplyTo(z,Q),this.reduce(Q)}function ie(P,z){P.squareTo(z),this.reduce(z)}O.prototype.convert=H,O.prototype.revert=W,O.prototype.reduce=ee,O.prototype.mulTo=oe,O.prototype.sqrTo=ie;function ae(){if(this.t<1)return 0;var P=this[0];if(!(P&1))return 0;var z=P&3;return z=z*(2-(P&15)*z)&15,z=z*(2-(P&255)*z)&255,z=z*(2-((P&65535)*z&65535))&65535,z=z*(2-P*z%this.DV)%this.DV,z>0?this.DV-z:-z}function b(P){this.m=P,this.mp=P.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<P.DB-15)-1,this.mt2=2*P.t}function _(P){var z=s();return P.abs().dlShiftTo(this.m.t,z),z.divRemTo(this.m,null,z),P.s<0&&z.compareTo(o.ZERO)>0&&this.m.subTo(z,z),z}function R(P){var z=s();return P.copyTo(z),this.reduce(z),z}function G(P){for(;P.t<=this.mt2;)P[P.t++]=0;for(var z=0;z<this.m.t;++z){var Q=P[z]&32767,re=Q*this.mpl+((Q*this.mph+(P[z]>>15)*this.mpl&this.um)<<15)&P.DM;for(Q=z+this.m.t,P[Q]+=this.m.am(0,re,P,z,0,this.m.t);P[Q]>=P.DV;)P[Q]-=P.DV,P[++Q]++}P.clamp(),P.drShiftTo(this.m.t,P),P.compareTo(this.m)>=0&&P.subTo(this.m,P)}function J(P,z){P.squareTo(z),this.reduce(z)}function te(P,z,Q){P.multiplyTo(z,Q),this.reduce(Q)}b.prototype.convert=_,b.prototype.revert=R,b.prototype.reduce=G,b.prototype.mulTo=te,b.prototype.sqrTo=J;function se(){return(this.t>0?this[0]&1:this.s)==0}function j(P,z){if(P>4294967295||P<1)return o.ONE;var Q=s(),re=s(),fe=z.convert(this),pe=E(P)-1;for(fe.copyTo(Q);--pe>=0;)if(z.sqrTo(Q,re),(P&1<<pe)>0)z.mulTo(re,fe,Q);else{var de=Q;Q=re,re=de}return z.revert(Q)}function S(P,z){var Q;return P<256||z.isEven()?Q=new O(z):Q=new b(z),this.exp(P,Q)}o.prototype.copyTo=x,o.prototype.fromInt=y,o.prototype.fromString=F,o.prototype.clamp=T,o.prototype.dlShiftTo=C,o.prototype.drShiftTo=B,o.prototype.lShiftTo=U,o.prototype.rShiftTo=q,o.prototype.subTo=Z,o.prototype.multiplyTo=$,o.prototype.squareTo=N,o.prototype.divRemTo=V,o.prototype.invDigit=ae,o.prototype.isEven=se,o.prototype.exp=j,o.prototype.toString=I,o.prototype.negate=D,o.prototype.abs=X,o.prototype.compareTo=K,o.prototype.bitLength=A,o.prototype.mod=M,o.prototype.modPowInt=S,o.ZERO=w(0),o.ONE=w(1);function k(){var P=s();return this.copyTo(P),P}function Y(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function ne(){return this.t==0?this.s:this[0]<<24>>24}function ue(){return this.t==0?this.s:this[0]<<16>>16}function ce(P){return Math.floor(Math.LN2*this.DB/Math.log(P))}function me(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function ge(P){if(P==null&&(P=10),this.signum()==0||P<2||P>36)return"0";var z=this.chunkSize(P),Q=Math.pow(P,z),re=w(Q),fe=s(),pe=s(),de="";for(this.divRemTo(re,fe,pe);fe.signum()>0;)de=(Q+pe.intValue()).toString(P).substr(1)+de,fe.divRemTo(re,fe,pe);return pe.intValue().toString(P)+de}function Ce(P,z){this.fromInt(0),z==null&&(z=10);for(var Q=this.chunkSize(z),re=Math.pow(z,Q),fe=!1,pe=0,de=0,ve=0;ve<P.length;++ve){var Fe=g(P,ve);if(Fe<0){P.charAt(ve)=="-"&&this.signum()==0&&(fe=!0);continue}de=z*de+Fe,++pe>=Q&&(this.dMultiply(re),this.dAddOffset(de,0),pe=0,de=0)}pe>0&&(this.dMultiply(Math.pow(z,pe)),this.dAddOffset(de,0)),fe&&o.ZERO.subTo(this,this)}function Te(P,z,Q){if(typeof z=="number")if(P<2)this.fromInt(1);else for(this.fromNumber(P,Q),this.testBit(P-1)||this.bitwiseTo(o.ONE.shiftLeft(P-1),rr,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(z);)this.dAddOffset(2,0),this.bitLength()>P&&this.subTo(o.ONE.shiftLeft(P-1),this);else{var re=new Array,fe=P&7;re.length=(P>>3)+1,z.nextBytes(re),fe>0?re[0]&=(1<<fe)-1:re[0]=0,this.fromString(re,256)}}function Se(){var P=this.t,z=new Array;z[0]=this.s;var Q=this.DB-P*this.DB%8,re,fe=0;if(P-- >0)for(Q<this.DB&&(re=this[P]>>Q)!=(this.s&this.DM)>>Q&&(z[fe++]=re|this.s<<this.DB-Q);P>=0;)Q<8?(re=(this[P]&(1<<Q)-1)<<8-Q,re|=this[--P]>>(Q+=this.DB-8)):(re=this[P]>>(Q-=8)&255,Q<=0&&(Q+=this.DB,--P)),re&128&&(re|=-256),fe==0&&(this.s&128)!=(re&128)&&++fe,(fe>0||re!=this.s)&&(z[fe++]=re);return z}function St(P){return this.compareTo(P)==0}function Pt(P){return this.compareTo(P)<0?this:P}function Mt(P){return this.compareTo(P)>0?this:P}function Bt(P,z,Q){var re,fe,pe=Math.min(P.t,this.t);for(re=0;re<pe;++re)Q[re]=z(this[re],P[re]);if(P.t<this.t){for(fe=P.s&this.DM,re=pe;re<this.t;++re)Q[re]=z(this[re],fe);Q.t=this.t}else{for(fe=this.s&this.DM,re=pe;re<P.t;++re)Q[re]=z(fe,P[re]);Q.t=P.t}Q.s=z(this.s,P.s),Q.clamp()}function Nt(P,z){return P&z}function Qn(P){var z=s();return this.bitwiseTo(P,Nt,z),z}function rr(P,z){return P|z}function Wr(P){var z=s();return this.bitwiseTo(P,rr,z),z}function Kr(P,z){return P^z}function Yn(P){var z=s();return this.bitwiseTo(P,Kr,z),z}function Er(P,z){return P&~z}function Xn(P){var z=s();return this.bitwiseTo(P,Er,z),z}function Gr(){for(var P=s(),z=0;z<this.t;++z)P[z]=this.DM&~this[z];return P.t=this.t,P.s=~this.s,P}function Zn(P){var z=s();return P<0?this.rShiftTo(-P,z):this.lShiftTo(P,z),z}function Qr(P){var z=s();return P<0?this.lShiftTo(-P,z):this.rShiftTo(P,z),z}function Jn(P){if(P==0)return-1;var z=0;return P&65535||(P>>=16,z+=16),P&255||(P>>=8,z+=8),P&15||(P>>=4,z+=4),P&3||(P>>=2,z+=2),P&1||++z,z}function ei(){for(var P=0;P<this.t;++P)if(this[P]!=0)return P*this.DB+Jn(this[P]);return this.s<0?this.t*this.DB:-1}function ti(P){for(var z=0;P!=0;)P&=P-1,++z;return z}function Yr(){for(var P=0,z=this.s&this.DM,Q=0;Q<this.t;++Q)P+=ti(this[Q]^z);return P}function ri(P){var z=Math.floor(P/this.DB);return z>=this.t?this.s!=0:(this[z]&1<<P%this.DB)!=0}function ni(P,z){var Q=o.ONE.shiftLeft(P);return this.bitwiseTo(Q,z,Q),Q}function Xr(P){return this.changeBit(P,rr)}function ii(P){return this.changeBit(P,Er)}function Zr(P){return this.changeBit(P,Kr)}function We(P,z){for(var Q=0,re=0,fe=Math.min(P.t,this.t);Q<fe;)re+=this[Q]+P[Q],z[Q++]=re&this.DM,re>>=this.DB;if(P.t<this.t){for(re+=P.s;Q<this.t;)re+=this[Q],z[Q++]=re&this.DM,re>>=this.DB;re+=this.s}else{for(re+=this.s;Q<P.t;)re+=P[Q],z[Q++]=re&this.DM,re>>=this.DB;re+=P.s}z.s=re<0?-1:0,re>0?z[Q++]=re:re<-1&&(z[Q++]=this.DV+re),z.t=Q,z.clamp()}function pt(P){var z=s();return this.addTo(P,z),z}function Jr(P){var z=s();return this.subTo(P,z),z}function oi(P){var z=s();return this.multiplyTo(P,z),z}function rc(){var P=s();return this.squareTo(P),P}function nc(P){var z=s();return this.divRemTo(P,z,null),z}function ic(P){var z=s();return this.divRemTo(P,null,z),z}function oc(P){var z=s(),Q=s();return this.divRemTo(P,z,Q),new Array(z,Q)}function ac(P){this[this.t]=this.am(0,P-1,this,0,0,this.t),++this.t,this.clamp()}function sc(P,z){if(P!=0){for(;this.t<=z;)this[this.t++]=0;for(this[z]+=P;this[z]>=this.DV;)this[z]-=this.DV,++z>=this.t&&(this[this.t++]=0),++this[z]}}function Ar(){}function fa(P){return P}function lc(P,z,Q){P.multiplyTo(z,Q)}function uc(P,z){P.squareTo(z)}Ar.prototype.convert=fa,Ar.prototype.revert=fa,Ar.prototype.mulTo=lc,Ar.prototype.sqrTo=uc;function cc(P){return this.exp(P,new Ar)}function fc(P,z,Q){var re=Math.min(this.t+P.t,z);for(Q.s=0,Q.t=re;re>0;)Q[--re]=0;var fe;for(fe=Q.t-this.t;re<fe;++re)Q[re+this.t]=this.am(0,P[re],Q,re,0,this.t);for(fe=Math.min(P.t,z);re<fe;++re)this.am(0,P[re],Q,re,0,z-re);Q.clamp()}function hc(P,z,Q){--z;var re=Q.t=this.t+P.t-z;for(Q.s=0;--re>=0;)Q[re]=0;for(re=Math.max(z-this.t,0);re<P.t;++re)Q[this.t+re-z]=this.am(z-re,P[re],Q,0,0,this.t+re-z);Q.clamp(),Q.drShiftTo(1,Q)}function Lt(P){this.r2=s(),this.q3=s(),o.ONE.dlShiftTo(2*P.t,this.r2),this.mu=this.r2.divide(P),this.m=P}function pc(P){if(P.s<0||P.t>2*this.m.t)return P.mod(this.m);if(P.compareTo(this.m)<0)return P;var z=s();return P.copyTo(z),this.reduce(z),z}function dc(P){return P}function mc(P){for(P.drShiftTo(this.m.t-1,this.r2),P.t>this.m.t+1&&(P.t=this.m.t+1,P.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);P.compareTo(this.r2)<0;)P.dAddOffset(1,this.m.t+1);for(P.subTo(this.r2,P);P.compareTo(this.m)>=0;)P.subTo(this.m,P)}function vc(P,z){P.squareTo(z),this.reduce(z)}function yc(P,z,Q){P.multiplyTo(z,Q),this.reduce(Q)}Lt.prototype.convert=pc,Lt.prototype.revert=dc,Lt.prototype.reduce=mc,Lt.prototype.mulTo=yc,Lt.prototype.sqrTo=vc;function gc(P,z){var Q=P.bitLength(),re,fe=w(1),pe;if(Q<=0)return fe;Q<18?re=1:Q<48?re=3:Q<144?re=4:Q<768?re=5:re=6,Q<8?pe=new O(z):z.isEven()?pe=new Lt(z):pe=new b(z);var de=new Array,ve=3,Fe=re-1,Le=(1<<re)-1;if(de[1]=pe.convert(this),re>1){var nt=s();for(pe.sqrTo(de[1],nt);ve<=Le;)de[ve]=s(),pe.mulTo(nt,de[ve-2],de[ve]),ve+=2}var et=P.t-1,_t,tn=!0,st=s(),lt;for(Q=E(P[et])-1;et>=0;){for(Q>=Fe?_t=P[et]>>Q-Fe&Le:(_t=(P[et]&(1<<Q+1)-1)<<Fe-Q,et>0&&(_t|=P[et-1]>>this.DB+Q-Fe)),ve=re;!(_t&1);)_t>>=1,--ve;if((Q-=ve)<0&&(Q+=this.DB,--et),tn)de[_t].copyTo(fe),tn=!1;else{for(;ve>1;)pe.sqrTo(fe,st),pe.sqrTo(st,fe),ve-=2;ve>0?pe.sqrTo(fe,st):(lt=fe,fe=st,st=lt),pe.mulTo(st,de[_t],fe)}for(;et>=0&&!(P[et]&1<<Q);)pe.sqrTo(fe,st),lt=fe,fe=st,st=lt,--Q<0&&(Q=this.DB-1,--et)}return pe.revert(fe)}function xc(P){var z=this.s<0?this.negate():this.clone(),Q=P.s<0?P.negate():P.clone();if(z.compareTo(Q)<0){var re=z;z=Q,Q=re}var fe=z.getLowestSetBit(),pe=Q.getLowestSetBit();if(pe<0)return z;for(fe<pe&&(pe=fe),pe>0&&(z.rShiftTo(pe,z),Q.rShiftTo(pe,Q));z.signum()>0;)(fe=z.getLowestSetBit())>0&&z.rShiftTo(fe,z),(fe=Q.getLowestSetBit())>0&&Q.rShiftTo(fe,Q),z.compareTo(Q)>=0?(z.subTo(Q,z),z.rShiftTo(1,z)):(Q.subTo(z,Q),Q.rShiftTo(1,Q));return pe>0&&Q.lShiftTo(pe,Q),Q}function bc(P){if(P<=0)return 0;var z=this.DV%P,Q=this.s<0?P-1:0;if(this.t>0)if(z==0)Q=this[0]%P;else for(var re=this.t-1;re>=0;--re)Q=(z*Q+this[re])%P;return Q}function wc(P){var z=P.isEven();if(this.isEven()&&z||P.signum()==0)return o.ZERO;for(var Q=P.clone(),re=this.clone(),fe=w(1),pe=w(0),de=w(0),ve=w(1);Q.signum()!=0;){for(;Q.isEven();)Q.rShiftTo(1,Q),z?((!fe.isEven()||!pe.isEven())&&(fe.addTo(this,fe),pe.subTo(P,pe)),fe.rShiftTo(1,fe)):pe.isEven()||pe.subTo(P,pe),pe.rShiftTo(1,pe);for(;re.isEven();)re.rShiftTo(1,re),z?((!de.isEven()||!ve.isEven())&&(de.addTo(this,de),ve.subTo(P,ve)),de.rShiftTo(1,de)):ve.isEven()||ve.subTo(P,ve),ve.rShiftTo(1,ve);Q.compareTo(re)>=0?(Q.subTo(re,Q),z&&fe.subTo(de,fe),pe.subTo(ve,pe)):(re.subTo(Q,re),z&&de.subTo(fe,de),ve.subTo(pe,ve))}if(re.compareTo(o.ONE)!=0)return o.ZERO;if(ve.compareTo(P)>=0)return ve.subtract(P);if(ve.signum()<0)ve.addTo(P,ve);else return ve;return ve.signum()<0?ve.add(P):ve}var Ke=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],_c=(1<<26)/Ke[Ke.length-1];function Ec(P){var z,Q=this.abs();if(Q.t==1&&Q[0]<=Ke[Ke.length-1]){for(z=0;z<Ke.length;++z)if(Q[0]==Ke[z])return!0;return!1}if(Q.isEven())return!1;for(z=1;z<Ke.length;){for(var re=Ke[z],fe=z+1;fe<Ke.length&&re<_c;)re*=Ke[fe++];for(re=Q.modInt(re);z<fe;)if(re%Ke[z++]==0)return!1}return Q.millerRabin(P)}function Ac(P){var z=this.subtract(o.ONE),Q=z.getLowestSetBit();if(Q<=0)return!1;var re=z.shiftRight(Q);P=P+1>>1,P>Ke.length&&(P=Ke.length);for(var fe=s(),pe=0;pe<P;++pe){fe.fromInt(Ke[Math.floor(Math.random()*Ke.length)]);var de=fe.modPow(re,this);if(de.compareTo(o.ONE)!=0&&de.compareTo(z)!=0){for(var ve=1;ve++<Q&&de.compareTo(z)!=0;)if(de=de.modPowInt(2,this),de.compareTo(o.ONE)==0)return!1;if(de.compareTo(z)!=0)return!1}}return!0}o.prototype.chunkSize=ce,o.prototype.toRadix=ge,o.prototype.fromRadix=Ce,o.prototype.fromNumber=Te,o.prototype.bitwiseTo=Bt,o.prototype.changeBit=ni,o.prototype.addTo=We,o.prototype.dMultiply=ac,o.prototype.dAddOffset=sc,o.prototype.multiplyLowerTo=fc,o.prototype.multiplyUpperTo=hc,o.prototype.modInt=bc,o.prototype.millerRabin=Ac,o.prototype.clone=k,o.prototype.intValue=Y,o.prototype.byteValue=ne,o.prototype.shortValue=ue,o.prototype.signum=me,o.prototype.toByteArray=Se,o.prototype.equals=St,o.prototype.min=Pt,o.prototype.max=Mt,o.prototype.and=Qn,o.prototype.or=Wr,o.prototype.xor=Yn,o.prototype.andNot=Xn,o.prototype.not=Gr,o.prototype.shiftLeft=Zn,o.prototype.shiftRight=Qr,o.prototype.getLowestSetBit=ei,o.prototype.bitCount=Yr,o.prototype.testBit=ri,o.prototype.setBit=Xr,o.prototype.clearBit=ii,o.prototype.flipBit=Zr,o.prototype.add=pt,o.prototype.subtract=Jr,o.prototype.multiply=oi,o.prototype.divide=nc,o.prototype.remainder=ic,o.prototype.divideAndRemainder=oc,o.prototype.modPow=gc,o.prototype.modInverse=wc,o.prototype.pow=cc,o.prototype.gcd=xc,o.prototype.isProbablePrime=Ec,o.prototype.square=rc,o.prototype.Barrett=Lt;var en,Je,Ne;function Cc(P){Je[Ne++]^=P&255,Je[Ne++]^=P>>8&255,Je[Ne++]^=P>>16&255,Je[Ne++]^=P>>24&255,Ne>=si&&(Ne-=si)}function ha(){Cc(new Date().getTime())}if(Je==null){Je=new Array,Ne=0;var at;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var pa=new Uint8Array(32);for(window.crypto.getRandomValues(pa),at=0;at<32;++at)Je[Ne++]=pa[at]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var da=window.crypto.random(32);for(at=0;at<da.length;++at)Je[Ne++]=da.charCodeAt(at)&255}}for(;Ne<si;)at=Math.floor(65536*Math.random()),Je[Ne++]=at>>>8,Je[Ne++]=at&255;Ne=0,ha()}function Sc(){if(en==null){for(ha(),en=Fc(),en.init(Je),Ne=0;Ne<Je.length;++Ne)Je[Ne]=0;Ne=0}return en.next()}function Bc(P){var z;for(z=0;z<P.length;++z)P[z]=Sc()}function ma(){}ma.prototype.nextBytes=Bc;function ai(){this.i=0,this.j=0,this.S=new Array}function kc(P){var z,Q,re;for(z=0;z<256;++z)this.S[z]=z;for(Q=0,z=0;z<256;++z)Q=Q+this.S[z]+P[z%P.length]&255,re=this.S[z],this.S[z]=this.S[Q],this.S[Q]=re;this.i=0,this.j=0}function Tc(){var P;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,P=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=P,this.S[P+this.S[this.i]&255]}ai.prototype.init=kc,ai.prototype.next=Tc;function Fc(){return new ai}var si=256;e.exports={default:o,BigInteger:o,SecureRandom:ma}}).call(xe)})(hu);var ke=hu.exports,Sm=ke.BigInteger.prototype.Barrett;function Ge(e,t){this.x=t,this.q=e}function Ye(e,t,r,n){this.curve=e,this.x=t,this.y=r,this.z=n==null?ke.BigInteger.ONE:n,this.zinv=null}function gt(e,t,r){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(r),this.infinity=new Ye(this,null,null),this.reducer=new Sm(this.q)}Ge.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},Ge.prototype.toBigInteger=function(){return this.x},Ge.prototype.negate=function(){return new Ge(this.q,this.x.negate().mod(this.q))},Ge.prototype.add=function(e){return new Ge(this.q,this.x.add(e.toBigInteger()).mod(this.q))},Ge.prototype.subtract=function(e){return new Ge(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},Ge.prototype.multiply=function(e){return new Ge(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},Ge.prototype.square=function(){return new Ge(this.q,this.x.square().mod(this.q))},Ge.prototype.divide=function(e){return new Ge(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},Ye.prototype.getX=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var e=this.x.toBigInteger().multiply(this.zinv);return this.curve.reduce(e),this.curve.fromBigInteger(e)},Ye.prototype.getY=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var e=this.y.toBigInteger().multiply(this.zinv);return this.curve.reduce(e),this.curve.fromBigInteger(e)},Ye.prototype.equals=function(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(ke.BigInteger.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(ke.BigInteger.ZERO))},Ye.prototype.isInfinity=function(){return this.x==null&&this.y==null||this.z.equals(ke.BigInteger.ZERO)&&!this.y.toBigInteger().equals(ke.BigInteger.ZERO)},Ye.prototype.negate=function(){return new Ye(this.curve,this.x,this.y.negate(),this.z)},Ye.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),r=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(ke.BigInteger.ZERO.equals(r))return ke.BigInteger.ZERO.equals(t)?this.twice():this.curve.getInfinity();var n=new ke.BigInteger("3"),l=this.x.toBigInteger(),o=this.y.toBigInteger(),s=(e.x.toBigInteger(),e.y.toBigInteger(),r.square()),u=s.multiply(r),h=l.multiply(s),a=t.square().multiply(this.z),i=a.subtract(h.shiftLeft(1)).multiply(e.z).subtract(u).multiply(r).mod(this.curve.q),d=h.multiply(n).multiply(t).subtract(o.multiply(u)).subtract(a.multiply(t)).multiply(e.z).add(t.multiply(u)).mod(this.curve.q),c=u.multiply(this.z).multiply(e.z).mod(this.curve.q);return new Ye(this.curve,this.curve.fromBigInteger(i),this.curve.fromBigInteger(d),c)},Ye.prototype.twice=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var e=new ke.BigInteger("3"),t=this.x.toBigInteger(),r=this.y.toBigInteger(),n=r.multiply(this.z),l=n.multiply(r).mod(this.curve.q),o=this.curve.a.toBigInteger(),s=t.square().multiply(e);ke.BigInteger.ZERO.equals(o)||(s=s.add(this.z.square().multiply(o)));var u=(s=s.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(l)).shiftLeft(1).multiply(n).mod(this.curve.q),h=s.multiply(e).multiply(t).subtract(l.shiftLeft(1)).shiftLeft(2).multiply(l).subtract(s.square().multiply(s)).mod(this.curve.q),a=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new Ye(this.curve,this.curve.fromBigInteger(u),this.curve.fromBigInteger(h),a)},Ye.prototype.multiply=function(e){if(this.isInfinity())return this;if(e.signum()==0)return this.curve.getInfinity();var t,r=e,n=r.multiply(new ke.BigInteger("3")),l=this.negate(),o=this;for(t=n.bitLength()-2;t>0;--t){o=o.twice();var s=n.testBit(t);s!=r.testBit(t)&&(o=o.add(s?this:l))}return o},Ye.prototype.multiplyTwo=function(e,t,r){var n;n=e.bitLength()>r.bitLength()?e.bitLength()-1:r.bitLength()-1;for(var l=this.curve.getInfinity(),o=this.add(t);n>=0;)l=l.twice(),e.testBit(n)?l=r.testBit(n)?l.add(o):l.add(this):r.testBit(n)&&(l=l.add(t)),--n;return l},gt.prototype.getQ=function(){return this.q},gt.prototype.getA=function(){return this.a},gt.prototype.getB=function(){return this.b},gt.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},gt.prototype.getInfinity=function(){return this.infinity},gt.prototype.fromBigInteger=function(e){return new Ge(this.q,e)},gt.prototype.reduce=function(e){this.reducer.reduce(e)},gt.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var t=(e.length-2)/2,r=e.substr(2,t),n=e.substr(t+2,t);return new Ye(this,this.fromBigInteger(new ke.BigInteger(r,16)),this.fromBigInteger(new ke.BigInteger(n,16)));default:return null}},gt.prototype.encodePointHex=function(e){if(e.isInfinity())return"00";var t=e.getX().toBigInteger().toString(16),r=e.getY().toBigInteger().toString(16),n=this.getQ().toString(16).length;for(n%2!=0&&n++;t.length<n;)t="0"+t;for(;r.length<n;)r="0"+r;return"04"+t+r};var Ue=function(e,t){return e<<(t%=32)|e>>>32-t},yt=function(e,t){var r=t-e.length;return(r>0?"0".repeat(r):"")+e},Bm=function(e){return e<16?2043430169:2055708042},km=function(e,t,r,n){return n<16?e^t^r:e&t|e&r|t&r},Tm=function(e,t,r,n){return n<16?e^t^r:e&t|~e&r},Fm=function(e,t,r){for(var n,l,o,s,u,h=function(x){var y,w=new Array(132);x.forEach(function(I,D){w[D]=I});for(var F=16;F<68;F++)w[F]=(y=w[F-16]^w[F-9]^Ue(w[F-3],15))^Ue(y,15)^Ue(y,23)^Ue(w[F-13],7)^w[F-6];for(var T=0;T<64;T++)w[T+68]=w[T]^w[T+4];return w}(t),a=e[0],i=e[1],d=e[2],c=e[3],f=e[4],p=e[5],v=e[6],m=e[7],g=0;g<64;g++)l=(n=Ue(Ue(a,12)+f+Ue(Bm(g),g),7))^Ue(a,12),o=km(a,i,d,g)+c+l+h[g+68],s=Tm(f,p,v,g)+m+n+h[g],c=d,d=Ue(i,9),i=a,a=o,m=v,v=Ue(p,19),p=f,f=(u=s)^Ue(u,9)^Ue(u,17);return[a^e[0],i^e[1],d^e[2],c^e[3],f^e[4],p^e[5],v^e[6],m^e[7]]},Uo=function(e,t,r){if(typeof e=="string"?e=we.Buffer.from(e,t||"utf8"):e instanceof ArrayBuffer&&(e=we.Buffer.from(e)),!we.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');var n,l,o,s,u,h;n=e,l=we.Buffer.alloc(1,128),s=we.Buffer.alloc(o=(o=n.length%64)>=56?64-o%56-1:56-o-1,0),u=we.Buffer.alloc(8),h=8*n.length,u.writeUInt32BE(Math.floor(h/Math.pow(2,32)),0),u.writeUInt32BE(h%Math.pow(2,32),4);for(var a=(e=we.Buffer.concat([n,l,s,u],n.length+1+o+8)).length/64,i=new Array(a),d=0;d<a;d++){i[d]=new Array(16);for(var c=0;c<16;c++)i[d][c]=e.readUInt32BE(64*d+4*c)}var f=new Array(a);f[0]=[1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214];for(var p=0;p<a;p++)f[p+1]=Fm(f[p],i[p]);var v=we.Buffer.alloc(32);return f[a].forEach(function(m,g){return v.writeInt32BE(m,4*g)}),r?v.toString(r):Pr(v)},Ys=new ke.SecureRandom,oa=function(){var e=new gt(new ke.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),new ke.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),new ke.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16)),t=e.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:e,G:t,n:new ke.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}(),Xs=oa.curve,Zs=oa.G,ln=oa.n;function Js(e,t){for(var r=[],n=Math.ceil(t/32),l=t%32,o=1;o<=n;o++){var s=we.Buffer.allocUnsafe(4);s.writeUInt32BE(o);var u=Uo(we.Buffer.concat([e,s]));r.push(o===n&&l?we.Buffer.from(u).slice(0,l):we.Buffer.from(u))}return we.Buffer.concat(r,t)}var Im={__proto__:null,constants:{C1C2C3:0,C1C3C2:1,PC:"04"},generateKeyPair:function(){var e=new ke.BigInteger(ln.bitLength(),Ys).mod(ln.subtract(new ke.BigInteger("2"))).add(ke.BigInteger.ONE),t=yt(e.toString(16),64),r=Zs.multiply(e);return{privateKey:t,publicKey:"04"+yt(r.getX().toBigInteger().toString(16),64)+yt(r.getY().toBigInteger().toString(16),64)}},encrypt:function(e,t,r){var n=r||{},l=n.mode,o=l===void 0?1:l,s=n.outputEncoding,u=n.pc;if(typeof e=="string"?e=we.Buffer.from(e,n.inputEncoding||"utf8"):e instanceof ArrayBuffer&&(e=we.Buffer.from(e)),!we.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');var h=new ke.BigInteger(ln.bitLength(),Ys).mod(ln.subtract(ke.BigInteger.ONE)).add(ke.BigInteger.ONE),a=Zs.multiply(h),i=yt(a.getX().toBigInteger().toString(16),64)+yt(a.getY().toBigInteger().toString(16),64),d=Xs.decodePointHex(t).multiply(h),c=yt(d.getX().toBigInteger().toString(16),64),f=yt(d.getY().toBigInteger().toString(16),64),p=Js(we.Buffer.from(c+f,"hex"),e.length),v=yt(new ke.BigInteger(e.toString("hex"),16).xor(new ke.BigInteger(p.toString("hex"),16)).toString(16),2*e.length),m=Uo(c+e.toString("hex")+f,"hex","hex"),g=we.Buffer.from((u?"04":"")+(o===0?i+v+m:i+m+v),"hex");return s?g.toString(s):Pr(g)},decrypt:function(e,t,r){var n=r||{},l=n.mode,o=l===void 0?1:l,s=n.outputEncoding,u=n.pc;if(typeof e=="string"?e=we.Buffer.from(e,n.inputEncoding):e instanceof ArrayBuffer&&(e=we.Buffer.from(e)),!we.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');var h=(e=u?e.slice(1):e).slice(0,32).toString("hex"),a=e.slice(32,64).toString("hex"),i=Xs.decodePointHex("04"+h+a).multiply(new ke.BigInteger(t,16)),d=yt(i.getX().toBigInteger().toString(16),64),c=yt(i.getY().toBigInteger().toString(16),64),f=e.slice(64,96),p=e.slice(96);o===0&&(f=e.slice(e.length-32),p=e.slice(64,e.length-32));var v=Js(we.Buffer.from(d+c,"hex"),p.length),m=new ke.BigInteger(p.toString("hex"),16).xor(new ke.BigInteger(v.toString("hex"),16)).toString(16),g=Uo(d+m+c,"hex","hex")===f.toString("hex")?we.Buffer.from(m,"hex"):we.Buffer.alloc(0);return s?g.toString(s):Pr(g)}},un=[[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5],[43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153],[156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98],[228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166],[71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168],[104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53],[30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135],[212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158],[234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161],[224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227],[29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111],[213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81],[141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216],[10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176],[137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132],[24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72]],cn=[2746333894,1453994832,1736282519,2993693404],Dm=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257],fn=/^[0-9a-f]{32}$/i,pu=function(e){return un[(4026531840&e)>>>28][(251658240&e)>>>24]<<24|un[(15728640&e)>>>20][(983040&e)>>>16]<<16|un[(61440&e)>>>12][(3840&e)>>>8]<<8|un[(240&e)>>>4][(15&e)>>>0]<<0},du=function(e){return(t=pu(e))^Ue(t,2)^Ue(t,10)^Ue(t,18)^Ue(t,24);var t},mu=function(e){var t,r=new Array(36);r[0]=e[0]^cn[0],r[1]=e[1]^cn[1],r[2]=e[2]^cn[2],r[3]=e[3]^cn[3];for(var n=new Array(32),l=0;l<32;l++)r[l+4]=r[l]^(t=pu(r[l+1]^r[l+2]^r[l+3]^Dm[l]))^Ue(t,13)^Ue(t,23),n[l]=r[l+4];return n},e0=function(e,t){for(var r=mu(t),n=0;n<32;n++)e[n+4]=e[n]^du(e[n+1]^e[n+2]^e[n+3]^r[n]);return[e[35],e[34],e[33],e[32]]},t0=function(e,t){for(var r=mu(t).reverse(),n=0;n<32;n++)e[n+4]=e[n]^du(e[n+1]^e[n+2]^e[n+3]^r[n]);return[e[35],e[34],e[33],e[32]]},hn=function(e){return[e.readInt32BE(0),e.readInt32BE(4),e.readInt32BE(8),e.readInt32BE(12)]},pn=function(e){for(var t=we.Buffer.alloc(16),r=0;r<4;r++)t.writeInt32BE(e[r],4*r);return t},dr={__proto__:null,constants:{ECB:1,CBC:2},encrypt:function(e,t,r){var n=r||{},l=n.mode,o=n.iv,s=n.outputEncoding;if(typeof e=="string"?e=we.Buffer.from(e,n.inputEncoding||"utf8"):e instanceof ArrayBuffer&&(e=we.Buffer.from(e)),!we.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');if(!fn.test(t))throw new TypeError("Invalid value of cipher `key`");if(t=we.Buffer.from(t,"hex"),l===2&&!fn.test(o))throw new TypeError("Invalid value of `iv` option");return function(u,h,a,i){a&&(a=hn(a)),h=hn(h);for(var d=[],c=(u=function(F){var T=16-F.length%16,I=we.Buffer.alloc(T,T);return we.Buffer.concat([F,I],F.length+T)}(u)).length/16,f=0;f<c;f++)if(a){var p=16*f,v=[a[0]^u.readInt32BE(p),a[1]^u.readInt32BE(p+4),a[2]^u.readInt32BE(p+8),a[3]^u.readInt32BE(p+12)],m=e0(v,h);d.push(pn(m)),a=m.slice(0)}else{var g=16*f,x=[u.readInt32BE(g),u.readInt32BE(g+4),u.readInt32BE(g+8),u.readInt32BE(g+12)],y=e0(x,h);d.push(pn(y))}var w=we.Buffer.concat(d,u.length);return i?w.toString(i):Pr(w)}(e,t,o=l===2?we.Buffer.from(o,"hex"):null,s)},decrypt:function(e,t,r){var n=r||{},l=n.mode,o=n.iv,s=n.outputEncoding;if(typeof e=="string"?e=we.Buffer.from(e,n.inputEncoding):e instanceof ArrayBuffer&&(e=we.Buffer.from(e)),!we.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');if(!fn.test(t))throw new TypeError("Invalid value of cipher `key`");if(t=we.Buffer.from(t,"hex"),l===2&&!fn.test(o))throw new TypeError("Invalid value of `iv` option");return function(u,h,a,i){a&&(a=hn(a)),h=hn(h);var d=[],c=u.length/16;if(a)for(var f=c-1;f>=0;f--){var p,v=16*f;p=f>0?[u.readInt32BE(v-16),u.readInt32BE(v-16+4),u.readInt32BE(v-16+8),u.readInt32BE(v-16+12)]:a;var m=[u.readInt32BE(v),u.readInt32BE(v+4),u.readInt32BE(v+8),u.readInt32BE(v+12)],g=t0(m,h);d.unshift(pn([g[0]^p[0],g[1]^p[1],g[2]^p[2],g[3]^p[3]]))}else for(var x=0;x<c;x++){var y=16*x,w=[u.readInt32BE(y),u.readInt32BE(y+4),u.readInt32BE(y+8),u.readInt32BE(y+12)],F=t0(w,h);d.push(pn(F))}var T=we.Buffer.concat(d,u.length-d[d.length-1][15]);return i?T.toString(i):Pr(T)}(e,t,o=l===2?we.Buffer.from(o,"hex"):null,s)}};(function(){if(typeof Object.id=="undefined"){var e=0;Object.id=function(t){return typeof t.__uniqueid=="undefined"&&Object.defineProperty(t,"__uniqueid",{value:++e,enumerable:!1,writable:!1}),t.__uniqueid}}})();function Rm(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1];this.encode=function(r){var n,l,o,s,u,h;for(o=r.length,l=0,n="";l<o;){if(s=r.charCodeAt(l++)&255,l==o){n+=e.charAt(s>>2),n+=e.charAt((s&3)<<4),n+="==";break}if(u=r.charCodeAt(l++),l==o){n+=e.charAt(s>>2),n+=e.charAt((s&3)<<4|(u&240)>>4),n+=e.charAt((u&15)<<2),n+="=";break}h=r.charCodeAt(l++),n+=e.charAt(s>>2),n+=e.charAt((s&3)<<4|(u&240)>>4),n+=e.charAt((u&15)<<2|(h&192)>>6),n+=e.charAt(h&63)}return n},this.decode=function(r){var n,l,o,s,u,h,a;for(h=r.length,u=0,a="";u<h;){do n=t[r.charCodeAt(u++)&255];while(u<h&&n==-1);if(n==-1)break;do l=t[r.charCodeAt(u++)&255];while(u<h&&l==-1);if(l==-1)break;a+=String.fromCharCode(n<<2|(l&48)>>4);do{if(o=r.charCodeAt(u++)&255,o==61)return a;o=t[o]}while(u<h&&o==-1);if(o==-1)break;a+=String.fromCharCode((l&15)<<4|(o&60)>>2);do{if(s=r.charCodeAt(u++)&255,s==61)return a;s=t[s]}while(u<h&&s==-1);if(s==-1)break;a+=String.fromCharCode((o&3)<<6|s)}return a},this.utf16to8=function(r){var n,l,o,s;for(n="",o=r.length,l=0;l<o;l++)s=r.charCodeAt(l),s>=1&&s<=127?n+=r.charAt(l):s>2047?(n+=String.fromCharCode(224|s>>12&15),n+=String.fromCharCode(128|s>>6&63),n+=String.fromCharCode(128|s>>0&63)):(n+=String.fromCharCode(192|s>>6&31),n+=String.fromCharCode(128|s>>0&63));return n},this.utf8to16=function(r){var n,l,o,s,u,h;for(n="",o=r.length,l=0;l<o;)switch(s=r.charCodeAt(l++),s>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:n+=r.charAt(l-1);break;case 12:case 13:u=r.charCodeAt(l++),n+=String.fromCharCode((s&31)<<6|u&63);break;case 14:u=r.charCodeAt(l++),h=r.charCodeAt(l++),n+=String.fromCharCode((s&15)<<12|(u&63)<<6|(h&63)<<0);break}return n},this.charToHex=function(r){var n,l,o;for(n="",l=0;l<r.length;)o=r.charCodeAt(l++).toString(16),n+="\\0x"+o,n+=l>0&&l%8==0?`\r
|
|
32
|
-
`:", ";return n}}function Om(){var e=0,t=new Object;this.add=function(r,n){this.containsKey(r)||e++,t[r]=n},this.getValue=function(r){return this.containsKey(r)?t[r]:null},this.remove=function(r){this.containsKey(r)&&delete t[r]&&e--},this.containsKey=function(r){return r in t},this.containsValue=function(r){for(var n in t)if(t[n]==r)return!0;return!1},this.getValues=function(){var r=[];for(var n in t)r.push(t[n]);return r},this.getKeys=function(){var r=[];for(var n in t)r.push(n);return r},this.getSize=function(){return e},this.clear=function(){e=0,t=new Object}}function Pm(e){if(this.connect=!1,this.ready_func_=null,this.callbacks_=new Om,this.module_="JS_IActiveXCtrl","WebSocket"in window)this.ws=new WebSocket("ws://127.0.0.1:7321");else throw"WebSocket not supported";this.ws.onerror=function(){throw"Unable to establish connection to WebSocket"},this.loadModule=function(){this.connect=!0;var t=JSON.stringify({MsgId:"LoadModule",Module:this.module_});this.ws.onmessage=this._callback.bind(this),this.ws.send(t)},this.loadModuleCallBack=function(t){if(!t)throw t.Response;this.ready_func_&&this.ready_func_()}.bind(this),this.callbacks_.add("LoadModule",this.loadModuleCallBack),this.exec=function(t,r,n){var l=Object.id(n).toString();this.callbacks_.add(l,n);var o={MsgId:l,Method:t+"|"+e};r&&(o.Param=JSON.stringify(r));var s=JSON.stringify(o);this.connect&&this.ws.send(s)},this.ready=function(t){this.ready_func_=t},this._callback=function(t){var r=JSON.parse(t.data),n=r.MsgId;if(this.callbacks_.containsKey(n)){var l=this.callbacks_.getValue(n);l(r.Result,r.Response),this.callbacks_.remove(n)}},this.ws.onopen=this.loadModule.bind(this),this.Arm_GetDongleInfo=function({Index:t,DongleInfoNum:r},n){this.exec("Arm_GetDongleInfo",[parseInt(t),parseInt(r)],n)},this.Arm_Enum=function(t){this.exec("Arm_Enum",null,t)},this.Arm_Open=function({Index:t},r){this.exec("Arm_Open",[parseInt(t)],r)},this.Arm_Close=function({Handle:t},r){this.exec("Arm_Close",[parseInt(t)],r)},this.Arm_VerifyPIN=function({Handle:t,UserPin:r,UserType:n},l){this.exec("Arm_VerifyPIN",[parseInt(t),n,r],l)},this.Arm_ResetState=function({Handle:t},r){this.exec("Arm_ResetState",[parseInt(t)],r)},this.Arm_GenRandom=function({Handle:t,RandomLen:r},n){this.exec("Arm_GenRandom",[parseInt(t),parseInt(r)],n)},this.Arm_LEDControl=function({Handle:t,LedFlag:r},n){this.exec("Arm_LEDControl",[parseInt(t),r],n)},this.Arm_SwitchProtocol=function({Handle:t,ProtocolFlag:r},n){this.exec("Arm_SwitchProtocol",[parseInt(t),r],n)},this.Arm_CreateFile=function({Handle:t,FileID:r,FileType:n,AttrBuffer:l},o){this.exec("Arm_CreateFile",[parseInt(t),n,parseInt(r),l],o)},this.Arm_WriteFile=function({Handle:t,FileID:r,FileType:n,FileOffset:l,DataInput:o},s){this.exec("Arm_WriteFile",[parseInt(t),n,parseInt(r),parseInt(l),o],s)},this.Arm_ReadFile0001=function({Handle:t},r){this.exec("Arm_ReadFile",[parseInt(t),parseInt("0001"),parseInt(0),parseInt("64")],r)},this.Arm_ReadFile0002=function({Handle:t},r){this.exec("Arm_ReadFile",[parseInt(t),parseInt("0002"),parseInt(0),parseInt("130")],r)},this.Arm_ReadFile0003=function({Handle:t},r){this.exec("Arm_ReadFile",[parseInt(t),parseInt("0003"),parseInt(0),parseInt("130")],r)},this.Arm_ReadFile0004=function({Handle:t},r){this.exec("Arm_ReadFile",[parseInt(t),parseInt("0004"),parseInt(0),parseInt("2048")],r)},this.Arm_ReadFile0005=function({Handle:t},r){this.exec("Arm_ReadFile",[parseInt(t),parseInt("0005"),parseInt(0),parseInt("2048")],r)},this.Arm_DownloadExeFile=function({Handle:t,Count:r,ExeFileInfo:n},l){this.exec("Arm_DownloadExeFile",[parseInt(t),parseInt(r),n],l)},this.Arm_RunExeFile=function({Handle:t,FileID:r,InData:n,DataLen:l},o){this.exec("Arm_RunExeFile",[parseInt(t),parseInt(r),n,n.length,parseInt(l)],o)},this.Arm_ReadRunExeFileData=function(t){this.exec("Arm_ReadRunExeFileData",null,t)},this.Arm_DeleteFile=function({Handle:t,FileID:r,FileType:n},l){this.exec("Arm_DeleteFile",[parseInt(t),n,parseInt(r)],l)},this.Arm_WriteData=function({Handle:t,Offset:r,DataInput:n},l){this.exec("Arm_WriteData",[parseInt(t),parseInt(r),n],l)},this.Arm_ReadData=function({Handle:t,Offset:r,ReadLength:n},l){this.exec("Arm_ReadData",[parseInt(t),parseInt(r),n],l)},this.Arm_WriteShareMemory=function({Handle:t,DataInput:r},n){this.exec("Arm_WriteShareMemory",[parseInt(t),r],n)},this.Arm_ReadShareMemory=function({Handle:t},r){this.exec("Arm_ReadShareMemory",[parseInt(t)],r)},this.Arm_GenUniqueKey=function({Handle:t,Seed:r},n){this.exec("Arm_GenUniqueKey",[parseInt(t),r.length,r],n)},this.Arm_ChangePIN=function({Handle:t,NewPIN:r,OldPIN:n,TryCount:l,PinFlag:o},s){this.exec("Arm_ChangePIN",[parseInt(t),o,n,r,parseInt(l)],s)},this.Arm_ResetUserPIN=function({Handle:t,AdminPIN:r},n){this.exec("Arm_ResetUserPIN",[parseInt(t),r],n)},this.Arm_SetUserID=function({Handle:t,UserID:r},n){this.exec("Arm_SetUserID",[parseInt(t),parseInt(r)],n)},this.Arm_GetDeadline=function({Handle:t},r){this.exec("Arm_GetDeadline",[parseInt(t)],r)},this.Arm_SetDeadline=function({Handle:t,SetDeadTime:r},n){this.exec("Arm_SetDeadline",[parseInt(t),parseInt(r)],n)},this.Arm_GetUTCTime=function({Handle:t},r){this.exec("Arm_GetUTCTime",[parseInt(t)],r)},this.Arm_RFS=function({Handle:t},r){this.exec("Arm_RFS",[parseInt(t)],r)},this.Arm_RsaGenPubPriKey=function({Handle:t,RsaFileId:r},n){this.exec("Arm_RsaGenPubPriKey",[parseInt(t),parseInt(r)],n)},this.Arm_EccGenPubPriKey=function({Handle:t,EccFileId:r},n){this.exec("Arm_EccGenPubPriKey",[parseInt(t),parseInt(r)],n)},this.Arm_Sm2GenPubPriKey=function({Handle:t,Sm2FileId:r},n){this.exec("Arm_Sm2GenPubPriKey",[parseInt(t),parseInt(r)],n)},this.Arm_ReadRsaPri=function(t){this.exec("Arm_ReadRsaPri",null,t)},this.Arm_ReadRsaPub=function(t){this.exec("Arm_ReadRsaPub",null,t)},this.Arm_ReadEccPri=function(t){this.exec("Arm_ReadEccPri",null,t)},this.Arm_ReadEccPub=function(t){this.exec("Arm_ReadEccPub",null,t)},this.Arm_ReadSm2Pri=function(t){this.exec("Arm_ReadSm2Pri",null,t)},this.Arm_ReadSm2Pub=function(t){this.exec("Arm_ReadSm2Pub",null,t)},this.Arm_RsaPri=function({Handle:t,RsaPri_Flag:r,RsaPriInData:n,RsaPriFileID:l,RsaPriFileSize:o},s){this.exec("Arm_RsaPri",[parseInt(t),parseInt(l),parseInt(o),r,n],s)},this.Arm_RsaPub=function({Handle:t,RsaPubKey:r,RsaPub_Flag:n,RsaPubInData:l,RsaPubFileSize:o},s){this.exec("Arm_RsaPub",[parseInt(t),parseInt(o),n,r,r.length,l],s)},this.Arm_EccSign=function({Handle:t,HashData:r,EccFileId:n},l){this.exec("Arm_EccSign",[parseInt(t),parseInt(n),r],l)},this.Arm_EccVerify=function({Handle:t,HashData:r,EccPubKey:n,EccSignData:l},o){this.exec("Arm_EccVerify",[parseInt(t),n,n.length,r,l],o)},this.Arm_Sm2Sign=function({Handle:t,HashData:r,Sm2FileId:n},l){this.exec("Arm_Sm2Sign",[parseInt(t),parseInt(n),r],l)},this.Arm_Sm2Verify=function({Handle:t,HashData:r,Sm2PubKey:n,Sm2SignData:l},o){this.exec("Arm_Sm2Verify",[parseInt(t),n,n.length,r,l],o)},this.Arm_TDES=function({Handle:t,Tdes_Flag:r,TdesFileID:n,TdesInData:l},o){this.exec("Arm_TDES",[parseInt(t),parseInt(n),r,l],o)},this.Arm_SM4=function({Handle:t,Sm4_Flag:r,Sm4FileID:n,Sm4InData:l},o){this.exec("Arm_SM4",[parseInt(t),parseInt(n),r,l],o)},this.Arm_HASH=function({Handle:t,Hash_Flag:r,HashInData:n},l){this.exec("Arm_HASH",[parseInt(t),r,n],l)},this.Arm_Seed=function({Handle:t,SeedData:r,SeedLength:n},l){this.exec("Arm_Seed",[parseInt(t),n,r],l)},this.Arm_LimitSeedCount=function({Handle:t,SeedCount:r},n){this.exec("Arm_LimitSeedCount",[parseInt(t),parseInt(r)],n)},this.Arm_GenMotherKey=function({Handle:t,SeedLen:r,SeedForPID:n,SonCount:l,StartUserID:o,AdminTryCount:s,UserPin:u,UserTryCount:h,UpdateRSAPriKey:a},i){this.exec("Arm_GenMotherKey",[parseInt(t),parseInt(r),n,u,parseInt(h),parseInt(s),a,parseInt(o),parseInt(l)],i)},this.Arm_RequestInit=function({Handle:t},r){this.exec("Arm_RequestInit",[parseInt(t)],r)},this.Arm_GetInitDataFromMother=function({Handle:t},r){this.exec("Arm_GetInitDataFromMother",[parseInt(t),Request],r)},this.Arm_InitSon=function({Handle:t,InitData:r},n){this.exec("Arm_InitSon",[parseInt(t),r],n)},this.Arm_SetUpdatePriKey=function({Handle:t,UpdatePriKey:r},n){this.exec("Arm_SetUpdatePriKey",[parseInt(t),r],n)},this.Arm_MakeUpdatePacket=function({Handle:t,HID:r,Func:n,FileID:l,FileType:o,Offset:s,DataLen:u,DataBuffer:h,UpRSAPubKey:a},i){this.exec("Arm_MakeUpdatePacket",[parseInt(t),r,n,o,parseInt(l),parseInt(s),h,a,parseInt(u)],i)},this.Arm_MakeUpdatePacketFromMother=function({Handle:t,HID:r,Func:n,FileID:l,FileType:o,Offset:s,DataLen:u,DataBuffer:h},a){this.exec("Arm_MakeUpdatePacketFromMother",[parseInt(t),r,n,o,parseInt(l),parseInt(s),h,parseInt(u)],a)},this.Arm_Update=function({Handle:t,UpdateData:r},n){this.exec("Arm_Update",[parseInt(t),r],n)},this.Arm_Set_DATA_FILE_ATTR=function({Size:t,ReadPriv:r,WritePriv:n},l){this.exec("Arm_Set_DATA_FILE_ATTR",[parseInt(t),parseInt(r),parseInt(n)],l)},this.Arm_Set_PRIKEY_FILE_ATTR=function({Count:t,Size:r,Type:n,Priv:l,IsReset:o,IsDecOnRAM:s},u){this.exec("Arm_Set_PRIKEY_FILE_ATTR",[n,parseInt(r),parseInt(t),parseInt(l),parseInt(s),parseInt(o)],u)},this.Arm_Set_KEY_FILE_ATTR=function({Size:t,PrivEnc:r},n){this.exec("Arm_Set_KEY_FILE_ATTR",[parseInt(t),parseInt(r)],n)},this.Arm_Set_EXE_FILE_ATTR=function({FileLen:t,PrivExe:r},n){this.exec("Arm_Set_EXE_FILE_ATTR",[parseInt(t),parseInt(r)],n)},this.Arm_Set_DATA_LIC=function({ReadPriv:t,WritePriv:r},n){this.exec("Arm_Set_DATA_LIC",[parseInt(t),parseInt(r)],n)},this.Arm_Set_PRIKEY_LIC=function({Count:t,Priv:r,IsReset:n,IsDecOnRAM:l},o){this.exec("Arm_Set_PRIKEY_LIC",[parseInt(t),parseInt(r),parseInt(l),parseInt(n)],o)},this.Arm_Set_KEY_LIC=function({PrivEnc:t},r){this.exec("Arm_Set_KEY_LIC",[parseInt(t)],r)},this.Arm_Set_EXE_LIC=function({PrivExe:t},r){this.exec("Arm_Set_EXE_LIC",[parseInt(t)],r)},this.Arm_Set_EXE_FILE_INFO=function({FileID:t,FileData:r,FileSize:n,InBuffer:l,CallLimit:o},s){this.exec("Arm_Set_EXE_FILE_INFO",[l,parseInt(n),parseInt(t),parseInt(o),r,r.length],s)},this.Arm_Clear_EXE_FILE_INFO=function({InBuffer:t},r){this.exec("Arm_Clear_EXE_FILE_INFO",[t],r)}}const Mm={HID:0},dn={PRODUCT_ID:0,USER_ID:1,HARDWARE_ID:2},r0={USER:0};class vu{constructor(){Tt(this,"Base64",new Rm);Tt(this,"AtlCtrl",null);Tt(this,"ArmCount",0);Tt(this,"ArmIndex",0);Tt(this,"ArmHandle",0);Tt(this,"ArmRandom","");try{this.AtlCtrl=new Pm("{39E9B272-82A7-4177-A19D-6723C1BDB0CC}")}catch(t){this.AtlCtrl=null}}armEnum(){if(this.AtlCtrl)return new Promise((t,r)=>{this.AtlCtrl.Arm_Enum((n,l)=>{n?(this.ArmCount=+l,t(l)):r(l)})})}armOpen(t=0){if(this.AtlCtrl)return this.ArmIndex=t,new Promise((r,n)=>{this.AtlCtrl.Arm_Open({Index:t},(l,o)=>{l?(this.ArmHandle=+o,r(o)):(this.ArmHandle=o,n(o))})})}armClose(t=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_Close({Handle:t},(l,o)=>{l?r(o):n(o)})})}armChangePIN(t,r,n=255,l=r0.USER,o=this.ArmHandle){if(this.AtlCtrl)return new Promise((s,u)=>{this.AtlCtrl.Arm_ChangePIN({Handle:o,NewPIN:t,OldPIN:r,TryCount:n,PinFlag:l},(h,a)=>{h&&a==0?(this.ArmPin=t,s(a)):u(a)})})}armGenRandom(t=16,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_GenRandom({Handle:r,RandomLen:t},(o,s)=>{o?(this.ArmRandom=s,n(s)):l(s)})})}armGetDeadline(t=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_GetDeadline({Handle:t},(l,o)=>{l?(this.ArmDeadline=o,r(o)):n(o)})})}armGenUniqueKey(t="MTIzNDU2Nzg5MA==",r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_GenUniqueKey({Handle:r,Seed:t},(o,s)=>{o?(this.ArmUKey=s,n(s)):l(s)})})}armGetDongleInfo(t=0,r=dn.HARDWARE_ID){if(this.AtlCtrl)return this.ArmIndex=t,new Promise((n,l)=>{this.AtlCtrl.Arm_GetDongleInfo({Index:t,DongleInfoNum:r},(o,s)=>{if(o){switch(r){case dn.USER_ID:this.ArmUid=s;break;case dn.PRODUCT_ID:this.ArmPid=s;break;case dn.HARDWARE_ID:this.ArmHid=s;break}n(s)}else l(s)})})}armLEDControl(t,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_LEDControl({Handle:r,LedFlag:t},(o,s)=>{o&&s==0?n(s):l(s)})})}armRFS(t=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_RFS({Handle:t},(l,o)=>{l&&o==0?r(o):n(o)})})}armReadFile(t="0001",r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl[`Arm_ReadFile${t}`]({Handle:r},(o,s)=>{if(o&&s.length>0)try{s=this.Base64.decode(s),n(s)}catch(u){n(s)}else l(s)})})}armResetState(t=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_ResetState({Handle:t},(l,o)=>{l&&o==0?r(o):n(o)})})}armResetUserPIN(t,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_ResetUserPIN({Handle:r,AdminPIN:t},(o,s)=>{o&&s==0?n(s):l(s)})})}armSetUserID(t,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_SetUserID({Handle:r,UserID:t},(o,s)=>{o&&s==0?n(s):l(s)})})}armSetDeadline(t,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_SetDeadline({Handle:r,SetDeadTime:t},(o,s)=>{o&&s==0?n(s):l(s)})})}armSwitchProtocol(t=Mm.HID,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_SwitchProtocol({Handle:r,ProtocolFlag:t},(o,s)=>{o&&s==0?n(s):l(s)})})}armVerifyPIN(t,r=r0.USER,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((l,o)=>{this.AtlCtrl.Arm_VerifyPIN({Handle:n,UserPin:t,UserType:r},(s,u)=>{s&&u==0?(this.ArmPin=t,l(u)):o(u)})})}armReadData(t=0,r=128,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((l,o)=>{this.AtlCtrl.Arm_ReadData({Handle:n,Offset:t,ReadLength:r},(s,u)=>{s?(this.ArmData=u,l(u)):o(u)})})}armWriteData(t,r=0,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((l,o)=>{this.AtlCtrl.Arm_WriteData({Handle:n,Offset:r,DataInput:t},(s,u)=>{s&&u==0?l(u):o(u)})})}armReadShareMemory(t=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_ReadShareMemory({Handle:t},(l,o)=>{l?(this.ArmData=o,r(o)):n(o)})})}armWriteShareMemory(t,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_WriteShareMemory({Handle:r,DataInput:t},(o,s)=>{o&&s==0?n(s):l(s)})})}}const yu=Symbol(),En="el",Nm="is-",zt=(e,t,r,n,l)=>{let o=`${e}-${t}`;return r&&(o+=`-${r}`),n&&(o+=`__${n}`),l&&(o+=`--${l}`),o},gu=Symbol("namespaceContextKey"),Lm=e=>{const t=e||(L.getCurrentInstance()?L.inject(gu,L.ref(En)):L.ref(En));return L.computed(()=>L.unref(t)||En)},wr=(e,t)=>{const r=Lm(t);return{namespace:r,b:(v="")=>zt(r.value,e,v,"",""),e:v=>v?zt(r.value,e,"",v,""):"",m:v=>v?zt(r.value,e,"","",v):"",be:(v,m)=>v&&m?zt(r.value,e,v,m,""):"",em:(v,m)=>v&&m?zt(r.value,e,"",v,m):"",bm:(v,m)=>v&&m?zt(r.value,e,v,"",m):"",bem:(v,m,g)=>v&&m&&g?zt(r.value,e,v,m,g):"",is:(v,...m)=>{const g=m.length>=1?m[0]:!0;return v&&g?`${Nm}${v}`:""},cssVar:v=>{const m={};for(const g in v)v[g]&&(m[`--${r.value}-${g}`]=v[g]);return m},cssVarName:v=>`--${r.value}-${v}`,cssVarBlock:v=>{const m={};for(const g in v)v[g]&&(m[`--${r.value}-${e}-${g}`]=v[g]);return m},cssVarBlockName:v=>`--${r.value}-${e}-${v}`}};/**
|
|
31
|
+
*/(function(e){var t=Gn,r=ia,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=x,e.INSPECT_MAX_BYTES=50;var l=2147483647;e.kMaxLength=l,u.TYPED_ARRAY_SUPPORT=o(),!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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.");function o(){try{var q=new Uint8Array(1),C={foo:function(){return 42}};return Object.setPrototypeOf(C,Uint8Array.prototype),Object.setPrototypeOf(q,C),q.foo()===42}catch(B){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function s(q){if(q>l)throw new RangeError('The value "'+q+'" is invalid for option "size"');var C=new Uint8Array(q);return Object.setPrototypeOf(C,u.prototype),C}function u(q,C,B){if(typeof q=="number"){if(typeof C=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(q)}return h(q,C,B)}u.poolSize=8192;function h(q,C,B){if(typeof q=="string")return c(q,C);if(ArrayBuffer.isView(q))return p(q);if(q==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof q);if(ee(q,ArrayBuffer)||q&&ee(q.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ee(q,SharedArrayBuffer)||q&&ee(q.buffer,SharedArrayBuffer)))return v(q,C,B);if(typeof q=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var X=q.valueOf&&q.valueOf();if(X!=null&&X!==q)return u.from(X,C,B);var ne=m(q);if(ne)return ne;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof q[Symbol.toPrimitive]=="function")return u.from(q[Symbol.toPrimitive]("string"),C,B);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof q)}u.from=function(q,C,B){return h(q,C,B)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function a(q){if(typeof q!="number")throw new TypeError('"size" argument must be of type number');if(q<0)throw new RangeError('The value "'+q+'" is invalid for option "size"')}function i(q,C,B){return a(q),q<=0?s(q):C!==void 0?typeof B=="string"?s(q).fill(C,B):s(q).fill(C):s(q)}u.alloc=function(q,C,B){return i(q,C,B)};function d(q){return a(q),s(q<0?0:g(q)|0)}u.allocUnsafe=function(q){return d(q)},u.allocUnsafeSlow=function(q){return d(q)};function c(q,C){if((typeof C!="string"||C==="")&&(C="utf8"),!u.isEncoding(C))throw new TypeError("Unknown encoding: "+C);var B=y(q,C)|0,X=s(B),ne=X.write(q,C);return ne!==B&&(X=X.slice(0,ne)),X}function f(q){for(var C=q.length<0?0:g(q.length)|0,B=s(C),X=0;X<C;X+=1)B[X]=q[X]&255;return B}function p(q){if(ee(q,Uint8Array)){var C=new Uint8Array(q);return v(C.buffer,C.byteOffset,C.byteLength)}return f(q)}function v(q,C,B){if(C<0||q.byteLength<C)throw new RangeError('"offset" is outside of buffer bounds');if(q.byteLength<C+(B||0))throw new RangeError('"length" is outside of buffer bounds');var X;return C===void 0&&B===void 0?X=new Uint8Array(q):B===void 0?X=new Uint8Array(q,C):X=new Uint8Array(q,C,B),Object.setPrototypeOf(X,u.prototype),X}function m(q){if(u.isBuffer(q)){var C=g(q.length)|0,B=s(C);return B.length===0||q.copy(B,0,0,C),B}if(q.length!==void 0)return typeof q.length!="number"||te(q.length)?s(0):f(q);if(q.type==="Buffer"&&Array.isArray(q.data))return f(q.data)}function g(q){if(q>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return q|0}function x(q){return+q!=q&&(q=0),u.alloc(+q)}u.isBuffer=function(C){return C!=null&&C._isBuffer===!0&&C!==u.prototype},u.compare=function(C,B){if(ee(C,Uint8Array)&&(C=u.from(C,C.offset,C.byteLength)),ee(B,Uint8Array)&&(B=u.from(B,B.offset,B.byteLength)),!u.isBuffer(C)||!u.isBuffer(B))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===B)return 0;for(var X=C.length,ne=B.length,ue=0,ce=Math.min(X,ne);ue<ce;++ue)if(C[ue]!==B[ue]){X=C[ue],ne=B[ue];break}return X<ne?-1:ne<X?1:0},u.isEncoding=function(C){switch(String(C).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}},u.concat=function(C,B){if(!Array.isArray(C))throw new TypeError('"list" argument must be an Array of Buffers');if(C.length===0)return u.alloc(0);var X;if(B===void 0)for(B=0,X=0;X<C.length;++X)B+=C[X].length;var ne=u.allocUnsafe(B),ue=0;for(X=0;X<C.length;++X){var ce=C[X];if(ee(ce,Uint8Array))ue+ce.length>ne.length?u.from(ce).copy(ne,ue):Uint8Array.prototype.set.call(ne,ce,ue);else if(u.isBuffer(ce))ce.copy(ne,ue);else throw new TypeError('"list" argument must be an Array of Buffers');ue+=ce.length}return ne};function y(q,C){if(u.isBuffer(q))return q.length;if(ArrayBuffer.isView(q)||ee(q,ArrayBuffer))return q.byteLength;if(typeof q!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof q);var B=q.length,X=arguments.length>2&&arguments[2]===!0;if(!X&&B===0)return 0;for(var ne=!1;;)switch(C){case"ascii":case"latin1":case"binary":return B;case"utf8":case"utf-8":return oe(q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B*2;case"hex":return B>>>1;case"base64":return R(q).length;default:if(ne)return X?-1:oe(q).length;C=(""+C).toLowerCase(),ne=!0}}u.byteLength=y;function w(q,C,B){var X=!1;if((C===void 0||C<0)&&(C=0),C>this.length||((B===void 0||B>this.length)&&(B=this.length),B<=0)||(B>>>=0,C>>>=0,B<=C))return"";for(q||(q="utf8");;)switch(q){case"hex":return L(this,C,B);case"utf8":case"utf-8":return D(this,C,B);case"ascii":return Z(this,C,B);case"latin1":case"binary":return V(this,C,B);case"base64":return S(this,C,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,C,B);default:if(X)throw new TypeError("Unknown encoding: "+q);q=(q+"").toLowerCase(),X=!0}}u.prototype._isBuffer=!0;function k(q,C,B){var X=q[C];q[C]=q[B],q[B]=X}u.prototype.swap16=function(){var C=this.length;if(C%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var B=0;B<C;B+=2)k(this,B,B+1);return this},u.prototype.swap32=function(){var C=this.length;if(C%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var B=0;B<C;B+=4)k(this,B,B+3),k(this,B+1,B+2);return this},u.prototype.swap64=function(){var C=this.length;if(C%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var B=0;B<C;B+=8)k(this,B,B+7),k(this,B+1,B+6),k(this,B+2,B+5),k(this,B+3,B+4);return this},u.prototype.toString=function(){var C=this.length;return C===0?"":arguments.length===0?D(this,0,C):w.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(C){if(!u.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C?!0:u.compare(this,C)===0},u.prototype.inspect=function(){var C="",B=e.INSPECT_MAX_BYTES;return C=this.toString("hex",0,B).replace(/(.{2})/g,"$1 ").trim(),this.length>B&&(C+=" ... "),"<Buffer "+C+">"},n&&(u.prototype[n]=u.prototype.inspect),u.prototype.compare=function(C,B,X,ne,ue){if(ee(C,Uint8Array)&&(C=u.from(C,C.offset,C.byteLength)),!u.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(B===void 0&&(B=0),X===void 0&&(X=C?C.length:0),ne===void 0&&(ne=0),ue===void 0&&(ue=this.length),B<0||X>C.length||ne<0||ue>this.length)throw new RangeError("out of range index");if(ne>=ue&&B>=X)return 0;if(ne>=ue)return-1;if(B>=X)return 1;if(B>>>=0,X>>>=0,ne>>>=0,ue>>>=0,this===C)return 0;for(var ce=ue-ne,me=X-B,ge=Math.min(ce,me),Ce=this.slice(ne,ue),Te=C.slice(B,X),Be=0;Be<ge;++Be)if(Ce[Be]!==Te[Be]){ce=Ce[Be],me=Te[Be];break}return ce<me?-1:me<ce?1:0};function T(q,C,B,X,ne){if(q.length===0)return-1;if(typeof B=="string"?(X=B,B=0):B>2147483647?B=2147483647:B<-2147483648&&(B=-2147483648),B=+B,te(B)&&(B=ne?0:q.length-1),B<0&&(B=q.length+B),B>=q.length){if(ne)return-1;B=q.length-1}else if(B<0)if(ne)B=0;else return-1;if(typeof C=="string"&&(C=u.from(C,X)),u.isBuffer(C))return C.length===0?-1:F(q,C,B,X,ne);if(typeof C=="number")return C=C&255,typeof Uint8Array.prototype.indexOf=="function"?ne?Uint8Array.prototype.indexOf.call(q,C,B):Uint8Array.prototype.lastIndexOf.call(q,C,B):F(q,[C],B,X,ne);throw new TypeError("val must be string, number or Buffer")}function F(q,C,B,X,ne){var ue=1,ce=q.length,me=C.length;if(X!==void 0&&(X=String(X).toLowerCase(),X==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le")){if(q.length<2||C.length<2)return-1;ue=2,ce/=2,me/=2,B/=2}function ge(Pt,Mt){return ue===1?Pt[Mt]:Pt.readUInt16BE(Mt*ue)}var Ce;if(ne){var Te=-1;for(Ce=B;Ce<ce;Ce++)if(ge(q,Ce)===ge(C,Te===-1?0:Ce-Te)){if(Te===-1&&(Te=Ce),Ce-Te+1===me)return Te*ue}else Te!==-1&&(Ce-=Ce-Te),Te=-1}else for(B+me>ce&&(B=ce-me),Ce=B;Ce>=0;Ce--){for(var Be=!0,St=0;St<me;St++)if(ge(q,Ce+St)!==ge(C,St)){Be=!1;break}if(Be)return Ce}return-1}u.prototype.includes=function(C,B,X){return this.indexOf(C,B,X)!==-1},u.prototype.indexOf=function(C,B,X){return T(this,C,B,X,!0)},u.prototype.lastIndexOf=function(C,B,X){return T(this,C,B,X,!1)};function I(q,C,B,X){B=Number(B)||0;var ne=q.length-B;X?(X=Number(X),X>ne&&(X=ne)):X=ne;var ue=C.length;X>ue/2&&(X=ue/2);for(var ce=0;ce<X;++ce){var me=parseInt(C.substr(ce*2,2),16);if(te(me))return ce;q[B+ce]=me}return ce}function G(q,C,B,X){return Q(oe(C,q.length-B),q,B,X)}function K(q,C,B,X){return Q(b(C),q,B,X)}function E(q,C,B,X){return Q(R(C),q,B,X)}function A(q,C,B,X){return Q(_(C,q.length-B),q,B,X)}u.prototype.write=function(C,B,X,ne){if(B===void 0)ne="utf8",X=this.length,B=0;else if(X===void 0&&typeof B=="string")ne=B,X=this.length,B=0;else if(isFinite(B))B=B>>>0,isFinite(X)?(X=X>>>0,ne===void 0&&(ne="utf8")):(ne=X,X=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ue=this.length-B;if((X===void 0||X>ue)&&(X=ue),C.length>0&&(X<0||B<0)||B>this.length)throw new RangeError("Attempt to write outside buffer bounds");ne||(ne="utf8");for(var ce=!1;;)switch(ne){case"hex":return I(this,C,B,X);case"utf8":case"utf-8":return G(this,C,B,X);case"ascii":case"latin1":case"binary":return K(this,C,B,X);case"base64":return E(this,C,B,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,C,B,X);default:if(ce)throw new TypeError("Unknown encoding: "+ne);ne=(""+ne).toLowerCase(),ce=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(q,C,B){return C===0&&B===q.length?t.fromByteArray(q):t.fromByteArray(q.slice(C,B))}function D(q,C,B){B=Math.min(q.length,B);for(var X=[],ne=C;ne<B;){var ue=q[ne],ce=null,me=ue>239?4:ue>223?3:ue>191?2:1;if(ne+me<=B){var ge,Ce,Te,Be;switch(me){case 1:ue<128&&(ce=ue);break;case 2:ge=q[ne+1],(ge&192)===128&&(Be=(ue&31)<<6|ge&63,Be>127&&(ce=Be));break;case 3:ge=q[ne+1],Ce=q[ne+2],(ge&192)===128&&(Ce&192)===128&&(Be=(ue&15)<<12|(ge&63)<<6|Ce&63,Be>2047&&(Be<55296||Be>57343)&&(ce=Be));break;case 4:ge=q[ne+1],Ce=q[ne+2],Te=q[ne+3],(ge&192)===128&&(Ce&192)===128&&(Te&192)===128&&(Be=(ue&15)<<18|(ge&63)<<12|(Ce&63)<<6|Te&63,Be>65535&&Be<1114112&&(ce=Be))}}ce===null?(ce=65533,me=1):ce>65535&&(ce-=65536,X.push(ce>>>10&1023|55296),ce=56320|ce&1023),X.push(ce),ne+=me}return j(X)}var P=4096;function j(q){var C=q.length;if(C<=P)return String.fromCharCode.apply(String,q);for(var B="",X=0;X<C;)B+=String.fromCharCode.apply(String,q.slice(X,X+=P));return B}function Z(q,C,B){var X="";B=Math.min(q.length,B);for(var ne=C;ne<B;++ne)X+=String.fromCharCode(q[ne]&127);return X}function V(q,C,B){var X="";B=Math.min(q.length,B);for(var ne=C;ne<B;++ne)X+=String.fromCharCode(q[ne]);return X}function L(q,C,B){var X=q.length;(!C||C<0)&&(C=0),(!B||B<0||B>X)&&(B=X);for(var ne="",ue=C;ue<B;++ue)ne+=se[q[ue]];return ne}function H(q,C,B){for(var X=q.slice(C,B),ne="",ue=0;ue<X.length-1;ue+=2)ne+=String.fromCharCode(X[ue]+X[ue+1]*256);return ne}u.prototype.slice=function(C,B){var X=this.length;C=~~C,B=B===void 0?X:~~B,C<0?(C+=X,C<0&&(C=0)):C>X&&(C=X),B<0?(B+=X,B<0&&(B=0)):B>X&&(B=X),B<C&&(B=C);var ne=this.subarray(C,B);return Object.setPrototypeOf(ne,u.prototype),ne};function U(q,C,B){if(q%1!==0||q<0)throw new RangeError("offset is not uint");if(q+C>B)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(C,B,X){C=C>>>0,B=B>>>0,X||U(C,B,this.length);for(var ne=this[C],ue=1,ce=0;++ce<B&&(ue*=256);)ne+=this[C+ce]*ue;return ne},u.prototype.readUintBE=u.prototype.readUIntBE=function(C,B,X){C=C>>>0,B=B>>>0,X||U(C,B,this.length);for(var ne=this[C+--B],ue=1;B>0&&(ue*=256);)ne+=this[C+--B]*ue;return ne},u.prototype.readUint8=u.prototype.readUInt8=function(C,B){return C=C>>>0,B||U(C,1,this.length),this[C]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(C,B){return C=C>>>0,B||U(C,2,this.length),this[C]|this[C+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(C,B){return C=C>>>0,B||U(C,2,this.length),this[C]<<8|this[C+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(C,B){return C=C>>>0,B||U(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+this[C+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(C,B){return C=C>>>0,B||U(C,4,this.length),this[C]*16777216+(this[C+1]<<16|this[C+2]<<8|this[C+3])},u.prototype.readIntLE=function(C,B,X){C=C>>>0,B=B>>>0,X||U(C,B,this.length);for(var ne=this[C],ue=1,ce=0;++ce<B&&(ue*=256);)ne+=this[C+ce]*ue;return ue*=128,ne>=ue&&(ne-=Math.pow(2,8*B)),ne},u.prototype.readIntBE=function(C,B,X){C=C>>>0,B=B>>>0,X||U(C,B,this.length);for(var ne=B,ue=1,ce=this[C+--ne];ne>0&&(ue*=256);)ce+=this[C+--ne]*ue;return ue*=128,ce>=ue&&(ce-=Math.pow(2,8*B)),ce},u.prototype.readInt8=function(C,B){return C=C>>>0,B||U(C,1,this.length),this[C]&128?(255-this[C]+1)*-1:this[C]},u.prototype.readInt16LE=function(C,B){C=C>>>0,B||U(C,2,this.length);var X=this[C]|this[C+1]<<8;return X&32768?X|4294901760:X},u.prototype.readInt16BE=function(C,B){C=C>>>0,B||U(C,2,this.length);var X=this[C+1]|this[C]<<8;return X&32768?X|4294901760:X},u.prototype.readInt32LE=function(C,B){return C=C>>>0,B||U(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},u.prototype.readInt32BE=function(C,B){return C=C>>>0,B||U(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},u.prototype.readFloatLE=function(C,B){return C=C>>>0,B||U(C,4,this.length),r.read(this,C,!0,23,4)},u.prototype.readFloatBE=function(C,B){return C=C>>>0,B||U(C,4,this.length),r.read(this,C,!1,23,4)},u.prototype.readDoubleLE=function(C,B){return C=C>>>0,B||U(C,8,this.length),r.read(this,C,!0,52,8)},u.prototype.readDoubleBE=function(C,B){return C=C>>>0,B||U(C,8,this.length),r.read(this,C,!1,52,8)};function O(q,C,B,X,ne,ue){if(!u.isBuffer(q))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>ne||C<ue)throw new RangeError('"value" argument is out of bounds');if(B+X>q.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(C,B,X,ne){if(C=+C,B=B>>>0,X=X>>>0,!ne){var ue=Math.pow(2,8*X)-1;O(this,C,B,X,ue,0)}var ce=1,me=0;for(this[B]=C&255;++me<X&&(ce*=256);)this[B+me]=C/ce&255;return B+X},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(C,B,X,ne){if(C=+C,B=B>>>0,X=X>>>0,!ne){var ue=Math.pow(2,8*X)-1;O(this,C,B,X,ue,0)}var ce=X-1,me=1;for(this[B+ce]=C&255;--ce>=0&&(me*=256);)this[B+ce]=C/me&255;return B+X},u.prototype.writeUint8=u.prototype.writeUInt8=function(C,B,X){return C=+C,B=B>>>0,X||O(this,C,B,1,255,0),this[B]=C&255,B+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(C,B,X){return C=+C,B=B>>>0,X||O(this,C,B,2,65535,0),this[B]=C&255,this[B+1]=C>>>8,B+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(C,B,X){return C=+C,B=B>>>0,X||O(this,C,B,2,65535,0),this[B]=C>>>8,this[B+1]=C&255,B+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(C,B,X){return C=+C,B=B>>>0,X||O(this,C,B,4,4294967295,0),this[B+3]=C>>>24,this[B+2]=C>>>16,this[B+1]=C>>>8,this[B]=C&255,B+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(C,B,X){return C=+C,B=B>>>0,X||O(this,C,B,4,4294967295,0),this[B]=C>>>24,this[B+1]=C>>>16,this[B+2]=C>>>8,this[B+3]=C&255,B+4},u.prototype.writeIntLE=function(C,B,X,ne){if(C=+C,B=B>>>0,!ne){var ue=Math.pow(2,8*X-1);O(this,C,B,X,ue-1,-ue)}var ce=0,me=1,ge=0;for(this[B]=C&255;++ce<X&&(me*=256);)C<0&&ge===0&&this[B+ce-1]!==0&&(ge=1),this[B+ce]=(C/me>>0)-ge&255;return B+X},u.prototype.writeIntBE=function(C,B,X,ne){if(C=+C,B=B>>>0,!ne){var ue=Math.pow(2,8*X-1);O(this,C,B,X,ue-1,-ue)}var ce=X-1,me=1,ge=0;for(this[B+ce]=C&255;--ce>=0&&(me*=256);)C<0&&ge===0&&this[B+ce+1]!==0&&(ge=1),this[B+ce]=(C/me>>0)-ge&255;return B+X},u.prototype.writeInt8=function(C,B,X){return C=+C,B=B>>>0,X||O(this,C,B,1,127,-128),C<0&&(C=255+C+1),this[B]=C&255,B+1},u.prototype.writeInt16LE=function(C,B,X){return C=+C,B=B>>>0,X||O(this,C,B,2,32767,-32768),this[B]=C&255,this[B+1]=C>>>8,B+2},u.prototype.writeInt16BE=function(C,B,X){return C=+C,B=B>>>0,X||O(this,C,B,2,32767,-32768),this[B]=C>>>8,this[B+1]=C&255,B+2},u.prototype.writeInt32LE=function(C,B,X){return C=+C,B=B>>>0,X||O(this,C,B,4,2147483647,-2147483648),this[B]=C&255,this[B+1]=C>>>8,this[B+2]=C>>>16,this[B+3]=C>>>24,B+4},u.prototype.writeInt32BE=function(C,B,X){return C=+C,B=B>>>0,X||O(this,C,B,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),this[B]=C>>>24,this[B+1]=C>>>16,this[B+2]=C>>>8,this[B+3]=C&255,B+4};function W(q,C,B,X,ne,ue){if(B+X>q.length)throw new RangeError("Index out of range");if(B<0)throw new RangeError("Index out of range")}function $(q,C,B,X,ne){return C=+C,B=B>>>0,ne||W(q,C,B,4),r.write(q,C,B,X,23,4),B+4}u.prototype.writeFloatLE=function(C,B,X){return $(this,C,B,!0,X)},u.prototype.writeFloatBE=function(C,B,X){return $(this,C,B,!1,X)};function J(q,C,B,X,ne){return C=+C,B=B>>>0,ne||W(q,C,B,8),r.write(q,C,B,X,52,8),B+8}u.prototype.writeDoubleLE=function(C,B,X){return J(this,C,B,!0,X)},u.prototype.writeDoubleBE=function(C,B,X){return J(this,C,B,!1,X)},u.prototype.copy=function(C,B,X,ne){if(!u.isBuffer(C))throw new TypeError("argument should be a Buffer");if(X||(X=0),!ne&&ne!==0&&(ne=this.length),B>=C.length&&(B=C.length),B||(B=0),ne>0&&ne<X&&(ne=X),ne===X||C.length===0||this.length===0)return 0;if(B<0)throw new RangeError("targetStart out of bounds");if(X<0||X>=this.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("sourceEnd out of bounds");ne>this.length&&(ne=this.length),C.length-B<ne-X&&(ne=C.length-B+X);var ue=ne-X;return this===C&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(B,X,ne):Uint8Array.prototype.set.call(C,this.subarray(X,ne),B),ue},u.prototype.fill=function(C,B,X,ne){if(typeof C=="string"){if(typeof B=="string"?(ne=B,B=0,X=this.length):typeof X=="string"&&(ne=X,X=this.length),ne!==void 0&&typeof ne!="string")throw new TypeError("encoding must be a string");if(typeof ne=="string"&&!u.isEncoding(ne))throw new TypeError("Unknown encoding: "+ne);if(C.length===1){var ue=C.charCodeAt(0);(ne==="utf8"&&ue<128||ne==="latin1")&&(C=ue)}}else typeof C=="number"?C=C&255:typeof C=="boolean"&&(C=Number(C));if(B<0||this.length<B||this.length<X)throw new RangeError("Out of range index");if(X<=B)return this;B=B>>>0,X=X===void 0?this.length:X>>>0,C||(C=0);var ce;if(typeof C=="number")for(ce=B;ce<X;++ce)this[ce]=C;else{var me=u.isBuffer(C)?C:u.from(C,ne),ge=me.length;if(ge===0)throw new TypeError('The value "'+C+'" is invalid for argument "value"');for(ce=0;ce<X-B;++ce)this[ce+B]=me[ce%ge]}return this};var ie=/[^+/0-9A-Za-z-_]/g;function ae(q){if(q=q.split("=")[0],q=q.trim().replace(ie,""),q.length<2)return"";for(;q.length%4!==0;)q=q+"=";return q}function oe(q,C){C=C||1/0;for(var B,X=q.length,ne=null,ue=[],ce=0;ce<X;++ce){if(B=q.charCodeAt(ce),B>55295&&B<57344){if(!ne){if(B>56319){(C-=3)>-1&&ue.push(239,191,189);continue}else if(ce+1===X){(C-=3)>-1&&ue.push(239,191,189);continue}ne=B;continue}if(B<56320){(C-=3)>-1&&ue.push(239,191,189),ne=B;continue}B=(ne-55296<<10|B-56320)+65536}else ne&&(C-=3)>-1&&ue.push(239,191,189);if(ne=null,B<128){if((C-=1)<0)break;ue.push(B)}else if(B<2048){if((C-=2)<0)break;ue.push(B>>6|192,B&63|128)}else if(B<65536){if((C-=3)<0)break;ue.push(B>>12|224,B>>6&63|128,B&63|128)}else if(B<1114112){if((C-=4)<0)break;ue.push(B>>18|240,B>>12&63|128,B>>6&63|128,B&63|128)}else throw new Error("Invalid code point")}return ue}function b(q){for(var C=[],B=0;B<q.length;++B)C.push(q.charCodeAt(B)&255);return C}function _(q,C){for(var B,X,ne,ue=[],ce=0;ce<q.length&&!((C-=2)<0);++ce)B=q.charCodeAt(ce),X=B>>8,ne=B%256,ue.push(ne),ue.push(X);return ue}function R(q){return t.toByteArray(ae(q))}function Q(q,C,B,X){for(var ne=0;ne<X&&!(ne+B>=C.length||ne>=q.length);++ne)C[ne+B]=q[ne];return ne}function ee(q,C){return q instanceof C||q!=null&&q.constructor!=null&&q.constructor.name!=null&&q.constructor.name===C.name}function te(q){return q!==q}var se=function(){for(var q="0123456789abcdef",C=new Array(256),B=0;B<16;++B)for(var X=B*16,ne=0;ne<16;++ne)C[X+ne]=q[B]+q[ne];return C}()})(we);var lm=we.Buffer,um=function(e){if(e instanceof Uint8Array){if(e.byteOffset===0&&e.byteLength===e.buffer.byteLength)return e.buffer;if(typeof e.buffer.slice=="function")return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(lm.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,n=0;n<r;n++)t[n]=e[n];return t.buffer}else throw new Error("Argument must be a Buffer")};const Pr=Vo(um);var Yl={exports:{}};(function(e,t){(function(){var r,n=0xdeadbeefcafe,l=(n&16777215)==15715070;function o(M,z,Y){M!=null&&(typeof M=="number"?this.fromNumber(M,z,Y):z==null&&typeof M!="string"?this.fromString(M,256):this.fromString(M,z))}function s(){return new o(null)}function u(M,z,Y,re,fe,pe){for(;--pe>=0;){var de=z*this[M++]+Y[re]+fe;fe=Math.floor(de/67108864),Y[re++]=de&67108863}return fe}function h(M,z,Y,re,fe,pe){for(var de=z&32767,ve=z>>15;--pe>=0;){var Fe=this[M]&32767,Le=this[M++]>>15,nt=ve*Fe+Le*de;Fe=de*Fe+((nt&32767)<<15)+Y[re]+(fe&1073741823),fe=(Fe>>>30)+(nt>>>15)+ve*Le+(fe>>>30),Y[re++]=Fe&1073741823}return fe}function a(M,z,Y,re,fe,pe){for(var de=z&16383,ve=z>>14;--pe>=0;){var Fe=this[M]&16383,Le=this[M++]>>14,nt=ve*Fe+Le*de;Fe=de*Fe+((nt&16383)<<14)+Y[re]+fe,fe=(Fe>>28)+(nt>>14)+ve*Le,Y[re++]=Fe&268435455}return fe}var i=typeof navigator!="undefined";i&&l&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=h,r=30):i&&l&&navigator.appName!="Netscape"?(o.prototype.am=u,r=26):(o.prototype.am=a,r=28),o.prototype.DB=r,o.prototype.DM=(1<<r)-1,o.prototype.DV=1<<r;var d=52;o.prototype.FV=Math.pow(2,d),o.prototype.F1=d-r,o.prototype.F2=2*r-d;var c="0123456789abcdefghijklmnopqrstuvwxyz",f=new Array,p,v;for(p=48,v=0;v<=9;++v)f[p++]=v;for(p=97,v=10;v<36;++v)f[p++]=v;for(p=65,v=10;v<36;++v)f[p++]=v;function m(M){return c.charAt(M)}function g(M,z){var Y=f[M.charCodeAt(z)];return Y==null?-1:Y}function x(M){for(var z=this.t-1;z>=0;--z)M[z]=this[z];M.t=this.t,M.s=this.s}function y(M){this.t=1,this.s=M<0?-1:0,M>0?this[0]=M:M<-1?this[0]=M+this.DV:this.t=0}function w(M){var z=s();return z.fromInt(M),z}function k(M,z){var Y;if(z==16)Y=4;else if(z==8)Y=3;else if(z==256)Y=8;else if(z==2)Y=1;else if(z==32)Y=5;else if(z==4)Y=2;else{this.fromRadix(M,z);return}this.t=0,this.s=0;for(var re=M.length,fe=!1,pe=0;--re>=0;){var de=Y==8?M[re]&255:g(M,re);if(de<0){M.charAt(re)=="-"&&(fe=!0);continue}fe=!1,pe==0?this[this.t++]=de:pe+Y>this.DB?(this[this.t-1]|=(de&(1<<this.DB-pe)-1)<<pe,this[this.t++]=de>>this.DB-pe):this[this.t-1]|=de<<pe,pe+=Y,pe>=this.DB&&(pe-=this.DB)}Y==8&&M[0]&128&&(this.s=-1,pe>0&&(this[this.t-1]|=(1<<this.DB-pe)-1<<pe)),this.clamp(),fe&&o.ZERO.subTo(this,this)}function T(){for(var M=this.s&this.DM;this.t>0&&this[this.t-1]==M;)--this.t}function F(M){if(this.s<0)return"-"+this.negate().toString(M);var z;if(M==16)z=4;else if(M==8)z=3;else if(M==2)z=1;else if(M==32)z=5;else if(M==4)z=2;else return this.toRadix(M);var Y=(1<<z)-1,re,fe=!1,pe="",de=this.t,ve=this.DB-de*this.DB%z;if(de-- >0)for(ve<this.DB&&(re=this[de]>>ve)>0&&(fe=!0,pe=m(re));de>=0;)ve<z?(re=(this[de]&(1<<ve)-1)<<z-ve,re|=this[--de]>>(ve+=this.DB-z)):(re=this[de]>>(ve-=z)&Y,ve<=0&&(ve+=this.DB,--de)),re>0&&(fe=!0),fe&&(pe+=m(re));return fe?pe:"0"}function I(){var M=s();return o.ZERO.subTo(this,M),M}function G(){return this.s<0?this.negate():this}function K(M){var z=this.s-M.s;if(z!=0)return z;var Y=this.t;if(z=Y-M.t,z!=0)return this.s<0?-z:z;for(;--Y>=0;)if((z=this[Y]-M[Y])!=0)return z;return 0}function E(M){var z=1,Y;return(Y=M>>>16)!=0&&(M=Y,z+=16),(Y=M>>8)!=0&&(M=Y,z+=8),(Y=M>>4)!=0&&(M=Y,z+=4),(Y=M>>2)!=0&&(M=Y,z+=2),(Y=M>>1)!=0&&(M=Y,z+=1),z}function A(){return this.t<=0?0:this.DB*(this.t-1)+E(this[this.t-1]^this.s&this.DM)}function S(M,z){var Y;for(Y=this.t-1;Y>=0;--Y)z[Y+M]=this[Y];for(Y=M-1;Y>=0;--Y)z[Y]=0;z.t=this.t+M,z.s=this.s}function D(M,z){for(var Y=M;Y<this.t;++Y)z[Y-M]=this[Y];z.t=Math.max(this.t-M,0),z.s=this.s}function P(M,z){var Y=M%this.DB,re=this.DB-Y,fe=(1<<re)-1,pe=Math.floor(M/this.DB),de=this.s<<Y&this.DM,ve;for(ve=this.t-1;ve>=0;--ve)z[ve+pe+1]=this[ve]>>re|de,de=(this[ve]&fe)<<Y;for(ve=pe-1;ve>=0;--ve)z[ve]=0;z[pe]=de,z.t=this.t+pe+1,z.s=this.s,z.clamp()}function j(M,z){z.s=this.s;var Y=Math.floor(M/this.DB);if(Y>=this.t){z.t=0;return}var re=M%this.DB,fe=this.DB-re,pe=(1<<re)-1;z[0]=this[Y]>>re;for(var de=Y+1;de<this.t;++de)z[de-Y-1]|=(this[de]&pe)<<fe,z[de-Y]=this[de]>>re;re>0&&(z[this.t-Y-1]|=(this.s&pe)<<fe),z.t=this.t-Y,z.clamp()}function Z(M,z){for(var Y=0,re=0,fe=Math.min(M.t,this.t);Y<fe;)re+=this[Y]-M[Y],z[Y++]=re&this.DM,re>>=this.DB;if(M.t<this.t){for(re-=M.s;Y<this.t;)re+=this[Y],z[Y++]=re&this.DM,re>>=this.DB;re+=this.s}else{for(re+=this.s;Y<M.t;)re-=M[Y],z[Y++]=re&this.DM,re>>=this.DB;re-=M.s}z.s=re<0?-1:0,re<-1?z[Y++]=this.DV+re:re>0&&(z[Y++]=re),z.t=Y,z.clamp()}function V(M,z){var Y=this.abs(),re=M.abs(),fe=Y.t;for(z.t=fe+re.t;--fe>=0;)z[fe]=0;for(fe=0;fe<re.t;++fe)z[fe+Y.t]=Y.am(0,re[fe],z,fe,0,Y.t);z.s=0,z.clamp(),this.s!=M.s&&o.ZERO.subTo(z,z)}function L(M){for(var z=this.abs(),Y=M.t=2*z.t;--Y>=0;)M[Y]=0;for(Y=0;Y<z.t-1;++Y){var re=z.am(Y,z[Y],M,2*Y,0,1);(M[Y+z.t]+=z.am(Y+1,2*z[Y],M,2*Y+1,re,z.t-Y-1))>=z.DV&&(M[Y+z.t]-=z.DV,M[Y+z.t+1]=1)}M.t>0&&(M[M.t-1]+=z.am(Y,z[Y],M,2*Y,0,1)),M.s=0,M.clamp()}function H(M,z,Y){var re=M.abs();if(!(re.t<=0)){var fe=this.abs();if(fe.t<re.t){z!=null&&z.fromInt(0),Y!=null&&this.copyTo(Y);return}Y==null&&(Y=s());var pe=s(),de=this.s,ve=M.s,Fe=this.DB-E(re[re.t-1]);Fe>0?(re.lShiftTo(Fe,pe),fe.lShiftTo(Fe,Y)):(re.copyTo(pe),fe.copyTo(Y));var Le=pe.t,nt=pe[Le-1];if(nt!=0){var et=nt*(1<<this.F1)+(Le>1?pe[Le-2]>>this.F2:0),_t=this.FV/et,tn=(1<<this.F1)/et,st=1<<this.F2,lt=Y.t,rn=lt-Le,kt=z==null?s():z;for(pe.dlShiftTo(rn,kt),Y.compareTo(kt)>=0&&(Y[Y.t++]=1,Y.subTo(kt,Y)),o.ONE.dlShiftTo(Le,kt),kt.subTo(pe,pe);pe.t<Le;)pe[pe.t++]=0;for(;--rn>=0;){var li=Y[--lt]==nt?this.DM:Math.floor(Y[lt]*_t+(Y[lt-1]+st)*tn);if((Y[lt]+=pe.am(0,li,Y,rn,0,Le))<li)for(pe.dlShiftTo(rn,kt),Y.subTo(kt,Y);Y[lt]<--li;)Y.subTo(kt,Y)}z!=null&&(Y.drShiftTo(Le,z),de!=ve&&o.ZERO.subTo(z,z)),Y.t=Le,Y.clamp(),Fe>0&&Y.rShiftTo(Fe,Y),de<0&&o.ZERO.subTo(Y,Y)}}}function U(M){var z=s();return this.abs().divRemTo(M,null,z),this.s<0&&z.compareTo(o.ZERO)>0&&M.subTo(z,z),z}function O(M){this.m=M}function W(M){return M.s<0||M.compareTo(this.m)>=0?M.mod(this.m):M}function $(M){return M}function J(M){M.divRemTo(this.m,null,M)}function ie(M,z,Y){M.multiplyTo(z,Y),this.reduce(Y)}function ae(M,z){M.squareTo(z),this.reduce(z)}O.prototype.convert=W,O.prototype.revert=$,O.prototype.reduce=J,O.prototype.mulTo=ie,O.prototype.sqrTo=ae;function oe(){if(this.t<1)return 0;var M=this[0];if(!(M&1))return 0;var z=M&3;return z=z*(2-(M&15)*z)&15,z=z*(2-(M&255)*z)&255,z=z*(2-((M&65535)*z&65535))&65535,z=z*(2-M*z%this.DV)%this.DV,z>0?this.DV-z:-z}function b(M){this.m=M,this.mp=M.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<M.DB-15)-1,this.mt2=2*M.t}function _(M){var z=s();return M.abs().dlShiftTo(this.m.t,z),z.divRemTo(this.m,null,z),M.s<0&&z.compareTo(o.ZERO)>0&&this.m.subTo(z,z),z}function R(M){var z=s();return M.copyTo(z),this.reduce(z),z}function Q(M){for(;M.t<=this.mt2;)M[M.t++]=0;for(var z=0;z<this.m.t;++z){var Y=M[z]&32767,re=Y*this.mpl+((Y*this.mph+(M[z]>>15)*this.mpl&this.um)<<15)&M.DM;for(Y=z+this.m.t,M[Y]+=this.m.am(0,re,M,z,0,this.m.t);M[Y]>=M.DV;)M[Y]-=M.DV,M[++Y]++}M.clamp(),M.drShiftTo(this.m.t,M),M.compareTo(this.m)>=0&&M.subTo(this.m,M)}function ee(M,z){M.squareTo(z),this.reduce(z)}function te(M,z,Y){M.multiplyTo(z,Y),this.reduce(Y)}b.prototype.convert=_,b.prototype.revert=R,b.prototype.reduce=Q,b.prototype.mulTo=te,b.prototype.sqrTo=ee;function se(){return(this.t>0?this[0]&1:this.s)==0}function q(M,z){if(M>4294967295||M<1)return o.ONE;var Y=s(),re=s(),fe=z.convert(this),pe=E(M)-1;for(fe.copyTo(Y);--pe>=0;)if(z.sqrTo(Y,re),(M&1<<pe)>0)z.mulTo(re,fe,Y);else{var de=Y;Y=re,re=de}return z.revert(Y)}function C(M,z){var Y;return M<256||z.isEven()?Y=new O(z):Y=new b(z),this.exp(M,Y)}o.prototype.copyTo=x,o.prototype.fromInt=y,o.prototype.fromString=k,o.prototype.clamp=T,o.prototype.dlShiftTo=S,o.prototype.drShiftTo=D,o.prototype.lShiftTo=P,o.prototype.rShiftTo=j,o.prototype.subTo=Z,o.prototype.multiplyTo=V,o.prototype.squareTo=L,o.prototype.divRemTo=H,o.prototype.invDigit=oe,o.prototype.isEven=se,o.prototype.exp=q,o.prototype.toString=F,o.prototype.negate=I,o.prototype.abs=G,o.prototype.compareTo=K,o.prototype.bitLength=A,o.prototype.mod=U,o.prototype.modPowInt=C,o.ZERO=w(0),o.ONE=w(1);function B(){var M=s();return this.copyTo(M),M}function X(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function ne(){return this.t==0?this.s:this[0]<<24>>24}function ue(){return this.t==0?this.s:this[0]<<16>>16}function ce(M){return Math.floor(Math.LN2*this.DB/Math.log(M))}function me(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function ge(M){if(M==null&&(M=10),this.signum()==0||M<2||M>36)return"0";var z=this.chunkSize(M),Y=Math.pow(M,z),re=w(Y),fe=s(),pe=s(),de="";for(this.divRemTo(re,fe,pe);fe.signum()>0;)de=(Y+pe.intValue()).toString(M).substr(1)+de,fe.divRemTo(re,fe,pe);return pe.intValue().toString(M)+de}function Ce(M,z){this.fromInt(0),z==null&&(z=10);for(var Y=this.chunkSize(z),re=Math.pow(z,Y),fe=!1,pe=0,de=0,ve=0;ve<M.length;++ve){var Fe=g(M,ve);if(Fe<0){M.charAt(ve)=="-"&&this.signum()==0&&(fe=!0);continue}de=z*de+Fe,++pe>=Y&&(this.dMultiply(re),this.dAddOffset(de,0),pe=0,de=0)}pe>0&&(this.dMultiply(Math.pow(z,pe)),this.dAddOffset(de,0)),fe&&o.ZERO.subTo(this,this)}function Te(M,z,Y){if(typeof z=="number")if(M<2)this.fromInt(1);else for(this.fromNumber(M,Y),this.testBit(M-1)||this.bitwiseTo(o.ONE.shiftLeft(M-1),rr,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(z);)this.dAddOffset(2,0),this.bitLength()>M&&this.subTo(o.ONE.shiftLeft(M-1),this);else{var re=new Array,fe=M&7;re.length=(M>>3)+1,z.nextBytes(re),fe>0?re[0]&=(1<<fe)-1:re[0]=0,this.fromString(re,256)}}function Be(){var M=this.t,z=new Array;z[0]=this.s;var Y=this.DB-M*this.DB%8,re,fe=0;if(M-- >0)for(Y<this.DB&&(re=this[M]>>Y)!=(this.s&this.DM)>>Y&&(z[fe++]=re|this.s<<this.DB-Y);M>=0;)Y<8?(re=(this[M]&(1<<Y)-1)<<8-Y,re|=this[--M]>>(Y+=this.DB-8)):(re=this[M]>>(Y-=8)&255,Y<=0&&(Y+=this.DB,--M)),re&128&&(re|=-256),fe==0&&(this.s&128)!=(re&128)&&++fe,(fe>0||re!=this.s)&&(z[fe++]=re);return z}function St(M){return this.compareTo(M)==0}function Pt(M){return this.compareTo(M)<0?this:M}function Mt(M){return this.compareTo(M)>0?this:M}function Bt(M,z,Y){var re,fe,pe=Math.min(M.t,this.t);for(re=0;re<pe;++re)Y[re]=z(this[re],M[re]);if(M.t<this.t){for(fe=M.s&this.DM,re=pe;re<this.t;++re)Y[re]=z(this[re],fe);Y.t=this.t}else{for(fe=this.s&this.DM,re=pe;re<M.t;++re)Y[re]=z(fe,M[re]);Y.t=M.t}Y.s=z(this.s,M.s),Y.clamp()}function Nt(M,z){return M&z}function Qn(M){var z=s();return this.bitwiseTo(M,Nt,z),z}function rr(M,z){return M|z}function Wr(M){var z=s();return this.bitwiseTo(M,rr,z),z}function Kr(M,z){return M^z}function Yn(M){var z=s();return this.bitwiseTo(M,Kr,z),z}function Er(M,z){return M&~z}function Xn(M){var z=s();return this.bitwiseTo(M,Er,z),z}function Gr(){for(var M=s(),z=0;z<this.t;++z)M[z]=this.DM&~this[z];return M.t=this.t,M.s=~this.s,M}function Zn(M){var z=s();return M<0?this.rShiftTo(-M,z):this.lShiftTo(M,z),z}function Qr(M){var z=s();return M<0?this.lShiftTo(-M,z):this.rShiftTo(M,z),z}function Jn(M){if(M==0)return-1;var z=0;return M&65535||(M>>=16,z+=16),M&255||(M>>=8,z+=8),M&15||(M>>=4,z+=4),M&3||(M>>=2,z+=2),M&1||++z,z}function ei(){for(var M=0;M<this.t;++M)if(this[M]!=0)return M*this.DB+Jn(this[M]);return this.s<0?this.t*this.DB:-1}function ti(M){for(var z=0;M!=0;)M&=M-1,++z;return z}function Yr(){for(var M=0,z=this.s&this.DM,Y=0;Y<this.t;++Y)M+=ti(this[Y]^z);return M}function ri(M){var z=Math.floor(M/this.DB);return z>=this.t?this.s!=0:(this[z]&1<<M%this.DB)!=0}function ni(M,z){var Y=o.ONE.shiftLeft(M);return this.bitwiseTo(Y,z,Y),Y}function Xr(M){return this.changeBit(M,rr)}function ii(M){return this.changeBit(M,Er)}function Zr(M){return this.changeBit(M,Kr)}function We(M,z){for(var Y=0,re=0,fe=Math.min(M.t,this.t);Y<fe;)re+=this[Y]+M[Y],z[Y++]=re&this.DM,re>>=this.DB;if(M.t<this.t){for(re+=M.s;Y<this.t;)re+=this[Y],z[Y++]=re&this.DM,re>>=this.DB;re+=this.s}else{for(re+=this.s;Y<M.t;)re+=M[Y],z[Y++]=re&this.DM,re>>=this.DB;re+=M.s}z.s=re<0?-1:0,re>0?z[Y++]=re:re<-1&&(z[Y++]=this.DV+re),z.t=Y,z.clamp()}function pt(M){var z=s();return this.addTo(M,z),z}function Jr(M){var z=s();return this.subTo(M,z),z}function oi(M){var z=s();return this.multiplyTo(M,z),z}function zu(){var M=s();return this.squareTo(M),M}function qu(M){var z=s();return this.divRemTo(M,z,null),z}function ju(M){var z=s();return this.divRemTo(M,null,z),z}function Hu(M){var z=s(),Y=s();return this.divRemTo(M,z,Y),new Array(z,Y)}function $u(M){this[this.t]=this.am(0,M-1,this,0,0,this.t),++this.t,this.clamp()}function Vu(M,z){if(M!=0){for(;this.t<=z;)this[this.t++]=0;for(this[z]+=M;this[z]>=this.DV;)this[z]-=this.DV,++z>=this.t&&(this[this.t++]=0),++this[z]}}function Ar(){}function fa(M){return M}function Wu(M,z,Y){M.multiplyTo(z,Y)}function Ku(M,z){M.squareTo(z)}Ar.prototype.convert=fa,Ar.prototype.revert=fa,Ar.prototype.mulTo=Wu,Ar.prototype.sqrTo=Ku;function Gu(M){return this.exp(M,new Ar)}function Qu(M,z,Y){var re=Math.min(this.t+M.t,z);for(Y.s=0,Y.t=re;re>0;)Y[--re]=0;var fe;for(fe=Y.t-this.t;re<fe;++re)Y[re+this.t]=this.am(0,M[re],Y,re,0,this.t);for(fe=Math.min(M.t,z);re<fe;++re)this.am(0,M[re],Y,re,0,z-re);Y.clamp()}function Yu(M,z,Y){--z;var re=Y.t=this.t+M.t-z;for(Y.s=0;--re>=0;)Y[re]=0;for(re=Math.max(z-this.t,0);re<M.t;++re)Y[this.t+re-z]=this.am(z-re,M[re],Y,0,0,this.t+re-z);Y.clamp(),Y.drShiftTo(1,Y)}function Lt(M){this.r2=s(),this.q3=s(),o.ONE.dlShiftTo(2*M.t,this.r2),this.mu=this.r2.divide(M),this.m=M}function Xu(M){if(M.s<0||M.t>2*this.m.t)return M.mod(this.m);if(M.compareTo(this.m)<0)return M;var z=s();return M.copyTo(z),this.reduce(z),z}function Zu(M){return M}function Ju(M){for(M.drShiftTo(this.m.t-1,this.r2),M.t>this.m.t+1&&(M.t=this.m.t+1,M.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);M.compareTo(this.r2)<0;)M.dAddOffset(1,this.m.t+1);for(M.subTo(this.r2,M);M.compareTo(this.m)>=0;)M.subTo(this.m,M)}function ec(M,z){M.squareTo(z),this.reduce(z)}function tc(M,z,Y){M.multiplyTo(z,Y),this.reduce(Y)}Lt.prototype.convert=Xu,Lt.prototype.revert=Zu,Lt.prototype.reduce=Ju,Lt.prototype.mulTo=tc,Lt.prototype.sqrTo=ec;function rc(M,z){var Y=M.bitLength(),re,fe=w(1),pe;if(Y<=0)return fe;Y<18?re=1:Y<48?re=3:Y<144?re=4:Y<768?re=5:re=6,Y<8?pe=new O(z):z.isEven()?pe=new Lt(z):pe=new b(z);var de=new Array,ve=3,Fe=re-1,Le=(1<<re)-1;if(de[1]=pe.convert(this),re>1){var nt=s();for(pe.sqrTo(de[1],nt);ve<=Le;)de[ve]=s(),pe.mulTo(nt,de[ve-2],de[ve]),ve+=2}var et=M.t-1,_t,tn=!0,st=s(),lt;for(Y=E(M[et])-1;et>=0;){for(Y>=Fe?_t=M[et]>>Y-Fe&Le:(_t=(M[et]&(1<<Y+1)-1)<<Fe-Y,et>0&&(_t|=M[et-1]>>this.DB+Y-Fe)),ve=re;!(_t&1);)_t>>=1,--ve;if((Y-=ve)<0&&(Y+=this.DB,--et),tn)de[_t].copyTo(fe),tn=!1;else{for(;ve>1;)pe.sqrTo(fe,st),pe.sqrTo(st,fe),ve-=2;ve>0?pe.sqrTo(fe,st):(lt=fe,fe=st,st=lt),pe.mulTo(st,de[_t],fe)}for(;et>=0&&!(M[et]&1<<Y);)pe.sqrTo(fe,st),lt=fe,fe=st,st=lt,--Y<0&&(Y=this.DB-1,--et)}return pe.revert(fe)}function nc(M){var z=this.s<0?this.negate():this.clone(),Y=M.s<0?M.negate():M.clone();if(z.compareTo(Y)<0){var re=z;z=Y,Y=re}var fe=z.getLowestSetBit(),pe=Y.getLowestSetBit();if(pe<0)return z;for(fe<pe&&(pe=fe),pe>0&&(z.rShiftTo(pe,z),Y.rShiftTo(pe,Y));z.signum()>0;)(fe=z.getLowestSetBit())>0&&z.rShiftTo(fe,z),(fe=Y.getLowestSetBit())>0&&Y.rShiftTo(fe,Y),z.compareTo(Y)>=0?(z.subTo(Y,z),z.rShiftTo(1,z)):(Y.subTo(z,Y),Y.rShiftTo(1,Y));return pe>0&&Y.lShiftTo(pe,Y),Y}function ic(M){if(M<=0)return 0;var z=this.DV%M,Y=this.s<0?M-1:0;if(this.t>0)if(z==0)Y=this[0]%M;else for(var re=this.t-1;re>=0;--re)Y=(z*Y+this[re])%M;return Y}function oc(M){var z=M.isEven();if(this.isEven()&&z||M.signum()==0)return o.ZERO;for(var Y=M.clone(),re=this.clone(),fe=w(1),pe=w(0),de=w(0),ve=w(1);Y.signum()!=0;){for(;Y.isEven();)Y.rShiftTo(1,Y),z?((!fe.isEven()||!pe.isEven())&&(fe.addTo(this,fe),pe.subTo(M,pe)),fe.rShiftTo(1,fe)):pe.isEven()||pe.subTo(M,pe),pe.rShiftTo(1,pe);for(;re.isEven();)re.rShiftTo(1,re),z?((!de.isEven()||!ve.isEven())&&(de.addTo(this,de),ve.subTo(M,ve)),de.rShiftTo(1,de)):ve.isEven()||ve.subTo(M,ve),ve.rShiftTo(1,ve);Y.compareTo(re)>=0?(Y.subTo(re,Y),z&&fe.subTo(de,fe),pe.subTo(ve,pe)):(re.subTo(Y,re),z&&de.subTo(fe,de),ve.subTo(pe,ve))}if(re.compareTo(o.ONE)!=0)return o.ZERO;if(ve.compareTo(M)>=0)return ve.subtract(M);if(ve.signum()<0)ve.addTo(M,ve);else return ve;return ve.signum()<0?ve.add(M):ve}var Ke=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],ac=(1<<26)/Ke[Ke.length-1];function sc(M){var z,Y=this.abs();if(Y.t==1&&Y[0]<=Ke[Ke.length-1]){for(z=0;z<Ke.length;++z)if(Y[0]==Ke[z])return!0;return!1}if(Y.isEven())return!1;for(z=1;z<Ke.length;){for(var re=Ke[z],fe=z+1;fe<Ke.length&&re<ac;)re*=Ke[fe++];for(re=Y.modInt(re);z<fe;)if(re%Ke[z++]==0)return!1}return Y.millerRabin(M)}function lc(M){var z=this.subtract(o.ONE),Y=z.getLowestSetBit();if(Y<=0)return!1;var re=z.shiftRight(Y);M=M+1>>1,M>Ke.length&&(M=Ke.length);for(var fe=s(),pe=0;pe<M;++pe){fe.fromInt(Ke[Math.floor(Math.random()*Ke.length)]);var de=fe.modPow(re,this);if(de.compareTo(o.ONE)!=0&&de.compareTo(z)!=0){for(var ve=1;ve++<Y&&de.compareTo(z)!=0;)if(de=de.modPowInt(2,this),de.compareTo(o.ONE)==0)return!1;if(de.compareTo(z)!=0)return!1}}return!0}o.prototype.chunkSize=ce,o.prototype.toRadix=ge,o.prototype.fromRadix=Ce,o.prototype.fromNumber=Te,o.prototype.bitwiseTo=Bt,o.prototype.changeBit=ni,o.prototype.addTo=We,o.prototype.dMultiply=$u,o.prototype.dAddOffset=Vu,o.prototype.multiplyLowerTo=Qu,o.prototype.multiplyUpperTo=Yu,o.prototype.modInt=ic,o.prototype.millerRabin=lc,o.prototype.clone=B,o.prototype.intValue=X,o.prototype.byteValue=ne,o.prototype.shortValue=ue,o.prototype.signum=me,o.prototype.toByteArray=Be,o.prototype.equals=St,o.prototype.min=Pt,o.prototype.max=Mt,o.prototype.and=Qn,o.prototype.or=Wr,o.prototype.xor=Yn,o.prototype.andNot=Xn,o.prototype.not=Gr,o.prototype.shiftLeft=Zn,o.prototype.shiftRight=Qr,o.prototype.getLowestSetBit=ei,o.prototype.bitCount=Yr,o.prototype.testBit=ri,o.prototype.setBit=Xr,o.prototype.clearBit=ii,o.prototype.flipBit=Zr,o.prototype.add=pt,o.prototype.subtract=Jr,o.prototype.multiply=oi,o.prototype.divide=qu,o.prototype.remainder=ju,o.prototype.divideAndRemainder=Hu,o.prototype.modPow=rc,o.prototype.modInverse=oc,o.prototype.pow=Gu,o.prototype.gcd=nc,o.prototype.isProbablePrime=sc,o.prototype.square=zu,o.prototype.Barrett=Lt;var en,Je,Ne;function uc(M){Je[Ne++]^=M&255,Je[Ne++]^=M>>8&255,Je[Ne++]^=M>>16&255,Je[Ne++]^=M>>24&255,Ne>=si&&(Ne-=si)}function ha(){uc(new Date().getTime())}if(Je==null){Je=new Array,Ne=0;var at;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var pa=new Uint8Array(32);for(window.crypto.getRandomValues(pa),at=0;at<32;++at)Je[Ne++]=pa[at]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var da=window.crypto.random(32);for(at=0;at<da.length;++at)Je[Ne++]=da.charCodeAt(at)&255}}for(;Ne<si;)at=Math.floor(65536*Math.random()),Je[Ne++]=at>>>8,Je[Ne++]=at&255;Ne=0,ha()}function cc(){if(en==null){for(ha(),en=dc(),en.init(Je),Ne=0;Ne<Je.length;++Ne)Je[Ne]=0;Ne=0}return en.next()}function fc(M){var z;for(z=0;z<M.length;++z)M[z]=cc()}function ma(){}ma.prototype.nextBytes=fc;function ai(){this.i=0,this.j=0,this.S=new Array}function hc(M){var z,Y,re;for(z=0;z<256;++z)this.S[z]=z;for(Y=0,z=0;z<256;++z)Y=Y+this.S[z]+M[z%M.length]&255,re=this.S[z],this.S[z]=this.S[Y],this.S[Y]=re;this.i=0,this.j=0}function pc(){var M;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,M=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=M,this.S[M+this.S[this.i]&255]}ai.prototype.init=hc,ai.prototype.next=pc;function dc(){return new ai}var si=256;e.exports={default:o,BigInteger:o,SecureRandom:ma}}).call(xe)})(Yl);var ke=Yl.exports,cm=ke.BigInteger.prototype.Barrett;function Ge(e,t){this.x=t,this.q=e}function Ye(e,t,r,n){this.curve=e,this.x=t,this.y=r,this.z=n==null?ke.BigInteger.ONE:n,this.zinv=null}function gt(e,t,r){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(r),this.infinity=new Ye(this,null,null),this.reducer=new cm(this.q)}Ge.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},Ge.prototype.toBigInteger=function(){return this.x},Ge.prototype.negate=function(){return new Ge(this.q,this.x.negate().mod(this.q))},Ge.prototype.add=function(e){return new Ge(this.q,this.x.add(e.toBigInteger()).mod(this.q))},Ge.prototype.subtract=function(e){return new Ge(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},Ge.prototype.multiply=function(e){return new Ge(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},Ge.prototype.square=function(){return new Ge(this.q,this.x.square().mod(this.q))},Ge.prototype.divide=function(e){return new Ge(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},Ye.prototype.getX=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var e=this.x.toBigInteger().multiply(this.zinv);return this.curve.reduce(e),this.curve.fromBigInteger(e)},Ye.prototype.getY=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var e=this.y.toBigInteger().multiply(this.zinv);return this.curve.reduce(e),this.curve.fromBigInteger(e)},Ye.prototype.equals=function(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(ke.BigInteger.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(ke.BigInteger.ZERO))},Ye.prototype.isInfinity=function(){return this.x==null&&this.y==null||this.z.equals(ke.BigInteger.ZERO)&&!this.y.toBigInteger().equals(ke.BigInteger.ZERO)},Ye.prototype.negate=function(){return new Ye(this.curve,this.x,this.y.negate(),this.z)},Ye.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),r=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(ke.BigInteger.ZERO.equals(r))return ke.BigInteger.ZERO.equals(t)?this.twice():this.curve.getInfinity();var n=new ke.BigInteger("3"),l=this.x.toBigInteger(),o=this.y.toBigInteger(),s=(e.x.toBigInteger(),e.y.toBigInteger(),r.square()),u=s.multiply(r),h=l.multiply(s),a=t.square().multiply(this.z),i=a.subtract(h.shiftLeft(1)).multiply(e.z).subtract(u).multiply(r).mod(this.curve.q),d=h.multiply(n).multiply(t).subtract(o.multiply(u)).subtract(a.multiply(t)).multiply(e.z).add(t.multiply(u)).mod(this.curve.q),c=u.multiply(this.z).multiply(e.z).mod(this.curve.q);return new Ye(this.curve,this.curve.fromBigInteger(i),this.curve.fromBigInteger(d),c)},Ye.prototype.twice=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var e=new ke.BigInteger("3"),t=this.x.toBigInteger(),r=this.y.toBigInteger(),n=r.multiply(this.z),l=n.multiply(r).mod(this.curve.q),o=this.curve.a.toBigInteger(),s=t.square().multiply(e);ke.BigInteger.ZERO.equals(o)||(s=s.add(this.z.square().multiply(o)));var u=(s=s.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(l)).shiftLeft(1).multiply(n).mod(this.curve.q),h=s.multiply(e).multiply(t).subtract(l.shiftLeft(1)).shiftLeft(2).multiply(l).subtract(s.square().multiply(s)).mod(this.curve.q),a=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new Ye(this.curve,this.curve.fromBigInteger(u),this.curve.fromBigInteger(h),a)},Ye.prototype.multiply=function(e){if(this.isInfinity())return this;if(e.signum()==0)return this.curve.getInfinity();var t,r=e,n=r.multiply(new ke.BigInteger("3")),l=this.negate(),o=this;for(t=n.bitLength()-2;t>0;--t){o=o.twice();var s=n.testBit(t);s!=r.testBit(t)&&(o=o.add(s?this:l))}return o},Ye.prototype.multiplyTwo=function(e,t,r){var n;n=e.bitLength()>r.bitLength()?e.bitLength()-1:r.bitLength()-1;for(var l=this.curve.getInfinity(),o=this.add(t);n>=0;)l=l.twice(),e.testBit(n)?l=r.testBit(n)?l.add(o):l.add(this):r.testBit(n)&&(l=l.add(t)),--n;return l},gt.prototype.getQ=function(){return this.q},gt.prototype.getA=function(){return this.a},gt.prototype.getB=function(){return this.b},gt.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},gt.prototype.getInfinity=function(){return this.infinity},gt.prototype.fromBigInteger=function(e){return new Ge(this.q,e)},gt.prototype.reduce=function(e){this.reducer.reduce(e)},gt.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var t=(e.length-2)/2,r=e.substr(2,t),n=e.substr(t+2,t);return new Ye(this,this.fromBigInteger(new ke.BigInteger(r,16)),this.fromBigInteger(new ke.BigInteger(n,16)));default:return null}},gt.prototype.encodePointHex=function(e){if(e.isInfinity())return"00";var t=e.getX().toBigInteger().toString(16),r=e.getY().toBigInteger().toString(16),n=this.getQ().toString(16).length;for(n%2!=0&&n++;t.length<n;)t="0"+t;for(;r.length<n;)r="0"+r;return"04"+t+r};var Ue=function(e,t){return e<<(t%=32)|e>>>32-t},yt=function(e,t){var r=t-e.length;return(r>0?"0".repeat(r):"")+e},fm=function(e){return e<16?2043430169:2055708042},hm=function(e,t,r,n){return n<16?e^t^r:e&t|e&r|t&r},pm=function(e,t,r,n){return n<16?e^t^r:e&t|~e&r},dm=function(e,t,r){for(var n,l,o,s,u,h=function(x){var y,w=new Array(132);x.forEach(function(F,I){w[I]=F});for(var k=16;k<68;k++)w[k]=(y=w[k-16]^w[k-9]^Ue(w[k-3],15))^Ue(y,15)^Ue(y,23)^Ue(w[k-13],7)^w[k-6];for(var T=0;T<64;T++)w[T+68]=w[T]^w[T+4];return w}(t),a=e[0],i=e[1],d=e[2],c=e[3],f=e[4],p=e[5],v=e[6],m=e[7],g=0;g<64;g++)l=(n=Ue(Ue(a,12)+f+Ue(fm(g),g),7))^Ue(a,12),o=hm(a,i,d,g)+c+l+h[g+68],s=pm(f,p,v,g)+m+n+h[g],c=d,d=Ue(i,9),i=a,a=o,m=v,v=Ue(p,19),p=f,f=(u=s)^Ue(u,9)^Ue(u,17);return[a^e[0],i^e[1],d^e[2],c^e[3],f^e[4],p^e[5],v^e[6],m^e[7]]},Uo=function(e,t,r){if(typeof e=="string"?e=we.Buffer.from(e,t||"utf8"):e instanceof ArrayBuffer&&(e=we.Buffer.from(e)),!we.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');var n,l,o,s,u,h;n=e,l=we.Buffer.alloc(1,128),s=we.Buffer.alloc(o=(o=n.length%64)>=56?64-o%56-1:56-o-1,0),u=we.Buffer.alloc(8),h=8*n.length,u.writeUInt32BE(Math.floor(h/Math.pow(2,32)),0),u.writeUInt32BE(h%Math.pow(2,32),4);for(var a=(e=we.Buffer.concat([n,l,s,u],n.length+1+o+8)).length/64,i=new Array(a),d=0;d<a;d++){i[d]=new Array(16);for(var c=0;c<16;c++)i[d][c]=e.readUInt32BE(64*d+4*c)}var f=new Array(a);f[0]=[1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214];for(var p=0;p<a;p++)f[p+1]=dm(f[p],i[p]);var v=we.Buffer.alloc(32);return f[a].forEach(function(m,g){return v.writeInt32BE(m,4*g)}),r?v.toString(r):Pr(v)},Ys=new ke.SecureRandom,oa=function(){var e=new gt(new ke.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),new ke.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),new ke.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16)),t=e.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:e,G:t,n:new ke.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}(),Xs=oa.curve,Zs=oa.G,ln=oa.n;function Js(e,t){for(var r=[],n=Math.ceil(t/32),l=t%32,o=1;o<=n;o++){var s=we.Buffer.allocUnsafe(4);s.writeUInt32BE(o);var u=Uo(we.Buffer.concat([e,s]));r.push(o===n&&l?we.Buffer.from(u).slice(0,l):we.Buffer.from(u))}return we.Buffer.concat(r,t)}var mm={__proto__:null,constants:{C1C2C3:0,C1C3C2:1,PC:"04"},generateKeyPair:function(){var e=new ke.BigInteger(ln.bitLength(),Ys).mod(ln.subtract(new ke.BigInteger("2"))).add(ke.BigInteger.ONE),t=yt(e.toString(16),64),r=Zs.multiply(e);return{privateKey:t,publicKey:"04"+yt(r.getX().toBigInteger().toString(16),64)+yt(r.getY().toBigInteger().toString(16),64)}},encrypt:function(e,t,r){var n=r||{},l=n.mode,o=l===void 0?1:l,s=n.outputEncoding,u=n.pc;if(typeof e=="string"?e=we.Buffer.from(e,n.inputEncoding||"utf8"):e instanceof ArrayBuffer&&(e=we.Buffer.from(e)),!we.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');var h=new ke.BigInteger(ln.bitLength(),Ys).mod(ln.subtract(ke.BigInteger.ONE)).add(ke.BigInteger.ONE),a=Zs.multiply(h),i=yt(a.getX().toBigInteger().toString(16),64)+yt(a.getY().toBigInteger().toString(16),64),d=Xs.decodePointHex(t).multiply(h),c=yt(d.getX().toBigInteger().toString(16),64),f=yt(d.getY().toBigInteger().toString(16),64),p=Js(we.Buffer.from(c+f,"hex"),e.length),v=yt(new ke.BigInteger(e.toString("hex"),16).xor(new ke.BigInteger(p.toString("hex"),16)).toString(16),2*e.length),m=Uo(c+e.toString("hex")+f,"hex","hex"),g=we.Buffer.from((u?"04":"")+(o===0?i+v+m:i+m+v),"hex");return s?g.toString(s):Pr(g)},decrypt:function(e,t,r){var n=r||{},l=n.mode,o=l===void 0?1:l,s=n.outputEncoding,u=n.pc;if(typeof e=="string"?e=we.Buffer.from(e,n.inputEncoding):e instanceof ArrayBuffer&&(e=we.Buffer.from(e)),!we.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');var h=(e=u?e.slice(1):e).slice(0,32).toString("hex"),a=e.slice(32,64).toString("hex"),i=Xs.decodePointHex("04"+h+a).multiply(new ke.BigInteger(t,16)),d=yt(i.getX().toBigInteger().toString(16),64),c=yt(i.getY().toBigInteger().toString(16),64),f=e.slice(64,96),p=e.slice(96);o===0&&(f=e.slice(e.length-32),p=e.slice(64,e.length-32));var v=Js(we.Buffer.from(d+c,"hex"),p.length),m=new ke.BigInteger(p.toString("hex"),16).xor(new ke.BigInteger(v.toString("hex"),16)).toString(16),g=Uo(d+m+c,"hex","hex")===f.toString("hex")?we.Buffer.from(m,"hex"):we.Buffer.alloc(0);return s?g.toString(s):Pr(g)}},un=[[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5],[43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153],[156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98],[228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166],[71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168],[104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53],[30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135],[212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158],[234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161],[224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227],[29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111],[213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81],[141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216],[10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176],[137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132],[24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72]],cn=[2746333894,1453994832,1736282519,2993693404],vm=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257],fn=/^[0-9a-f]{32}$/i,Xl=function(e){return un[(4026531840&e)>>>28][(251658240&e)>>>24]<<24|un[(15728640&e)>>>20][(983040&e)>>>16]<<16|un[(61440&e)>>>12][(3840&e)>>>8]<<8|un[(240&e)>>>4][(15&e)>>>0]<<0},Zl=function(e){return(t=Xl(e))^Ue(t,2)^Ue(t,10)^Ue(t,18)^Ue(t,24);var t},Jl=function(e){var t,r=new Array(36);r[0]=e[0]^cn[0],r[1]=e[1]^cn[1],r[2]=e[2]^cn[2],r[3]=e[3]^cn[3];for(var n=new Array(32),l=0;l<32;l++)r[l+4]=r[l]^(t=Xl(r[l+1]^r[l+2]^r[l+3]^vm[l]))^Ue(t,13)^Ue(t,23),n[l]=r[l+4];return n},e0=function(e,t){for(var r=Jl(t),n=0;n<32;n++)e[n+4]=e[n]^Zl(e[n+1]^e[n+2]^e[n+3]^r[n]);return[e[35],e[34],e[33],e[32]]},t0=function(e,t){for(var r=Jl(t).reverse(),n=0;n<32;n++)e[n+4]=e[n]^Zl(e[n+1]^e[n+2]^e[n+3]^r[n]);return[e[35],e[34],e[33],e[32]]},hn=function(e){return[e.readInt32BE(0),e.readInt32BE(4),e.readInt32BE(8),e.readInt32BE(12)]},pn=function(e){for(var t=we.Buffer.alloc(16),r=0;r<4;r++)t.writeInt32BE(e[r],4*r);return t},dr={__proto__:null,constants:{ECB:1,CBC:2},encrypt:function(e,t,r){var n=r||{},l=n.mode,o=n.iv,s=n.outputEncoding;if(typeof e=="string"?e=we.Buffer.from(e,n.inputEncoding||"utf8"):e instanceof ArrayBuffer&&(e=we.Buffer.from(e)),!we.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');if(!fn.test(t))throw new TypeError("Invalid value of cipher `key`");if(t=we.Buffer.from(t,"hex"),l===2&&!fn.test(o))throw new TypeError("Invalid value of `iv` option");return function(u,h,a,i){a&&(a=hn(a)),h=hn(h);for(var d=[],c=(u=function(k){var T=16-k.length%16,F=we.Buffer.alloc(T,T);return we.Buffer.concat([k,F],k.length+T)}(u)).length/16,f=0;f<c;f++)if(a){var p=16*f,v=[a[0]^u.readInt32BE(p),a[1]^u.readInt32BE(p+4),a[2]^u.readInt32BE(p+8),a[3]^u.readInt32BE(p+12)],m=e0(v,h);d.push(pn(m)),a=m.slice(0)}else{var g=16*f,x=[u.readInt32BE(g),u.readInt32BE(g+4),u.readInt32BE(g+8),u.readInt32BE(g+12)],y=e0(x,h);d.push(pn(y))}var w=we.Buffer.concat(d,u.length);return i?w.toString(i):Pr(w)}(e,t,o=l===2?we.Buffer.from(o,"hex"):null,s)},decrypt:function(e,t,r){var n=r||{},l=n.mode,o=n.iv,s=n.outputEncoding;if(typeof e=="string"?e=we.Buffer.from(e,n.inputEncoding):e instanceof ArrayBuffer&&(e=we.Buffer.from(e)),!we.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');if(!fn.test(t))throw new TypeError("Invalid value of cipher `key`");if(t=we.Buffer.from(t,"hex"),l===2&&!fn.test(o))throw new TypeError("Invalid value of `iv` option");return function(u,h,a,i){a&&(a=hn(a)),h=hn(h);var d=[],c=u.length/16;if(a)for(var f=c-1;f>=0;f--){var p,v=16*f;p=f>0?[u.readInt32BE(v-16),u.readInt32BE(v-16+4),u.readInt32BE(v-16+8),u.readInt32BE(v-16+12)]:a;var m=[u.readInt32BE(v),u.readInt32BE(v+4),u.readInt32BE(v+8),u.readInt32BE(v+12)],g=t0(m,h);d.unshift(pn([g[0]^p[0],g[1]^p[1],g[2]^p[2],g[3]^p[3]]))}else for(var x=0;x<c;x++){var y=16*x,w=[u.readInt32BE(y),u.readInt32BE(y+4),u.readInt32BE(y+8),u.readInt32BE(y+12)],k=t0(w,h);d.push(pn(k))}var T=we.Buffer.concat(d,u.length-d[d.length-1][15]);return i?T.toString(i):Pr(T)}(e,t,o=l===2?we.Buffer.from(o,"hex"):null,s)}};(function(){if(typeof Object.id=="undefined"){var e=0;Object.id=function(t){return typeof t.__uniqueid=="undefined"&&Object.defineProperty(t,"__uniqueid",{value:++e,enumerable:!1,writable:!1}),t.__uniqueid}}})();function ym(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1];this.encode=function(r){var n,l,o,s,u,h;for(o=r.length,l=0,n="";l<o;){if(s=r.charCodeAt(l++)&255,l==o){n+=e.charAt(s>>2),n+=e.charAt((s&3)<<4),n+="==";break}if(u=r.charCodeAt(l++),l==o){n+=e.charAt(s>>2),n+=e.charAt((s&3)<<4|(u&240)>>4),n+=e.charAt((u&15)<<2),n+="=";break}h=r.charCodeAt(l++),n+=e.charAt(s>>2),n+=e.charAt((s&3)<<4|(u&240)>>4),n+=e.charAt((u&15)<<2|(h&192)>>6),n+=e.charAt(h&63)}return n},this.decode=function(r){var n,l,o,s,u,h,a;for(h=r.length,u=0,a="";u<h;){do n=t[r.charCodeAt(u++)&255];while(u<h&&n==-1);if(n==-1)break;do l=t[r.charCodeAt(u++)&255];while(u<h&&l==-1);if(l==-1)break;a+=String.fromCharCode(n<<2|(l&48)>>4);do{if(o=r.charCodeAt(u++)&255,o==61)return a;o=t[o]}while(u<h&&o==-1);if(o==-1)break;a+=String.fromCharCode((l&15)<<4|(o&60)>>2);do{if(s=r.charCodeAt(u++)&255,s==61)return a;s=t[s]}while(u<h&&s==-1);if(s==-1)break;a+=String.fromCharCode((o&3)<<6|s)}return a},this.utf16to8=function(r){var n,l,o,s;for(n="",o=r.length,l=0;l<o;l++)s=r.charCodeAt(l),s>=1&&s<=127?n+=r.charAt(l):s>2047?(n+=String.fromCharCode(224|s>>12&15),n+=String.fromCharCode(128|s>>6&63),n+=String.fromCharCode(128|s>>0&63)):(n+=String.fromCharCode(192|s>>6&31),n+=String.fromCharCode(128|s>>0&63));return n},this.utf8to16=function(r){var n,l,o,s,u,h;for(n="",o=r.length,l=0;l<o;)switch(s=r.charCodeAt(l++),s>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:n+=r.charAt(l-1);break;case 12:case 13:u=r.charCodeAt(l++),n+=String.fromCharCode((s&31)<<6|u&63);break;case 14:u=r.charCodeAt(l++),h=r.charCodeAt(l++),n+=String.fromCharCode((s&15)<<12|(u&63)<<6|(h&63)<<0);break}return n},this.charToHex=function(r){var n,l,o;for(n="",l=0;l<r.length;)o=r.charCodeAt(l++).toString(16),n+="\\0x"+o,n+=l>0&&l%8==0?`\r
|
|
32
|
+
`:", ";return n}}function gm(){var e=0,t=new Object;this.add=function(r,n){this.containsKey(r)||e++,t[r]=n},this.getValue=function(r){return this.containsKey(r)?t[r]:null},this.remove=function(r){this.containsKey(r)&&delete t[r]&&e--},this.containsKey=function(r){return r in t},this.containsValue=function(r){for(var n in t)if(t[n]==r)return!0;return!1},this.getValues=function(){var r=[];for(var n in t)r.push(t[n]);return r},this.getKeys=function(){var r=[];for(var n in t)r.push(n);return r},this.getSize=function(){return e},this.clear=function(){e=0,t=new Object}}function xm(e){if(this.connect=!1,this.ready_func_=null,this.callbacks_=new gm,this.module_="JS_IActiveXCtrl","WebSocket"in window)this.ws=new WebSocket("ws://127.0.0.1:7321");else throw"WebSocket not supported";this.ws.onerror=function(){throw"Unable to establish connection to WebSocket"},this.loadModule=function(){this.connect=!0;var t=JSON.stringify({MsgId:"LoadModule",Module:this.module_});this.ws.onmessage=this._callback.bind(this),this.ws.send(t)},this.loadModuleCallBack=function(t){if(!t)throw t.Response;this.ready_func_&&this.ready_func_()}.bind(this),this.callbacks_.add("LoadModule",this.loadModuleCallBack),this.exec=function(t,r,n){var l=Object.id(n).toString();this.callbacks_.add(l,n);var o={MsgId:l,Method:t+"|"+e};r&&(o.Param=JSON.stringify(r));var s=JSON.stringify(o);this.connect&&this.ws.send(s)},this.ready=function(t){this.ready_func_=t},this._callback=function(t){var r=JSON.parse(t.data),n=r.MsgId;if(this.callbacks_.containsKey(n)){var l=this.callbacks_.getValue(n);l(r.Result,r.Response),this.callbacks_.remove(n)}},this.ws.onopen=this.loadModule.bind(this),this.Arm_GetDongleInfo=function({Index:t,DongleInfoNum:r},n){this.exec("Arm_GetDongleInfo",[parseInt(t),parseInt(r)],n)},this.Arm_Enum=function(t){this.exec("Arm_Enum",null,t)},this.Arm_Open=function({Index:t},r){this.exec("Arm_Open",[parseInt(t)],r)},this.Arm_Close=function({Handle:t},r){this.exec("Arm_Close",[parseInt(t)],r)},this.Arm_VerifyPIN=function({Handle:t,UserPin:r,UserType:n},l){this.exec("Arm_VerifyPIN",[parseInt(t),n,r],l)},this.Arm_ResetState=function({Handle:t},r){this.exec("Arm_ResetState",[parseInt(t)],r)},this.Arm_GenRandom=function({Handle:t,RandomLen:r},n){this.exec("Arm_GenRandom",[parseInt(t),parseInt(r)],n)},this.Arm_LEDControl=function({Handle:t,LedFlag:r},n){this.exec("Arm_LEDControl",[parseInt(t),r],n)},this.Arm_SwitchProtocol=function({Handle:t,ProtocolFlag:r},n){this.exec("Arm_SwitchProtocol",[parseInt(t),r],n)},this.Arm_CreateFile=function({Handle:t,FileID:r,FileType:n,AttrBuffer:l},o){this.exec("Arm_CreateFile",[parseInt(t),n,parseInt(r),l],o)},this.Arm_WriteFile=function({Handle:t,FileID:r,FileType:n,FileOffset:l,DataInput:o},s){this.exec("Arm_WriteFile",[parseInt(t),n,parseInt(r),parseInt(l),o],s)},this.Arm_ReadFile0001=function({Handle:t},r){this.exec("Arm_ReadFile",[parseInt(t),parseInt("0001"),parseInt(0),parseInt("64")],r)},this.Arm_ReadFile0002=function({Handle:t},r){this.exec("Arm_ReadFile",[parseInt(t),parseInt("0002"),parseInt(0),parseInt("130")],r)},this.Arm_ReadFile0003=function({Handle:t},r){this.exec("Arm_ReadFile",[parseInt(t),parseInt("0003"),parseInt(0),parseInt("130")],r)},this.Arm_ReadFile0004=function({Handle:t},r){this.exec("Arm_ReadFile",[parseInt(t),parseInt("0004"),parseInt(0),parseInt("2048")],r)},this.Arm_ReadFile0005=function({Handle:t},r){this.exec("Arm_ReadFile",[parseInt(t),parseInt("0005"),parseInt(0),parseInt("2048")],r)},this.Arm_DownloadExeFile=function({Handle:t,Count:r,ExeFileInfo:n},l){this.exec("Arm_DownloadExeFile",[parseInt(t),parseInt(r),n],l)},this.Arm_RunExeFile=function({Handle:t,FileID:r,InData:n,DataLen:l},o){this.exec("Arm_RunExeFile",[parseInt(t),parseInt(r),n,n.length,parseInt(l)],o)},this.Arm_ReadRunExeFileData=function(t){this.exec("Arm_ReadRunExeFileData",null,t)},this.Arm_DeleteFile=function({Handle:t,FileID:r,FileType:n},l){this.exec("Arm_DeleteFile",[parseInt(t),n,parseInt(r)],l)},this.Arm_WriteData=function({Handle:t,Offset:r,DataInput:n},l){this.exec("Arm_WriteData",[parseInt(t),parseInt(r),n],l)},this.Arm_ReadData=function({Handle:t,Offset:r,ReadLength:n},l){this.exec("Arm_ReadData",[parseInt(t),parseInt(r),n],l)},this.Arm_WriteShareMemory=function({Handle:t,DataInput:r},n){this.exec("Arm_WriteShareMemory",[parseInt(t),r],n)},this.Arm_ReadShareMemory=function({Handle:t},r){this.exec("Arm_ReadShareMemory",[parseInt(t)],r)},this.Arm_GenUniqueKey=function({Handle:t,Seed:r},n){this.exec("Arm_GenUniqueKey",[parseInt(t),r.length,r],n)},this.Arm_ChangePIN=function({Handle:t,NewPIN:r,OldPIN:n,TryCount:l,PinFlag:o},s){this.exec("Arm_ChangePIN",[parseInt(t),o,n,r,parseInt(l)],s)},this.Arm_ResetUserPIN=function({Handle:t,AdminPIN:r},n){this.exec("Arm_ResetUserPIN",[parseInt(t),r],n)},this.Arm_SetUserID=function({Handle:t,UserID:r},n){this.exec("Arm_SetUserID",[parseInt(t),parseInt(r)],n)},this.Arm_GetDeadline=function({Handle:t},r){this.exec("Arm_GetDeadline",[parseInt(t)],r)},this.Arm_SetDeadline=function({Handle:t,SetDeadTime:r},n){this.exec("Arm_SetDeadline",[parseInt(t),parseInt(r)],n)},this.Arm_GetUTCTime=function({Handle:t},r){this.exec("Arm_GetUTCTime",[parseInt(t)],r)},this.Arm_RFS=function({Handle:t},r){this.exec("Arm_RFS",[parseInt(t)],r)},this.Arm_RsaGenPubPriKey=function({Handle:t,RsaFileId:r},n){this.exec("Arm_RsaGenPubPriKey",[parseInt(t),parseInt(r)],n)},this.Arm_EccGenPubPriKey=function({Handle:t,EccFileId:r},n){this.exec("Arm_EccGenPubPriKey",[parseInt(t),parseInt(r)],n)},this.Arm_Sm2GenPubPriKey=function({Handle:t,Sm2FileId:r},n){this.exec("Arm_Sm2GenPubPriKey",[parseInt(t),parseInt(r)],n)},this.Arm_ReadRsaPri=function(t){this.exec("Arm_ReadRsaPri",null,t)},this.Arm_ReadRsaPub=function(t){this.exec("Arm_ReadRsaPub",null,t)},this.Arm_ReadEccPri=function(t){this.exec("Arm_ReadEccPri",null,t)},this.Arm_ReadEccPub=function(t){this.exec("Arm_ReadEccPub",null,t)},this.Arm_ReadSm2Pri=function(t){this.exec("Arm_ReadSm2Pri",null,t)},this.Arm_ReadSm2Pub=function(t){this.exec("Arm_ReadSm2Pub",null,t)},this.Arm_RsaPri=function({Handle:t,RsaPri_Flag:r,RsaPriInData:n,RsaPriFileID:l,RsaPriFileSize:o},s){this.exec("Arm_RsaPri",[parseInt(t),parseInt(l),parseInt(o),r,n],s)},this.Arm_RsaPub=function({Handle:t,RsaPubKey:r,RsaPub_Flag:n,RsaPubInData:l,RsaPubFileSize:o},s){this.exec("Arm_RsaPub",[parseInt(t),parseInt(o),n,r,r.length,l],s)},this.Arm_EccSign=function({Handle:t,HashData:r,EccFileId:n},l){this.exec("Arm_EccSign",[parseInt(t),parseInt(n),r],l)},this.Arm_EccVerify=function({Handle:t,HashData:r,EccPubKey:n,EccSignData:l},o){this.exec("Arm_EccVerify",[parseInt(t),n,n.length,r,l],o)},this.Arm_Sm2Sign=function({Handle:t,HashData:r,Sm2FileId:n},l){this.exec("Arm_Sm2Sign",[parseInt(t),parseInt(n),r],l)},this.Arm_Sm2Verify=function({Handle:t,HashData:r,Sm2PubKey:n,Sm2SignData:l},o){this.exec("Arm_Sm2Verify",[parseInt(t),n,n.length,r,l],o)},this.Arm_TDES=function({Handle:t,Tdes_Flag:r,TdesFileID:n,TdesInData:l},o){this.exec("Arm_TDES",[parseInt(t),parseInt(n),r,l],o)},this.Arm_SM4=function({Handle:t,Sm4_Flag:r,Sm4FileID:n,Sm4InData:l},o){this.exec("Arm_SM4",[parseInt(t),parseInt(n),r,l],o)},this.Arm_HASH=function({Handle:t,Hash_Flag:r,HashInData:n},l){this.exec("Arm_HASH",[parseInt(t),r,n],l)},this.Arm_Seed=function({Handle:t,SeedData:r,SeedLength:n},l){this.exec("Arm_Seed",[parseInt(t),n,r],l)},this.Arm_LimitSeedCount=function({Handle:t,SeedCount:r},n){this.exec("Arm_LimitSeedCount",[parseInt(t),parseInt(r)],n)},this.Arm_GenMotherKey=function({Handle:t,SeedLen:r,SeedForPID:n,SonCount:l,StartUserID:o,AdminTryCount:s,UserPin:u,UserTryCount:h,UpdateRSAPriKey:a},i){this.exec("Arm_GenMotherKey",[parseInt(t),parseInt(r),n,u,parseInt(h),parseInt(s),a,parseInt(o),parseInt(l)],i)},this.Arm_RequestInit=function({Handle:t},r){this.exec("Arm_RequestInit",[parseInt(t)],r)},this.Arm_GetInitDataFromMother=function({Handle:t},r){this.exec("Arm_GetInitDataFromMother",[parseInt(t),Request],r)},this.Arm_InitSon=function({Handle:t,InitData:r},n){this.exec("Arm_InitSon",[parseInt(t),r],n)},this.Arm_SetUpdatePriKey=function({Handle:t,UpdatePriKey:r},n){this.exec("Arm_SetUpdatePriKey",[parseInt(t),r],n)},this.Arm_MakeUpdatePacket=function({Handle:t,HID:r,Func:n,FileID:l,FileType:o,Offset:s,DataLen:u,DataBuffer:h,UpRSAPubKey:a},i){this.exec("Arm_MakeUpdatePacket",[parseInt(t),r,n,o,parseInt(l),parseInt(s),h,a,parseInt(u)],i)},this.Arm_MakeUpdatePacketFromMother=function({Handle:t,HID:r,Func:n,FileID:l,FileType:o,Offset:s,DataLen:u,DataBuffer:h},a){this.exec("Arm_MakeUpdatePacketFromMother",[parseInt(t),r,n,o,parseInt(l),parseInt(s),h,parseInt(u)],a)},this.Arm_Update=function({Handle:t,UpdateData:r},n){this.exec("Arm_Update",[parseInt(t),r],n)},this.Arm_Set_DATA_FILE_ATTR=function({Size:t,ReadPriv:r,WritePriv:n},l){this.exec("Arm_Set_DATA_FILE_ATTR",[parseInt(t),parseInt(r),parseInt(n)],l)},this.Arm_Set_PRIKEY_FILE_ATTR=function({Count:t,Size:r,Type:n,Priv:l,IsReset:o,IsDecOnRAM:s},u){this.exec("Arm_Set_PRIKEY_FILE_ATTR",[n,parseInt(r),parseInt(t),parseInt(l),parseInt(s),parseInt(o)],u)},this.Arm_Set_KEY_FILE_ATTR=function({Size:t,PrivEnc:r},n){this.exec("Arm_Set_KEY_FILE_ATTR",[parseInt(t),parseInt(r)],n)},this.Arm_Set_EXE_FILE_ATTR=function({FileLen:t,PrivExe:r},n){this.exec("Arm_Set_EXE_FILE_ATTR",[parseInt(t),parseInt(r)],n)},this.Arm_Set_DATA_LIC=function({ReadPriv:t,WritePriv:r},n){this.exec("Arm_Set_DATA_LIC",[parseInt(t),parseInt(r)],n)},this.Arm_Set_PRIKEY_LIC=function({Count:t,Priv:r,IsReset:n,IsDecOnRAM:l},o){this.exec("Arm_Set_PRIKEY_LIC",[parseInt(t),parseInt(r),parseInt(l),parseInt(n)],o)},this.Arm_Set_KEY_LIC=function({PrivEnc:t},r){this.exec("Arm_Set_KEY_LIC",[parseInt(t)],r)},this.Arm_Set_EXE_LIC=function({PrivExe:t},r){this.exec("Arm_Set_EXE_LIC",[parseInt(t)],r)},this.Arm_Set_EXE_FILE_INFO=function({FileID:t,FileData:r,FileSize:n,InBuffer:l,CallLimit:o},s){this.exec("Arm_Set_EXE_FILE_INFO",[l,parseInt(n),parseInt(t),parseInt(o),r,r.length],s)},this.Arm_Clear_EXE_FILE_INFO=function({InBuffer:t},r){this.exec("Arm_Clear_EXE_FILE_INFO",[t],r)}}const bm={HID:0},dn={PRODUCT_ID:0,USER_ID:1,HARDWARE_ID:2},r0={USER:0};class eu{constructor(){Tt(this,"Base64",new ym);Tt(this,"AtlCtrl",null);Tt(this,"ArmCount",0);Tt(this,"ArmIndex",0);Tt(this,"ArmHandle",0);Tt(this,"ArmRandom","");try{this.AtlCtrl=new xm("{39E9B272-82A7-4177-A19D-6723C1BDB0CC}")}catch(t){this.AtlCtrl=null}}armEnum(){if(this.AtlCtrl)return new Promise((t,r)=>{this.AtlCtrl.Arm_Enum((n,l)=>{n?(this.ArmCount=+l,t(l)):r(l)})})}armOpen(t=0){if(this.AtlCtrl)return this.ArmIndex=t,new Promise((r,n)=>{this.AtlCtrl.Arm_Open({Index:t},(l,o)=>{l?(this.ArmHandle=+o,r(o)):(this.ArmHandle=o,n(o))})})}armClose(t=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_Close({Handle:t},(l,o)=>{l?r(o):n(o)})})}armChangePIN(t,r,n=255,l=r0.USER,o=this.ArmHandle){if(this.AtlCtrl)return new Promise((s,u)=>{this.AtlCtrl.Arm_ChangePIN({Handle:o,NewPIN:t,OldPIN:r,TryCount:n,PinFlag:l},(h,a)=>{h&&a==0?(this.ArmPin=t,s(a)):u(a)})})}armGenRandom(t=16,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_GenRandom({Handle:r,RandomLen:t},(o,s)=>{o?(this.ArmRandom=s,n(s)):l(s)})})}armGetDeadline(t=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_GetDeadline({Handle:t},(l,o)=>{l?(this.ArmDeadline=o,r(o)):n(o)})})}armGenUniqueKey(t="MTIzNDU2Nzg5MA==",r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_GenUniqueKey({Handle:r,Seed:t},(o,s)=>{o?(this.ArmUKey=s,n(s)):l(s)})})}armGetDongleInfo(t=0,r=dn.HARDWARE_ID){if(this.AtlCtrl)return this.ArmIndex=t,new Promise((n,l)=>{this.AtlCtrl.Arm_GetDongleInfo({Index:t,DongleInfoNum:r},(o,s)=>{if(o){switch(r){case dn.USER_ID:this.ArmUid=s;break;case dn.PRODUCT_ID:this.ArmPid=s;break;case dn.HARDWARE_ID:this.ArmHid=s;break}n(s)}else l(s)})})}armLEDControl(t,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_LEDControl({Handle:r,LedFlag:t},(o,s)=>{o&&s==0?n(s):l(s)})})}armRFS(t=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_RFS({Handle:t},(l,o)=>{l&&o==0?r(o):n(o)})})}armReadFile(t="0001",r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl[`Arm_ReadFile${t}`]({Handle:r},(o,s)=>{if(o&&s.length>0)try{s=this.Base64.decode(s),n(s)}catch(u){n(s)}else l(s)})})}armResetState(t=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_ResetState({Handle:t},(l,o)=>{l&&o==0?r(o):n(o)})})}armResetUserPIN(t,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_ResetUserPIN({Handle:r,AdminPIN:t},(o,s)=>{o&&s==0?n(s):l(s)})})}armSetUserID(t,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_SetUserID({Handle:r,UserID:t},(o,s)=>{o&&s==0?n(s):l(s)})})}armSetDeadline(t,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_SetDeadline({Handle:r,SetDeadTime:t},(o,s)=>{o&&s==0?n(s):l(s)})})}armSwitchProtocol(t=bm.HID,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_SwitchProtocol({Handle:r,ProtocolFlag:t},(o,s)=>{o&&s==0?n(s):l(s)})})}armVerifyPIN(t,r=r0.USER,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((l,o)=>{this.AtlCtrl.Arm_VerifyPIN({Handle:n,UserPin:t,UserType:r},(s,u)=>{s&&u==0?(this.ArmPin=t,l(u)):o(u)})})}armReadData(t=0,r=128,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((l,o)=>{this.AtlCtrl.Arm_ReadData({Handle:n,Offset:t,ReadLength:r},(s,u)=>{s?(this.ArmData=u,l(u)):o(u)})})}armWriteData(t,r=0,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((l,o)=>{this.AtlCtrl.Arm_WriteData({Handle:n,Offset:r,DataInput:t},(s,u)=>{s&&u==0?l(u):o(u)})})}armReadShareMemory(t=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_ReadShareMemory({Handle:t},(l,o)=>{l?(this.ArmData=o,r(o)):n(o)})})}armWriteShareMemory(t,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,l)=>{this.AtlCtrl.Arm_WriteShareMemory({Handle:r,DataInput:t},(o,s)=>{o&&s==0?n(s):l(s)})})}}const tu=Symbol(),En="el",wm="is-",zt=(e,t,r,n,l)=>{let o=`${e}-${t}`;return r&&(o+=`-${r}`),n&&(o+=`__${n}`),l&&(o+=`--${l}`),o},ru=Symbol("namespaceContextKey"),_m=e=>{const t=e||(N.getCurrentInstance()?N.inject(ru,N.ref(En)):N.ref(En));return N.computed(()=>N.unref(t)||En)},wr=(e,t)=>{const r=_m(t);return{namespace:r,b:(v="")=>zt(r.value,e,v,"",""),e:v=>v?zt(r.value,e,"",v,""):"",m:v=>v?zt(r.value,e,"","",v):"",be:(v,m)=>v&&m?zt(r.value,e,v,m,""):"",em:(v,m)=>v&&m?zt(r.value,e,"",v,m):"",bm:(v,m)=>v&&m?zt(r.value,e,v,"",m):"",bem:(v,m,g)=>v&&m&&g?zt(r.value,e,v,m,g):"",is:(v,...m)=>{const g=m.length>=1?m[0]:!0;return v&&g?`${wm}${v}`:""},cssVar:v=>{const m={};for(const g in v)v[g]&&(m[`--${r.value}-${g}`]=v[g]);return m},cssVarName:v=>`--${r.value}-${v}`,cssVarBlock:v=>{const m={};for(const g in v)v[g]&&(m[`--${r.value}-${e}-${g}`]=v[g]);return m},cssVarBlockName:v=>`--${r.value}-${e}-${v}`}};/**
|
|
33
33
|
* @vue/shared v3.5.22
|
|
34
34
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
35
35
|
* @license MIT
|
|
36
|
-
**/process.env.NODE_ENV!=="production"&&Object.freeze({});process.env.NODE_ENV!=="production"&&Object.freeze([]);const Um=()=>{},zm=Object.prototype.hasOwnProperty,n0=(e,t)=>zm.call(e,t),Mr=e=>typeof e=="function",Gt=e=>typeof e=="string",xu=e=>e!==null&&typeof e=="object",bu=e=>e===void 0,wo=e=>typeof e=="boolean",Qt=e=>typeof e=="number",zo=e=>typeof Element=="undefined"?!1:e instanceof Element,qm=e=>Gt(e)?!Number.isNaN(Number(e)):!1;var i0;const er=typeof window!="undefined",jm=e=>typeof e=="string",Hm=()=>{};er&&((i0=window==null?void 0:window.navigator)!=null&&i0.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function aa(e){return typeof e=="function"?e():L.unref(e)}function $m(e){return e}function sa(e){return L.getCurrentScope()?(L.onScopeDispose(e),!0):!1}function Vm(e,t=!0){L.getCurrentInstance()?L.onMounted(e):t?e():L.nextTick(e)}function wu(e,t,r={}){const{immediate:n=!0}=r,l=L.ref(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function u(){l.value=!1,s()}function h(...a){s(),l.value=!0,o=setTimeout(()=>{l.value=!1,o=null,e(...a)},aa(t))}return n&&(l.value=!0,er&&h()),sa(u),{isPending:L.readonly(l),start:h,stop:u}}function _u(e){var t;const r=aa(e);return(t=r==null?void 0:r.$el)!=null?t:r}const Eu=er?window:void 0;function Au(...e){let t,r,n,l;if(jm(e[0])||Array.isArray(e[0])?([r,n,l]=e,t=Eu):[t,r,n,l]=e,!t)return Hm;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(i=>i()),o.length=0},u=(i,d,c,f)=>(i.addEventListener(d,c,f),()=>i.removeEventListener(d,c,f)),h=L.watch(()=>[_u(t),aa(l)],([i,d])=>{s(),i&&o.push(...r.flatMap(c=>n.map(f=>u(i,c,f,d))))},{immediate:!0,flush:"post"}),a=()=>{h(),s()};return sa(a),a}function Wm(e,t=!1){const r=L.ref(),n=()=>r.value=!!e();return n(),Vm(n,t),r}const o0=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},a0="__vueuse_ssr_handlers__";o0[a0]=o0[a0]||{};var s0=Object.getOwnPropertySymbols,Km=Object.prototype.hasOwnProperty,Gm=Object.prototype.propertyIsEnumerable,Qm=(e,t)=>{var r={};for(var n in e)Km.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&s0)for(var n of s0(e))t.indexOf(n)<0&&Gm.call(e,n)&&(r[n]=e[n]);return r};function Ym(e,t,r={}){const n=r,{window:l=Eu}=n,o=Qm(n,["window"]);let s;const u=Wm(()=>l&&"ResizeObserver"in l),h=()=>{s&&(s.disconnect(),s=void 0)},a=L.watch(()=>_u(e),d=>{h(),u.value&&l&&d&&(s=new ResizeObserver(t),s.observe(d,o))},{immediate:!0,flush:"post"}),i=()=>{h(),a()};return sa(i),{isSupported:u,stop:i}}var l0;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(l0||(l0={}));var Xm=Object.defineProperty,u0=Object.getOwnPropertySymbols,Zm=Object.prototype.hasOwnProperty,Jm=Object.prototype.propertyIsEnumerable,c0=(e,t,r)=>t in e?Xm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,e2=(e,t)=>{for(var r in t||(t={}))Zm.call(t,r)&&c0(e,r,t[r]);if(u0)for(var r of u0(t))Jm.call(t,r)&&c0(e,r,t[r]);return e};const t2={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]};e2({linear:$m},t2);const f0={current:0},h0=L.ref(0),Cu=2e3,p0=Symbol("elZIndexContextKey"),Su=Symbol("zIndexContextKey"),r2=e=>{const t=L.getCurrentInstance()?L.inject(p0,f0):f0,r=e||(L.getCurrentInstance()?L.inject(Su,void 0):void 0),n=L.computed(()=>{const s=L.unref(r);return Qt(s)?s:Cu}),l=L.computed(()=>n.value+h0.value),o=()=>(t.current++,h0.value=t.current,l.value);return!er&&L.inject(p0),{initialZIndex:n,currentZIndex:l,nextZIndex:o}};var n2={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 i2=e=>(t,r)=>o2(t,r,L.unref(e)),o2=(e,t,r)=>On.get(r,e,e).replace(/\{(\w+)\}/g,(n,l)=>{var o;return`${(o=t==null?void 0:t[l])!=null?o:`{${l}}`}`}),a2=e=>{const t=L.computed(()=>L.unref(e).name),r=L.isRef(e)?e:L.ref(e);return{lang:t,locale:r,t:i2(e)}},Bu=Symbol("localeContextKey"),s2=e=>{const t=e||L.inject(Bu,L.ref());return a2(L.computed(()=>t.value||n2))},ku="__epPropKey",qe=e=>e,l2=e=>xu(e)&&!!e[ku],Tu=(e,t)=>{if(!xu(e)||l2(e))return e;const{values:r,required:n,default:l,type:o,validator:s}=e,h={type:o,required:!!n,validator:r||s?a=>{let i=!1,d=[];if(r&&(d=Array.from(r),n0(e,"default")&&d.push(l),i||(i=d.includes(a))),s&&(i||(i=s(a))),!i&&d.length>0){const c=[...new Set(d)].map(f=>JSON.stringify(f)).join(", ");L.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${c}], got value ${JSON.stringify(a)}.`)}return i}:void 0,[ku]:!0};return n0(e,"default")&&(h.default=l),h},tr=e=>On.fromPairs(Object.entries(e).map(([t,r])=>[t,Tu(r,t)])),u2=["","default","small","large"],Fu=Tu({type:String,values:u2,required:!1}),Iu=Symbol("size"),c2=()=>{const e=L.inject(Iu,{});return L.computed(()=>L.unref(e.size)||"")},f2=Symbol("emptyValuesContextKey"),h2=tr({emptyValues:Array,valueOnClear:{type:qe([String,Number,Boolean,Function]),default:void 0,validator:e=>Mr(e)?!e():!e}}),d0=e=>Object.keys(e),In=L.ref();function la(e,t=void 0){const r=L.getCurrentInstance()?L.inject(yu,In):In;return e?L.computed(()=>{var n,l;return(l=(n=r.value)==null?void 0:n[e])!=null?l:t}):r}function Du(e,t){const r=la(),n=wr(e,L.computed(()=>{var u;return((u=r.value)==null?void 0:u.namespace)||En})),l=s2(L.computed(()=>{var u;return(u=r.value)==null?void 0:u.locale})),o=r2(L.computed(()=>{var u;return((u=r.value)==null?void 0:u.zIndex)||Cu})),s=L.computed(()=>{var u;return L.unref(t)||((u=r.value)==null?void 0:u.size)||""});return Ru(L.computed(()=>L.unref(r)||{})),{ns:n,locale:l,zIndex:o,size:s}}const Ru=(e,t,r=!1)=>{var n;const l=!!L.getCurrentInstance(),o=l?la():void 0,s=(n=void 0)!=null?n:l?L.provide:void 0;if(!s)return;const u=L.computed(()=>{const h=L.unref(e);return o!=null&&o.value?p2(o.value,h):h});return s(yu,u),s(Bu,L.computed(()=>u.value.locale)),s(gu,L.computed(()=>u.value.namespace)),s(Su,L.computed(()=>u.value.zIndex)),s(Iu,{size:L.computed(()=>u.value.size||"")}),s(f2,L.computed(()=>({emptyValues:u.value.emptyValues,valueOnClear:u.value.valueOnClear}))),(r||!In.value)&&(In.value=u.value),u},p2=(e,t)=>{const r=[...new Set([...d0(e),...d0(t)])],n={};for(const l of r)n[l]=t[l]!==void 0?t[l]:e[l];return n};var _r=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r};function qo(e,t="px"){if(!e)return"";if(Qt(e)||qm(e))return`${e}${t}`;if(Gt(e))return e}const ua=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t!=null?t:{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},Ou=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),d2=e=>(e.install=Um,e),m2=tr({size:{type:qe([Number,String])},color:{type:String}}),v2=L.defineComponent({name:"ElIcon",inheritAttrs:!1}),y2=L.defineComponent(_e(he({},v2),{props:m2,setup(e){const t=e,r=wr("icon"),n=L.computed(()=>{const{size:l,color:o}=t;return!l&&!o?{}:{fontSize:bu(l)?void 0:qo(l),"--color":o}});return(l,o)=>(L.openBlock(),L.createElementBlock("i",L.mergeProps({class:L.unref(r).b(),style:L.unref(n)},l.$attrs),[L.renderSlot(l.$slots,"default")],16))}}));var g2=_r(y2,[["__file","icon.vue"]]);const mr=ua(g2);/*! Element Plus Icons Vue v2.3.2 */var x2=L.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,r)=>(L.openBlock(),L.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L.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"})]))}}),b2=x2,w2=L.defineComponent({name:"Close",__name:"close",setup(e){return(t,r)=>(L.openBlock(),L.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L.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"})]))}}),Pu=w2,_2=L.defineComponent({name:"InfoFilled",__name:"info-filled",setup(e){return(t,r)=>(L.openBlock(),L.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L.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.99 12.99 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"})]))}}),m0=_2,E2=L.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,r)=>(L.openBlock(),L.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),A2=E2,C2=L.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,r)=>(L.openBlock(),L.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L.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.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),S2=C2,B2=L.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,r)=>(L.openBlock(),L.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[L.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 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"})]))}}),k2=B2;const Nr=qe([String,Object,Function]),T2={Close:Pu},Dn={primary:m0,success:S2,warning:k2,error:b2,info:m0},F2=e=>e,ca=Symbol("formContextKey"),Mu=Symbol("formItemContextKey"),I2=()=>{const e=L.inject(ca,void 0),t=L.inject(Mu,void 0);return{form:e,formItem:t}},Nu=e=>{const t=L.getCurrentInstance();return L.computed(()=>{var r,n;return(n=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:n[e]})},D2=(e,t={})=>{const r=L.ref(void 0),n=t.prop?r:Nu("size"),l=t.global?r:c2(),o=t.form?{size:void 0}:L.inject(ca,void 0),s=t.formItem?{size:void 0}:L.inject(Mu,void 0);return L.computed(()=>n.value||L.unref(e)||(s==null?void 0:s.size)||(o==null?void 0:o.size)||l.value||"")},Lu=e=>{const t=Nu("disabled"),r=L.inject(ca,void 0);return L.computed(()=>t.value||L.unref(e)||(r==null?void 0:r.disabled)||!1)},An={esc:"Escape",delete:"Delete",backspace:"Backspace"},R2=tr({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:qe([String,Object,Array])},offset:{type:qe(Array),default:[0,0]},badgeClass:{type:String}}),O2=L.defineComponent({name:"ElBadge"}),P2=L.defineComponent(_e(he({},O2),{props:R2,setup(e,{expose:t}){const r=e,n=wr("badge"),l=L.computed(()=>r.isDot?"":Qt(r.value)&&Qt(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`),o=L.computed(()=>{var s,u,h,a,i;return[{backgroundColor:r.color,marginRight:qo(-((u=(s=r.offset)==null?void 0:s[0])!=null?u:0)),marginTop:qo((a=(h=r.offset)==null?void 0:h[1])!=null?a:0)},(i=r.badgeStyle)!=null?i:{}]});return t({content:l}),(s,u)=>(L.openBlock(),L.createElementBlock("div",{class:L.normalizeClass(L.unref(n).b())},[L.renderSlot(s.$slots,"default"),L.createVNode(L.Transition,{name:`${L.unref(n).namespace.value}-zoom-in-center`,persisted:""},{default:L.withCtx(()=>[L.withDirectives(L.createElementVNode("sup",{class:L.normalizeClass([L.unref(n).e("content"),L.unref(n).em("content",s.type),L.unref(n).is("fixed",!!s.$slots.default),L.unref(n).is("dot",s.isDot),L.unref(n).is("hide-zero",!s.showZero&&r.value===0),s.badgeClass]),style:L.normalizeStyle(L.unref(o))},[L.renderSlot(s.$slots,"content",{value:L.unref(l)},()=>[L.createTextVNode(L.toDisplayString(L.unref(l)),1)])],6),[[L.vShow,!s.hidden&&(L.unref(l)||s.isDot||s.$slots.content)]])]),_:3},8,["name"])],2))}}));var M2=_r(P2,[["__file","badge.vue"]]);const N2=ua(M2),Uu=Symbol("buttonGroupContextKey"),L2=({from:e,replacement:t,scope:r,version:n,ref:l,type:o="API"},s)=>{L.watch(()=>L.unref(s),u=>{},{immediate:!0})},U2=(e,t)=>{L2({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},L.computed(()=>e.type==="text"));const r=L.inject(Uu,void 0),n=la("button"),{form:l}=I2(),o=D2(L.computed(()=>r==null?void 0:r.size)),s=Lu(),u=L.ref(),h=L.useSlots(),a=L.computed(()=>{var m;return e.type||(r==null?void 0:r.type)||((m=n.value)==null?void 0:m.type)||""}),i=L.computed(()=>{var m,g,x;return(x=(g=e.autoInsertSpace)!=null?g:(m=n.value)==null?void 0:m.autoInsertSpace)!=null?x:!1}),d=L.computed(()=>{var m,g,x;return(x=(g=e.plain)!=null?g:(m=n.value)==null?void 0:m.plain)!=null?x:!1}),c=L.computed(()=>{var m,g,x;return(x=(g=e.round)!=null?g:(m=n.value)==null?void 0:m.round)!=null?x:!1}),f=L.computed(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=L.computed(()=>{var m;const g=(m=h.default)==null?void 0:m.call(h);if(i.value&&(g==null?void 0:g.length)===1){const x=g[0];if((x==null?void 0:x.type)===L.Text){const y=x.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(y.trim())}}return!1});return{_disabled:s,_size:o,_type:a,_ref:u,_props:f,_plain:d,_round:c,shouldAddSpace:p,handleClick:m=>{if(s.value||e.loading){m.stopPropagation();return}e.nativeType==="reset"&&(l==null||l.resetFields()),t("click",m)}}},z2=["default","primary","success","warning","info","danger","text",""],q2=["button","submit","reset"],jo=tr({size:Fu,disabled:Boolean,type:{type:String,values:z2,default:""},icon:{type:Nr},nativeType:{type:String,values:q2,default:"button"},loading:Boolean,loadingIcon:{type:Nr,default:()=>A2},plain:{type:Boolean,default:void 0},text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:qe([String,Object]),default:"button"}}),j2={click:e=>e instanceof MouseEvent};function $e(e,t){H2(e)&&(e="100%");var r=$2(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function mn(e){return Math.min(1,Math.max(0,e))}function H2(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function $2(e){return typeof e=="string"&&e.indexOf("%")!==-1}function zu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function vn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ht(e){return e.length===1?"0"+e:String(e)}function V2(e,t,r){return{r:$e(e,255)*255,g:$e(t,255)*255,b:$e(r,255)*255}}function v0(e,t,r){e=$e(e,255),t=$e(t,255),r=$e(r,255);var n=Math.max(e,t,r),l=Math.min(e,t,r),o=0,s=0,u=(n+l)/2;if(n===l)s=0,o=0;else{var h=n-l;switch(s=u>.5?h/(2-n-l):h/(n+l),n){case e:o=(t-r)/h+(t<r?6:0);break;case t:o=(r-e)/h+2;break;case r:o=(e-t)/h+4;break}o/=6}return{h:o,s,l:u}}function _o(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function W2(e,t,r){var n,l,o;if(e=$e(e,360),t=$e(t,100),r=$e(r,100),t===0)l=r,o=r,n=r;else{var s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;n=_o(u,s,e+1/3),l=_o(u,s,e),o=_o(u,s,e-1/3)}return{r:n*255,g:l*255,b:o*255}}function y0(e,t,r){e=$e(e,255),t=$e(t,255),r=$e(r,255);var n=Math.max(e,t,r),l=Math.min(e,t,r),o=0,s=n,u=n-l,h=n===0?0:u/n;if(n===l)o=0;else{switch(n){case e:o=(t-r)/u+(t<r?6:0);break;case t:o=(r-e)/u+2;break;case r:o=(e-t)/u+4;break}o/=6}return{h:o,s:h,v:s}}function K2(e,t,r){e=$e(e,360)*6,t=$e(t,100),r=$e(r,100);var n=Math.floor(e),l=e-n,o=r*(1-t),s=r*(1-l*t),u=r*(1-(1-l)*t),h=n%6,a=[r,s,o,o,u,r][h],i=[u,r,r,s,o,o][h],d=[o,o,u,r,r,s][h];return{r:a*255,g:i*255,b:d*255}}function g0(e,t,r,n){var l=[Ht(Math.round(e).toString(16)),Ht(Math.round(t).toString(16)),Ht(Math.round(r).toString(16))];return n&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function G2(e,t,r,n,l){var o=[Ht(Math.round(e).toString(16)),Ht(Math.round(t).toString(16)),Ht(Math.round(r).toString(16)),Ht(Q2(n))];return l&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Q2(e){return Math.round(parseFloat(e)*255).toString(16)}function x0(e){return tt(e)/255}function tt(e){return parseInt(e,16)}function Y2(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Ho={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function X2(e){var t={r:0,g:0,b:0},r=1,n=null,l=null,o=null,s=!1,u=!1;return typeof e=="string"&&(e=ev(e)),typeof e=="object"&&(Et(e.r)&&Et(e.g)&&Et(e.b)?(t=V2(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Et(e.h)&&Et(e.s)&&Et(e.v)?(n=vn(e.s),l=vn(e.v),t=K2(e.h,n,l),s=!0,u="hsv"):Et(e.h)&&Et(e.s)&&Et(e.l)&&(n=vn(e.s),o=vn(e.l),t=W2(e.h,n,o),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=zu(r),{ok:s,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var Z2="[-\\+]?\\d+%?",J2="[-\\+]?\\d*\\.\\d+%?",Dt="(?:".concat(J2,")|(?:").concat(Z2,")"),Eo="[\\s|\\(]+(".concat(Dt,")[,|\\s]+(").concat(Dt,")[,|\\s]+(").concat(Dt,")\\s*\\)?"),Ao="[\\s|\\(]+(".concat(Dt,")[,|\\s]+(").concat(Dt,")[,|\\s]+(").concat(Dt,")[,|\\s]+(").concat(Dt,")\\s*\\)?"),ut={CSS_UNIT:new RegExp(Dt),rgb:new RegExp("rgb"+Eo),rgba:new RegExp("rgba"+Ao),hsl:new RegExp("hsl"+Eo),hsla:new RegExp("hsla"+Ao),hsv:new RegExp("hsv"+Eo),hsva:new RegExp("hsva"+Ao),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ev(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ho[e])e=Ho[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=ut.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=ut.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ut.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=ut.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ut.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=ut.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ut.hex8.exec(e),r?{r:tt(r[1]),g:tt(r[2]),b:tt(r[3]),a:x0(r[4]),format:t?"name":"hex8"}:(r=ut.hex6.exec(e),r?{r:tt(r[1]),g:tt(r[2]),b:tt(r[3]),format:t?"name":"hex"}:(r=ut.hex4.exec(e),r?{r:tt(r[1]+r[1]),g:tt(r[2]+r[2]),b:tt(r[3]+r[3]),a:x0(r[4]+r[4]),format:t?"name":"hex8"}:(r=ut.hex3.exec(e),r?{r:tt(r[1]+r[1]),g:tt(r[2]+r[2]),b:tt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Et(e){return!!ut.CSS_UNIT.exec(String(e))}var tv=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=Y2(t)),this.originalInput=t;var l=X2(t);this.originalInput=t,this.r=l.r,this.g=l.g,this.b=l.b,this.a=l.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:l.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=l.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,l,o=t.r/255,s=t.g/255,u=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),u<=.03928?l=u/12.92:l=Math.pow((u+.055)/1.055,2.4),.2126*r+.7152*n+.0722*l},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=zu(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=y0(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=y0(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),l=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(l,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=v0(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=v0(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),l=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(l,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),g0(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),G2(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round($e(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round($e(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+g0(this.r,this.g,this.b,!1),r=0,n=Object.entries(Ho);r<n.length;r++){var l=n[r],o=l[0],s=l[1];if(t===s)return o}return!1},e.prototype.toString=function(t){var r=!!t;t=t!=null?t:this.format;var n=!1,l=this.a<1&&this.a>=0,o=!r&&l&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=mn(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=mn(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=mn(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=mn(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),l=new e(t).toRgb(),o=r/100,s={r:(l.r-n.r)*o+n.r,g:(l.g-n.g)*o+n.g,b:(l.b-n.b)*o+n.b,a:(l.a-n.a)*o+n.a};return new e(s)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),l=360/r,o=[this];for(n.h=(n.h-(l*t>>1)+720)%360;--t;)n.h=(n.h+l)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,l=r.s,o=r.v,s=[],u=1/t;t--;)s.push(new e({h:n,s:l,v:o})),o=(o+u)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),l=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/l,g:(r.g*r.a+n.g*n.a*(1-r.a))/l,b:(r.b*r.a+n.b*n.a*(1-r.a))/l,a:l})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,l=[this],o=360/t,s=1;s<t;s++)l.push(new e({h:(n+s*o)%360,s:r.s,l:r.l}));return l},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ft(e,t=20){return e.mix("#141414",t).toString()}function rv(e){const t=Lu(),r=wr("button");return L.computed(()=>{let n={},l=e.color;if(l){const o=l.match(/var\((.*?)\)/);o&&(l=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const s=new tv(l),u=e.dark?s.tint(20).toString():Ft(s,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?Ft(s,90):s.tint(90).toString(),"text-color":l,"border-color":e.dark?Ft(s,50):s.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":l,"hover-border-color":l,"active-bg-color":u,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":u}),t.value&&(n[r.cssVarBlockName("disabled-bg-color")]=e.dark?Ft(s,90):s.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?Ft(s,50):s.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?Ft(s,80):s.tint(80).toString());else{const h=e.dark?Ft(s,30):s.tint(30).toString(),a=s.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(n=r.cssVarBlock({"bg-color":l,"text-color":a,"border-color":l,"hover-bg-color":h,"hover-text-color":a,"hover-border-color":h,"active-bg-color":u,"active-border-color":u}),t.value){const i=e.dark?Ft(s,50):s.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=i,n[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=i}}}return n})}const nv=L.defineComponent({name:"ElButton"}),iv=L.defineComponent(_e(he({},nv),{props:jo,emits:j2,setup(e,{expose:t,emit:r}){const n=e,l=rv(n),o=wr("button"),{_ref:s,_size:u,_type:h,_disabled:a,_props:i,_plain:d,_round:c,shouldAddSpace:f,handleClick:p}=U2(n,r),v=L.computed(()=>[o.b(),o.m(h.value),o.m(u.value),o.is("disabled",a.value),o.is("loading",n.loading),o.is("plain",d.value),o.is("round",c.value),o.is("circle",n.circle),o.is("text",n.text),o.is("link",n.link),o.is("has-bg",n.bg)]);return t({ref:s,size:u,type:h,disabled:a,shouldAddSpace:f}),(m,g)=>(L.openBlock(),L.createBlock(L.resolveDynamicComponent(m.tag),L.mergeProps({ref_key:"_ref",ref:s},L.unref(i),{class:L.unref(v),style:L.unref(l),onClick:L.unref(p)}),{default:L.withCtx(()=>[m.loading?(L.openBlock(),L.createElementBlock(L.Fragment,{key:0},[m.$slots.loading?L.renderSlot(m.$slots,"loading",{key:0}):(L.openBlock(),L.createBlock(L.unref(mr),{key:1,class:L.normalizeClass(L.unref(o).is("loading"))},{default:L.withCtx(()=>[(L.openBlock(),L.createBlock(L.resolveDynamicComponent(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(L.openBlock(),L.createBlock(L.unref(mr),{key:1},{default:L.withCtx(()=>[m.icon?(L.openBlock(),L.createBlock(L.resolveDynamicComponent(m.icon),{key:0})):L.renderSlot(m.$slots,"icon",{key:1})]),_:3})):L.createCommentVNode("v-if",!0),m.$slots.default?(L.openBlock(),L.createElementBlock("span",{key:2,class:L.normalizeClass({[L.unref(o).em("text","expand")]:L.unref(f)})},[L.renderSlot(m.$slots,"default")],2)):L.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}}));var ov=_r(iv,[["__file","button.vue"]]);const av={size:jo.size,type:jo.type},sv=L.defineComponent({name:"ElButtonGroup"}),lv=L.defineComponent(_e(he({},sv),{props:av,setup(e){const t=e;L.provide(Uu,L.reactive({size:L.toRef(t,"size"),type:L.toRef(t,"type")}));const r=wr("button");return(n,l)=>(L.openBlock(),L.createElementBlock("div",{class:L.normalizeClass(L.unref(r).b("group"))},[L.renderSlot(n.$slots,"default")],2))}}));var qu=_r(lv,[["__file","button-group.vue"]]);const uv=ua(ov,{ButtonGroup:qu});d2(qu);var ju={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(xe,function(){var r=1e3,n=6e4,l=36e5,o="millisecond",s="second",u="minute",h="hour",a="day",i="week",d="month",c="quarter",f="year",p="date",v="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,x={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("_"),ordinal:function(B){var U=["th","st","nd","rd"],q=B%100;return"["+B+(U[(q-20)%10]||U[q]||U[0])+"]"}},y=function(B,U,q){var Z=String(B);return!Z||Z.length>=U?B:""+Array(U+1-Z.length).join(q)+B},w={s:y,z:function(B){var U=-B.utcOffset(),q=Math.abs(U),Z=Math.floor(q/60),$=q%60;return(U<=0?"+":"-")+y(Z,2,"0")+":"+y($,2,"0")},m:function B(U,q){if(U.date()<q.date())return-B(q,U);var Z=12*(q.year()-U.year())+(q.month()-U.month()),$=U.clone().add(Z,d),N=q-$<0,V=U.clone().add(Z+(N?-1:1),d);return+(-(Z+(q-$)/(N?$-V:V-$))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:d,y:f,w:i,d:a,D:p,h,m:u,s,ms:o,Q:c}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},F="en",T={};T[F]=x;var I="$isDayjsObject",D=function(B){return B instanceof A||!(!B||!B[I])},X=function B(U,q,Z){var $;if(!U)return F;if(typeof U=="string"){var N=U.toLowerCase();T[N]&&($=N),q&&(T[N]=q,$=N);var V=U.split("-");if(!$&&V.length>1)return B(V[0])}else{var M=U.name;T[M]=U,$=M}return!Z&&$&&(F=$),$||!Z&&F},K=function(B,U){if(D(B))return B.clone();var q=typeof U=="object"?U:{};return q.date=B,q.args=arguments,new A(q)},E=w;E.l=X,E.i=D,E.w=function(B,U){return K(B,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var A=function(){function B(q){this.$L=X(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[I]=!0}var U=B.prototype;return U.parse=function(q){this.$d=function(Z){var $=Z.date,N=Z.utc;if($===null)return new Date(NaN);if(E.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var V=$.match(m);if(V){var M=V[2]-1||0,O=(V[7]||"0").substring(0,3);return N?new Date(Date.UTC(V[1],M,V[3]||1,V[4]||0,V[5]||0,V[6]||0,O)):new Date(V[1],M,V[3]||1,V[4]||0,V[5]||0,V[6]||0,O)}}return new Date($)}(q),this.init()},U.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},U.$utils=function(){return E},U.isValid=function(){return this.$d.toString()!==v},U.isSame=function(q,Z){var $=K(q);return this.startOf(Z)<=$&&$<=this.endOf(Z)},U.isAfter=function(q,Z){return K(q)<this.startOf(Z)},U.isBefore=function(q,Z){return this.endOf(Z)<K(q)},U.$g=function(q,Z,$){return E.u(q)?this[Z]:this.set($,q)},U.unix=function(){return Math.floor(this.valueOf()/1e3)},U.valueOf=function(){return this.$d.getTime()},U.startOf=function(q,Z){var $=this,N=!!E.u(Z)||Z,V=E.p(q),M=function(b,_){var R=E.w($.$u?Date.UTC($.$y,_,b):new Date($.$y,_,b),$);return N?R:R.endOf(a)},O=function(b,_){return E.w($.toDate()[b].apply($.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(_)),$)},H=this.$W,W=this.$M,ee=this.$D,oe="set"+(this.$u?"UTC":"");switch(V){case f:return N?M(1,0):M(31,11);case d:return N?M(1,W):M(0,W+1);case i:var ie=this.$locale().weekStart||0,ae=(H<ie?H+7:H)-ie;return M(N?ee-ae:ee+(6-ae),W);case a:case p:return O(oe+"Hours",0);case h:return O(oe+"Minutes",1);case u:return O(oe+"Seconds",2);case s:return O(oe+"Milliseconds",3);default:return this.clone()}},U.endOf=function(q){return this.startOf(q,!1)},U.$set=function(q,Z){var $,N=E.p(q),V="set"+(this.$u?"UTC":""),M=($={},$[a]=V+"Date",$[p]=V+"Date",$[d]=V+"Month",$[f]=V+"FullYear",$[h]=V+"Hours",$[u]=V+"Minutes",$[s]=V+"Seconds",$[o]=V+"Milliseconds",$)[N],O=N===a?this.$D+(Z-this.$W):Z;if(N===d||N===f){var H=this.clone().set(p,1);H.$d[M](O),H.init(),this.$d=H.set(p,Math.min(this.$D,H.daysInMonth())).$d}else M&&this.$d[M](O);return this.init(),this},U.set=function(q,Z){return this.clone().$set(q,Z)},U.get=function(q){return this[E.p(q)]()},U.add=function(q,Z){var $,N=this;q=Number(q);var V=E.p(Z),M=function(W){var ee=K(N);return E.w(ee.date(ee.date()+Math.round(W*q)),N)};if(V===d)return this.set(d,this.$M+q);if(V===f)return this.set(f,this.$y+q);if(V===a)return M(1);if(V===i)return M(7);var O=($={},$[u]=n,$[h]=l,$[s]=r,$)[V]||1,H=this.$d.getTime()+q*O;return E.w(H,this)},U.subtract=function(q,Z){return this.add(-1*q,Z)},U.format=function(q){var Z=this,$=this.$locale();if(!this.isValid())return $.invalidDate||v;var N=q||"YYYY-MM-DDTHH:mm:ssZ",V=E.z(this),M=this.$H,O=this.$m,H=this.$M,W=$.weekdays,ee=$.months,oe=$.meridiem,ie=function(_,R,G,J){return _&&(_[R]||_(Z,N))||G[R].slice(0,J)},ae=function(_){return E.s(M%12||12,_,"0")},b=oe||function(_,R,G){var J=_<12?"AM":"PM";return G?J.toLowerCase():J};return N.replace(g,function(_,R){return R||function(G){switch(G){case"YY":return String(Z.$y).slice(-2);case"YYYY":return E.s(Z.$y,4,"0");case"M":return H+1;case"MM":return E.s(H+1,2,"0");case"MMM":return ie($.monthsShort,H,ee,3);case"MMMM":return ie(ee,H);case"D":return Z.$D;case"DD":return E.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return ie($.weekdaysMin,Z.$W,W,2);case"ddd":return ie($.weekdaysShort,Z.$W,W,3);case"dddd":return W[Z.$W];case"H":return String(M);case"HH":return E.s(M,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return b(M,O,!0);case"A":return b(M,O,!1);case"m":return String(O);case"mm":return E.s(O,2,"0");case"s":return String(Z.$s);case"ss":return E.s(Z.$s,2,"0");case"SSS":return E.s(Z.$ms,3,"0");case"Z":return V}return null}(_)||V.replace(":","")})},U.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},U.diff=function(q,Z,$){var N,V=this,M=E.p(Z),O=K(q),H=(O.utcOffset()-this.utcOffset())*n,W=this-O,ee=function(){return E.m(V,O)};switch(M){case f:N=ee()/12;break;case d:N=ee();break;case c:N=ee()/3;break;case i:N=(W-H)/6048e5;break;case a:N=(W-H)/864e5;break;case h:N=W/l;break;case u:N=W/n;break;case s:N=W/r;break;default:N=W}return $?N:E.a(N)},U.daysInMonth=function(){return this.endOf(d).$D},U.$locale=function(){return T[this.$L]},U.locale=function(q,Z){if(!q)return this.$L;var $=this.clone(),N=X(q,Z,!0);return N&&($.$L=N),$},U.clone=function(){return E.w(this.$d,this)},U.toDate=function(){return new Date(this.valueOf())},U.toJSON=function(){return this.isValid()?this.toISOString():null},U.toISOString=function(){return this.$d.toISOString()},U.toString=function(){return this.$d.toUTCString()},B}(),C=A.prototype;return K.prototype=C,[["$ms",o],["$s",s],["$m",u],["$H",h],["$W",a],["$M",d],["$y",f],["$D",p]].forEach(function(B){C[B[1]]=function(U){return this.$g(U,B[0],B[1])}}),K.extend=function(B,U){return B.$i||(B(U,A,K),B.$i=!0),K},K.locale=X,K.isDayjs=D,K.unix=function(B){return K(1e3*B)},K.en=T[F],K.Ls=T,K.p={},K})})(ju);var cv=ju.exports;const fv=Vo(cv),hv=tr(he({a11y:{type:Boolean,default:!0},locale:{type:qe(Object)},size:Fu,button:{type:qe(Object)},card:{type:qe(Object)},dialog:{type:qe(Object)},link:{type:qe(Object)},experimentalFeatures:{type:qe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:qe(Object)},zIndex:Number,namespace:{type:String,default:"el"}},h2)),rt={};L.defineComponent({name:"ElConfigProvider",props:hv,setup(e,{slots:t}){const r=Ru(e);return L.watch(()=>e.message,n=>{var l,o;Object.assign(rt,(o=(l=r==null?void 0:r.value)==null?void 0:l.message)!=null?o:{},n!=null?n:{})},{immediate:!0,deep:!0}),()=>L.renderSlot(t,"default",{config:r==null?void 0:r.value})}});const Hu=["primary","success","info","warning","error"],Qe=F2({customClass:"",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:er?document.body:void 0}),pv=tr({customClass:{type:String,default:Qe.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Qe.dangerouslyUseHTMLString},duration:{type:Number,default:Qe.duration},icon:{type:Nr,default:Qe.icon},id:{type:String,default:Qe.id},message:{type:qe([String,Object,Function]),default:Qe.message},onClose:{type:qe(Function),default:Qe.onClose},showClose:{type:Boolean,default:Qe.showClose},type:{type:String,values:Hu,default:Qe.type},plain:{type:Boolean,default:Qe.plain},offset:{type:Number,default:Qe.offset},zIndex:{type:Number,default:Qe.zIndex},grouping:{type:Boolean,default:Qe.grouping},repeatNum:{type:Number,default:Qe.repeatNum}}),dv={destroy:()=>!0},ft=L.shallowReactive([]),mv=e=>{const t=ft.findIndex(l=>l.id===e),r=ft[t];let n;return t>0&&(n=ft[t-1]),{current:r,prev:n}},vv=e=>{const{prev:t}=mv(e);return t?t.vm.exposed.bottom.value:0},yv=(e,t)=>ft.findIndex(n=>n.id===e)>0?16:t,gv=L.defineComponent({name:"ElMessage"}),xv=L.defineComponent(_e(he({},gv),{props:pv,emits:dv,setup(e,{expose:t,emit:r}){const n=e,{Close:l}=T2,o=L.ref(!1),{ns:s,zIndex:u}=Du("message"),{currentZIndex:h,nextZIndex:a}=u,i=L.ref(),d=L.ref(!1),c=L.ref(0);let f;const p=L.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),v=L.computed(()=>{const X=n.type;return{[s.bm("icon",X)]:X&&Dn[X]}}),m=L.computed(()=>n.icon||Dn[n.type]||""),g=L.computed(()=>vv(n.id)),x=L.computed(()=>yv(n.id,n.offset)+g.value),y=L.computed(()=>c.value+x.value),w=L.computed(()=>({top:`${x.value}px`,zIndex:h.value}));function F(){n.duration!==0&&({stop:f}=wu(()=>{I()},n.duration))}function T(){f==null||f()}function I(){d.value=!1,L.nextTick(()=>{var X;o.value||((X=n.onClose)==null||X.call(n),r("destroy"))})}function D({code:X}){X===An.esc&&I()}return L.onMounted(()=>{F(),a(),d.value=!0}),L.watch(()=>n.repeatNum,()=>{T(),F()}),Au(document,"keydown",D),Ym(i,()=>{c.value=i.value.getBoundingClientRect().height}),t({visible:d,bottom:y,close:I}),(X,K)=>(L.openBlock(),L.createBlock(L.Transition,{name:L.unref(s).b("fade"),onBeforeEnter:E=>o.value=!0,onBeforeLeave:X.onClose,onAfterLeave:E=>X.$emit("destroy"),persisted:""},{default:L.withCtx(()=>[L.withDirectives(L.createElementVNode("div",{id:X.id,ref_key:"messageRef",ref:i,class:L.normalizeClass([L.unref(s).b(),{[L.unref(s).m(X.type)]:X.type},L.unref(s).is("closable",X.showClose),L.unref(s).is("plain",X.plain),X.customClass]),style:L.normalizeStyle(L.unref(w)),role:"alert",onMouseenter:T,onMouseleave:F},[X.repeatNum>1?(L.openBlock(),L.createBlock(L.unref(N2),{key:0,value:X.repeatNum,type:L.unref(p),class:L.normalizeClass(L.unref(s).e("badge"))},null,8,["value","type","class"])):L.createCommentVNode("v-if",!0),L.unref(m)?(L.openBlock(),L.createBlock(L.unref(mr),{key:1,class:L.normalizeClass([L.unref(s).e("icon"),L.unref(v)])},{default:L.withCtx(()=>[(L.openBlock(),L.createBlock(L.resolveDynamicComponent(L.unref(m))))]),_:1},8,["class"])):L.createCommentVNode("v-if",!0),L.renderSlot(X.$slots,"default",{},()=>[X.dangerouslyUseHTMLString?(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),L.createElementVNode("p",{class:L.normalizeClass(L.unref(s).e("content")),innerHTML:X.message},null,10,["innerHTML"])],2112)):(L.openBlock(),L.createElementBlock("p",{key:0,class:L.normalizeClass(L.unref(s).e("content"))},L.toDisplayString(X.message),3))]),X.showClose?(L.openBlock(),L.createBlock(L.unref(mr),{key:2,class:L.normalizeClass(L.unref(s).e("closeBtn")),onClick:L.withModifiers(I,["stop"])},{default:L.withCtx(()=>[L.createVNode(L.unref(l))]),_:1},8,["class","onClick"])):L.createCommentVNode("v-if",!0)],46,["id"]),[[L.vShow,d.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}}));var bv=_r(xv,[["__file","message.vue"]]);let wv=1;const $u=e=>{const t=!e||Gt(e)||L.isVNode(e)||Mr(e)?{message:e}:e,r=he(he({},Qe),t);if(!r.appendTo)r.appendTo=document.body;else if(Gt(r.appendTo)){let n=document.querySelector(r.appendTo);zo(n)||(n=document.body),r.appendTo=n}return wo(rt.grouping)&&!r.grouping&&(r.grouping=rt.grouping),Qt(rt.duration)&&r.duration===3e3&&(r.duration=rt.duration),Qt(rt.offset)&&r.offset===16&&(r.offset=rt.offset),wo(rt.showClose)&&!r.showClose&&(r.showClose=rt.showClose),wo(rt.plain)&&!r.plain&&(r.plain=rt.plain),r},_v=e=>{const t=ft.indexOf(e);if(t===-1)return;ft.splice(t,1);const{handler:r}=e;r.close()},Ev=(n,r)=>{var l=n,{appendTo:e}=l,t=ga(l,["appendTo"]);const o=`message_${wv++}`,s=t.onClose,u=document.createElement("div"),h=_e(he({},t),{id:o,onClose:()=>{s==null||s(),_v(c)},onDestroy:()=>{L.render(null,u)}}),a=L.createVNode(bv,h,Mr(h.message)||L.isVNode(h.message)?{default:Mr(h.message)?h.message:()=>h.message}:null);a.appContext=r||vr._context,L.render(a,u),e.appendChild(u.firstElementChild);const i=a.component,c={id:o,vnode:a,vm:i,handler:{close:()=>{i.exposed.close()}},props:a.component.props};return c},vr=(e={},t)=>{if(!er)return{close:()=>{}};const r=$u(e);if(r.grouping&&ft.length){const l=ft.find(({vnode:o})=>{var s;return((s=o.props)==null?void 0:s.message)===r.message});if(l)return l.props.repeatNum+=1,l.props.type=r.type,l.handler}if(Qt(rt.max)&&ft.length>=rt.max)return{close:()=>{}};const n=Ev(r,t);return ft.push(n),n.handler};Hu.forEach(e=>{vr[e]=(t={},r)=>{const n=$u(t);return vr(_e(he({},n),{type:e}),r)}});function Av(e){const t=[...ft];for(const r of t)(!e||e===r.props.type)&&r.handler.close()}vr.closeAll=Av;vr._context=null;const ot=Ou(vr,"$message"),Vu=["primary","success","info","warning","error"],Cv=tr({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Nr},id:{type:String,default:""},message:{type:qe([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:qe(Function),default:()=>{}},onClose:{type:qe(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...Vu,""],default:""},zIndex:Number,closeIcon:{type:Nr,default:Pu}}),Sv={destroy:()=>!0},Bv=L.defineComponent({name:"ElNotification"}),kv=L.defineComponent(_e(he({},Bv),{props:Cv,emits:Sv,setup(e,{expose:t}){const r=e,{ns:n,zIndex:l}=Du("notification"),{nextZIndex:o,currentZIndex:s}=l,u=L.ref(!1);let h;const a=L.computed(()=>{const x=r.type;return x&&Dn[r.type]?n.m(x):""}),i=L.computed(()=>r.type&&Dn[r.type]||r.icon),d=L.computed(()=>r.position.endsWith("right")?"right":"left"),c=L.computed(()=>r.position.startsWith("top")?"top":"bottom"),f=L.computed(()=>{var x;return{[c.value]:`${r.offset}px`,zIndex:(x=r.zIndex)!=null?x:s.value}});function p(){r.duration>0&&({stop:h}=wu(()=>{u.value&&m()},r.duration))}function v(){h==null||h()}function m(){u.value=!1}function g({code:x}){x===An.delete||x===An.backspace?v():x===An.esc?u.value&&m():p()}return L.onMounted(()=>{p(),o(),u.value=!0}),Au(document,"keydown",g),t({visible:u,close:m}),(x,y)=>(L.openBlock(),L.createBlock(L.Transition,{name:L.unref(n).b("fade"),onBeforeLeave:x.onClose,onAfterLeave:w=>x.$emit("destroy"),persisted:""},{default:L.withCtx(()=>[L.withDirectives(L.createElementVNode("div",{id:x.id,class:L.normalizeClass([L.unref(n).b(),x.customClass,L.unref(d)]),style:L.normalizeStyle(L.unref(f)),role:"alert",onMouseenter:v,onMouseleave:p,onClick:x.onClick},[L.unref(i)?(L.openBlock(),L.createBlock(L.unref(mr),{key:0,class:L.normalizeClass([L.unref(n).e("icon"),L.unref(a)])},{default:L.withCtx(()=>[(L.openBlock(),L.createBlock(L.resolveDynamicComponent(L.unref(i))))]),_:1},8,["class"])):L.createCommentVNode("v-if",!0),L.createElementVNode("div",{class:L.normalizeClass(L.unref(n).e("group"))},[L.createElementVNode("h2",{class:L.normalizeClass(L.unref(n).e("title")),textContent:L.toDisplayString(x.title)},null,10,["textContent"]),L.withDirectives(L.createElementVNode("div",{class:L.normalizeClass(L.unref(n).e("content")),style:L.normalizeStyle(x.title?void 0:{margin:0})},[L.renderSlot(x.$slots,"default",{},()=>[x.dangerouslyUseHTMLString?(L.openBlock(),L.createElementBlock(L.Fragment,{key:1},[L.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),L.createElementVNode("p",{innerHTML:x.message},null,8,["innerHTML"])],2112)):(L.openBlock(),L.createElementBlock("p",{key:0},L.toDisplayString(x.message),1))])],6),[[L.vShow,x.message]]),x.showClose?(L.openBlock(),L.createBlock(L.unref(mr),{key:0,class:L.normalizeClass(L.unref(n).e("closeBtn")),onClick:L.withModifiers(m,["stop"])},{default:L.withCtx(()=>[(L.openBlock(),L.createBlock(L.resolveDynamicComponent(x.closeIcon)))]),_:1},8,["class","onClick"])):L.createCommentVNode("v-if",!0)],2)],46,["id","onClick"]),[[L.vShow,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}}));var Tv=_r(kv,[["__file","notification.vue"]]);const yr={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Rn=16;let Fv=1;const Yt=function(e={},t){if(!er)return{close:()=>{}};(Gt(e)||L.isVNode(e))&&(e={message:e});const r=e.position||"top-right";let n=e.offset||0;yr[r].forEach(({vm:i})=>{var d;n+=(((d=i.el)==null?void 0:d.offsetHeight)||0)+Rn}),n+=Rn;const l=`notification_${Fv++}`,o=e.onClose,s=_e(he({},e),{offset:n,id:l,onClose:()=>{Iv(l,r,o)}});let u=document.body;zo(e.appendTo)?u=e.appendTo:Gt(e.appendTo)&&(u=document.querySelector(e.appendTo)),zo(u)||(u=document.body);const h=document.createElement("div"),a=L.createVNode(Tv,s,Mr(s.message)?s.message:L.isVNode(s.message)?()=>s.message:null);return a.appContext=bu(t)?Yt._context:t,a.props.onDestroy=()=>{L.render(null,h)},L.render(a,h),yr[r].push({vm:a}),u.appendChild(h.firstElementChild),{close:()=>{a.component.exposed.visible.value=!1}}};Vu.forEach(e=>{Yt[e]=(t={},r)=>((Gt(t)||L.isVNode(t))&&(t={message:t}),Yt(_e(he({},t),{type:e}),r))});function Iv(e,t,r){const n=yr[t],l=n.findIndex(({vm:a})=>{var i;return((i=a.component)==null?void 0:i.props.id)===e});if(l===-1)return;const{vm:o}=n[l];if(!o)return;r==null||r(o);const s=o.el.offsetHeight,u=t.split("-")[0];n.splice(l,1);const h=n.length;if(!(h<1))for(let a=l;a<h;a++){const{el:i,component:d}=n[a].vm,c=Number.parseInt(i.style[u],10)-s-Rn;d.props.offset=c}}function Dv(){for(const e of Object.values(yr))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}function Rv(e="top-right"){var t,r,n;let l=((r=(t=yr[e][0])==null?void 0:t.vm.props)==null?void 0:r.offset)||0;for(const{vm:o}of yr[e])o.component.props.offset=l,l+=(((n=o.el)==null?void 0:n.offsetHeight)||0)+Rn}Yt.closeAll=Dv;Yt.updateOffsets=Rv;Yt._context=null;const Ov=Ou(Yt,"$notify"),Wu="0123456789abcdeffedcba9876543210",Ku="4b0de988570c3a0f",Pv=window.ENCRYPT;let fr=Pv&&new vu;function Gu(e=16,t="0123456789abcdefghijklmnopqrstuvwxyz"){let r="",n=t.length;for(;e>0;)r+=t[Math.floor(Math.random()*n)],e--;return r}function Qu(){return He(this,null,function*(){return fr||(fr=new vu),new Promise((e,t)=>{fr.armEnum().then(r=>{e(+r)}).catch(r=>{ot({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),t(r)})})})}On.throttle(()=>He(exports,null,function*(){const e=yield Qu(),t={};if(typeof e!="number"||e<=0)ot({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),t.resetToken();else{const r=yield Nv();if(!t.token)return;r.length?r.includes(t.ukeyHid)||(ot({type:"error",ElMessage:"U盘锁不匹配,请检查U盘锁!"}),t.resetToken()):(ot({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),t.resetToken())}}),5e3,{trailing:!1});function Mv(e=0){return He(this,null,function*(){return fr?new Promise((t,r)=>{fr.armGetDongleInfo(e).then(n=>{n?t(n):(ot({type:"warning",ElMessage:"U盘锁信息为空,请检查U盘锁!"}),r(n))}).catch(n=>{r(n)})}):ot({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"})})}function Nv(){return He(this,null,function*(){if(!fr)return ot({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"});const e=yield Qu();let t=[];for(let r=0;r<e;r++){const n=yield Mv(r);t.push(n)}return t})}Gu(16);Gu(16);const Yu=window.INSPECT?dr.constants.CBC:dr.constants.ECB;Im.generateKeyPair();function b0(e,t,r={}){const n=Xu(Ku),l=r.mode||Yu;r=l===dr.constants.ECB?he({mode:l,inputEncoding:"utf8",outputEncoding:"hex"},r):he({iv:Wu,mode:l,inputEncoding:"utf8",outputEncoding:"hex"},r);let o="";try{o=dr.encrypt(e,n,r)}catch(s){console.log("err: ",s)}return o}function w0(e,t,r={}){const n=Xu(Ku),l=r.mode||Yu;return r=l===dr.constants.ECB?he({mode:l,inputEncoding:"hex",outputEncoding:"utf8"},r):he({iv:Wu,mode:l,inputEncoding:"hex",outputEncoding:"utf8"},r),dr.decrypt(e,n,r)}function Xu(e){return[...e].map(t=>t.charCodeAt().toString(16)).join("")}const _0={getLocal:e=>{try{let t=window.localStorage.getItem(e);return t=t!==null?w0(t):t,JSON.parse(t)}catch(t){console.error(t)}},setLocal:(e,t)=>{try{let r=JSON.stringify(t);r=r!==null?b0(r):r,window.localStorage.setItem(e,r)}catch(r){console.error(r)}},eachLocal:e=>{if(!e||ps(e)!=="Function")return console.error("传递参数非函数类型!");for(let t=0,r=window.localStorage.length;t<r;t++){const n=window.localStorage.key(t);e((void 0).getLocal(n),n)}},clearLocal:()=>{window.localStorage.clear()},removeLocal:e=>{window.localStorage.removeItem(e)},getSession:e=>{try{let t=window.sessionStorage.getItem(e);return t=t!==null?w0(t):t,JSON.parse(t)}catch(t){console.error(t)}},setSession:(e,t)=>{try{let r=JSON.stringify(t);r=r!==null?b0(r):r,window.sessionStorage.setItem(e,r)}catch(r){console.error(r)}},eachSession:e=>{if(!e||ps(e)!=="Function")return console.error("传递参数非函数类型!");for(let t=0,r=window.sessionStorage.length;t<r;t++){const n=window.sessionStorage.key(t);e((void 0).getSession(n),n)}},clearSession:()=>{window.sessionStorage.clear()},removeSession:e=>{window.sessionStorage.removeItem(e)}},E0=e=>{const{quality:t,value:r,function_id:n}=e;return(t>>7&1)===1||t===0&&n===2&&r===1},A0="USER_TOKEN",C0="STATION_ID",Lv=[{key:0,value:"离线"},{key:1,value:"在线"}],Uv=[{key:0,value:"反向"},{key:1,value:"正向"},{key:2,value:"停止"}],zv=[{key:1,value:1},{key:2,value:2},{key:3,value:3},{key:4,value:4},{key:5,value:5}],qv="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1747379227336'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='23558'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='64'%20height='64'%3e%3cpath%20d='M687.543%20658.286c-21.943-10.972-47.543-10.972-65.829%200C599.771%20669.257%20588.8%20691.2%20588.8%20716.8s10.971%2043.886%2032.914%2058.514c21.943%2010.972%2047.543%2010.972%2065.829%200%2021.943-10.971%2032.914-32.914%2032.914-58.514s-14.628-43.886-32.914-58.514zM10.97%20694.857c-10.971%2021.943-14.628%2036.572%200%2051.2L91.43%20833.83c14.628%2014.628%2032.914%2010.971%2051.2%200l47.542-21.943-153.6-164.572-25.6%2047.543zM936.23%20526.63V650.97H724.114c29.257%2032.915%2032.915%2076.8%2014.629%20113.372h197.486V921.6H1024V526.629h-87.771z%20m-402.286%203.657l212.114-201.143c7.314-7.314%2010.972-14.629%2010.972-25.6%200-10.972-3.658-18.286-10.972-25.6L588.8%20113.37c-7.314-7.314-14.629-10.971-25.6-10.971-10.971%200-18.286%203.657-25.6%2010.971l-482.743%20460.8c-7.314%207.315-10.971%2014.629-10.971%2025.6%200%2010.972%203.657%2018.286%2010.971%2025.6l157.257%20164.572c7.315%207.314%2014.629%2010.971%2025.6%2010.971%2010.972%200%2018.286-3.657%2025.6-10.971l219.429-208.457%2080.457%2098.743c10.971-21.943%2029.257-40.229%2051.2-51.2l-80.457-98.743z'%20p-id='23559'%20fill='%23999999'%3e%3c/path%3e%3c/svg%3e",jv="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1747379205045'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='23361'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='64'%20height='64'%3e%3cpath%20d='M808.19035614-5.81530905v72.49414403h144.98828683v147.05954724h74.56540444V-5.81530905zM77.03514075%2066.67883498h147.05954724V-5.81530905H4.54099794v219.55369127H77.03514075zM953.17864297%20942.82233719h-144.98828683v74.56540445h219.55369127V797.83405037h-74.56540444zM77.03514075%20797.83405037H4.54099794v219.55369127h219.55369005v-74.56540445H77.03514075zM866.18567111%20526.49882905v-6.21378371c2.07126164-20.71261275-14.49882905-39.35396386-35.21144058-41.4252255h-120.13315201c-8.28504534%200-14.49882905%202.07126164-20.71261275%206.21378371l-28.99765688-91.13549392c-6.2137837-14.49882905-18.64135111-24.85513482-35.21144058-28.99765688-16.57008947%202.07126164-28.99765689%2014.49882905-35.2114418%2028.99765688l-49.71026962%20155.34459259-35.21144059-275.4777446c0-14.49882905-14.49882905-28.99765689-35.21144059-35.21144059-20.71261275%200-35.21144059%206.2137837-35.21144179%2028.99765689l-70.42288117%20219.55369126-6.2137837-49.71026963c-8.28504534-12.42756741-20.71261275-22.78387317-35.2114418-28.99765687-14.49882905%200-28.99765689%208.28504534-35.21144058%2020.71261154l-35.21144059%2049.71026962h-84.92171142c-20.71261275%202.07126164-37.28270222%2014.49882905-43.49648593%2035.2114418%204.14252206%2020.71261275%2020.71261275%2037.28270222%2043.49648593%2041.42522428h105.63432296c10.35630577%200%2020.71261275-6.2137837%2028.99765809-14.49882903l28.99765688%2091.13549512c6.2137837%2016.57008947%2018.64135111%2026.92639645%2035.21144058%2031.06891852%2016.57008947-2.07126164%2028.99765689-14.49882905%2035.21144181-28.99765809l55.92405333-176.05720413%2035.21144058%20289.97657244c0%2014.49882905%2014.49882905%2028.99765689%2035.21144058%2035.21144057%2016.57008947-2.07126164%2028.99765689-14.49882905%2035.2114418-28.99765687l55.92405334-211.26864593%2020.71261153%2055.92405333c6.2137837%2014.49882905%2018.64135111%2024.85513482%2035.2114418%2028.99765688%2014.49882905%200%2028.99765689-8.28504534%2035.21144058-20.71261154l20.71261275-49.71026963h99.42053926c18.64135111%200%2033.14018016-14.49882905%2035.21144058-31.06891851z'%20p-id='23362'%20fill='%23999999'%3e%3c/path%3e%3c/svg%3e",Hv="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20class='icon'%20width='256px'%20height='256.00px'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M272.832598%20272.833878h479.9988v479.9988h-479.9988z'%20fill='%23BBE2FF'%20/%3e%3cpath%20d='M919.93498%20105.890295m-66.175834%200a66.175835%2066.175835%200%201%200%20132.351669%200%2066.175835%2066.175835%200%201%200-132.351669%200Z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M919.93498%20919.93626m-66.175834%200a66.175835%2066.175835%200%201%200%20132.351669%200%2066.175835%2066.175835%200%201%200-132.351669%200Z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M105.889015%20105.890295m-66.175834%200a66.175835%2066.175835%200%201%200%20132.351669%200%2066.175835%2066.175835%200%201%200-132.351669%200Z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M105.889015%20919.93626m-66.175834%200a66.175835%2066.175835%200%201%200%20132.351669%200%2066.175835%2066.175835%200%201%200-132.351669%200Z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M916.670988%201.026557a104.383739%20104.383739%200%200%200-104.383739%20104.383739%2090.751773%2090.751773%200%200%200%2016.895958%2052.863868l-73.919815%2070.847823h-489.086777l-74.079815-70.847823a97.087757%2097.087757%200%200%200%2017.087957-54.879862%20103.679741%20103.679741%200%200%200-104.415739-103.391742%20104.767738%20104.767738%200%201%200%200%20209.535476%20102.399744%20102.399744%200%200%200%2053.567866-15.295962l81.759796%2082.975793v479.9988l-74.623814%2075.679811a103.071742%20103.071742%200%200%200-60.799848-19.99995%20104.383739%20104.383739%200%201%200%20104.511739%20104.383739%20119.455701%20119.455701%200%200%200-12.959968-53.279867l73.407817-78.111805h482.174794l73.407817%2078.111805a111.007722%20111.007722%200%200%200-12.799968%2051.199872%20105.375737%20105.375737%200%200%200%20104.255739%20105.599736%20103.99974%20103.99974%200%201%200-61.183847-187.90353l-58.687853-58.943853v-513.310717l65.823835-66.239834a104.255739%20104.255739%200%201%200%2054.047865-193.375517z%20m-259.199352%20738.430154v-69.599826h92.799768v69.599826z%20m92.799768-115.99971h-139.039652v115.99971h-185.599536v-115.99971h-139.135652v-208.767478h139.167652v-139.167652h185.599536v139.167652h139.167652z%20m-371.007072-324.735188v69.599826h-92.799768v-69.599826z%20m-92.799768%20440.734898v-69.599826h92.799768v69.599826z%20m463.99884-440.734898v69.599826h-92.799768v-69.599826z%20m-703.678241-193.311517a57.983855%2057.983855%200%201%201%2057.983855%2057.983856%2057.983855%2057.983855%200%200%201-57.983855-57.983856z%20m57.983855%20869.885826a57.983855%2057.983855%200%201%201%2057.983855-57.983855%2057.983855%2057.983855%200%200%201-57.983855%2057.983855z%20m811.90197-115.99971a57.983855%2057.983855%200%201%201-57.983855%2057.983855%2057.983855%2057.983855%200%200%201%2057.983855-57.983855z%20m0-695.90226a57.983855%2057.983855%200%201%201%2057.983855-57.983856%2057.983855%2057.983855%200%200%201-57.983855%2057.983856z'%20fill='%230091EB'%20/%3e%3cpath%20d='M515.551991%2091.522331a82.847793%2082.847793%200%200%200-76.799808%2052.831868l43.295892%2016.639959a35.96791%2035.96791%200%200%201%2068.03183%202.719993l44.511889-13.087968a82.751793%2082.751793%200%200%200-79.039803-59.103852z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M647.487661%2098.018315a154.591614%20154.591614%200%200%200-131.90367-74.751813%20152.735618%20152.735618%200%200%200-131.199672%2073.599816l39.583901%2024.223939a107.295732%20107.295732%200%200%201%20183.711541%200.799998z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M515.551991%20947.168192a82.783793%2082.783793%200%200%200%2078.879803-59.071852l-44.511889-13.087968a35.93591%2035.93591%200%200%201-68.03183%202.687994l-43.295891%2016.671958a82.879793%2082.879793%200%200%200%2076.959807%2052.799868z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M384.384319%20941.888205a152.735618%20152.735618%200%200%200%20131.199672%2073.599816%20154.623613%20154.623613%200%200%200%20131.90367-74.751813l-39.8079-23.87194a107.295732%20107.295732%200%200%201-183.711541%200.831998z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M871.519101%20553.473176l13.087967%2044.511889a82.335794%2082.335794%200%200%200%206.399984-155.83961l-16.639958%2043.295891a35.96791%2035.96791%200%200%201-2.719993%2067.99983z'%20fill='%230091EB'%20/%3e%3cpath%20d='M1011.96675%20519.105262a152.767618%20152.767618%200%200%200-73.599816-131.199672l-24.223939%2039.583901a107.359732%20107.359732%200%200%201-0.831998%20183.711541l23.83994%2039.8079a154.591614%20154.591614%200%200%200%2074.815813-131.90367z'%20fill='%230091EB'%20/%3e%3cpath%20d='M157.472886%20485.505346l-16.607958-43.295892a82.335794%2082.335794%200%200%200%206.239984%20155.839611l13.119967-44.511889a35.93591%2035.93591%200%200%201-2.751993-67.99983z'%20fill='%230091EB'%20/%3e%3cpath%20d='M19.713231%20519.105262a154.623613%20154.623613%200%200%200%2074.751813%20131.93567l23.83994-39.8079a107.327732%20107.327732%200%200%201-0.863998-183.743541l-24.223939-39.583901a152.735618%20152.735618%200%200%200-73.599816%20131.199672z'%20fill='%230091EB'%20/%3e%3cpath%20d='M332.864448%20437.889465h69.599826v46.399884h-69.599826z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M472.0641%20437.889465h92.799768v46.399884h-92.799768z'%20fill='%230091EB'%20/%3e%3cpath%20d='M634.431694%20437.889465h69.599826v46.399884h-69.599826z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M332.864448%20530.689233h69.599826v46.399884h-69.599826z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M472.0641%20530.689233h92.799768v46.399884h-92.799768z'%20fill='%230091EB'%20/%3e%3cpath%20d='M634.431694%20530.689233h69.599826v46.399884h-69.599826z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M272.832598%20272.833878h127.99968v127.99968h-127.99968z'%20fill='%230091EB'%20/%3e%3cpath%20d='M272.832598%20624.832998h127.99968v127.99968h-127.99968z'%20fill='%230091EB'%20/%3e%3cpath%20d='M624.831718%20272.833878h127.99968v127.99968h-127.99968z'%20fill='%230091EB'%20/%3e%3cpath%20d='M624.831718%20624.832998h127.99968v127.99968h-127.99968z'%20fill='%230091EB'%20/%3e%3c/svg%3e",$v="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753954524851'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1506'%20width='256'%20height='256'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M888.65792%20280.15616a46.80704%2046.80704%200%200%200-46.80704-46.80704H233.34912a46.80704%2046.80704%200%200%200-46.80704%2046.80704v93.61408h702.11584V280.15616zM186.54208%20420.5824v374.46144a46.80704%2046.80704%200%200%200%2046.80704%2046.80704h608.49664a46.80704%2046.80704%200%200%200%2046.80704-46.80704V420.5824H186.54208z%20m442.9056%2084.98688l30.92992%2011.47904c-15.62624%2024.23808-35.39968%2050.38592-50.70848%2067.6096l-25.51296-10.84416c15.31392-17.85856%2034.7648-46.56128%2045.29152-68.24448z%20m-184.64768-1.59744c17.54112%2020.09088%2038.26688%2047.5136%2047.5136%2065.37728l-25.51296%2015.62624c-8.61184-17.85856-28.70272-46.23872-45.92128-67.28704l23.92064-13.71648z%20m199.95136%20267.2384h-45.28128c-32.20992%200-39.86432-8.92928-39.86432-39.86432v-102.36416h-46.23872c-5.73952%2069.8368-21.6832%20121.18528-101.0944%20149.56544-3.5072-7.97184-11.47904-19.456-18.49344-25.51296%2072.07424-22.9632%2083.87072-66.01728%2088.65792-124.05248H399.19616v-28.70272h122.7776V483.88096h30.92992v116.39808h122.46016v28.70272h-85.7856v102.04672c0%2010.5216%201.90976%2012.11904%2013.71136%2012.11904h38.90176c8.92928%200%2010.84416-4.1472%2011.8016-28.38016%206.69696%204.78208%2019.12832%209.56928%2027.42272%2011.47904-3.49696%2035.39968-11.4688%2044.96384-36.66432%2044.96384z'%20fill='%23005CFF'%20p-id='1507'%3e%3c/path%3e%3c/svg%3e";var tl,rl;const At=(rl=(tl=window.meta)==null?void 0:tl.graph)!=null&&rl.penFormMap?window.meta.graph.penFormMap:{NORMAL:[{name:"颜色",key:"color",type:"color",dataIds:{}}],TEXT:[{name:"显示内容",key:"text",type:"text",dataIds:{}}],AUDIO:[{name:"颜色",key:"color",type:"color",dataIds:{}}],MP4:[{name:"颜色",key:"color",type:"color",dataIds:{}}],CAMERA:[{name:"颜色",key:"color",type:"color",dataIds:{}}],VIDEO_STREAM:[{name:"颜色",key:"color",type:"color",dataIds:{}}],POINT_VALUE:[{name:"在线状态",key:"online_state",type:"select",dataIds:{},options:[{label:"在线",value:1},{label:"离线",value:0}]},{name:"测点值",key:"point_value",type:"text",dataIds:{}}],LIGHT_PLATE:[{name:"光字牌",key:"light_plate",type:"select",dataIds:{},options:[{label:"离线",value:-1},{label:"正常",value:0},{label:"预警",value:1},{label:"一般",value:2},{label:"严重",value:3},{label:"危急",value:4}]}]};var nl,il;const Zu=(il=(nl=window.meta)==null?void 0:nl.graph)!=null&&il.lightPlateColorMap?window.meta.graph.lightPlateColorMap:{0:"#00d200",1:"#e2ac06",2:"#fa800a",3:"#f04155",4:"#ff0000"};var ol,al;const Ju=(al=(ol=window.meta)==null?void 0:ol.graph)!=null&&al.lightPlateTextMap?window.meta.graph.lightPlateTextMap:{0:"#fff",1:"#fff",2:"#fff",3:"#fff",4:"#fff"},Oe={form:[{name:"带电状态",key:"charged_state",type:"select",dataIds:{},options:Lv.map(e=>({label:e.value,value:e.key}))},{name:"潮流方向",key:"electric_direction",type:"select",dataIds:{},options:Uv.map(e=>({label:e.value,value:e.key}))},{name:"电荷大小",key:"electric_size",type:"select",dataIds:{},options:zv.map(e=>({label:e.value,value:e.key}))}],anchors:[{x:0,y:.5,id:"0"},{x:.5,y:0,id:"1"},{x:1,y:.5,id:"2"},{x:.5,y:1,id:"3"}],dataType:window.dataType,dataProp:window.dataProp,visibleLevel:window.visibleLevel},ye=_e(he({penType:Be.NORMAL},Oe),{form:[...At[Be.NORMAL],...Oe.form]});Be.POINT_VALUE,Oe.anchors,window.visibleLevel,[...At[Be.POINT_VALUE],...Oe.form],Oe.form,window.dataType,window.dataProp,window.visibleLevel,Oe.form,window.dataType,window.dataProp,window.visibleLevel,Ju[0],Be.LIGHT_PLATE,Zu[0],Oe.anchors,window.visibleLevel,[...At[Be.LIGHT_PLATE],...Oe.form],Be.SENSOR,Oe.anchors,window.visibleLevel,[...At[Be.LIGHT_PLATE],...Oe.form],_e(he({width:100,height:30,name:"text",text:"文本",disableAnchor:!0,penType:Be.TEXT},Oe),{form:[...At[Be.TEXT],...Oe.form]}),he({width:100,height:100,name:"square"},ye),_e(he({type:1,name:"line",width:100,height:5,lineWidth:2,lineName:"line",penName:"line",background:"#FFF000",color:"#FFF000"},ye),{lineAnimateType:1,anchors:[{x:0,y:.5,id:"0"},{x:1,y:.5,id:"1"}]}),he({width:200,height:50,borderRadius:0,name:"rectangle"},ye),he({width:100,height:100,name:"circle"},ye),he({width:100,height:100,name:"triangle"},ye),he({width:100,height:100,name:"diamond"},ye),he({width:100,height:100,name:"pentagon"},ye),he({width:100,height:100,name:"hexagon"},ye),he({width:100,height:100,name:"pentagram"},ye),he({width:120,height:60,name:"leftArrow"},ye),he({width:120,height:60,name:"rightArrow"},ye),he({width:150,height:60,name:"twowayArrow"},ye),he({width:100,height:100,name:"cloud"},ye),he({textTop:-.1,width:100,height:100,name:"message"},ye),he({width:80,height:100,name:"file"},ye),_e(he({name:"svg",width:100,height:100,image:jv,audioId:"",penType:Be.AUDIO},Oe),{form:[...At[Be.AUDIO],...Oe.form],events:[{name:"enter",action:sn.Emit,value:ct.OPEN_AUDIO,where:{type:""},params:JSON.stringify({action:ct.OPEN_AUDIO,data:""})},{name:"leave",action:sn.Emit,value:ct.CLOSE_AUDIO,where:{type:""},params:JSON.stringify({action:ct.CLOSE_AUDIO,data:""})}]}),_e(he({name:"svg",width:100,height:100,image:qv,cameraId:"",events:[{name:"enter",action:sn.Emit,value:ct.OPEN_CAMERA,where:{type:""},params:JSON.stringify({action:ct.OPEN_CAMERA,data:""})},{name:"leave",action:sn.Emit,value:ct.CLOSE_CAMERA,where:{type:""},params:JSON.stringify({action:ct.CLOSE_CAMERA,data:""})}],penType:Be.CAMERA},Oe),{form:[...At[Be.CAMERA],...Oe.form]}),_e(he({name:"video",width:100,height:100,video:"https://video.699pic.com/videos/17/69/11/a_aa3jeKZ0D63g1556176911_10s.mp4",autoPlay:!0,penType:Be.MP4},Oe),{form:[...At[Be.MP4],...Oe.form]}),_e(he({name:"video",width:100,height:100,video:"https://video.699pic.com/videos/17/69/11/a_aa3jeKZ0D63g1556176911_10s.mp4",autoPlay:!0,penType:Be.VIDEO_STREAM},Oe),{form:[...At[Be.VIDEO_STREAM],...Oe.form]}),_e(he({width:60,height:100,name:"cube",z:.25},ye),{props:{custom:[{key:"z",label:"Z",type:"number",min:0,placeholder:"<= 1 即宽度的比例"},{key:"backgroundFront",label:"前背景色",type:"color"},{key:"backgroundUp",label:"顶背景色",type:"color"},{key:"backgroundRight",label:"右背景色",type:"color"}]}}),he({width:70,height:100,name:"people"},ye),_e(he({name:"table",width:80,height:30,disableAnchor:!0,colWidth:90,rowHeight:32,bordered:!0,vLine:!0,hLine:!0,stripe:!1,color:"#333",textColor:"#444"},ye),{penType:Be.TABLE,data:[["设备 ID","设备名称","数据协议","级别"],["1","200","MQTT",{text:"一级告警",background:"#650b09",textColor:"#FF5D3CFF"}],["2","湿度传感器","MQTT",{text:"二级告警",background:"#4d2a02",textColor:"#E6A82EFF"}],["3","物联网设备","MQTT",{text:"一级告警",background:"#650b09",textColor:"#FF5D3CFF"}],["4","物联网设备/智能家居/智慧城市","MQTT",{text:"三级告警",textColor:"#58CC84FF",background:"#042617;"}]],styles:[{row:0,textColor:"#000"}]}),_e(he({name:"rectangle",penName:"按钮",width:80,height:30,borderRadius:.2,text:"按钮",background:"#1890ff",color:"#1890ff",textColor:"#fff",activeBackground:"#40a9ff",activeColor:"#40a9ff",activeTextColor:"#fff",hoverBackground:"#40a9ff",hoverColor:"#40a9ff",hoverTextColor:"#fff"},ye),{penType:Be.BUTTON}),_e(he({name:"switch",penName:"开关",height:30,width:60,checked:!1,offColor:"#BFBFBF",onColor:"#1890ff",disableOffColor:"#E5E5E5",disableOnColor:"#A3D3FF",locked:0},ye),{penType:Be.SWITCH}),_e(he({name:"radio",penName:"单选框",width:150,height:100,direction:"vertical",checked:"",options:[{text:"选项一"},{text:"选项二"},{text:"选项三",isForbidden:!0}]},ye),{penType:Be.RADIO}),_e(he({name:"checkbox",penName:"多选框",width:30,height:30,checked:!0,value:"选项一"},ye),{penType:Be.CHECKBOX}),_e(he({name:"slider",penName:"进度条",width:300,height:30,value:10,textWidth:50,barHeight:4,min:0,max:100,color:"#1890ff",background:"#D4D6D9",textColor:"#222",unit:"%"},ye),{penType:Be.SLIDER}),_e(he({name:"rectangle",penName:"输入框",height:50,width:200,input:!0,borderRadius:.05,ellipsis:!0,text:"输入数据",textAlign:"left",color:"#D9D9D9FF",textColor:"#000000FF",hoverTextColor:"#000000FF",activeTextColor:"#000000FF",textLeft:10},ye),{penType:Be.INPUT}),_e(he({name:"rectangle",penName:"选择器",height:50,width:200,borderRadius:.05,ellipsis:!0,text:"选项1",textAlign:"left",color:"#D9D9D9FF",textColor:"#000000FF",hoverTextColor:"#000000FF",activeTextColor:"#000000FF",textLeft:10,dropdownList:[{text:"选项1"},{text:"选项2"},{text:"选项3"}]},ye),{penType:Be.SELECT}),_e(he({name:"time",penName:"时间",width:300,height:40,text:`${fv().format("YYYY-MM-DD HH:mm:ss")}`,lineWidth:0,interval:67,fillZero:!0},ye),{penType:Be.TIME,form:[{key:"timeFormat",name:"显示格式",type:"text"},{key:"fillZero",name:"是否补0",type:"switch"},...ye.form],timeFormat:"`${year}-${month}-${day} ${hours}:${minutes}:${seconds} 星期${week}`"}),he({text:"开始/结束",width:120,height:40,borderRadius:.5,name:"rectangle"},ye),he({text:"流程",width:120,height:40,name:"rectangle"},ye),he({text:"判定",width:120,height:60,name:"diamond"},ye),he({text:"数据",width:120,height:50,name:"flowData",offsetX:.14},ye),he({text:"准备",width:120,height:50,name:"hexagon"},ye),he({text:"子流程",width:120,height:50,name:"flowSubprocess"},ye),he({text:"数据库",width:80,height:120,name:"flowDb"},ye),he({text:"文档",width:120,height:100,name:"flowDocument"},ye),he({text:"内部存储",width:120,height:80,name:"flowInternalStorage"},ye),he({text:"外部存储",width:120,height:80,name:"flowExternStorage"},ye),he({text:"队列",width:100,height:100,name:"flowQueue"},ye),he({text:"手动输入",width:120,height:80,name:"flowManually"},ye),he({text:"展示",width:120,height:80,name:"flowDisplay"},ye),he({text:"并行模式",width:120,height:50,name:"flowParallel"},ye),he({text:"注释",width:100,height:100,name:"flowComment"},ye),he({text:"",width:30,height:30,name:"circle",background:"#555",lineWidth:0},ye),he({width:30,height:30,name:"activityFinal"},ye),he({text:"活动",width:120,height:50,borderRadius:.25,name:"rectangle"},ye),he({text:"决策/合并",width:120,height:50,name:"diamond"},ye),he({text:"垂直泳道",width:200,height:500,name:"swimlaneV",textBaseline:"top",textTop:20,lineTop:.08},ye),he({text:"水平泳道",width:500,height:200,name:"swimlaneH",textWidth:.01,textLeft:.04,textAlign:"left",lineLeft:.08},ye),he({text:"垂直分岔/汇合",width:10,height:150,name:"forkV",fillStyle:"#555",strokeStyle:"transparent"},ye),he({text:"水平分岔/汇合",width:150,height:10,name:"forkH",fillStyle:"#555",strokeStyle:"transparent"},ye),he({name:"andGate",width:100,height:150},ye),he({name:"basicEvent",width:100,height:150},ye),he({name:"unexpandedEvent",width:100,height:150},ye),he({name:"priorityAndGate",width:100,height:150},ye),he({name:"forbiddenGate",width:100,height:150},ye),he({name:"event",width:100,height:150},ye),he({name:"switchEvent",width:100,height:150},ye),he({name:"conditionalEvent",width:150,height:100},ye),he({name:"transferSymbol",width:100,height:150},ye),he({name:"orGate",width:100,height:150},ye),he({name:"xorGate",width:100,height:150},ye),he({name:"votingGate",width:100,height:150},ye),he({text:"主题",width:200,height:50,name:"mindNode",borderRadius:.5},ye),he({text:"子主题",width:160,height:40,name:"mindLine"},ye);const Vv=e=>e.replace(/(https?:\/\/)(\b(?:\d{1,3}\.){3}\d{1,3}\b)(:(\d+))?/,`$1${g1}:${b1}`);class Wv{constructor(t){Tt(this,"editor");this.editor=t}initPlugin(t,r,n={}){t.installPenPlugins({name:r},[{plugin:Pc.mindBoxPlugin,options:n},{plugin:Mc.collapseChildPlugin,options:n}])}}var S0;(function(e){e[e.Node=0]="Node",e[e.Line=1]="Line"})(S0||(S0={}));var B0;(function(e){e[e.None=0]="None",e[e.DisableEdit=1]="DisableEdit",e[e.DisableMove=2]="DisableMove",e[e.DisableScale=3]="DisableScale",e[e.DisableMoveScale=4]="DisableMoveScale",e[e.Disable=10]="Disable"})(B0||(B0={}));var k0;(function(e){e[e.Default=0]="Default",e[e.In=1]="In",e[e.Out=2]="Out"})(k0||(k0={}));var T0;(function(e){e[e.None=0]="None",e[e.Linear=1]="Linear",e[e.Radial=2]="Radial"})(T0||(T0={}));var F0;(function(e){e[e.CanvasTemplate=1]="CanvasTemplate",e[e.CanvasImageBottom=2]="CanvasImageBottom",e[e.CanvasMain=3]="CanvasMain",e[e.CanvasImage=4]="CanvasImage"})(F0||(F0={}));var I0;(function(e){e[e.Normal=0]="Normal",e[e.Beads=1]="Beads",e[e.Dot=2]="Dot",e[e.Arrow=3]="Arrow",e[e.WaterDrop=4]="WaterDrop",e[e.Custom=5]="Custom"})(I0||(I0={}));var D0;(function(e){e[e.Image=0]="Image",e[e.Icon=1]="Icon",e[e.Pen=2]="Pen",e[e.Element=3]="Element"})(D0||(D0={}));var R0;(function(e){e[e.None=0]="None",e[e.LineAnchor=1]="LineAnchor",e[e.NodeAnchor=2]="NodeAnchor",e[e.Line=3]="Line",e[e.Node=4]="Node",e[e.Resize=5]="Resize",e[e.Rotate=6]="Rotate",e[e.LineAnchorPrev=7]="LineAnchorPrev",e[e.LineAnchorNext=8]="LineAnchorNext"})(R0||(R0={}));var O0;(function(e){e[e.None=0]="None",e[e.Translate=1]="Translate",e[e.Select=2]="Select",e[e.Resize=3]="Resize",e[e.AddAnchor=4]="AddAnchor"})(O0||(O0={}));var P0;(function(e){e[e.None=0]="None",e[e.Down=1]="Down",e[e.Translate=2]="Translate"})(P0||(P0={}));var M0;(function(e){e[e.None=-1]="None",e[e.Up=0]="Up",e[e.Right=1]="Right",e[e.Bottom=2]="Bottom",e[e.Left=3]="Left"})(M0||(M0={}));var N0;(function(e){e[e.Mirror=0]="Mirror",e[e.Bilateral=1]="Bilateral",e[e.Free=2]="Free"})(N0||(N0={}));var L0;(function(e){e[e.Default=0]="Default",e[e.In=1]="In",e[e.Out=2]="Out",e[e.DisableConnected=3]="DisableConnected",e[e.DisableConnectTo=4]="DisableConnectTo",e[e.Disable=10]="Disable"})(L0||(L0={}));var U0;(function(e){e[e.Default=0]="Default",e[e.Line=1]="Line"})(U0||(U0={}));var $o;(function(e){e[e.None=-1]="None",e[e.Document=0]="Document",e[e.Canvas=1]="Canvas"})($o||($o={}));$o.Document;var z0;(function(e){e[e.Add=0]="Add",e[e.Update=1]="Update",e[e.Delete=2]="Delete",e[e.Replace=3]="Replace"})(z0||(z0={}));function q0(e){const t=parseInt,r=Math.round;let n=e.length,l={};if(n>9){const[o,s,u,h]=e=e.split(",");if(n=e.length,n<3||n>4)return null;l.r=t(o[3]=="a"?o.slice(5):o.slice(4)),l.g=t(s),l.b=t(u),l.a=h?parseFloat(h):-1}else{if(n==8||n==6||n<4)return null;n<6&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(n>4?e[4]+e[4]:"")),e=t(e.slice(1),16),n==9||n==5?(l.r=e>>24&255,l.g=e>>16&255,l.b=e>>8&255,l.a=r((e&255)/.255)/1e3):(l.r=e>>16,l.g=e>>8&255,l.b=e&255,l.a=-1)}return l}function Kv(e,t,r,n){let l,o,s,u,h,a,i,d=Math.round,c=typeof r=="string";return typeof e!="number"||e<-1||e>1||typeof t!="string"||t[0]!="r"&&t[0]!="#"||r&&!c||(i=t.length>9,i=c?r.length>9?!0:r=="c"?!i:!1:i,h=q0(t),u=e<0,a=r&&r!="c"?q0(r):u?{r:0,g:0,b:0,a:-1}:{r:255,g:255,b:255,a:-1},e=u?e*-1:e,u=1-e,!h||!a)?null:(n?(l=d(u*h.r+e*a.r),o=d(u*h.g+e*a.g),s=d(u*h.b+e*a.b)):(l=d(dt(u*dt(h.r,2)+e*dt(a.r,2),.5)),o=d(dt(u*dt(h.g,2)+e*dt(a.g,2),.5)),s=d(dt(u*dt(h.b,2)+e*dt(a.b,2),.5))),c=h.a,a=a.a,h=c>=0||a>=0,c=h?c<0?a:a<0?c:c*u+a*e:0,i?"rgb"+(h?"a(":"(")+l+","+o+","+s+(h?","+d(c*1e3)/1e3:"")+")":"#"+(4294967296+l*16777216+o*65536+s*256+(h?d(c*255):0)).toString(16).slice(1,h?void 0:-2))}globalThis.pSBC=Kv;var j0;(function(e){e[e.None=0]="None",e[e.LocalStorage=1]="LocalStorage",e[e.Cookie=2]="Cookie"})(j0||(j0={}));location.host.indexOf("le5le.com");const sr={};var H0;(function(e){e[e.Link=0]="Link",e[e.SetProps=1]="SetProps",e[e.StartAnimate=2]="StartAnimate",e[e.PauseAnimate=3]="PauseAnimate",e[e.StopAnimate=4]="StopAnimate",e[e.JS=5]="JS",e[e.GlobalFn=6]="GlobalFn",e[e.Emit=7]="Emit",e[e.StartVideo=8]="StartVideo",e[e.PauseVideo=9]="PauseVideo",e[e.StopVideo=10]="StopVideo",e[e.SendPropData=11]="SendPropData",e[e.SendVarData=12]="SendVarData",e[e.Navigator=13]="Navigator",e[e.Dialog=14]="Dialog",e[e.SendData=15]="SendData",e[e.PostMessage=16]="PostMessage",e[e.PostMessageToParent=17]="PostMessageToParent",e[e.Message=18]="Message"})(H0||(H0={}));var Gv={exports:{}};(function(e,t){(function(r){e.exports=r()})(function(){return function(){return function r(n,l,o){function s(a,i){if(!l[a]){if(!n[a]){var d=typeof Br=="function"&&Br;if(!i&&d)return d(a,!0);if(u)return u(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=l[a]={exports:{}};n[a][0].call(f.exports,function(p){return s(n[a][1][p]||p)},f,f.exports,r,n,l,o)}return l[a].exports}for(var u=typeof Br=="function"&&Br,h=0;h<o.length;h++)s(o[h]);return s}}()({1:[function(r,n,l){(function(o,s){(function(){const u=r("events").EventEmitter,h=r("./store"),a=r("./topic-alias-recv"),i=r("./topic-alias-send"),d=r("mqtt-packet"),c=r("./default-message-id-provider"),f=r("readable-stream").Writable,p=r("inherits"),v=r("reinterval"),m=r("rfdc/default"),g=r("./validations"),x=r("xtend"),y=r("debug")("mqttjs:client"),w=o?o.nextTick:function(C){setTimeout(C,0)},F=s.setImmediate||function(C){w(C)},T={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0},I={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 D(C,B){let U;B.properties&&(U=B.properties.topicAlias);let q=B.topic.toString();if(q.length===0){if(U===void 0)return new Error("Unregistered Topic Alias");if((q=C.topicAliasSend.getTopicByAlias(U))===void 0)return new Error("Unregistered Topic Alias");B.topic=q}U&&delete B.properties.topicAlias}function X(C,B,U){y("sendPacket :: packet: %O",B),y("sendPacket :: emitting `packetsend`"),C.emit("packetsend",B),y("sendPacket :: writing to stream");const q=d.writeToStream(B,C.stream,C.options);y("sendPacket :: writeToStream result %s",q),!q&&U&&U!==E?(y("sendPacket :: handle events on `drain` once through callback."),C.stream.once("drain",U)):U&&(y("sendPacket :: invoking cb"),U())}function K(C,B,U,q){y("storeAndSend :: store packet with cmd %s to outgoingStore",B.cmd);let Z,$=B;if($.cmd==="publish"&&($=m(B),Z=D(C,$)))return U&&U(Z);C.outgoingStore.put($,function(N){if(N)return U&&U(N);q(),X(C,B,U)})}function E(C){y("nop ::",C)}function A(C,B){let U;const q=this;if(!(this instanceof A))return new A(C,B);for(U in this.options=B||{},T)this.options[U]===void 0?this.options[U]=T[U]:this.options[U]=B[U];y("MqttClient :: options.protocol",B.protocol),y("MqttClient :: options.protocolVersion",B.protocolVersion),y("MqttClient :: options.username",B.username),y("MqttClient :: options.keepalive",B.keepalive),y("MqttClient :: options.reconnectPeriod",B.reconnectPeriod),y("MqttClient :: options.rejectUnauthorized",B.rejectUnauthorized),y("MqttClient :: options.topicAliasMaximum",B.topicAliasMaximum),this.options.clientId=typeof B.clientId=="string"?B.clientId:"mqttjs_"+Math.random().toString(16).substr(2,8),y("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=B.protocolVersion===5&&B.customHandleAcks?B.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=C,this.messageIdProvider=this.options.messageIdProvider===void 0?new c:this.options.messageIdProvider,this.outgoingStore=B.outgoingStore||new h,this.incomingStore=B.incomingStore||new h,this.queueQoSZero=B.queueQoSZero===void 0||B.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,B.topicAliasMaximum>0&&(B.topicAliasMaximum>65535?y("MqttClient :: options.topicAliasMaximum is out of range"):this.topicAliasRecv=new a(B.topicAliasMaximum)),this.on("connect",function(){const Z=this.queue;y("connect :: sending queued packets"),function $(){const N=Z.shift();y("deliver :: entry %o",N);let V=null;if(!N)return void q._resubscribe();V=N.packet,y("deliver :: call _sendPacket for %o",V);let M=!0;V.messageId&&V.messageId!==0&&(q.messageIdProvider.register(V.messageId)||(M=!1)),M?q._sendPacket(V,function(O){N.cb&&N.cb(O),$()}):(y("messageId: %d has already used. The message is skipped and removed.",V.messageId),$())}()}),this.on("close",function(){y("close :: connected set to `false`"),this.connected=!1,y("close :: clearing connackTimer"),clearTimeout(this.connackTimer),y("close :: clearing ping timer"),q.pingTimer!==null&&(q.pingTimer.clear(),q.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),y("close :: calling _setupReconnect"),this._setupReconnect()}),u.call(this),y("MqttClient :: setting up stream"),this._setupStream()}p(A,u),A.prototype._setupStream=function(){const C=this,B=new f,U=d.parser(this.options);let q=null;const Z=[];function $(){if(Z.length)w(N);else{const M=q;q=null,M()}}function N(){y("work :: getting next packet in queue");const M=Z.shift();if(M)y("work :: packet pulled from queue"),C._handlePacket(M,$);else{y("work :: no packets in queue");const O=q;q=null,y("work :: done flag is %s",!!O),O&&O()}}y("_setupStream :: calling method to clear reconnect"),this._clearReconnect(),y("_setupStream :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),U.on("packet",function(M){y("parser :: on packet push to packets array."),Z.push(M)}),B._write=function(M,O,H){q=H,y("writable stream :: parsing buffer"),U.parse(M),N()},y("_setupStream :: pipe stream to writable stream"),this.stream.pipe(B),this.stream.on("error",function(M){y("streamErrorHandler :: error",M.message),M.code?(y("streamErrorHandler :: emitting error"),C.emit("error",M)):E(M)}),this.stream.on("close",function(){var M;y("(%s)stream :: on close",C.options.clientId),(M=C.outgoing)&&(y("flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(M).forEach(function(O){M[O].volatile&&typeof M[O].cb=="function"&&(M[O].cb(new Error("Connection closed")),delete M[O])})),y("stream: emit close to MqttClient"),C.emit("close")}),y("_setupStream: sending packet `connect`");const V=Object.create(this.options);if(V.cmd="connect",this.topicAliasRecv&&(V.properties||(V.properties={}),this.topicAliasRecv&&(V.properties.topicAliasMaximum=this.topicAliasRecv.max)),X(this,V),U.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return C.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"&&X(this,x({cmd:"auth",reasonCode:0},this.options.authPacket))}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(function(){y("!!connectTimeout hit!! Calling _cleanUp with force `true`"),C._cleanUp(!0)},this.options.connectTimeout)},A.prototype._handlePacket=function(C,B){const U=this.options;if(U.protocolVersion===5&&U.properties&&U.properties.maximumPacketSize&&U.properties.maximumPacketSize<C.length)return this.emit("error",new Error("exceeding packets size "+C.cmd)),this.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),this;switch(y("_handlePacket :: emitting packetreceive"),this.emit("packetreceive",C),C.cmd){case"publish":this._handlePublish(C,B);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":this._handleAck(C),B();break;case"pubrel":this._handlePubrel(C,B);break;case"connack":this._handleConnack(C),B();break;case"auth":this._handleAuth(C),B();break;case"pingresp":this._handlePingresp(C),B();break;case"disconnect":this._handleDisconnect(C),B()}},A.prototype._checkDisconnecting=function(C){return this.disconnecting&&(C&&C!==E?C(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting},A.prototype.publish=function(C,B,U,q){y("publish :: message `%s` to topic `%s`",B,C);const Z=this.options;if(typeof U=="function"&&(q=U,U=null),U=x({qos:0,retain:!1,dup:!1},U),this._checkDisconnecting(q))return this;const $=this,N=function(){let V=0;if((U.qos===1||U.qos===2)&&(V=$._nextId())===null)return y("No messageId left"),!1;const M={cmd:"publish",topic:C,payload:B,qos:U.qos,retain:U.retain,messageId:V,dup:U.dup};switch(Z.protocolVersion===5&&(M.properties=U.properties),y("publish :: qos",U.qos),U.qos){case 1:case 2:$.outgoing[M.messageId]={volatile:!1,cb:q||E},y("MqttClient:publish: packet cmd: %s",M.cmd),$._sendPacket(M,void 0,U.cbStorePut);break;default:y("MqttClient:publish: packet cmd: %s",M.cmd),$._sendPacket(M,q,U.cbStorePut)}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!N())&&this._storeProcessingQueue.push({invoke:N,cbStorePut:U.cbStorePut,callback:q}),this},A.prototype.subscribe=function(){const C=this,B=new Array(arguments.length);for(let W=0;W<arguments.length;W++)B[W]=arguments[W];const U=[];let q=B.shift();const Z=q.resubscribe;let $=B.pop()||E,N=B.pop();const V=this.options.protocolVersion;delete q.resubscribe,typeof q=="string"&&(q=[q]),typeof $!="function"&&(N=$,$=E);const M=g.validateTopics(q);if(M!==null)return F($,new Error("Invalid topic "+M)),this;if(this._checkDisconnecting($))return y("subscribe: discconecting true"),this;const O={qos:0};if(V===5&&(O.nl=!1,O.rap=!1,O.rh=0),N=x(O,N),Array.isArray(q)?q.forEach(function(W){if(y("subscribe: array topic %s",W),!Object.prototype.hasOwnProperty.call(C._resubscribeTopics,W)||C._resubscribeTopics[W].qos<N.qos||Z){const ee={topic:W,qos:N.qos};V===5&&(ee.nl=N.nl,ee.rap=N.rap,ee.rh=N.rh,ee.properties=N.properties),y("subscribe: pushing topic `%s` and qos `%s` to subs list",ee.topic,ee.qos),U.push(ee)}}):Object.keys(q).forEach(function(W){if(y("subscribe: object topic %s",W),!Object.prototype.hasOwnProperty.call(C._resubscribeTopics,W)||C._resubscribeTopics[W].qos<q[W].qos||Z){const ee={topic:W,qos:q[W].qos};V===5&&(ee.nl=q[W].nl,ee.rap=q[W].rap,ee.rh=q[W].rh,ee.properties=N.properties),y("subscribe: pushing `%s` to subs list",ee),U.push(ee)}}),!U.length)return $(null,[]),this;const H=function(){const W=C._nextId();if(W===null)return y("No messageId left"),!1;const ee={cmd:"subscribe",subscriptions:U,qos:1,retain:!1,dup:!1,messageId:W};if(N.properties&&(ee.properties=N.properties),C.options.resubscribe){y("subscribe :: resubscribe true");const oe=[];U.forEach(function(ie){if(C.options.reconnectPeriod>0){const ae={qos:ie.qos};V===5&&(ae.nl=ie.nl||!1,ae.rap=ie.rap||!1,ae.rh=ie.rh||0,ae.properties=ie.properties),C._resubscribeTopics[ie.topic]=ae,oe.push(ie.topic)}}),C.messageIdToTopic[ee.messageId]=oe}return C.outgoing[ee.messageId]={volatile:!0,cb:function(oe,ie){if(!oe){const ae=ie.granted;for(let b=0;b<ae.length;b+=1)U[b].qos=ae[b]}$(oe,U)}},y("subscribe :: call _sendPacket"),C._sendPacket(ee),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!H())&&this._storeProcessingQueue.push({invoke:H,callback:$}),this},A.prototype.unsubscribe=function(){const C=this,B=new Array(arguments.length);for(let V=0;V<arguments.length;V++)B[V]=arguments[V];let U=B.shift(),q=B.pop()||E,Z=B.pop();typeof U=="string"&&(U=[U]),typeof q!="function"&&(Z=q,q=E);const $=g.validateTopics(U);if($!==null)return F(q,new Error("Invalid topic "+$)),this;if(C._checkDisconnecting(q))return this;const N=function(){const V=C._nextId();if(V===null)return y("No messageId left"),!1;const M={cmd:"unsubscribe",qos:1,messageId:V};return typeof U=="string"?M.unsubscriptions=[U]:Array.isArray(U)&&(M.unsubscriptions=U),C.options.resubscribe&&M.unsubscriptions.forEach(function(O){delete C._resubscribeTopics[O]}),typeof Z=="object"&&Z.properties&&(M.properties=Z.properties),C.outgoing[M.messageId]={volatile:!0,cb:q},y("unsubscribe: call _sendPacket"),C._sendPacket(M),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!N())&&this._storeProcessingQueue.push({invoke:N,callback:q}),this},A.prototype.end=function(C,B,U){const q=this;function Z(){y("end :: (%s) :: finish :: calling _cleanUp with force %s",q.options.clientId,C),q._cleanUp(C,()=>{y("end :: finish :: calling process.nextTick on closeStores"),w(function(){y("end :: closeStores: closing incoming and outgoing stores"),q.disconnected=!0,q.incomingStore.close(function($){q.outgoingStore.close(function(N){if(y("end :: closeStores: emitting end"),q.emit("end"),U){const V=$||N;y("end :: closeStores: invoking callback with args"),U(V)}})}),q._deferredReconnect&&q._deferredReconnect()}.bind(q))},B)}return y("end :: (%s)",this.options.clientId),C!=null&&typeof C=="boolean"||(U=B||E,B=C,C=!1,typeof B!="object"&&(U=B,B=null,typeof U!="function"&&(U=E))),typeof B!="object"&&(U=B,B=null),y("end :: cb? %s",!!U),U=U||E,this.disconnecting?(U(),this):(this._clearReconnect(),this.disconnecting=!0,!C&&Object.keys(this.outgoing).length>0?(y("end :: (%s) :: calling finish in 10ms once outgoing is empty",q.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,Z,10))):(y("end :: (%s) :: immediately calling finish",q.options.clientId),Z()),this)},A.prototype.removeOutgoingMessage=function(C){const B=this.outgoing[C]?this.outgoing[C].cb:null;return delete this.outgoing[C],this.outgoingStore.del({messageId:C},function(){B(new Error("Message removed"))}),this},A.prototype.reconnect=function(C){y("client reconnect");const B=this,U=function(){C?(B.options.incomingStore=C.incomingStore,B.options.outgoingStore=C.outgoingStore):(B.options.incomingStore=null,B.options.outgoingStore=null),B.incomingStore=B.options.incomingStore||new h,B.outgoingStore=B.options.outgoingStore||new h,B.disconnecting=!1,B.disconnected=!1,B._deferredReconnect=null,B._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=U:U(),this},A.prototype._reconnect=function(){y("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this._setupStream()}),y("client already connected. disconnecting first.")):(y("_reconnect: calling _setupStream"),this._setupStream())},A.prototype._setupReconnect=function(){const C=this;!C.disconnecting&&!C.reconnectTimer&&C.options.reconnectPeriod>0?(this.reconnecting||(y("_setupReconnect :: emit `offline` state"),this.emit("offline"),y("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),y("_setupReconnect :: setting reconnectTimer for %d ms",C.options.reconnectPeriod),C.reconnectTimer=setInterval(function(){y("reconnectTimer :: reconnect triggered!"),C._reconnect()},C.options.reconnectPeriod)):y("_setupReconnect :: doing nothing...")},A.prototype._clearReconnect=function(){y("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)},A.prototype._cleanUp=function(C,B){const U=arguments[2];if(B&&(y("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",B)),y("_cleanUp :: forced? %s",C),C)this.options.reconnectPeriod===0&&this.options.clean&&(q=this.outgoing)&&(y("flush: queue exists? %b",!!q),Object.keys(q).forEach(function(Z){typeof q[Z].cb=="function"&&(q[Z].cb(new Error("Connection closed")),delete q[Z])})),y("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{const Z=x({cmd:"disconnect"},U);y("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(Z,F.bind(null,this.stream.end.bind(this.stream)))}var q;this.disconnecting||(y("_cleanUp :: client not disconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this.pingTimer!==null&&(y("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),B&&!this.connected&&(y("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",B),B())},A.prototype._sendPacket=function(C,B,U){y("_sendPacket :: (%s) :: start",this.options.clientId),U=U||E,B=B||E;const q=function(Z,$){if(Z.options.protocolVersion===5&&$.cmd==="publish"){let N;$.properties&&(N=$.properties.topicAlias);const V=$.topic.toString();if(Z.topicAliasSend)if(N){if(V.length!==0&&(y("applyTopicAlias :: register topic: %s - alias: %d",V,N),!Z.topicAliasSend.put(V,N)))return y("applyTopicAlias :: error out of range. topic: %s - alias: %d",V,N),new Error("Sending Topic Alias out of range")}else V.length!==0&&(Z.options.autoAssignTopicAlias?(N=Z.topicAliasSend.getAliasByTopic(V))?($.topic="",$.properties=_e(he({},$.properties),{topicAlias:N}),y("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",V,N)):(N=Z.topicAliasSend.getLruAlias(),Z.topicAliasSend.put(V,N),$.properties=_e(he({},$.properties),{topicAlias:N}),y("applyTopicAlias :: auto assign topic: %s - alias: %d",V,N)):Z.options.autoUseTopicAlias&&(N=Z.topicAliasSend.getAliasByTopic(V))&&($.topic="",$.properties=_e(he({},$.properties),{topicAlias:N}),y("applyTopicAlias :: auto use topic: %s - alias: %d",V,N)));else if(N)return y("applyTopicAlias :: error out of range. topic: %s - alias: %d",V,N),new Error("Sending Topic Alias out of range")}}(this,C);if(q)B(q);else{if(!this.connected)return C.cmd==="auth"?(this._shiftPingInterval(),void X(this,C,B)):(y("_sendPacket :: client not connected. Storing packet offline."),void this._storePacket(C,B,U));switch(this._shiftPingInterval(),C.cmd){case"publish":break;case"pubrel":return void K(this,C,B,U);default:return void X(this,C,B)}switch(C.qos){case 2:case 1:K(this,C,B,U);break;case 0:default:X(this,C,B)}y("_sendPacket :: (%s) :: end",this.options.clientId)}},A.prototype._storePacket=function(C,B,U){y("_storePacket :: packet: %o",C),y("_storePacket :: cb? %s",!!B),U=U||E;let q=C;if(q.cmd==="publish"){const Z=D(this,q=m(C));if(Z)return B&&B(Z)}(q.qos||0)===0&&this.queueQoSZero||q.cmd!=="publish"?this.queue.push({packet:q,cb:B}):q.qos>0?(B=this.outgoing[q.messageId]?this.outgoing[q.messageId].cb:null,this.outgoingStore.put(q,function(Z){if(Z)return B&&B(Z);U()})):B&&B(new Error("No connection to broker"))},A.prototype._setupPingTimer=function(){y("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive);const C=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=v(function(){C._checkPing()},1e3*this.options.keepalive))},A.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(1e3*this.options.keepalive)},A.prototype._checkPing=function(){y("_checkPing :: checking ping..."),this.pingResp?(y("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(y("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))},A.prototype._handlePingresp=function(){this.pingResp=!0},A.prototype._handleConnack=function(C){y("_handleConnack");const B=this.options,U=B.protocolVersion===5?C.reasonCode:C.returnCode;if(clearTimeout(this.connackTimer),delete this.topicAliasSend,C.properties){if(C.properties.topicAliasMaximum){if(C.properties.topicAliasMaximum>65535)return void this.emit("error",new Error("topicAliasMaximum from broker is out of range"));C.properties.topicAliasMaximum>0&&(this.topicAliasSend=new i(C.properties.topicAliasMaximum))}C.properties.serverKeepAlive&&B.keepalive&&(B.keepalive=C.properties.serverKeepAlive,this._shiftPingInterval()),C.properties.maximumPacketSize&&(B.properties||(B.properties={}),B.properties.maximumPacketSize=C.properties.maximumPacketSize)}if(U===0)this.reconnecting=!1,this._onConnect(C);else if(U>0){const q=new Error("Connection refused: "+I[U]);q.code=U,this.emit("error",q)}},A.prototype._handleAuth=function(C){const B=this.options.protocolVersion,U=B===5?C.reasonCode:C.returnCode;if(B!==5){const Z=new Error("Protocol error: Auth packets are only supported in MQTT 5. Your version:"+B);return Z.code=U,void this.emit("error",Z)}const q=this;this.handleAuth(C,function(Z,$){if(Z)q.emit("error",Z);else if(U===24)q.reconnecting=!1,q._sendPacket($);else{const N=new Error("Connection refused: "+I[U]);Z.code=U,q.emit("error",N)}})},A.prototype.handleAuth=function(C,B){B()},A.prototype._handlePublish=function(C,B){y("_handlePublish: packet %o",C),B=B!==void 0?B:E;let U=C.topic.toString();const q=C.payload,Z=C.qos,$=C.messageId,N=this,V=this.options,M=[0,16,128,131,135,144,145,151,153];if(this.options.protocolVersion===5){let O;if(C.properties&&(O=C.properties.topicAlias),O!==void 0)if(U.length===0){if(!(O>0&&O<=65535))return y("_handlePublish :: topic alias out of range. alias: %d",O),void this.emit("error",new Error("Received Topic Alias is out of range"));{const H=this.topicAliasRecv.getTopicByAlias(O);if(!H)return y("_handlePublish :: unregistered topic alias. alias: %d",O),void this.emit("error",new Error("Received unregistered Topic Alias"));y("_handlePublish :: topic complemented by alias. topic: %s - alias: %d",U=H,O)}}else{if(!this.topicAliasRecv.put(U,O))return y("_handlePublish :: topic alias out of range. alias: %d",O),void this.emit("error",new Error("Received Topic Alias is out of range"));y("_handlePublish :: registered topic: %s - alias: %d",U,O)}}switch(y("_handlePublish: qos %d",Z),Z){case 2:V.customHandleAcks(U,q,C,function(O,H){return O instanceof Error||(H=O,O=null),O?N.emit("error",O):M.indexOf(H)===-1?N.emit("error",new Error("Wrong reason code for pubrec")):void(H?N._sendPacket({cmd:"pubrec",messageId:$,reasonCode:H},B):N.incomingStore.put(C,function(){N._sendPacket({cmd:"pubrec",messageId:$},B)}))});break;case 1:V.customHandleAcks(U,q,C,function(O,H){return O instanceof Error||(H=O,O=null),O?N.emit("error",O):M.indexOf(H)===-1?N.emit("error",new Error("Wrong reason code for puback")):(H||N.emit("message",U,q,C),void N.handleMessage(C,function(W){if(W)return B&&B(W);N._sendPacket({cmd:"puback",messageId:$,reasonCode:H},B)}))});break;case 0:this.emit("message",U,q,C),this.handleMessage(C,B);break;default:y("_handlePublish: unknown QoS. Doing nothing.")}},A.prototype.handleMessage=function(C,B){B()},A.prototype._handleAck=function(C){const B=C.messageId,U=C.cmd;let q=null;const Z=this.outgoing[B]?this.outgoing[B].cb:null,$=this;let N;if(Z){switch(y("_handleAck :: packet type",U),U){case"pubcomp":case"puback":{const V=C.reasonCode;V&&V>0&&V!==16&&((N=new Error("Publish error: "+I[V])).code=V,Z(N,C)),delete this.outgoing[B],this.outgoingStore.del(C,Z),this.messageIdProvider.deallocate(B),this._invokeStoreProcessingQueue();break}case"pubrec":{q={cmd:"pubrel",qos:2,messageId:B};const V=C.reasonCode;V&&V>0&&V!==16?((N=new Error("Publish error: "+I[V])).code=V,Z(N,C)):this._sendPacket(q);break}case"suback":delete this.outgoing[B],this.messageIdProvider.deallocate(B);for(let V=0;V<C.granted.length;V++)if(128&C.granted[V]){const M=this.messageIdToTopic[B];M&&M.forEach(function(O){delete $._resubscribeTopics[O]})}this._invokeStoreProcessingQueue(),Z(null,C);break;case"unsuback":delete this.outgoing[B],this.messageIdProvider.deallocate(B),this._invokeStoreProcessingQueue(),Z(null);break;default:$.emit("error",new Error("unrecognized packet type"))}this.disconnecting&&Object.keys(this.outgoing).length===0&&this.emit("outgoingEmpty")}else y("_handleAck :: Server sent an ack in error. Ignoring.")},A.prototype._handlePubrel=function(C,B){y("handling pubrel packet"),B=B!==void 0?B:E;const U=this,q={cmd:"pubcomp",messageId:C.messageId};U.incomingStore.get(C,function(Z,$){Z?U._sendPacket(q,B):(U.emit("message",$.topic,$.payload,$),U.handleMessage($,function(N){if(N)return B(N);U.incomingStore.del($,E),U._sendPacket(q,B)}))})},A.prototype._handleDisconnect=function(C){this.emit("disconnect",C)},A.prototype._nextId=function(){return this.messageIdProvider.allocate()},A.prototype.getLastMessageId=function(){return this.messageIdProvider.getLastAllocated()},A.prototype._resubscribe=function(){y("_resubscribe");const C=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion===5&&!this.connackPacket.sessionPresent)&&C.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){y("_resubscribe: protocolVersion 5");for(let B=0;B<C.length;B++){const U={};U[C[B]]=this._resubscribeTopics[C[B]],U.resubscribe=!0,this.subscribe(U,{properties:U[C[B]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1},A.prototype._onConnect=function(C){if(this.disconnected)return void this.emit("connect",C);const B=this;this.connackPacket=C,this.messageIdProvider.clear(),this._setupPingTimer(),this.connected=!0,function U(){let q=B.outgoingStore.createStream();function Z(){B._storeProcessing=!1,B._packetIdsDuringStoreProcessing={}}function $(){q.destroy(),q=null,B._flushStoreProcessingQueue(),Z()}B.once("close",$),q.on("error",function(N){Z(),B._flushStoreProcessingQueue(),B.removeListener("close",$),B.emit("error",N)}),q.on("end",function(){let N=!0;for(const V in B._packetIdsDuringStoreProcessing)if(!B._packetIdsDuringStoreProcessing[V]){N=!1;break}N?(Z(),B.removeListener("close",$),B._invokeAllStoreProcessingQueue(),B.emit("connect",C)):U()}),function N(){if(!q)return;B._storeProcessing=!0;const V=q.read(1);let M;V?B._packetIdsDuringStoreProcessing[V.messageId]?N():B.disconnecting||B.reconnectTimer?q.destroy&&q.destroy():(M=B.outgoing[V.messageId]?B.outgoing[V.messageId].cb:null,B.outgoing[V.messageId]={volatile:!1,cb:function(O,H){M&&M(O,H),N()}},B._packetIdsDuringStoreProcessing[V.messageId]=!0,B.messageIdProvider.register(V.messageId)?B._sendPacket(V):y("messageId: %d has already used.",V.messageId)):q.once("readable",N)}()}()},A.prototype._invokeStoreProcessingQueue=function(){if(this._storeProcessingQueue.length>0){const C=this._storeProcessingQueue[0];if(C&&C.invoke())return this._storeProcessingQueue.shift(),!0}return!1},A.prototype._invokeAllStoreProcessingQueue=function(){for(;this._invokeStoreProcessingQueue(););},A.prototype._flushStoreProcessingQueue=function(){for(const C of this._storeProcessingQueue)C.cbStorePut&&C.cbStorePut(new Error("Connection closed")),C.callback&&C.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)},n.exports=A}).call(this)}).call(this,r("_process"),typeof xe!="undefined"?xe:typeof self!="undefined"?self:typeof window!="undefined"?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(r,n,l){const{Buffer:o}=r("buffer"),s=r("readable-stream").Transform,u=r("duplexify");let h,a,i,d=!1;n.exports=function(c,f){if(f.hostname=f.hostname||f.host,!f.hostname)throw new Error("Could not determine host. Specify host manually.");const p=f.protocolId==="MQIsdp"&&f.protocolVersion===3?"mqttv3.1":"mqtt";(function(m){m.hostname||(m.hostname="localhost"),m.path||(m.path="/"),m.wsOptions||(m.wsOptions={})})(f);const v=function(m,g){const x=m.protocol==="alis"?"wss":"ws";let y=x+"://"+m.hostname+m.path;return m.port&&m.port!==80&&m.port!==443&&(y=x+"://"+m.hostname+":"+m.port+m.path),typeof m.transformWsUrl=="function"&&(y=m.transformWsUrl(y,m,g)),y}(f,c);return(h=f.my).connectSocket({url:v,protocols:p}),a=function(){const m=new s;return m._write=function(g,x,y){h.sendSocketMessage({data:g.buffer,success:function(){y()},fail:function(){y(new Error)}})},m._flush=function(g){h.closeSocket({success:function(){g()}})},m}(),i=u.obj(),d||(d=!0,h.onSocketOpen(function(){i.setReadable(a),i.setWritable(a),i.emit("connect")}),h.onSocketMessage(function(m){if(typeof m.data=="string"){const g=o.from(m.data,"base64");a.push(g)}else{const g=new FileReader;g.addEventListener("load",function(){let x=g.result;x=x instanceof ArrayBuffer?o.from(x):o.from(x,"utf8"),a.push(x)}),g.readAsArrayBuffer(m.data)}}),h.onSocketClose(function(){i.end(),i.destroy()}),h.onSocketError(function(m){i.destroy(m)})),i}},{buffer:17,duplexify:20,"readable-stream":69}],3:[function(r,n,l){const o=r("net"),s=r("debug")("mqttjs:tcp");n.exports=function(u,h){h.port=h.port||1883,h.hostname=h.hostname||h.host||"localhost";const a=h.port,i=h.hostname;return s("port %d and host %s",a,i),o.createConnection(a,i)}},{debug:18,net:16}],4:[function(r,n,l){const o=r("tls"),s=r("net"),u=r("debug")("mqttjs:tls");n.exports=function(h,a){a.port=a.port||8883,a.host=a.hostname||a.host||"localhost",s.isIP(a.host)===0&&(a.servername=a.host),a.rejectUnauthorized=a.rejectUnauthorized!==!1,delete a.path,u("port %d host %s rejectUnauthorized %b",a.port,a.host,a.rejectUnauthorized);const i=o.connect(a);function d(c){a.rejectUnauthorized&&h.emit("error",c),i.end()}return i.on("secureConnect",function(){a.rejectUnauthorized&&!i.authorized?i.emit("error",new Error("TLS not authorized")):i.removeListener("error",d)}),i.on("error",d),i}},{debug:18,net:16,tls:16}],5:[function(r,n,l){(function(o){(function(){const{Buffer:s}=r("buffer"),u=r("ws"),h=r("debug")("mqttjs:ws"),a=r("duplexify"),i=r("readable-stream").Transform,d=["rejectUnauthorized","ca","cert","key","pfx","passphrase"],c=o!==void 0&&o.title==="browser"||typeof __webpack_require__=="function";function f(v,m){let g=v.protocol+"://"+v.hostname+":"+v.port+v.path;return typeof v.transformWsUrl=="function"&&(g=v.transformWsUrl(g,v,m)),g}function p(v){const m=v;return v.hostname||(m.hostname="localhost"),v.port||(v.protocol==="wss"?m.port=443:m.port=80),v.path||(m.path="/"),v.wsOptions||(m.wsOptions={}),c||v.protocol!=="wss"||d.forEach(function(g){Object.prototype.hasOwnProperty.call(v,g)&&!Object.prototype.hasOwnProperty.call(v.wsOptions,g)&&(m.wsOptions[g]=v[g])}),m}n.exports=c?function(v,m){let g;h("browserStreamBuilder");const x=function(C){const B=p(C);if(B.hostname||(B.hostname=B.host),!B.hostname){if(typeof document=="undefined")throw new Error("Could not determine host. Specify host manually.");const U=new URL(document.URL);B.hostname=U.hostname,B.port||(B.port=U.port)}return B.objectMode===void 0&&(B.objectMode=!(B.binary===!0||B.binary===void 0)),B}(m).browserBufferSize||524288,y=m.browserBufferTimeout||1e3,w=!m.objectMode,F=function(C,B){const U=B.protocolId==="MQIsdp"&&B.protocolVersion===3?"mqttv3.1":"mqtt",q=f(B,C),Z=new WebSocket(q,[U]);return Z.binaryType="arraybuffer",Z}(v,m),T=function(C,B,U){const q=new i({objectModeMode:C.objectMode});return q._write=B,q._flush=U,q}(m,function C(B,U,q){F.bufferedAmount>x&&setTimeout(C,y,B,U,q),w&&typeof B=="string"&&(B=s.from(B,"utf8"));try{F.send(B)}catch(Z){return q(Z)}q()},function(C){F.close(),C()});m.objectMode||(T._writev=A),T.on("close",()=>{F.close()});const I=F.addEventListener!==void 0;function D(){g.setReadable(T),g.setWritable(T),g.emit("connect")}function X(){g.end(),g.destroy()}function K(C){g.destroy(C)}function E(C){let B=C.data;B=B instanceof ArrayBuffer?s.from(B):s.from(B,"utf8"),T.push(B)}function A(C,B){const U=new Array(C.length);for(let q=0;q<C.length;q++)typeof C[q].chunk=="string"?U[q]=s.from(C[q],"utf8"):U[q]=C[q].chunk;this._write(s.concat(U),"binary",B)}return F.readyState===F.OPEN?g=T:(g=g=a(void 0,void 0,m),m.objectMode||(g._writev=A),I?F.addEventListener("open",D):F.onopen=D),g.socket=F,I?(F.addEventListener("close",X),F.addEventListener("error",K),F.addEventListener("message",E)):(F.onclose=X,F.onerror=K,F.onmessage=E),g}:function(v,m){h("streamBuilder");const g=p(m),x=f(g,v),y=function(F,T,I){h("createWebSocket"),h("protocol: "+I.protocolId+" "+I.protocolVersion);const D=I.protocolId==="MQIsdp"&&I.protocolVersion===3?"mqttv3.1":"mqtt";return h("creating new Websocket for url: "+T+" and protocol: "+D),new u(T,[D],I.wsOptions)}(0,x,g),w=u.createWebSocketStream(y,g.wsOptions);return w.url=x,y.on("close",()=>{w.destroy()}),w}}).call(this)}).call(this,r("_process"))},{_process:50,buffer:17,debug:18,duplexify:20,"readable-stream":69,ws:80}],6:[function(r,n,l){const{Buffer:o}=r("buffer"),s=r("readable-stream").Transform,u=r("duplexify");let h,a,i;n.exports=function(d,c){if(c.hostname=c.hostname||c.host,!c.hostname)throw new Error("Could not determine host. Specify host manually.");const f=c.protocolId==="MQIsdp"&&c.protocolVersion===3?"mqttv3.1":"mqtt";(function(m){m.hostname||(m.hostname="localhost"),m.path||(m.path="/"),m.wsOptions||(m.wsOptions={})})(c);const p=function(m,g){const x=m.protocol==="wxs"?"wss":"ws";let y=x+"://"+m.hostname+m.path;return m.port&&m.port!==80&&m.port!==443&&(y=x+"://"+m.hostname+":"+m.port+m.path),typeof m.transformWsUrl=="function"&&(y=m.transformWsUrl(y,m,g)),y}(c,d);h=wx.connectSocket({url:p,protocols:[f]}),a=function(){const m=new s;return m._write=function(g,x,y){h.send({data:g.buffer,success:function(){y()},fail:function(w){y(new Error(w))}})},m._flush=function(g){h.close({success:function(){g()}})},m}(),(i=u.obj())._destroy=function(m,g){h.close({success:function(){g&&g(m)}})};const v=i.destroy;return i.destroy=function(){i.destroy=v;const m=this;setTimeout(function(){h.close({fail:function(){m._destroy(new Error)}})},0)}.bind(i),h.onOpen(function(){i.setReadable(a),i.setWritable(a),i.emit("connect")}),h.onMessage(function(m){let g=m.data;g=g instanceof ArrayBuffer?o.from(g):o.from(g,"utf8"),a.push(g)}),h.onClose(function(){i.end(),i.destroy()}),h.onError(function(m){i.destroy(new Error(m.errMsg))}),i}},{buffer:17,duplexify:20,"readable-stream":69}],7:[function(r,n,l){function o(){if(!(this instanceof o))return new o;this.nextId=Math.max(1,Math.floor(65535*Math.random()))}o.prototype.allocate=function(){const s=this.nextId++;return this.nextId===65536&&(this.nextId=1),s},o.prototype.getLastAllocated=function(){return this.nextId===1?65535:this.nextId-1},o.prototype.register=function(s){return!0},o.prototype.deallocate=function(s){},o.prototype.clear=function(){},n.exports=o},{}],8:[function(r,n,l){const o=r("xtend"),s=r("readable-stream").Readable,u={objectMode:!0},h={clean:!0};function a(i){if(!(this instanceof a))return new a(i);this.options=i||{},this.options=o(h,i),this._inflights=new Map}a.prototype.put=function(i,d){return this._inflights.set(i.messageId,i),d&&d(),this},a.prototype.createStream=function(){const i=new s(u),d=[];let c=!1,f=0;return this._inflights.forEach(function(p,v){d.push(p)}),i._read=function(){!c&&f<d.length?this.push(d[f++]):this.push(null)},i.destroy=function(){if(c)return;const p=this;c=!0,setTimeout(function(){p.emit("close")},0)},i},a.prototype.del=function(i,d){return(i=this._inflights.get(i.messageId))?(this._inflights.delete(i.messageId),d(null,i)):d&&d(new Error("missing packet")),this},a.prototype.get=function(i,d){return(i=this._inflights.get(i.messageId))?d(null,i):d&&d(new Error("missing packet")),this},a.prototype.close=function(i){this.options.clean&&(this._inflights=null),i&&i()},n.exports=a},{"readable-stream":69,xtend:81}],9:[function(r,n,l){function o(s){if(!(this instanceof o))return new o(s);this.aliasToTopic={},this.max=s}o.prototype.put=function(s,u){return!(u===0||u>this.max)&&(this.aliasToTopic[u]=s,this.length=Object.keys(this.aliasToTopic).length,!0)},o.prototype.getTopicByAlias=function(s){return this.aliasToTopic[s]},o.prototype.clear=function(){this.aliasToTopic={}},n.exports=o},{}],10:[function(r,n,l){const o=r("lru-cache"),s=r("number-allocator").NumberAllocator;function u(h){if(!(this instanceof u))return new u(h);h>0&&(this.aliasToTopic=new o({max:h}),this.topicToAlias={},this.numberAllocator=new s(1,h),this.max=h,this.length=0)}u.prototype.put=function(h,a){if(a===0||a>this.max)return!1;const i=this.aliasToTopic.get(a);return i&&delete this.topicToAlias[i],this.aliasToTopic.set(a,h),this.topicToAlias[h]=a,this.numberAllocator.use(a),this.length=this.aliasToTopic.length,!0},u.prototype.getTopicByAlias=function(h){return this.aliasToTopic.get(h)},u.prototype.getAliasByTopic=function(h){const a=this.topicToAlias[h];return a!==void 0&&this.aliasToTopic.get(a),a},u.prototype.clear=function(){this.aliasToTopic.reset(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0},u.prototype.getLruAlias=function(){return this.numberAllocator.firstVacant()||this.aliasToTopic.keys()[this.aliasToTopic.length-1]},n.exports=u},{"lru-cache":37,"number-allocator":46}],11:[function(r,n,l){function o(s){const u=s.split("/");for(let h=0;h<u.length;h++)if(u[h]!=="+"){if(u[h]==="#")return h===u.length-1;if(u[h].indexOf("+")!==-1||u[h].indexOf("#")!==-1)return!1}return!0}n.exports={validateTopics:function(s){if(s.length===0)return"empty_topic_list";for(let u=0;u<s.length;u++)if(!o(s[u]))return s[u];return null}}},{}],12:[function(r,n,l){(function(o){(function(){const s=r("../client"),u=r("../store"),h=r("url"),a=r("xtend"),i=r("debug")("mqttjs"),d={};function c(f,p){if(i("connecting to an MQTT broker..."),typeof f!="object"||p||(p=f,f=null),p=p||{},f){const m=h.parse(f,!0);if(m.port!=null&&(m.port=Number(m.port)),(p=a(m,p)).protocol===null)throw new Error("Missing protocol");p.protocol=p.protocol.replace(/:$/,"")}if(function(m){let g;m.auth&&((g=m.auth.match(/^(.+):(.+)$/))?(m.username=g[1],m.password=g[2]):m.username=m.auth)}(p),p.query&&typeof p.query.clientId=="string"&&(p.clientId=p.query.clientId),p.cert&&p.key){if(!p.protocol)throw new Error("Missing secure protocol key");if(["mqtts","wss","wxs","alis"].indexOf(p.protocol)===-1)switch(p.protocol){case"mqtt":p.protocol="mqtts";break;case"ws":p.protocol="wss";break;case"wx":p.protocol="wxs";break;case"ali":p.protocol="alis";break;default:throw new Error('Unknown protocol for secure connection: "'+p.protocol+'"!')}}if(!d[p.protocol]){const m=["mqtts","wss"].indexOf(p.protocol)!==-1;p.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter(function(g,x){return(!m||x%2!=0)&&typeof d[g]=="function"})[0]}if(p.clean===!1&&!p.clientId)throw new Error("Missing clientId for unclean clients");p.protocol&&(p.defaultProtocol=p.protocol);const v=new s(function(m){return p.servers&&(m._reconnectCount&&m._reconnectCount!==p.servers.length||(m._reconnectCount=0),p.host=p.servers[m._reconnectCount].host,p.port=p.servers[m._reconnectCount].port,p.protocol=p.servers[m._reconnectCount].protocol?p.servers[m._reconnectCount].protocol:p.defaultProtocol,p.hostname=p.host,m._reconnectCount++),i("calling streambuilder for",p.protocol),d[p.protocol](m,p)},p);return v.on("error",function(){}),v}o!==void 0&&o.title!=="browser"||typeof __webpack_require__!="function"?(d.mqtt=r("./tcp"),d.tcp=r("./tcp"),d.ssl=r("./tls"),d.tls=r("./tls"),d.mqtts=r("./tls")):(d.wx=r("./wx"),d.wxs=r("./wx"),d.ali=r("./ali"),d.alis=r("./ali")),d.ws=r("./ws"),d.wss=r("./ws"),n.exports=c,n.exports.connect=c,n.exports.MqttClient=s,n.exports.Store=u}).call(this)}).call(this,r("_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(r,n,l){l.byteLength=function(f){var p=d(f),v=p[0],m=p[1];return 3*(v+m)/4-m},l.toByteArray=function(f){var p,v,m=d(f),g=m[0],x=m[1],y=new u(function(T,I,D){return 3*(I+D)/4-D}(0,g,x)),w=0,F=x>0?g-4:g;for(v=0;v<F;v+=4)p=s[f.charCodeAt(v)]<<18|s[f.charCodeAt(v+1)]<<12|s[f.charCodeAt(v+2)]<<6|s[f.charCodeAt(v+3)],y[w++]=p>>16&255,y[w++]=p>>8&255,y[w++]=255&p;return x===2&&(p=s[f.charCodeAt(v)]<<2|s[f.charCodeAt(v+1)]>>4,y[w++]=255&p),x===1&&(p=s[f.charCodeAt(v)]<<10|s[f.charCodeAt(v+1)]<<4|s[f.charCodeAt(v+2)]>>2,y[w++]=p>>8&255,y[w++]=255&p),y},l.fromByteArray=function(f){for(var p,v=f.length,m=v%3,g=[],x=0,y=v-m;x<y;x+=16383)g.push(c(f,x,x+16383>y?y:x+16383));return m===1?(p=f[v-1],g.push(o[p>>2]+o[p<<4&63]+"==")):m===2&&(p=(f[v-2]<<8)+f[v-1],g.push(o[p>>10]+o[p>>4&63]+o[p<<2&63]+"=")),g.join("")};for(var o=[],s=[],u=typeof Uint8Array!="undefined"?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,i=h.length;a<i;++a)o[a]=h[a],s[h.charCodeAt(a)]=a;function d(f){var p=f.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=f.indexOf("=");return v===-1&&(v=p),[v,v===p?0:4-v%4]}function c(f,p,v){for(var m,g,x=[],y=p;y<v;y+=3)m=(f[y]<<16&16711680)+(f[y+1]<<8&65280)+(255&f[y+2]),x.push(o[(g=m)>>18&63]+o[g>>12&63]+o[g>>6&63]+o[63&g]);return x.join("")}s[45]=62,s[95]=63},{}],14:[function(r,n,l){const{Buffer:o}=r("buffer"),s=Symbol.for("BufferList");function u(h){if(!(this instanceof u))return new u(h);u._init.call(this,h)}u._init=function(h){Object.defineProperty(this,s,{value:!0}),this._bufs=[],this.length=0,h&&this.append(h)},u.prototype._new=function(h){return new u(h)},u.prototype._offset=function(h){if(h===0)return[0,0];let a=0;for(let i=0;i<this._bufs.length;i++){const d=a+this._bufs[i].length;if(h<d||i===this._bufs.length-1)return[i,h-a];a=d}},u.prototype._reverseOffset=function(h){const a=h[0];let i=h[1];for(let d=0;d<a;d++)i+=this._bufs[d].length;return i},u.prototype.get=function(h){if(h>this.length||h<0)return;const a=this._offset(h);return this._bufs[a[0]][a[1]]},u.prototype.slice=function(h,a){return typeof h=="number"&&h<0&&(h+=this.length),typeof a=="number"&&a<0&&(a+=this.length),this.copy(null,0,h,a)},u.prototype.copy=function(h,a,i,d){if((typeof i!="number"||i<0)&&(i=0),(typeof d!="number"||d>this.length)&&(d=this.length),i>=this.length||d<=0)return h||o.alloc(0);const c=!!h,f=this._offset(i),p=d-i;let v=p,m=c&&a||0,g=f[1];if(i===0&&d===this.length){if(!c)return this._bufs.length===1?this._bufs[0]:o.concat(this._bufs,this.length);for(let x=0;x<this._bufs.length;x++)this._bufs[x].copy(h,m),m+=this._bufs[x].length;return h}if(v<=this._bufs[f[0]].length-g)return c?this._bufs[f[0]].copy(h,a,g,g+v):this._bufs[f[0]].slice(g,g+v);c||(h=o.allocUnsafe(p));for(let x=f[0];x<this._bufs.length;x++){const y=this._bufs[x].length-g;if(!(v>y)){this._bufs[x].copy(h,m,g,g+v),m+=y;break}this._bufs[x].copy(h,m,g),m+=y,v-=y,g&&(g=0)}return h.length>m?h.slice(0,m):h},u.prototype.shallowSlice=function(h,a){if(h=h||0,a=typeof a!="number"?this.length:a,h<0&&(h+=this.length),a<0&&(a+=this.length),h===a)return this._new();const i=this._offset(h),d=this._offset(a),c=this._bufs.slice(i[0],d[0]+1);return d[1]===0?c.pop():c[c.length-1]=c[c.length-1].slice(0,d[1]),i[1]!==0&&(c[0]=c[0].slice(i[1])),this._new(c)},u.prototype.toString=function(h,a,i){return this.slice(a,i).toString(h)},u.prototype.consume=function(h){if(h=Math.trunc(h),Number.isNaN(h)||h<=0)return this;for(;this._bufs.length;){if(!(h>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(h),this.length-=h;break}h-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},u.prototype.duplicate=function(){const h=this._new();for(let a=0;a<this._bufs.length;a++)h.append(this._bufs[a]);return h},u.prototype.append=function(h){if(h==null)return this;if(h.buffer)this._appendBuffer(o.from(h.buffer,h.byteOffset,h.byteLength));else if(Array.isArray(h))for(let a=0;a<h.length;a++)this.append(h[a]);else if(this._isBufferList(h))for(let a=0;a<h._bufs.length;a++)this.append(h._bufs[a]);else typeof h=="number"&&(h=h.toString()),this._appendBuffer(o.from(h));return this},u.prototype._appendBuffer=function(h){this._bufs.push(h),this.length+=h.length},u.prototype.indexOf=function(h,a,i){if(i===void 0&&typeof a=="string"&&(i=a,a=void 0),typeof h=="function"||Array.isArray(h))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof h=="number"?h=o.from([h]):typeof h=="string"?h=o.from(h,i):this._isBufferList(h)?h=h.slice():Array.isArray(h.buffer)?h=o.from(h.buffer,h.byteOffset,h.byteLength):o.isBuffer(h)||(h=o.from(h)),a=Number(a||0),isNaN(a)&&(a=0),a<0&&(a=this.length+a),a<0&&(a=0),h.length===0)return a>this.length?this.length:a;const d=this._offset(a);let c=d[0],f=d[1];for(;c<this._bufs.length;c++){const p=this._bufs[c];for(;f<p.length;)if(p.length-f>=h.length){const v=p.indexOf(h,f);if(v!==-1)return this._reverseOffset([c,v]);f=p.length-h.length+1}else{const v=this._reverseOffset([c,f]);if(this._match(v,h))return v;f++}f=0}return-1},u.prototype._match=function(h,a){if(this.length-h<a.length)return!1;for(let i=0;i<a.length;i++)if(this.get(h+i)!==a[i])return!1;return!0},function(){const h={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 a in h)(function(i){u.prototype[i]=h[i]===null?function(d,c){return this.slice(d,d+c)[i](0,c)}:function(d=0){return this.slice(d,d+h[i])[i](0)}})(a)}(),u.prototype._isBufferList=function(h){return h instanceof u||u.isBufferList(h)},u.isBufferList=function(h){return h!=null&&h[s]},n.exports=u},{buffer:17}],15:[function(r,n,l){const o=r("readable-stream").Duplex,s=r("inherits"),u=r("./BufferList");function h(a){if(!(this instanceof h))return new h(a);if(typeof a=="function"){this._callback=a;const i=function(d){this._callback&&(this._callback(d),this._callback=null)}.bind(this);this.on("pipe",function(d){d.on("error",i)}),this.on("unpipe",function(d){d.removeListener("error",i)}),a=null}u._init.call(this,a),o.call(this)}s(h,o),Object.assign(h.prototype,u.prototype),h.prototype._new=function(a){return new h(a)},h.prototype._write=function(a,i,d){this._appendBuffer(a),typeof d=="function"&&d()},h.prototype._read=function(a){if(!this.length)return this.push(null);a=Math.min(a,this.length),this.push(this.slice(0,a)),this.consume(a)},h.prototype.end=function(a){o.prototype.end.call(this,a),this._callback&&(this._callback(null,this.slice()),this._callback=null)},h.prototype._destroy=function(a,i){this._bufs.length=0,this.length=0,i(a)},h.prototype._isBufferList=function(a){return a instanceof h||a instanceof u||h.isBufferList(a)},h.isBufferList=u.isBufferList,n.exports=h,n.exports.BufferListStream=h,n.exports.BufferList=u},{"./BufferList":14,inherits:24,"readable-stream":69}],16:[function(r,n,l){},{}],17:[function(r,n,l){(function(o){(function(){var s=r("base64-js"),u=r("ieee754");l.Buffer=i,l.SlowBuffer=function(b){return+b!=b&&(b=0),i.alloc(+b)},l.INSPECT_MAX_BYTES=50;var h=2147483647;function a(b){if(b>h)throw new RangeError('The value "'+b+'" is invalid for option "size"');var _=new Uint8Array(b);return _.__proto__=i.prototype,_}function i(b,_,R){if(typeof b=="number"){if(typeof _=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(b)}return d(b,_,R)}function d(b,_,R){if(typeof b=="string")return function(te,se){if(typeof se=="string"&&se!==""||(se="utf8"),!i.isEncoding(se))throw new TypeError("Unknown encoding: "+se);var j=0|m(te,se),S=a(j),k=S.write(te,se);return k!==j&&(S=S.slice(0,k)),S}(b,_);if(ArrayBuffer.isView(b))return p(b);if(b==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);if(ie(b,ArrayBuffer)||b&&ie(b.buffer,ArrayBuffer))return function(te,se,j){if(se<0||te.byteLength<se)throw new RangeError('"offset" is outside of buffer bounds');if(te.byteLength<se+(j||0))throw new RangeError('"length" is outside of buffer bounds');var S;return S=se===void 0&&j===void 0?new Uint8Array(te):j===void 0?new Uint8Array(te,se):new Uint8Array(te,se,j),S.__proto__=i.prototype,S}(b,_,R);if(typeof b=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var G=b.valueOf&&b.valueOf();if(G!=null&&G!==b)return i.from(G,_,R);var J=function(te){if(i.isBuffer(te)){var se=0|v(te.length),j=a(se);return j.length===0||te.copy(j,0,0,se),j}if(te.length!==void 0)return typeof te.length!="number"||ae(te.length)?a(0):p(te);if(te.type==="Buffer"&&Array.isArray(te.data))return p(te.data)}(b);if(J)return J;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof b[Symbol.toPrimitive]=="function")return i.from(b[Symbol.toPrimitive]("string"),_,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b)}function c(b){if(typeof b!="number")throw new TypeError('"size" argument must be of type number');if(b<0)throw new RangeError('The value "'+b+'" is invalid for option "size"')}function f(b){return c(b),a(b<0?0:0|v(b))}function p(b){for(var _=b.length<0?0:0|v(b.length),R=a(_),G=0;G<_;G+=1)R[G]=255&b[G];return R}function v(b){if(b>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return 0|b}function m(b,_){if(i.isBuffer(b))return b.length;if(ArrayBuffer.isView(b)||ie(b,ArrayBuffer))return b.byteLength;if(typeof b!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof b);var R=b.length,G=arguments.length>2&&arguments[2]===!0;if(!G&&R===0)return 0;for(var J=!1;;)switch(_){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return W(b).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*R;case"hex":return R>>>1;case"base64":return ee(b).length;default:if(J)return G?-1:W(b).length;_=(""+_).toLowerCase(),J=!0}}function g(b,_,R){var G=b[_];b[_]=b[R],b[R]=G}function x(b,_,R,G,J){if(b.length===0)return-1;if(typeof R=="string"?(G=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),ae(R=+R)&&(R=J?0:b.length-1),R<0&&(R=b.length+R),R>=b.length){if(J)return-1;R=b.length-1}else if(R<0){if(!J)return-1;R=0}if(typeof _=="string"&&(_=i.from(_,G)),i.isBuffer(_))return _.length===0?-1:y(b,_,R,G,J);if(typeof _=="number")return _&=255,typeof Uint8Array.prototype.indexOf=="function"?J?Uint8Array.prototype.indexOf.call(b,_,R):Uint8Array.prototype.lastIndexOf.call(b,_,R):y(b,[_],R,G,J);throw new TypeError("val must be string, number or Buffer")}function y(b,_,R,G,J){var te,se=1,j=b.length,S=_.length;if(G!==void 0&&((G=String(G).toLowerCase())==="ucs2"||G==="ucs-2"||G==="utf16le"||G==="utf-16le")){if(b.length<2||_.length<2)return-1;se=2,j/=2,S/=2,R/=2}function k(ce,me){return se===1?ce[me]:ce.readUInt16BE(me*se)}if(J){var Y=-1;for(te=R;te<j;te++)if(k(b,te)===k(_,Y===-1?0:te-Y)){if(Y===-1&&(Y=te),te-Y+1===S)return Y*se}else Y!==-1&&(te-=te-Y),Y=-1}else for(R+S>j&&(R=j-S),te=R;te>=0;te--){for(var ne=!0,ue=0;ue<S;ue++)if(k(b,te+ue)!==k(_,ue)){ne=!1;break}if(ne)return te}return-1}function w(b,_,R,G){R=Number(R)||0;var J=b.length-R;G?(G=Number(G))>J&&(G=J):G=J;var te=_.length;G>te/2&&(G=te/2);for(var se=0;se<G;++se){var j=parseInt(_.substr(2*se,2),16);if(ae(j))return se;b[R+se]=j}return se}function F(b,_,R,G){return oe(W(_,b.length-R),b,R,G)}function T(b,_,R,G){return oe(function(J){for(var te=[],se=0;se<J.length;++se)te.push(255&J.charCodeAt(se));return te}(_),b,R,G)}function I(b,_,R,G){return T(b,_,R,G)}function D(b,_,R,G){return oe(ee(_),b,R,G)}function X(b,_,R,G){return oe(function(J,te){for(var se,j,S,k=[],Y=0;Y<J.length&&!((te-=2)<0);++Y)se=J.charCodeAt(Y),j=se>>8,S=se%256,k.push(S),k.push(j);return k}(_,b.length-R),b,R,G)}function K(b,_,R){return _===0&&R===b.length?s.fromByteArray(b):s.fromByteArray(b.slice(_,R))}function E(b,_,R){R=Math.min(b.length,R);for(var G=[],J=_;J<R;){var te,se,j,S,k=b[J],Y=null,ne=k>239?4:k>223?3:k>191?2:1;if(J+ne<=R)switch(ne){case 1:k<128&&(Y=k);break;case 2:(192&(te=b[J+1]))==128&&(S=(31&k)<<6|63&te)>127&&(Y=S);break;case 3:te=b[J+1],se=b[J+2],(192&te)==128&&(192&se)==128&&(S=(15&k)<<12|(63&te)<<6|63&se)>2047&&(S<55296||S>57343)&&(Y=S);break;case 4:te=b[J+1],se=b[J+2],j=b[J+3],(192&te)==128&&(192&se)==128&&(192&j)==128&&(S=(15&k)<<18|(63&te)<<12|(63&se)<<6|63&j)>65535&&S<1114112&&(Y=S)}Y===null?(Y=65533,ne=1):Y>65535&&(Y-=65536,G.push(Y>>>10&1023|55296),Y=56320|1023&Y),G.push(Y),J+=ne}return function(ue){var ce=ue.length;if(ce<=A)return String.fromCharCode.apply(String,ue);for(var me="",ge=0;ge<ce;)me+=String.fromCharCode.apply(String,ue.slice(ge,ge+=A));return me}(G)}l.kMaxLength=h,i.TYPED_ARRAY_SUPPORT=function(){try{var b=new Uint8Array(1);return b.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},b.foo()===42}catch(_){return!1}}(),i.TYPED_ARRAY_SUPPORT||typeof console=="undefined"||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(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}}),typeof Symbol!="undefined"&&Symbol.species!=null&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),i.poolSize=8192,i.from=function(b,_,R){return d(b,_,R)},i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,i.alloc=function(b,_,R){return function(G,J,te){return c(G),G<=0?a(G):J!==void 0?typeof te=="string"?a(G).fill(J,te):a(G).fill(J):a(G)}(b,_,R)},i.allocUnsafe=function(b){return f(b)},i.allocUnsafeSlow=function(b){return f(b)},i.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==i.prototype},i.compare=function(b,_){if(ie(b,Uint8Array)&&(b=i.from(b,b.offset,b.byteLength)),ie(_,Uint8Array)&&(_=i.from(_,_.offset,_.byteLength)),!i.isBuffer(b)||!i.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===_)return 0;for(var R=b.length,G=_.length,J=0,te=Math.min(R,G);J<te;++J)if(b[J]!==_[J]){R=b[J],G=_[J];break}return R<G?-1:G<R?1:0},i.isEncoding=function(b){switch(String(b).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}},i.concat=function(b,_){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return i.alloc(0);var R;if(_===void 0)for(_=0,R=0;R<b.length;++R)_+=b[R].length;var G=i.allocUnsafe(_),J=0;for(R=0;R<b.length;++R){var te=b[R];if(ie(te,Uint8Array)&&(te=i.from(te)),!i.isBuffer(te))throw new TypeError('"list" argument must be an Array of Buffers');te.copy(G,J),J+=te.length}return G},i.byteLength=m,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var b=this.length;if(b%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var _=0;_<b;_+=2)g(this,_,_+1);return this},i.prototype.swap32=function(){var b=this.length;if(b%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var _=0;_<b;_+=4)g(this,_,_+3),g(this,_+1,_+2);return this},i.prototype.swap64=function(){var b=this.length;if(b%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var _=0;_<b;_+=8)g(this,_,_+7),g(this,_+1,_+6),g(this,_+2,_+5),g(this,_+3,_+4);return this},i.prototype.toString=function(){var b=this.length;return b===0?"":arguments.length===0?E(this,0,b):function(_,R,G){var J=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0)<=(R>>>=0))return"";for(_||(_="utf8");;)switch(_){case"hex":return U(this,R,G);case"utf8":case"utf-8":return E(this,R,G);case"ascii":return C(this,R,G);case"latin1":case"binary":return B(this,R,G);case"base64":return K(this,R,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,R,G);default:if(J)throw new TypeError("Unknown encoding: "+_);_=(_+"").toLowerCase(),J=!0}}.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(b){if(!i.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||i.compare(this,b)===0},i.prototype.inspect=function(){var b="",_=l.INSPECT_MAX_BYTES;return b=this.toString("hex",0,_).replace(/(.{2})/g,"$1 ").trim(),this.length>_&&(b+=" ... "),"<Buffer "+b+">"},i.prototype.compare=function(b,_,R,G,J){if(ie(b,Uint8Array)&&(b=i.from(b,b.offset,b.byteLength)),!i.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(_===void 0&&(_=0),R===void 0&&(R=b?b.length:0),G===void 0&&(G=0),J===void 0&&(J=this.length),_<0||R>b.length||G<0||J>this.length)throw new RangeError("out of range index");if(G>=J&&_>=R)return 0;if(G>=J)return-1;if(_>=R)return 1;if(_>>>=0,R>>>=0,G>>>=0,J>>>=0,this===b)return 0;for(var te=J-G,se=R-_,j=Math.min(te,se),S=this.slice(G,J),k=b.slice(_,R),Y=0;Y<j;++Y)if(S[Y]!==k[Y]){te=S[Y],se=k[Y];break}return te<se?-1:se<te?1:0},i.prototype.includes=function(b,_,R){return this.indexOf(b,_,R)!==-1},i.prototype.indexOf=function(b,_,R){return x(this,b,_,R,!0)},i.prototype.lastIndexOf=function(b,_,R){return x(this,b,_,R,!1)},i.prototype.write=function(b,_,R,G){if(_===void 0)G="utf8",R=this.length,_=0;else if(R===void 0&&typeof _=="string")G=_,R=this.length,_=0;else{if(!isFinite(_))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");_>>>=0,isFinite(R)?(R>>>=0,G===void 0&&(G="utf8")):(G=R,R=void 0)}var J=this.length-_;if((R===void 0||R>J)&&(R=J),b.length>0&&(R<0||_<0)||_>this.length)throw new RangeError("Attempt to write outside buffer bounds");G||(G="utf8");for(var te=!1;;)switch(G){case"hex":return w(this,b,_,R);case"utf8":case"utf-8":return F(this,b,_,R);case"ascii":return T(this,b,_,R);case"latin1":case"binary":return I(this,b,_,R);case"base64":return D(this,b,_,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,b,_,R);default:if(te)throw new TypeError("Unknown encoding: "+G);G=(""+G).toLowerCase(),te=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function C(b,_,R){var G="";R=Math.min(b.length,R);for(var J=_;J<R;++J)G+=String.fromCharCode(127&b[J]);return G}function B(b,_,R){var G="";R=Math.min(b.length,R);for(var J=_;J<R;++J)G+=String.fromCharCode(b[J]);return G}function U(b,_,R){var G=b.length;(!_||_<0)&&(_=0),(!R||R<0||R>G)&&(R=G);for(var J="",te=_;te<R;++te)J+=H(b[te]);return J}function q(b,_,R){for(var G=b.slice(_,R),J="",te=0;te<G.length;te+=2)J+=String.fromCharCode(G[te]+256*G[te+1]);return J}function Z(b,_,R){if(b%1!=0||b<0)throw new RangeError("offset is not uint");if(b+_>R)throw new RangeError("Trying to access beyond buffer length")}function $(b,_,R,G,J,te){if(!i.isBuffer(b))throw new TypeError('"buffer" argument must be a Buffer instance');if(_>J||_<te)throw new RangeError('"value" argument is out of bounds');if(R+G>b.length)throw new RangeError("Index out of range")}function N(b,_,R,G,J,te){if(R+G>b.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function V(b,_,R,G,J){return _=+_,R>>>=0,J||N(b,0,R,4),u.write(b,_,R,G,23,4),R+4}function M(b,_,R,G,J){return _=+_,R>>>=0,J||N(b,0,R,8),u.write(b,_,R,G,52,8),R+8}i.prototype.slice=function(b,_){var R=this.length;b=~~b,_=_===void 0?R:~~_,b<0?(b+=R)<0&&(b=0):b>R&&(b=R),_<0?(_+=R)<0&&(_=0):_>R&&(_=R),_<b&&(_=b);var G=this.subarray(b,_);return G.__proto__=i.prototype,G},i.prototype.readUIntLE=function(b,_,R){b>>>=0,_>>>=0,R||Z(b,_,this.length);for(var G=this[b],J=1,te=0;++te<_&&(J*=256);)G+=this[b+te]*J;return G},i.prototype.readUIntBE=function(b,_,R){b>>>=0,_>>>=0,R||Z(b,_,this.length);for(var G=this[b+--_],J=1;_>0&&(J*=256);)G+=this[b+--_]*J;return G},i.prototype.readUInt8=function(b,_){return b>>>=0,_||Z(b,1,this.length),this[b]},i.prototype.readUInt16LE=function(b,_){return b>>>=0,_||Z(b,2,this.length),this[b]|this[b+1]<<8},i.prototype.readUInt16BE=function(b,_){return b>>>=0,_||Z(b,2,this.length),this[b]<<8|this[b+1]},i.prototype.readUInt32LE=function(b,_){return b>>>=0,_||Z(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+16777216*this[b+3]},i.prototype.readUInt32BE=function(b,_){return b>>>=0,_||Z(b,4,this.length),16777216*this[b]+(this[b+1]<<16|this[b+2]<<8|this[b+3])},i.prototype.readIntLE=function(b,_,R){b>>>=0,_>>>=0,R||Z(b,_,this.length);for(var G=this[b],J=1,te=0;++te<_&&(J*=256);)G+=this[b+te]*J;return G>=(J*=128)&&(G-=Math.pow(2,8*_)),G},i.prototype.readIntBE=function(b,_,R){b>>>=0,_>>>=0,R||Z(b,_,this.length);for(var G=_,J=1,te=this[b+--G];G>0&&(J*=256);)te+=this[b+--G]*J;return te>=(J*=128)&&(te-=Math.pow(2,8*_)),te},i.prototype.readInt8=function(b,_){return b>>>=0,_||Z(b,1,this.length),128&this[b]?-1*(255-this[b]+1):this[b]},i.prototype.readInt16LE=function(b,_){b>>>=0,_||Z(b,2,this.length);var R=this[b]|this[b+1]<<8;return 32768&R?4294901760|R:R},i.prototype.readInt16BE=function(b,_){b>>>=0,_||Z(b,2,this.length);var R=this[b+1]|this[b]<<8;return 32768&R?4294901760|R:R},i.prototype.readInt32LE=function(b,_){return b>>>=0,_||Z(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},i.prototype.readInt32BE=function(b,_){return b>>>=0,_||Z(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},i.prototype.readFloatLE=function(b,_){return b>>>=0,_||Z(b,4,this.length),u.read(this,b,!0,23,4)},i.prototype.readFloatBE=function(b,_){return b>>>=0,_||Z(b,4,this.length),u.read(this,b,!1,23,4)},i.prototype.readDoubleLE=function(b,_){return b>>>=0,_||Z(b,8,this.length),u.read(this,b,!0,52,8)},i.prototype.readDoubleBE=function(b,_){return b>>>=0,_||Z(b,8,this.length),u.read(this,b,!1,52,8)},i.prototype.writeUIntLE=function(b,_,R,G){b=+b,_>>>=0,R>>>=0,G||$(this,b,_,R,Math.pow(2,8*R)-1,0);var J=1,te=0;for(this[_]=255&b;++te<R&&(J*=256);)this[_+te]=b/J&255;return _+R},i.prototype.writeUIntBE=function(b,_,R,G){b=+b,_>>>=0,R>>>=0,G||$(this,b,_,R,Math.pow(2,8*R)-1,0);var J=R-1,te=1;for(this[_+J]=255&b;--J>=0&&(te*=256);)this[_+J]=b/te&255;return _+R},i.prototype.writeUInt8=function(b,_,R){return b=+b,_>>>=0,R||$(this,b,_,1,255,0),this[_]=255&b,_+1},i.prototype.writeUInt16LE=function(b,_,R){return b=+b,_>>>=0,R||$(this,b,_,2,65535,0),this[_]=255&b,this[_+1]=b>>>8,_+2},i.prototype.writeUInt16BE=function(b,_,R){return b=+b,_>>>=0,R||$(this,b,_,2,65535,0),this[_]=b>>>8,this[_+1]=255&b,_+2},i.prototype.writeUInt32LE=function(b,_,R){return b=+b,_>>>=0,R||$(this,b,_,4,4294967295,0),this[_+3]=b>>>24,this[_+2]=b>>>16,this[_+1]=b>>>8,this[_]=255&b,_+4},i.prototype.writeUInt32BE=function(b,_,R){return b=+b,_>>>=0,R||$(this,b,_,4,4294967295,0),this[_]=b>>>24,this[_+1]=b>>>16,this[_+2]=b>>>8,this[_+3]=255&b,_+4},i.prototype.writeIntLE=function(b,_,R,G){if(b=+b,_>>>=0,!G){var J=Math.pow(2,8*R-1);$(this,b,_,R,J-1,-J)}var te=0,se=1,j=0;for(this[_]=255&b;++te<R&&(se*=256);)b<0&&j===0&&this[_+te-1]!==0&&(j=1),this[_+te]=(b/se>>0)-j&255;return _+R},i.prototype.writeIntBE=function(b,_,R,G){if(b=+b,_>>>=0,!G){var J=Math.pow(2,8*R-1);$(this,b,_,R,J-1,-J)}var te=R-1,se=1,j=0;for(this[_+te]=255&b;--te>=0&&(se*=256);)b<0&&j===0&&this[_+te+1]!==0&&(j=1),this[_+te]=(b/se>>0)-j&255;return _+R},i.prototype.writeInt8=function(b,_,R){return b=+b,_>>>=0,R||$(this,b,_,1,127,-128),b<0&&(b=255+b+1),this[_]=255&b,_+1},i.prototype.writeInt16LE=function(b,_,R){return b=+b,_>>>=0,R||$(this,b,_,2,32767,-32768),this[_]=255&b,this[_+1]=b>>>8,_+2},i.prototype.writeInt16BE=function(b,_,R){return b=+b,_>>>=0,R||$(this,b,_,2,32767,-32768),this[_]=b>>>8,this[_+1]=255&b,_+2},i.prototype.writeInt32LE=function(b,_,R){return b=+b,_>>>=0,R||$(this,b,_,4,2147483647,-2147483648),this[_]=255&b,this[_+1]=b>>>8,this[_+2]=b>>>16,this[_+3]=b>>>24,_+4},i.prototype.writeInt32BE=function(b,_,R){return b=+b,_>>>=0,R||$(this,b,_,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[_]=b>>>24,this[_+1]=b>>>16,this[_+2]=b>>>8,this[_+3]=255&b,_+4},i.prototype.writeFloatLE=function(b,_,R){return V(this,b,_,!0,R)},i.prototype.writeFloatBE=function(b,_,R){return V(this,b,_,!1,R)},i.prototype.writeDoubleLE=function(b,_,R){return M(this,b,_,!0,R)},i.prototype.writeDoubleBE=function(b,_,R){return M(this,b,_,!1,R)},i.prototype.copy=function(b,_,R,G){if(!i.isBuffer(b))throw new TypeError("argument should be a Buffer");if(R||(R=0),G||G===0||(G=this.length),_>=b.length&&(_=b.length),_||(_=0),G>0&&G<R&&(G=R),G===R||b.length===0||this.length===0)return 0;if(_<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=this.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("sourceEnd out of bounds");G>this.length&&(G=this.length),b.length-_<G-R&&(G=b.length-_+R);var J=G-R;if(this===b&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(_,R,G);else if(this===b&&R<_&&_<G)for(var te=J-1;te>=0;--te)b[te+_]=this[te+R];else Uint8Array.prototype.set.call(b,this.subarray(R,G),_);return J},i.prototype.fill=function(b,_,R,G){if(typeof b=="string"){if(typeof _=="string"?(G=_,_=0,R=this.length):typeof R=="string"&&(G=R,R=this.length),G!==void 0&&typeof G!="string")throw new TypeError("encoding must be a string");if(typeof G=="string"&&!i.isEncoding(G))throw new TypeError("Unknown encoding: "+G);if(b.length===1){var J=b.charCodeAt(0);(G==="utf8"&&J<128||G==="latin1")&&(b=J)}}else typeof b=="number"&&(b&=255);if(_<0||this.length<_||this.length<R)throw new RangeError("Out of range index");if(R<=_)return this;var te;if(_>>>=0,R=R===void 0?this.length:R>>>0,b||(b=0),typeof b=="number")for(te=_;te<R;++te)this[te]=b;else{var se=i.isBuffer(b)?b:i.from(b,G),j=se.length;if(j===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(te=0;te<R-_;++te)this[te+_]=se[te%j]}return this};var O=/[^+/0-9A-Za-z-_]/g;function H(b){return b<16?"0"+b.toString(16):b.toString(16)}function W(b,_){var R;_=_||1/0;for(var G=b.length,J=null,te=[],se=0;se<G;++se){if((R=b.charCodeAt(se))>55295&&R<57344){if(!J){if(R>56319){(_-=3)>-1&&te.push(239,191,189);continue}if(se+1===G){(_-=3)>-1&&te.push(239,191,189);continue}J=R;continue}if(R<56320){(_-=3)>-1&&te.push(239,191,189),J=R;continue}R=65536+(J-55296<<10|R-56320)}else J&&(_-=3)>-1&&te.push(239,191,189);if(J=null,R<128){if((_-=1)<0)break;te.push(R)}else if(R<2048){if((_-=2)<0)break;te.push(R>>6|192,63&R|128)}else if(R<65536){if((_-=3)<0)break;te.push(R>>12|224,R>>6&63|128,63&R|128)}else{if(!(R<1114112))throw new Error("Invalid code point");if((_-=4)<0)break;te.push(R>>18|240,R>>12&63|128,R>>6&63|128,63&R|128)}}return te}function ee(b){return s.toByteArray(function(_){if((_=(_=_.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;_.length%4!=0;)_+="=";return _}(b))}function oe(b,_,R,G){for(var J=0;J<G&&!(J+R>=_.length||J>=b.length);++J)_[J+R]=b[J];return J}function ie(b,_){return b instanceof _||b!=null&&b.constructor!=null&&b.constructor.name!=null&&b.constructor.name===_.name}function ae(b){return b!=b}}).call(this)}).call(this,r("buffer").Buffer)},{"base64-js":13,buffer:17,ieee754:23}],18:[function(r,n,l){(function(o){(function(){l.formatArgs=function(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const h="color: "+this.color;u.splice(1,0,h,"color: inherit");let a=0,i=0;u[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&d==="%c"&&(i=++a)}),u.splice(i,0,h)},l.save=function(u){try{u?l.storage.setItem("debug",u):l.storage.removeItem("debug")}catch(h){}},l.load=function(){let u;try{u=l.storage.getItem("debug")}catch(h){}return!u&&o!==void 0&&"env"in o&&(u=o.env.DEBUG),u},l.useColors=function(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},l.storage=function(){try{return localStorage}catch(u){}}(),l.destroy=(()=>{let u=!1;return()=>{u||(u=!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`."))}})(),l.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"],l.log=console.debug||console.log||(()=>{}),n.exports=r("./common")(l);const{formatters:s}=n.exports;s.j=function(u){try{return JSON.stringify(u)}catch(h){return"[UnexpectedJSONParseError]: "+h.message}}}).call(this)}).call(this,r("_process"))},{"./common":19,_process:50}],19:[function(r,n,l){n.exports=function(o){function s(a){let i,d,c,f=null;function p(...v){if(!p.enabled)return;const m=p,g=Number(new Date),x=g-(i||g);m.diff=x,m.prev=i,m.curr=g,i=g,v[0]=s.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let y=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(w,F)=>{if(w==="%%")return"%";y++;const T=s.formatters[F];if(typeof T=="function"){const I=v[y];w=T.call(m,I),v.splice(y,1),y--}return w}),s.formatArgs.call(m,v),(m.log||s.log).apply(m,v)}return p.namespace=a,p.useColors=s.useColors(),p.color=s.selectColor(a),p.extend=u,p.destroy=s.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(d!==s.namespaces&&(d=s.namespaces,c=s.enabled(a)),c),set:v=>{f=v}}),typeof s.init=="function"&&s.init(p),p}function u(a,i){const d=s(this.namespace+(i===void 0?":":i)+a);return d.log=this.log,d}function h(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}return s.debug=s,s.default=s,s.coerce=function(a){return a instanceof Error?a.stack||a.message:a},s.disable=function(){const a=[...s.names.map(h),...s.skips.map(h).map(i=>"-"+i)].join(",");return s.enable(""),a},s.enable=function(a){let i;s.save(a),s.namespaces=a,s.names=[],s.skips=[];const d=(typeof a=="string"?a:"").split(/[\s,]+/),c=d.length;for(i=0;i<c;i++)d[i]&&((a=d[i].replace(/\*/g,".*?"))[0]==="-"?s.skips.push(new RegExp("^"+a.substr(1)+"$")):s.names.push(new RegExp("^"+a+"$")))},s.enabled=function(a){if(a[a.length-1]==="*")return!0;let i,d;for(i=0,d=s.skips.length;i<d;i++)if(s.skips[i].test(a))return!1;for(i=0,d=s.names.length;i<d;i++)if(s.names[i].test(a))return!0;return!1},s.humanize=r("ms"),s.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(o).forEach(a=>{s[a]=o[a]}),s.names=[],s.skips=[],s.formatters={},s.selectColor=function(a){let i=0;for(let d=0;d<a.length;d++)i=(i<<5)-i+a.charCodeAt(d),i|=0;return s.colors[Math.abs(i)%s.colors.length]},s.enable(s.load()),s}},{ms:45}],20:[function(r,n,l){(function(o,s){(function(){var u=r("readable-stream"),h=r("end-of-stream"),a=r("inherits"),i=r("stream-shift"),d=s.from&&s.from!==Uint8Array.from?s.from([0]):new s([0]),c=function(m,g){m._corked?m.once("uncork",g):g()},f=function(m,g){return function(x){x?function(y,w){y._autoDestroy&&y.destroy(w)}(m,x.message==="premature close"?null:x):g&&!m._ended&&m.end()}},p=function(){},v=function(m,g,x){if(!(this instanceof v))return new v(m,g,x);u.Duplex.call(this,x),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!x||x.autoDestroy!==!1,this._forwardDestroy=!x||x.destroy!==!1,this._forwardEnd=!x||x.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,m&&this.setWritable(m),g&&this.setReadable(g)};a(v,u.Duplex),v.obj=function(m,g,x){return x||(x={}),x.objectMode=!0,x.highWaterMark=16,new v(m,g,x)},v.prototype.cork=function(){++this._corked==1&&this.emit("cork")},v.prototype.uncork=function(){this._corked&&--this._corked==0&&this.emit("uncork")},v.prototype.setWritable=function(m){if(this._unwrite&&this._unwrite(),this.destroyed)m&&m.destroy&&m.destroy();else if(m!==null&&m!==!1){var g=this,x=h(m,{writable:!0,readable:!1},f(this,this._forwardEnd)),y=function(){var w=g._ondrain;g._ondrain=null,w&&w()};this._unwrite&&o.nextTick(y),this._writable=m,this._writable.on("drain",y),this._unwrite=function(){g._writable.removeListener("drain",y),x()},this.uncork()}else this.end()},v.prototype.setReadable=function(m){if(this._unread&&this._unread(),this.destroyed)m&&m.destroy&&m.destroy();else{if(m===null||m===!1)return this.push(null),void this.resume();var g,x=this,y=h(m,{writable:!1,readable:!0},f(this)),w=function(){x._forward()},F=function(){x.push(null)};this._drained=!0,this._readable=m,this._readable2=m._readableState?m:(g=m,new u.Readable({objectMode:!0,highWaterMark:16}).wrap(g)),this._readable2.on("readable",w),this._readable2.on("end",F),this._unread=function(){x._readable2.removeListener("readable",w),x._readable2.removeListener("end",F),y()},this._forward()}},v.prototype._read=function(){this._drained=!0,this._forward()},v.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var m;for(this._forwarding=!0;this._drained&&(m=i(this._readable2))!==null;)this.destroyed||(this._drained=this.push(m));this._forwarding=!1}},v.prototype.destroy=function(m,g){if(g||(g=p),this.destroyed)return g(null);this.destroyed=!0;var x=this;o.nextTick(function(){x._destroy(m),g(null)})},v.prototype._destroy=function(m){if(m){var g=this._ondrain;this._ondrain=null,g?g(m):this.emit("error",m)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},v.prototype._write=function(m,g,x){if(!this.destroyed)return this._corked?c(this,this._write.bind(this,m,g,x)):m===d?this._finish(x):this._writable?void(this._writable.write(m)===!1?this._ondrain=x:this.destroyed||x()):x()},v.prototype._finish=function(m){var g=this;this.emit("preend"),c(this,function(){var x,y;x=g._forwardEnd&&g._writable,y=function(){g._writableState.prefinished===!1&&(g._writableState.prefinished=!0),g.emit("prefinish"),c(g,m)},x?x._writableState&&x._writableState.finished?y():x._writableState?x.end(y):(x.end(),y()):y()})},v.prototype.end=function(m,g,x){return typeof m=="function"?this.end(null,null,m):typeof g=="function"?this.end(m,null,g):(this._ended=!0,m&&this.write(m),this._writableState.ending||this._writableState.destroyed||this.write(d),u.Writable.prototype.end.call(this,x))},n.exports=v}).call(this)}).call(this,r("_process"),r("buffer").Buffer)},{_process:50,buffer:17,"end-of-stream":21,inherits:24,"readable-stream":69,"stream-shift":74}],21:[function(r,n,l){(function(o){(function(){var s=r("once"),u=function(){},h=function(a,i,d){if(typeof i=="function")return h(a,null,i);i||(i={}),d=s(d||u);var c=a._writableState,f=a._readableState,p=i.readable||i.readable!==!1&&a.readable,v=i.writable||i.writable!==!1&&a.writable,m=!1,g=function(){a.writable||x()},x=function(){v=!1,p||d.call(a)},y=function(){p=!1,v||d.call(a)},w=function(X){d.call(a,X?new Error("exited with error code: "+X):null)},F=function(X){d.call(a,X)},T=function(){o.nextTick(I)},I=function(){if(!m)return(!p||f&&f.ended&&!f.destroyed)&&(!v||c&&c.ended&&!c.destroyed)?void 0:d.call(a,new Error("premature close"))},D=function(){a.req.on("finish",x)};return function(X){return X.setHeader&&typeof X.abort=="function"}(a)?(a.on("complete",x),a.on("abort",T),a.req?D():a.on("request",D)):v&&!c&&(a.on("end",g),a.on("close",g)),function(X){return X.stdio&&Array.isArray(X.stdio)&&X.stdio.length===3}(a)&&a.on("exit",w),a.on("end",y),a.on("finish",x),i.error!==!1&&a.on("error",F),a.on("close",T),function(){m=!0,a.removeListener("complete",x),a.removeListener("abort",T),a.removeListener("request",D),a.req&&a.req.removeListener("finish",x),a.removeListener("end",g),a.removeListener("close",g),a.removeListener("finish",x),a.removeListener("exit",w),a.removeListener("end",y),a.removeListener("error",F),a.removeListener("close",T)}};n.exports=h}).call(this)}).call(this,r("_process"))},{_process:50,once:48}],22:[function(r,n,l){var o=Object.create||function(y){var w=function(){};return w.prototype=y,new w},s=Object.keys||function(y){var w=[];for(var F in y)Object.prototype.hasOwnProperty.call(y,F)&&w.push(F);return F},u=Function.prototype.bind||function(y){var w=this;return function(){return w.apply(y,arguments)}};function h(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=o(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}n.exports=h,h.EventEmitter=h,h.prototype._events=void 0,h.prototype._maxListeners=void 0;var a,i=10;try{var d={};Object.defineProperty&&Object.defineProperty(d,"x",{value:0}),a=d.x===0}catch(y){a=!1}function c(y){return y._maxListeners===void 0?h.defaultMaxListeners:y._maxListeners}function f(y,w,F,T){var I,D,X;if(typeof F!="function")throw new TypeError('"listener" argument must be a function');if((D=y._events)?(D.newListener&&(y.emit("newListener",w,F.listener?F.listener:F),D=y._events),X=D[w]):(D=y._events=o(null),y._eventsCount=0),X){if(typeof X=="function"?X=D[w]=T?[F,X]:[X,F]:T?X.unshift(F):X.push(F),!X.warned&&(I=c(y))&&I>0&&X.length>I){X.warned=!0;var K=new Error("Possible EventEmitter memory leak detected. "+X.length+' "'+String(w)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');K.name="MaxListenersExceededWarning",K.emitter=y,K.type=w,K.count=X.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",K.name,K.message)}}else X=D[w]=F,++y._eventsCount;return y}function p(){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 y=new Array(arguments.length),w=0;w<y.length;++w)y[w]=arguments[w];this.listener.apply(this.target,y)}}function v(y,w,F){var T={fired:!1,wrapFn:void 0,target:y,type:w,listener:F},I=u.call(p,T);return I.listener=F,T.wrapFn=I,I}function m(y,w,F){var T=y._events;if(!T)return[];var I=T[w];return I?typeof I=="function"?F?[I.listener||I]:[I]:F?function(D){for(var X=new Array(D.length),K=0;K<X.length;++K)X[K]=D[K].listener||D[K];return X}(I):x(I,I.length):[]}function g(y){var w=this._events;if(w){var F=w[y];if(typeof F=="function")return 1;if(F)return F.length}return 0}function x(y,w){for(var F=new Array(w),T=0;T<w;++T)F[T]=y[T];return F}a?Object.defineProperty(h,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(y){if(typeof y!="number"||y<0||y!=y)throw new TypeError('"defaultMaxListeners" must be a positive number');i=y}}):h.defaultMaxListeners=i,h.prototype.setMaxListeners=function(y){if(typeof y!="number"||y<0||isNaN(y))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=y,this},h.prototype.getMaxListeners=function(){return c(this)},h.prototype.emit=function(y){var w,F,T,I,D,X,K=y==="error";if(X=this._events)K=K&&X.error==null;else if(!K)return!1;if(K){if(arguments.length>1&&(w=arguments[1]),w instanceof Error)throw w;var E=new Error('Unhandled "error" event. ('+w+")");throw E.context=w,E}if(!(F=X[y]))return!1;var A=typeof F=="function";switch(T=arguments.length){case 1:(function(C,B,U){if(B)C.call(U);else for(var q=C.length,Z=x(C,q),$=0;$<q;++$)Z[$].call(U)})(F,A,this);break;case 2:(function(C,B,U,q){if(B)C.call(U,q);else for(var Z=C.length,$=x(C,Z),N=0;N<Z;++N)$[N].call(U,q)})(F,A,this,arguments[1]);break;case 3:(function(C,B,U,q,Z){if(B)C.call(U,q,Z);else for(var $=C.length,N=x(C,$),V=0;V<$;++V)N[V].call(U,q,Z)})(F,A,this,arguments[1],arguments[2]);break;case 4:(function(C,B,U,q,Z,$){if(B)C.call(U,q,Z,$);else for(var N=C.length,V=x(C,N),M=0;M<N;++M)V[M].call(U,q,Z,$)})(F,A,this,arguments[1],arguments[2],arguments[3]);break;default:for(I=new Array(T-1),D=1;D<T;D++)I[D-1]=arguments[D];(function(C,B,U,q){if(B)C.apply(U,q);else for(var Z=C.length,$=x(C,Z),N=0;N<Z;++N)$[N].apply(U,q)})(F,A,this,I)}return!0},h.prototype.addListener=function(y,w){return f(this,y,w,!1)},h.prototype.on=h.prototype.addListener,h.prototype.prependListener=function(y,w){return f(this,y,w,!0)},h.prototype.once=function(y,w){if(typeof w!="function")throw new TypeError('"listener" argument must be a function');return this.on(y,v(this,y,w)),this},h.prototype.prependOnceListener=function(y,w){if(typeof w!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(y,v(this,y,w)),this},h.prototype.removeListener=function(y,w){var F,T,I,D,X;if(typeof w!="function")throw new TypeError('"listener" argument must be a function');if(!(T=this._events))return this;if(!(F=T[y]))return this;if(F===w||F.listener===w)--this._eventsCount==0?this._events=o(null):(delete T[y],T.removeListener&&this.emit("removeListener",y,F.listener||w));else if(typeof F!="function"){for(I=-1,D=F.length-1;D>=0;D--)if(F[D]===w||F[D].listener===w){X=F[D].listener,I=D;break}if(I<0)return this;I===0?F.shift():function(K,E){for(var A=E,C=A+1,B=K.length;C<B;A+=1,C+=1)K[A]=K[C];K.pop()}(F,I),F.length===1&&(T[y]=F[0]),T.removeListener&&this.emit("removeListener",y,X||w)}return this},h.prototype.removeAllListeners=function(y){var w,F,T;if(!(F=this._events))return this;if(!F.removeListener)return arguments.length===0?(this._events=o(null),this._eventsCount=0):F[y]&&(--this._eventsCount==0?this._events=o(null):delete F[y]),this;if(arguments.length===0){var I,D=s(F);for(T=0;T<D.length;++T)(I=D[T])!=="removeListener"&&this.removeAllListeners(I);return this.removeAllListeners("removeListener"),this._events=o(null),this._eventsCount=0,this}if(typeof(w=F[y])=="function")this.removeListener(y,w);else if(w)for(T=w.length-1;T>=0;T--)this.removeListener(y,w[T]);return this},h.prototype.listeners=function(y){return m(this,y,!0)},h.prototype.rawListeners=function(y){return m(this,y,!1)},h.listenerCount=function(y,w){return typeof y.listenerCount=="function"?y.listenerCount(w):g.call(y,w)},h.prototype.listenerCount=g,h.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],23:[function(r,n,l){l.read=function(o,s,u,h,a){var i,d,c=8*a-h-1,f=(1<<c)-1,p=f>>1,v=-7,m=u?a-1:0,g=u?-1:1,x=o[s+m];for(m+=g,i=x&(1<<-v)-1,x>>=-v,v+=c;v>0;i=256*i+o[s+m],m+=g,v-=8);for(d=i&(1<<-v)-1,i>>=-v,v+=h;v>0;d=256*d+o[s+m],m+=g,v-=8);if(i===0)i=1-p;else{if(i===f)return d?NaN:1/0*(x?-1:1);d+=Math.pow(2,h),i-=p}return(x?-1:1)*d*Math.pow(2,i-h)},l.write=function(o,s,u,h,a,i){var d,c,f,p=8*i-a-1,v=(1<<p)-1,m=v>>1,g=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=h?0:i-1,y=h?1:-1,w=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(c=isNaN(s)?1:0,d=v):(d=Math.floor(Math.log(s)/Math.LN2),s*(f=Math.pow(2,-d))<1&&(d--,f*=2),(s+=d+m>=1?g/f:g*Math.pow(2,1-m))*f>=2&&(d++,f/=2),d+m>=v?(c=0,d=v):d+m>=1?(c=(s*f-1)*Math.pow(2,a),d+=m):(c=s*Math.pow(2,m-1)*Math.pow(2,a),d=0));a>=8;o[u+x]=255&c,x+=y,c/=256,a-=8);for(d=d<<a|c,p+=a;p>0;o[u+x]=255&d,x+=y,d/=256,p-=8);o[u+x-y]|=128*w}},{}],24:[function(r,n,l){typeof Object.create=="function"?n.exports=function(o,s){s&&(o.super_=s,o.prototype=Object.create(s.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:n.exports=function(o,s){if(s){o.super_=s;var u=function(){};u.prototype=s.prototype,o.prototype=new u,o.prototype.constructor=o}}},{}],25:[function(r,n,l){Object.defineProperty(l,"__esModule",{value:!0});var o=function(){function s(u,h){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=u,this.value=h}return s.prototype.rotateLeft=function(){var u=this.parent,h=this.brother,a=this.leftChild,i=this.rightChild;if(!i)throw new Error("unknown error");var d=i.leftChild,c=i.rightChild;return u&&(u.leftChild===this?u.leftChild=i:u.rightChild===this&&(u.rightChild=i)),i.parent=u,i.brother=h,i.leftChild=this,i.rightChild=c,h&&(h.brother=i),this.parent=i,this.brother=c,this.leftChild=a,this.rightChild=d,c&&(c.parent=i,c.brother=this),a&&(a.parent=this,a.brother=d),d&&(d.parent=this,d.brother=a),i},s.prototype.rotateRight=function(){var u=this.parent,h=this.brother,a=this.leftChild;if(!a)throw new Error("unknown error");var i=this.rightChild,d=a.leftChild,c=a.rightChild;return u&&(u.leftChild===this?u.leftChild=a:u.rightChild===this&&(u.rightChild=a)),a.parent=u,a.brother=h,a.leftChild=d,a.rightChild=this,h&&(h.brother=a),d&&(d.parent=a,d.brother=this),this.parent=a,this.brother=d,this.leftChild=c,this.rightChild=i,c&&(c.parent=this,c.brother=i),i&&(i.parent=this,i.brother=c),a},s.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},s.TreeNodeColorType={red:!0,black:!1},s}();Object.freeze(o),l.default=o},{}],26:[function(r,n,l){var o=this&&this.__generator||function(u,h){var a,i,d,c,f={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return c={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function p(v){return function(m){return function(g){if(a)throw new TypeError("Generator is already executing.");for(;f;)try{if(a=1,i&&(d=2&g[0]?i.return:g[0]?i.throw||((d=i.return)&&d.call(i),0):i.next)&&!(d=d.call(i,g[1])).done)return d;switch(i=0,d&&(g=[2&g[0],d.value]),g[0]){case 0:case 1:d=g;break;case 4:return f.label++,{value:g[1],done:!1};case 5:f.label++,i=g[1],g=[0];continue;case 7:g=f.ops.pop(),f.trys.pop();continue;default:if(!(d=(d=f.trys).length>0&&d[d.length-1])&&(g[0]===6||g[0]===2)){f=0;continue}if(g[0]===3&&(!d||g[1]>d[0]&&g[1]<d[3])){f.label=g[1];break}if(g[0]===6&&f.label<d[1]){f.label=d[1],d=g;break}if(d&&f.label<d[2]){f.label=d[2],f.ops.push(g);break}d[2]&&f.ops.pop(),f.trys.pop();continue}g=h.call(u,f)}catch(x){g=[6,x],i=0}finally{a=d=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([v,m])}}};function s(u){var h=this;u===void 0&&(u=[]);var a=[],i=0,d=0,c=0,f=0,p=0,v=0;this.size=function(){return v},this.empty=function(){return v===0},this.clear=function(){i=c=d=f=p=v=0,g.call(this,s.bucketSize),v=0},this.front=function(){return a[i][d]},this.back=function(){return a[c][f]},this.forEach=function(x){if(!this.empty()){var y=0;if(i!==c){for(F=d;F<s.bucketSize;++F)x(a[i][F],y++);for(F=i+1;F<c;++F)for(var w=0;w<s.bucketSize;++w)x(a[F][w],y++);for(F=0;F<=f;++F)x(a[c][F],y++)}else for(var F=d;F<=f;++F)x(a[i][F],y++)}};var m=function(x){var y=i*s.bucketSize+d,w=y+x,F=c*s.bucketSize+f;if(w<y||w>F)throw new Error("pos should more than 0 and less than queue's size");return{curNodeBucketIndex:Math.floor(w/s.bucketSize),curNodePointerIndex:w%s.bucketSize}};this.getElementByPos=function(x){var y=m(x),w=y.curNodeBucketIndex,F=y.curNodePointerIndex;return a[w][F]},this.eraseElementByPos=function(x){var y=this;if(x<0||x>v)throw new Error("pos should more than 0 and less than queue's size");if(x===0)this.popFront();else if(x===this.size())this.popBack();else{for(var w=[],F=x+1;F<v;++F)w.push(this.getElementByPos(F));this.cut(x),this.popBack(),w.forEach(function(T){return y.pushBack(T)})}},this.eraseElementByValue=function(x){if(!this.empty()){var y=[];this.forEach(function(T){T!==x&&y.push(T)});for(var w=y.length,F=0;F<w;++F)this.setElementByPos(F,y[F]);this.cut(w-1)}};var g=function(x){for(var y=[],w=x*s.sigma,F=Math.max(Math.ceil(w/s.bucketSize),2),T=0;T<F;++T)y.push(new Array(s.bucketSize));var I=Math.ceil(x/s.bucketSize),D=Math.floor(F/2)-Math.floor(I/2),X=D,K=0;if(this.size())for(T=0;T<I;++T){for(var E=0;E<s.bucketSize;++E)if(y[D+T][E]=this.front(),this.popFront(),this.empty()){X=D+T,K=E;break}if(this.empty())break}a=y,i=D,d=0,c=X,f=K,p=F,v=x};this.pushBack=function(x){this.empty()||(c===p-1&&f===s.bucketSize-1&&g.call(this,this.size()),f<s.bucketSize-1?++f:c<p-1&&(++c,f=0)),++v,a[c][f]=x},this.popBack=function(){this.empty()||(this.size()!==1&&(f>0?--f:i<c&&(--c,f=s.bucketSize-1)),v>0&&--v)},this.setElementByPos=function(x,y){var w=m(x),F=w.curNodeBucketIndex,T=w.curNodePointerIndex;a[F][T]=y},this.insert=function(x,y,w){var F=this;if(w===void 0&&(w=1),x===0)for(;w--;)this.pushFront(y);else if(x===this.size())for(;w--;)this.pushBack(y);else{for(var T=[],I=x;I<v;++I)T.push(this.getElementByPos(I));for(this.cut(x-1),I=0;I<w;++I)this.pushBack(y);T.forEach(function(D){return F.pushBack(D)})}},this.find=function(x){if(i===c){for(var y=d;y<=f;++y)if(a[i][y]===x)return!0;return!1}for(y=d;y<s.bucketSize;++y)if(a[i][y]===x)return!0;for(y=i+1;y<c;++y)for(var w=0;w<s.bucketSize;++w)if(a[y][w]===x)return!0;for(y=0;y<=f;++y)if(a[c][y]===x)return!0;return!1},this.reverse=function(){for(var x=0,y=v-1;x<y;){var w=this.getElementByPos(x);this.setElementByPos(x,this.getElementByPos(y)),this.setElementByPos(y,w),++x,--y}},this.unique=function(){if(!this.empty()){var x=[],y=this.front();this.forEach(function(F,T){T!==0&&F===y||(x.push(F),y=F)});for(var w=0;w<v;++w)this.setElementByPos(w,x[w]);this.cut(x.length-1)}},this.sort=function(x){var y=[];this.forEach(function(F){y.push(F)}),y.sort(x);for(var w=0;w<v;++w)this.setElementByPos(w,y[w])},this.pushFront=function(x){this.empty()||(i===0&&d===0&&g.call(this,this.size()),d>0?--d:i>0&&(--i,d=s.bucketSize-1)),++v,a[i][d]=x},this.popFront=function(){this.empty()||(this.size()!==1&&(d<s.bucketSize-1?++d:i<c&&(++i,d=0)),v>0&&--v)},this.shrinkToFit=function(){var x=this,y=[];this.forEach(function(I){y.push(I)});var w=y.length;a=[];for(var F=Math.ceil(w/s.bucketSize),T=0;T<F;++T)a.push(new Array(s.bucketSize));this.clear(),y.forEach(function(I){return x.pushBack(I)})},this.cut=function(x){if(x<0)this.clear();else{var y=m(x),w=y.curNodeBucketIndex,F=y.curNodePointerIndex;c=w,f=F,v=x+1}},this[Symbol.iterator]=function(){return function(){var x,y;return o(this,function(w){switch(w.label){case 0:if(v===0)return[2];if(i!==c)return[3,5];y=d,w.label=1;case 1:return y<=f?[4,a[i][y]]:[3,4];case 2:w.sent(),w.label=3;case 3:return++y,[3,1];case 4:return[2];case 5:y=d,w.label=6;case 6:return y<s.bucketSize?[4,a[i][y]]:[3,9];case 7:w.sent(),w.label=8;case 8:return++y,[3,6];case 9:y=i+1,w.label=10;case 10:if(!(y<c))return[3,15];x=0,w.label=11;case 11:return x<s.bucketSize?[4,a[y][x]]:[3,14];case 12:w.sent(),w.label=13;case 13:return++x,[3,11];case 14:return++y,[3,10];case 15:y=0,w.label=16;case 16:return y<=f?[4,a[c][y]]:[3,19];case 17:w.sent(),w.label=18;case 18:return++y,[3,16];case 19:return[2]}})}()},function(){var x=s.bucketSize;u.size?x=u.size():u.length&&(x=u.length);var y=x*s.sigma;p=Math.ceil(y/s.bucketSize),p=Math.max(p,3);for(var w=0;w<p;++w)a.push(new Array(s.bucketSize));var F=Math.ceil(x/s.bucketSize);i=Math.floor(p/2)-Math.floor(F/2),c=i,u.forEach(function(T){return h.pushBack(T)})}(),Object.freeze(this)}Object.defineProperty(l,"__esModule",{value:!0}),s.sigma=3,s.bucketSize=5e3,Object.freeze(s),l.default=s},{}],27:[function(r,n,l){var o=this&&this.__generator||function(i,d){var c,f,p,v,m={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return v={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function g(x){return function(y){return function(w){if(c)throw new TypeError("Generator is already executing.");for(;m;)try{if(c=1,f&&(p=2&w[0]?f.return:w[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,w[1])).done)return p;switch(f=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return m.label++,{value:w[1],done:!1};case 5:m.label++,f=w[1],w=[0];continue;case 7:w=m.ops.pop(),m.trys.pop();continue;default:if(!(p=(p=m.trys).length>0&&p[p.length-1])&&(w[0]===6||w[0]===2)){m=0;continue}if(w[0]===3&&(!p||w[1]>p[0]&&w[1]<p[3])){m.label=w[1];break}if(w[0]===6&&m.label<p[1]){m.label=p[1],p=w;break}if(p&&m.label<p[2]){m.label=p[2],m.ops.push(w);break}p[2]&&m.ops.pop(),m.trys.pop();continue}w=d.call(i,m)}catch(F){w=[6,F],f=0}finally{c=p=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([x,y])}}},s=this&&this.__values||function(i){var d=typeof Symbol=="function"&&Symbol.iterator,c=d&&i[d],f=0;if(c)return c.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&f>=i.length&&(i=void 0),{value:i&&i[f++],done:!i}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(l,"__esModule",{value:!0});var u=r("../LinkList/LinkList"),h=r("../Map/Map");function a(i,d,c){var f=this;if(i===void 0&&(i=[]),d===void 0&&(d=a.initSize),c=c||function(g){var x,y,w=0,F="";if(typeof g=="number")w=((w=Math.floor(g))<<5)-w,w&=w;else{F=typeof g!="string"?JSON.stringify(g):g;try{for(var T=s(F),I=T.next();!I.done;I=T.next())w=(w<<5)-w+I.value.charCodeAt(0),w&=w}catch(D){x={error:D}}finally{try{I&&!I.done&&(y=T.return)&&y.call(T)}finally{if(x)throw x.error}}}return w^=w>>>16},(d&d-1)!=0)throw new Error("initBucketNum must be 2 to the power of n");var p=0,v=[],m=Math.max(a.initSize,Math.min(a.maxSize,d));this.size=function(){return p},this.empty=function(){return p===0},this.clear=function(){p=0,m=d,v=[]},this.forEach=function(g){var x=0;v.forEach(function(y){y.forEach(function(w){g(w,x++)})})},this.setElement=function(g,x){var y,w;if(g==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(x!=null){var F=c(g)&m-1;if(v[F]){var T=v[F].size();if(v[F]instanceof u.default){try{for(var I=s(v[F]),D=I.next();!D.done;D=I.next()){var X=D.value;if(X.key===g)return void(X.value=x)}}catch(E){y={error:E}}finally{try{D&&!D.done&&(w=I.return)&&w.call(I)}finally{if(y)throw y.error}}v[F].pushBack({key:g,value:x}),v[F].size()>=a.treeifyThreshold&&(v[F]=new h.default(v[F]))}else v[F].setElement(g,x);var K=v[F].size();p+=K-T}else++p,v[F]=new u.default([{key:g,value:x}]);p>m*a.sigma&&function(E){if(!(E>=a.maxSize)){m=2*E;var A=[];v.forEach(function(C,B){if(!C.empty()){if(C instanceof u.default&&C.size()===1){var U=C.front(),q=U.key,Z=U.value;A[c(q)&m-1]=new u.default([{key:q,value:Z}])}else if(C instanceof h.default){var $=new u.default,N=new u.default;C.forEach(function(O){c(O.key)&E?N.pushBack(O):$.pushBack(O)}),$.size()>a.untreeifyThreshold?A[B]=new h.default($):$.size()&&(A[B]=$),N.size()>a.untreeifyThreshold?A[B+E]=new h.default(N):N.size()&&(A[B+E]=N)}else{var V=new u.default,M=new u.default;C.forEach(function(O){c(O.key)&E?M.pushBack(O):V.pushBack(O)}),V.size()&&(A[B]=V),M.size()&&(A[B+E]=M)}v[B].clear()}}),v=A}}.call(this,m)}else this.eraseElementByKey(g)},this.getElementByKey=function(g){var x,y,w=c(g)&m-1;if(v[w]){if(v[w]instanceof h.default)return v[w].getElementByKey(g);try{for(var F=s(v[w]),T=F.next();!T.done;T=F.next()){var I=T.value;if(I.key===g)return I.value}}catch(D){x={error:D}}finally{try{T&&!T.done&&(y=F.return)&&y.call(F)}finally{if(x)throw x.error}}}},this.eraseElementByKey=function(g){var x,y,w=c(g)&m-1;if(v[w]){var F=v[w].size();if(v[w]instanceof h.default)v[w].eraseElementByKey(g),v[w].size()<=a.untreeifyThreshold&&(v[w]=new u.default(v[w]));else{var T=-1;try{for(var I=s(v[w]),D=I.next();!D.done;D=I.next())if(++T,D.value.key===g){v[w].eraseElementByPos(T);break}}catch(K){x={error:K}}finally{try{D&&!D.done&&(y=I.return)&&y.call(I)}finally{if(x)throw x.error}}}var X=v[w].size();p+=X-F}},this.find=function(g){var x,y,w=c(g)&m-1;if(!v[w])return!1;if(v[w]instanceof h.default)return v[w].find(g);try{for(var F=s(v[w]),T=F.next();!T.done;T=F.next())if(T.value.key===g)return!0}catch(I){x={error:I}}finally{try{T&&!T.done&&(y=F.return)&&y.call(F)}finally{if(x)throw x.error}}return!1},this[Symbol.iterator]=function(){return function(){var g,x,y,w,F,T;return o(this,function(I){switch(I.label){case 0:g=0,I.label=1;case 1:if(!(g<m))return[3,10];for(;g<m&&!v[g];)++g;if(g>=m)return[3,10];I.label=2;case 2:I.trys.push([2,7,8,9]),F=void 0,x=s(v[g]),y=x.next(),I.label=3;case 3:return y.done?[3,6]:[4,y.value];case 4:I.sent(),I.label=5;case 5:return y=x.next(),[3,3];case 6:return[3,9];case 7:return w=I.sent(),F={error:w},[3,9];case 8:try{y&&!y.done&&(T=x.return)&&T.call(x)}finally{if(F)throw F.error}return[7];case 9:return++g,[3,1];case 10:return[2]}})}()},i.forEach(function(g){var x=g.key,y=g.value;return f.setElement(x,y)}),Object.freeze(this)}a.initSize=16,a.maxSize=1<<30,a.sigma=.75,a.treeifyThreshold=8,a.untreeifyThreshold=6,a.minTreeifySize=64,Object.freeze(a),l.default=a},{"../LinkList/LinkList":29,"../Map/Map":30}],28:[function(r,n,l){var o=this&&this.__generator||function(i,d){var c,f,p,v,m={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return v={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function g(x){return function(y){return function(w){if(c)throw new TypeError("Generator is already executing.");for(;m;)try{if(c=1,f&&(p=2&w[0]?f.return:w[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,w[1])).done)return p;switch(f=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return m.label++,{value:w[1],done:!1};case 5:m.label++,f=w[1],w=[0];continue;case 7:w=m.ops.pop(),m.trys.pop();continue;default:if(!(p=(p=m.trys).length>0&&p[p.length-1])&&(w[0]===6||w[0]===2)){m=0;continue}if(w[0]===3&&(!p||w[1]>p[0]&&w[1]<p[3])){m.label=w[1];break}if(w[0]===6&&m.label<p[1]){m.label=p[1],p=w;break}if(p&&m.label<p[2]){m.label=p[2],m.ops.push(w);break}p[2]&&m.ops.pop(),m.trys.pop();continue}w=d.call(i,m)}catch(F){w=[6,F],f=0}finally{c=p=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([x,y])}}},s=this&&this.__values||function(i){var d=typeof Symbol=="function"&&Symbol.iterator,c=d&&i[d],f=0;if(c)return c.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&f>=i.length&&(i=void 0),{value:i&&i[f++],done:!i}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(l,"__esModule",{value:!0});var u=r("../Set/Set"),h=r("../LinkList/LinkList");function a(i,d,c){var f=this;if(i===void 0&&(i=[]),d===void 0&&(d=a.initSize),c=c||function(g){var x=0,y="";if(typeof g=="number")x=((x=Math.floor(g))<<5)-x,x&=x;else{y=typeof g!="string"?JSON.stringify(g):g;for(var w=0;w<y.length;w++)x=(x<<5)-x+y.charCodeAt(w),x&=x}return x^=x>>>16},(d&d-1)!=0)throw new Error("initBucketNum must be 2 to the power of n");var p=0,v=[],m=Math.max(a.initSize,Math.min(a.maxSize,d));this.size=function(){return p},this.empty=function(){return p===0},this.clear=function(){p=0,m=d,v=[]},this.forEach=function(g){var x=0;v.forEach(function(y){y.forEach(function(w){g(w,x++)})})},this.insert=function(g){if(g==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");var x=c(g)&m-1;if(v[x]){var y=v[x].size();if(v[x]instanceof h.default){if(v[x].find(g))return;v[x].pushBack(g),v[x].size()>=a.treeifyThreshold&&(v[x]=new u.default(v[x]))}else v[x].insert(g);var w=v[x].size();p+=w-y}else v[x]=new h.default([g]),++p;p>m*a.sigma&&function(F){if(!(F>=a.maxSize)){m=2*F;var T=[];v.forEach(function(I,D){if(!I.empty()){if(I instanceof h.default&&I.size()===1){var X=I.front();if(X===void 0)throw new Error("unknown error");T[c(X)&m-1]=new h.default([X])}else if(I instanceof u.default){var K=new h.default,E=new h.default;I.forEach(function(B){c(B)&F?E.pushBack(B):K.pushBack(B)}),K.size()>a.untreeifyThreshold?T[D]=new u.default(K):K.size()&&(T[D]=K),E.size()>a.untreeifyThreshold?T[D+F]=new u.default(E):E.size()&&(T[D+F]=E)}else{var A=new h.default,C=new h.default;I.forEach(function(B){c(B)&F?C.pushBack(B):A.pushBack(B)}),A.size()&&(T[D]=A),C.size()&&(T[D+F]=C)}v[D].clear()}}),v=T}}.call(this,m)},this.eraseElementByValue=function(g){var x=c(g)&m-1;if(v[x]){var y=v[x].size();v[x].eraseElementByValue(g),v[x]instanceof u.default&&v[x].size()<=a.untreeifyThreshold&&(v[x]=new h.default(v[x]));var w=v[x].size();p+=w-y}},this.find=function(g){var x=c(g)&m-1;return!!v[x]&&v[x].find(g)},this[Symbol.iterator]=function(){return function(){var g,x,y,w,F,T;return o(this,function(I){switch(I.label){case 0:g=0,I.label=1;case 1:if(!(g<m))return[3,10];for(;g<m&&!v[g];)++g;if(g>=m)return[3,10];I.label=2;case 2:I.trys.push([2,7,8,9]),F=void 0,x=s(v[g]),y=x.next(),I.label=3;case 3:return y.done?[3,6]:[4,y.value];case 4:I.sent(),I.label=5;case 5:return y=x.next(),[3,3];case 6:return[3,9];case 7:return w=I.sent(),F={error:w},[3,9];case 8:try{y&&!y.done&&(T=x.return)&&T.call(x)}finally{if(F)throw F.error}return[7];case 9:return++g,[3,1];case 10:return[2]}})}()},i.forEach(function(g){return f.insert(g)}),Object.freeze(this)}a.initSize=16,a.maxSize=1<<30,a.sigma=.75,a.treeifyThreshold=8,a.untreeifyThreshold=6,a.minTreeifySize=64,Object.freeze(a),l.default=a},{"../LinkList/LinkList":29,"../Set/Set":33}],29:[function(r,n,l){var o=this&&this.__generator||function(h,a){var i,d,c,f,p={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return f={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function v(m){return function(g){return function(x){if(i)throw new TypeError("Generator is already executing.");for(;p;)try{if(i=1,d&&(c=2&x[0]?d.return:x[0]?d.throw||((c=d.return)&&c.call(d),0):d.next)&&!(c=c.call(d,x[1])).done)return c;switch(d=0,c&&(x=[2&x[0],c.value]),x[0]){case 0:case 1:c=x;break;case 4:return p.label++,{value:x[1],done:!1};case 5:p.label++,d=x[1],x=[0];continue;case 7:x=p.ops.pop(),p.trys.pop();continue;default:if(!(c=(c=p.trys).length>0&&c[c.length-1])&&(x[0]===6||x[0]===2)){p=0;continue}if(x[0]===3&&(!c||x[1]>c[0]&&x[1]<c[3])){p.label=x[1];break}if(x[0]===6&&p.label<c[1]){p.label=c[1],c=x;break}if(c&&p.label<c[2]){p.label=c[2],p.ops.push(x);break}c[2]&&p.ops.pop(),p.trys.pop();continue}x=a.call(h,p)}catch(y){x=[6,y],d=0}finally{i=c=0}if(5&x[0])throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}([m,g])}}};Object.defineProperty(l,"__esModule",{value:!0});var s=function(){return function(h){this.value=void 0,this.pre=void 0,this.next=void 0,this.value=h}}();function u(h){var a=this;h===void 0&&(h=[]);var i=0,d=void 0,c=void 0;this.size=function(){return i},this.empty=function(){return i===0},this.clear=function(){d=c=void 0,i=0},this.front=function(){return d==null?void 0:d.value},this.back=function(){return c==null?void 0:c.value},this.forEach=function(f){for(var p=d,v=0;p;){if(p.value===void 0)throw new Error("unknown error");f(p.value,v++),p=p.next}},this.getElementByPos=function(f){if(f<0||f>=i)throw new Error("pos must more then 0 and less then the list length");for(var p=d;f--&&p;)p=p.next;if(!p||p.value===void 0)throw new Error("unknown error");return p.value},this.eraseElementByPos=function(f){if(f<0||f>=i)throw new Error("erase pos must more then 0 and less then the list length");if(f===0)this.popFront();else if(f===i-1)this.popBack();else{for(var p=d;f--;){if(!(p!=null&&p.next))throw new Error("unknown error");p=p.next}if(!p||!p.pre||!p.next)throw new Error("unknown error");var v=p.pre,m=p.next;m.pre=v,v.next=m,i>0&&--i}},this.eraseElementByValue=function(f){for(;d&&d.value===f;)this.popFront();for(;c&&c.value===f;)this.popBack();if(d)for(var p=d;p;){if(p.value===f){var v=p.pre,m=p.next;m&&(m.pre=v),v&&(v.next=m),i>0&&--i}p=p.next}},this.pushBack=function(f){if(f==null)throw new Error("you can't push null or undefined here");++i;var p=new s(f);c?(c.next=p,p.pre=c,c=p):d=c=p},this.popBack=function(){c&&(i>0&&--i,c&&(d===c?d=c=void 0:(c=c.pre)&&(c.next=void 0)))},this.setElementByPos=function(f,p){if(p==null)throw new Error("you can't set null or undefined here");if(f<0||f>=i)throw new Error("pos must more then 0 and less then the list length");for(var v=d;f--;){if(!v)throw new Error("unknown error");v=v.next}v&&(v.value=p)},this.insert=function(f,p,v){if(v===void 0&&(v=1),p==null)throw new Error("you can't insert null or undefined here");if(f<0||f>i)throw new Error("insert pos must more then 0 and less then or equal to the list length");if(v<0)throw new Error("insert size must more than 0");if(f===0)for(;v--;)this.pushFront(p);else if(f===i)for(;v--;)this.pushBack(p);else{for(var m=d,g=1;g<f;++g){if(!(m!=null&&m.next))throw new Error("unknown error");m=m==null?void 0:m.next}if(!m)throw new Error("unknown error");var x=m.next;for(i+=v;v--;)m.next=new s(p),m.next.pre=m,m=m.next;m.next=x,x&&(x.pre=m)}},this.find=function(f){for(var p=d;p;){if(p.value===f)return!0;p=p.next}return!1},this.reverse=function(){for(var f=d,p=c,v=0;f&&p&&2*v<i;){var m=f.value;f.value=p.value,p.value=m,f=f.next,p=p.pre,++v}},this.unique=function(){for(var f=d;f;){for(var p=f;p&&p.next&&p.value===p.next.value;)p=p.next,i>0&&--i;f.next=p.next,f.next&&(f.next.pre=f),f=f.next}},this.sort=function(f){var p=[];this.forEach(function(m){p.push(m)}),p.sort(f);var v=d;p.forEach(function(m){v&&(v.value=m,v=v.next)})},this.pushFront=function(f){if(f==null)throw new Error("you can't push null or undefined here");++i;var p=new s(f);d?(p.next=d,d.pre=p,d=p):d=c=p},this.popFront=function(){d&&(i>0&&--i,d&&(d===c?d=c=void 0:(d=d.next)&&(d.pre=void 0)))},this.merge=function(f){var p=this,v=d;f.forEach(function(m){for(;v&&v.value!==void 0&&v.value<=m;)v=v.next;if(v===void 0)p.pushBack(m),v=c;else if(v===d)p.pushFront(m),v=d;else{++i;var g=v.pre;g&&(g.next=new s(m),g.next.pre=g,g.next.next=v,v&&(v.pre=g.next))}})},this[Symbol.iterator]=function(){return function(){var f;return o(this,function(p){switch(p.label){case 0:f=d,p.label=1;case 1:if(f===void 0)return[3,3];if(!f.value)throw new Error("unknown error");return[4,f.value];case 2:return p.sent(),f=f.next,[3,1];case 3:return[2]}})}()},h.forEach(function(f){return a.pushBack(f)}),Object.freeze(this)}Object.freeze(u),l.default=u},{}],30:[function(r,n,l){var o=this&&this.__generator||function(a,i){var d,c,f,p,v={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function m(g){return function(x){return function(y){if(d)throw new TypeError("Generator is already executing.");for(;v;)try{if(d=1,c&&(f=2&y[0]?c.return:y[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,y[1])).done)return f;switch(c=0,f&&(y=[2&y[0],f.value]),y[0]){case 0:case 1:f=y;break;case 4:return v.label++,{value:y[1],done:!1};case 5:v.label++,c=y[1],y=[0];continue;case 7:y=v.ops.pop(),v.trys.pop();continue;default:if(!(f=(f=v.trys).length>0&&f[f.length-1])&&(y[0]===6||y[0]===2)){v=0;continue}if(y[0]===3&&(!f||y[1]>f[0]&&y[1]<f[3])){v.label=y[1];break}if(y[0]===6&&v.label<f[1]){v.label=f[1],f=y;break}if(f&&v.label<f[2]){v.label=f[2],v.ops.push(y);break}f[2]&&v.ops.pop(),v.trys.pop();continue}y=i.call(a,v)}catch(w){y=[6,w],c=0}finally{d=f=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([g,x])}}},s=this&&this.__values||function(a){var i=typeof Symbol=="function"&&Symbol.iterator,d=i&&a[i],c=0;if(d)return d.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&c>=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(l,"__esModule",{value:!0});var u=r("../Base/TreeNode");function h(a,i){var d=this;a===void 0&&(a=[]),i=i||function(E,A){return E<A?-1:E>A?1:0};var c=0,f=new u.default;f.color=u.default.TreeNodeColorType.black,this.size=function(){return c},this.empty=function(){return c===0},this.clear=function(){c=0,f.key=f.value=void 0,f.leftChild=f.rightChild=f.brother=void 0};var p=function(E){if(!E||E.key===void 0)throw new Error("unknown error");return E.leftChild?p(E.leftChild):E},v=function(E){if(!E||E.key===void 0)throw new Error("unknown error");return E.rightChild?v(E.rightChild):E};this.front=function(){if(!this.empty()){var E=p(f);if(E.key===void 0||E.value===void 0)throw new Error("unknown error");return{key:E.key,value:E.value}}},this.back=function(){if(!this.empty()){var E=v(f);if(E.key===void 0||E.value===void 0)throw new Error("unknown error");return{key:E.key,value:E.value}}},this.forEach=function(E){var A,C,B=0;try{for(var U=s(this),q=U.next();!q.done;q=U.next())E(q.value,B++)}catch(Z){A={error:Z}}finally{try{q&&!q.done&&(C=U.return)&&C.call(U)}finally{if(A)throw A.error}}},this.getElementByPos=function(E){var A,C;if(E<0||E>=this.size())throw new Error("pos must more than 0 and less than set's size");var B=0;try{for(var U=s(this),q=U.next();!q.done;q=U.next()){var Z=q.value;if(B===E)return Z;++B}}catch($){A={error:$}}finally{try{q&&!q.done&&(C=U.return)&&C.call(U)}finally{if(A)throw A.error}}throw new Error("unknown Error")};var m=function(E,A){if(E&&E.key!==void 0&&E.value!==void 0){var C=i(E.key,A);return C===0?{key:E.key,value:E.value}:C<0?m(E.rightChild,A):m(E.leftChild,A)||{key:E.key,value:E.value}}};this.lowerBound=function(E){return m(f,E)};var g=function(E,A){if(E&&E.key!==void 0&&E.value!==void 0)return i(E.key,A)<=0?g(E.rightChild,A):g(E.leftChild,A)||{key:E.key,value:E.value}};this.upperBound=function(E){return g(f,E)};var x=function(E,A){if(E&&E.key!==void 0&&E.value!==void 0){var C=i(E.key,A);return C===0?{key:E.key,value:E.value}:C>0?x(E.leftChild,A):x(E.rightChild,A)||{key:E.key,value:E.value}}};this.reverseLowerBound=function(E){return x(f,E)};var y=function(E,A){if(E&&E.key!==void 0&&E.value!==void 0)return i(E.key,A)>=0?y(E.leftChild,A):y(E.rightChild,A)||{key:E.key,value:E.value}};this.reverseUpperBound=function(E){return y(f,E)};var w=function(E){var A=E.parent;if(!A){if(E===f)return;throw new Error("unknown error")}if(E.color!==u.default.TreeNodeColorType.red){var C=E.brother;if(!C)throw new Error("unknown error");if(E===A.leftChild)if(C.color===u.default.TreeNodeColorType.red){C.color=u.default.TreeNodeColorType.black,A.color=u.default.TreeNodeColorType.red;var B=A.rotateLeft();f===A&&(f=B),w(E)}else C.color===u.default.TreeNodeColorType.black&&(C.rightChild&&C.rightChild.color===u.default.TreeNodeColorType.red?(C.color=A.color,A.color=u.default.TreeNodeColorType.black,C.rightChild&&(C.rightChild.color=u.default.TreeNodeColorType.black),B=A.rotateLeft(),f===A&&(f=B),E.color=u.default.TreeNodeColorType.black):C.rightChild&&C.rightChild.color!==u.default.TreeNodeColorType.black||!C.leftChild||C.leftChild.color!==u.default.TreeNodeColorType.red?C.leftChild&&C.leftChild.color!==u.default.TreeNodeColorType.black||C.rightChild&&C.rightChild.color!==u.default.TreeNodeColorType.black||(C.color=u.default.TreeNodeColorType.red,w(A)):(C.color=u.default.TreeNodeColorType.red,C.leftChild&&(C.leftChild.color=u.default.TreeNodeColorType.black),B=C.rotateRight(),f===C&&(f=B),w(E)));else E===A.rightChild&&(C.color===u.default.TreeNodeColorType.red?(C.color=u.default.TreeNodeColorType.black,A.color=u.default.TreeNodeColorType.red,B=A.rotateRight(),f===A&&(f=B),w(E)):C.color===u.default.TreeNodeColorType.black&&(C.leftChild&&C.leftChild.color===u.default.TreeNodeColorType.red?(C.color=A.color,A.color=u.default.TreeNodeColorType.black,C.leftChild&&(C.leftChild.color=u.default.TreeNodeColorType.black),B=A.rotateRight(),f===A&&(f=B),E.color=u.default.TreeNodeColorType.black):C.leftChild&&C.leftChild.color!==u.default.TreeNodeColorType.black||!C.rightChild||C.rightChild.color!==u.default.TreeNodeColorType.red?C.leftChild&&C.leftChild.color!==u.default.TreeNodeColorType.black||C.rightChild&&C.rightChild.color!==u.default.TreeNodeColorType.black||(C.color=u.default.TreeNodeColorType.red,w(A)):(C.color=u.default.TreeNodeColorType.red,C.rightChild&&(C.rightChild.color=u.default.TreeNodeColorType.black),B=C.rotateLeft(),f===C&&(f=B),w(E))))}else E.color=u.default.TreeNodeColorType.black},F=function(E){for(var A=E;A.leftChild||A.rightChild;){if(A.rightChild){A=p(A.rightChild);var C=E.key;E.key=A.key,A.key=C;var B=E.value;E.value=A.value,A.value=B,E=A}A.leftChild&&(A=v(A.leftChild),C=E.key,E.key=A.key,A.key=C,B=E.value,E.value=A.value,A.value=B,E=A)}w(A),A&&A.remove(),--c,f.color=u.default.TreeNodeColorType.black},T=function(E,A){return!(!E||E.key===void 0)&&(!!T(E.leftChild,A)||!!A(E)||T(E.rightChild,A))};this.eraseElementByPos=function(E){if(E<0||E>=c)throw new Error("pos must more than 0 and less than set's size");var A=0;T(f,function(C){return E===A?(F(C),!0):(++A,!1)})},this.eraseElementByKey=function(E){if(!this.empty()){var A=X(f,E);A!==void 0&&A.key!==void 0&&i(A.key,E)===0&&F(A)}};var I=function(E,A){if(!E||E.key===void 0)throw new Error("unknown error");var C=i(A,E.key);return C<0?E.leftChild?I(E.leftChild,A):(E.leftChild=new u.default,E.leftChild.parent=E,E.leftChild.brother=E.rightChild,E.rightChild&&(E.rightChild.brother=E.leftChild),E.leftChild):C>0?E.rightChild?I(E.rightChild,A):(E.rightChild=new u.default,E.rightChild.parent=E,E.rightChild.brother=E.leftChild,E.leftChild&&(E.leftChild.brother=E.rightChild),E.rightChild):E},D=function(E){var A=E.parent;if(!A){if(E===f)return;throw new Error("unknown error")}if(A.color!==u.default.TreeNodeColorType.black&&A.color===u.default.TreeNodeColorType.red){var C=A.brother,B=A.parent;if(!B)throw new Error("unknown error");if(C&&C.color===u.default.TreeNodeColorType.red)C.color=A.color=u.default.TreeNodeColorType.black,B.color=u.default.TreeNodeColorType.red,D(B);else if(!C||C.color===u.default.TreeNodeColorType.black)if(A===B.leftChild)if(E===A.leftChild){A.color=u.default.TreeNodeColorType.black,B.color=u.default.TreeNodeColorType.red;var U=B.rotateRight();B===f&&(f=U)}else E===A.rightChild&&(U=A.rotateLeft(),B===f&&(f=U),D(A));else A===B.rightChild&&(E===A.leftChild?(U=A.rotateRight(),B===f&&(f=U),D(A)):E===A.rightChild&&(A.color=u.default.TreeNodeColorType.black,B.color=u.default.TreeNodeColorType.red,U=B.rotateLeft(),B===f&&(f=U)))}};this.setElement=function(E,A){if(E==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(A!=null){if(this.empty())return++c,f.key=E,f.value=A,void(f.color=u.default.TreeNodeColorType.black);var C=I(f,E);C.key===void 0||i(C.key,E)!==0?(++c,C.key=E,C.value=A,D(C),f.color=u.default.TreeNodeColorType.black):C.value=A}else this.eraseElementByKey(E)};var X=function(E,A){if(E&&E.key!==void 0){var C=i(A,E.key);return C<0?X(E.leftChild,A):C>0?X(E.rightChild,A):E}};this.find=function(E){return!!X(f,E)},this.getElementByKey=function(E){var A=X(f,E);if((A==null?void 0:A.key)===void 0||(A==null?void 0:A.value)===void 0)throw new Error("unknown error");return A.value},this.union=function(E){var A=this;E.forEach(function(C){var B=C.key,U=C.value;return A.setElement(B,U)})},this.getHeight=function(){if(this.empty())return 0;var E=function(A){return A?Math.max(E(A.leftChild),E(A.rightChild))+1:1};return E(f)};var K=function(E){return o(this,function(A){switch(A.label){case 0:return E&&E.key!==void 0&&E.value!==void 0?[5,s(K(E.leftChild))]:[2];case 1:return A.sent(),[4,{key:E.key,value:E.value}];case 2:return A.sent(),[5,s(K(E.rightChild))];case 3:return A.sent(),[2]}})};this[Symbol.iterator]=function(){return K(f)},a.forEach(function(E){var A=E.key,C=E.value;return d.setElement(A,C)}),Object.freeze(this)}Object.freeze(h),l.default=h},{"../Base/TreeNode":25}],31:[function(r,n,l){function o(s,u){s===void 0&&(s=[]),u=u||function(c,f){return c>f?-1:c<f?1:0};var h=[];s.forEach(function(c){return h.push(c)});var a=h.length,i=function(c,f){if(c<0||c>=a)throw new Error("unknown error");if(f<0||f>=a)throw new Error("unknown error");var p=h[c];h[c]=h[f],h[f]=p},d=function(c){if(c<0||c>=a)throw new Error("unknown error");var f=2*c+1,p=2*c+2;f<a&&u(h[c],h[f])>0&&i(c,f),p<a&&u(h[c],h[p])>0&&i(c,p)};(function(){for(var c=Math.floor((a-1)/2);c>=0;--c)for(var f=c,p=2*f+1;p<a;){var v=p+1,m=p;if(v<a&&u(h[p],h[v])>0&&(m=v),u(h[f],h[m])<=0)break;i(f,m),p=2*(f=m)+1}})(),this.size=function(){return a},this.empty=function(){return a===0},this.clear=function(){a=0,h.length=0},this.push=function(c){if(h.push(c),++a!==1)for(var f=a-1;f>0;){var p=Math.floor((f-1)/2);if(u(h[p],c)<=0)break;d(p),f=p}},this.pop=function(){if(!this.empty())if(this.size()!==1){var c=h[a-1];--a;for(var f=0;f<this.size();){var p=2*f+1,v=2*f+2;if(p>=this.size())break;var m=p;if(v<this.size()&&u(h[p],h[v])>0&&(m=v),u(h[m],c)>=0)break;h[f]=h[m],f=m}h[f]=c}else--a},this.top=function(){return h[0]},Object.freeze(this)}Object.defineProperty(l,"__esModule",{value:!0}),Object.freeze(o),l.default=o},{}],32:[function(r,n,l){Object.defineProperty(l,"__esModule",{value:!0});var o=r("../LinkList/LinkList");function s(u){u===void 0&&(u=[]);var h=new o.default(u);this.size=function(){return h.size()},this.empty=function(){return h.empty()},this.clear=function(){h.clear()},this.push=function(a){h.pushBack(a)},this.pop=function(){h.popFront()},this.front=function(){return h.front()},Object.freeze(this)}Object.freeze(s),l.default=s},{"../LinkList/LinkList":29}],33:[function(r,n,l){var o=this&&this.__generator||function(a,i){var d,c,f,p,v={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function m(g){return function(x){return function(y){if(d)throw new TypeError("Generator is already executing.");for(;v;)try{if(d=1,c&&(f=2&y[0]?c.return:y[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,y[1])).done)return f;switch(c=0,f&&(y=[2&y[0],f.value]),y[0]){case 0:case 1:f=y;break;case 4:return v.label++,{value:y[1],done:!1};case 5:v.label++,c=y[1],y=[0];continue;case 7:y=v.ops.pop(),v.trys.pop();continue;default:if(!(f=(f=v.trys).length>0&&f[f.length-1])&&(y[0]===6||y[0]===2)){v=0;continue}if(y[0]===3&&(!f||y[1]>f[0]&&y[1]<f[3])){v.label=y[1];break}if(y[0]===6&&v.label<f[1]){v.label=f[1],f=y;break}if(f&&v.label<f[2]){v.label=f[2],v.ops.push(y);break}f[2]&&v.ops.pop(),v.trys.pop();continue}y=i.call(a,v)}catch(w){y=[6,w],c=0}finally{d=f=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([g,x])}}},s=this&&this.__values||function(a){var i=typeof Symbol=="function"&&Symbol.iterator,d=i&&a[i],c=0;if(d)return d.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&c>=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(l,"__esModule",{value:!0});var u=r("../Base/TreeNode");function h(a,i){var d=this;a===void 0&&(a=[]),i=i||function(E,A){return E<A?-1:E>A?1:0};var c=0,f=new u.default;f.color=u.default.TreeNodeColorType.black,this.size=function(){return c},this.empty=function(){return c===0},this.clear=function(){c=0,f.key=void 0,f.leftChild=f.rightChild=f.brother=f.parent=void 0,f.color=u.default.TreeNodeColorType.black};var p=function(E){if(!E||E.key===void 0)throw new Error("unknown error");return E.leftChild?p(E.leftChild):E},v=function(E){if(!E||E.key===void 0)throw new Error("unknown error");return E.rightChild?v(E.rightChild):E};this.front=function(){if(!this.empty())return p(f).key},this.back=function(){if(!this.empty())return v(f).key},this.forEach=function(E){var A,C,B=0;try{for(var U=s(this),q=U.next();!q.done;q=U.next())E(q.value,B++)}catch(Z){A={error:Z}}finally{try{q&&!q.done&&(C=U.return)&&C.call(U)}finally{if(A)throw A.error}}},this.getElementByPos=function(E){var A,C;if(E<0||E>=this.size())throw new Error("pos must more than 0 and less than set's size");var B=0;try{for(var U=s(this),q=U.next();!q.done;q=U.next()){var Z=q.value;if(B===E)return Z;++B}}catch($){A={error:$}}finally{try{q&&!q.done&&(C=U.return)&&C.call(U)}finally{if(A)throw A.error}}throw new Error("unknown error")};var m=function(E){var A=E.parent;if(!A){if(E===f)return;throw new Error("unknown error")}if(E.color!==u.default.TreeNodeColorType.red){var C=E.brother;if(!C)throw new Error("unknown error");if(E===A.leftChild)if(C.color===u.default.TreeNodeColorType.red){C.color=u.default.TreeNodeColorType.black,A.color=u.default.TreeNodeColorType.red;var B=A.rotateLeft();f===A&&(f=B),m(E)}else C.color===u.default.TreeNodeColorType.black&&(C.rightChild&&C.rightChild.color===u.default.TreeNodeColorType.red?(C.color=A.color,A.color=u.default.TreeNodeColorType.black,C.rightChild&&(C.rightChild.color=u.default.TreeNodeColorType.black),B=A.rotateLeft(),f===A&&(f=B),E.color=u.default.TreeNodeColorType.black):C.rightChild&&C.rightChild.color!==u.default.TreeNodeColorType.black||!C.leftChild||C.leftChild.color!==u.default.TreeNodeColorType.red?C.leftChild&&C.leftChild.color!==u.default.TreeNodeColorType.black||C.rightChild&&C.rightChild.color!==u.default.TreeNodeColorType.black||(C.color=u.default.TreeNodeColorType.red,m(A)):(C.color=u.default.TreeNodeColorType.red,C.leftChild&&(C.leftChild.color=u.default.TreeNodeColorType.black),B=C.rotateRight(),f===C&&(f=B),m(E)));else E===A.rightChild&&(C.color===u.default.TreeNodeColorType.red?(C.color=u.default.TreeNodeColorType.black,A.color=u.default.TreeNodeColorType.red,B=A.rotateRight(),f===A&&(f=B),m(E)):C.color===u.default.TreeNodeColorType.black&&(C.leftChild&&C.leftChild.color===u.default.TreeNodeColorType.red?(C.color=A.color,A.color=u.default.TreeNodeColorType.black,C.leftChild&&(C.leftChild.color=u.default.TreeNodeColorType.black),B=A.rotateRight(),f===A&&(f=B),E.color=u.default.TreeNodeColorType.black):C.leftChild&&C.leftChild.color!==u.default.TreeNodeColorType.black||!C.rightChild||C.rightChild.color!==u.default.TreeNodeColorType.red?C.leftChild&&C.leftChild.color!==u.default.TreeNodeColorType.black||C.rightChild&&C.rightChild.color!==u.default.TreeNodeColorType.black||(C.color=u.default.TreeNodeColorType.red,m(A)):(C.color=u.default.TreeNodeColorType.red,C.rightChild&&(C.rightChild.color=u.default.TreeNodeColorType.black),B=C.rotateLeft(),f===C&&(f=B),m(E))))}else E.color=u.default.TreeNodeColorType.black},g=function(E){for(var A=E;A.leftChild||A.rightChild;){if(A.rightChild){A=p(A.rightChild);var C=E.key;E.key=A.key,A.key=C,E=A}A.leftChild&&(A=v(A.leftChild),C=E.key,E.key=A.key,A.key=C,E=A)}m(A),A&&A.remove(),--c,f.color=u.default.TreeNodeColorType.black},x=function(E,A){return!(!E||E.key===void 0)&&(!!x(E.leftChild,A)||!!A(E)||x(E.rightChild,A))};this.eraseElementByPos=function(E){if(E<0||E>=c)throw new Error("pos must more than 0 and less than set's size");var A=0;x(f,function(C){return E===A?(g(C),!0):(++A,!1)})},this.eraseElementByValue=function(E){if(!this.empty()){var A=F(f,E);A!==void 0&&A.key!==void 0&&i(A.key,E)===0&&g(A)}};var y=function(E,A){if(!E||E.key===void 0)throw new Error("unknown error");var C=i(A,E.key);return C<0?E.leftChild?y(E.leftChild,A):(E.leftChild=new u.default,E.leftChild.parent=E,E.leftChild.brother=E.rightChild,E.rightChild&&(E.rightChild.brother=E.leftChild),E.leftChild):C>0?E.rightChild?y(E.rightChild,A):(E.rightChild=new u.default,E.rightChild.parent=E,E.rightChild.brother=E.leftChild,E.leftChild&&(E.leftChild.brother=E.rightChild),E.rightChild):E},w=function(E){var A=E.parent;if(!A){if(E===f)return;throw new Error("unknown error")}if(A.color!==u.default.TreeNodeColorType.black&&A.color===u.default.TreeNodeColorType.red){var C=A.brother,B=A.parent;if(!B)throw new Error("unknown error");if(C&&C.color===u.default.TreeNodeColorType.red)C.color=A.color=u.default.TreeNodeColorType.black,B.color=u.default.TreeNodeColorType.red,w(B);else if(!C||C.color===u.default.TreeNodeColorType.black)if(A===B.leftChild)if(E===A.leftChild){A.color=u.default.TreeNodeColorType.black,B.color=u.default.TreeNodeColorType.red;var U=B.rotateRight();B===f&&(f=U)}else E===A.rightChild&&(U=A.rotateLeft(),B===f&&(f=U),w(A));else A===B.rightChild&&(E===A.leftChild?(U=A.rotateRight(),B===f&&(f=U),w(A)):E===A.rightChild&&(A.color=u.default.TreeNodeColorType.black,B.color=u.default.TreeNodeColorType.red,U=B.rotateLeft(),B===f&&(f=U)))}};this.insert=function(E){if(E==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(this.empty())return++c,f.key=E,void(f.color=u.default.TreeNodeColorType.black);var A=y(f,E);A.key!==void 0&&i(A.key,E)===0||(++c,A.key=E,w(A),f.color=u.default.TreeNodeColorType.black)};var F=function(E,A){if(E&&E.key!==void 0){var C=i(A,E.key);return C<0?F(E.leftChild,A):C>0?F(E.rightChild,A):E}};this.find=function(E){var A=F(f,E);return A!==void 0&&A.key!==void 0&&i(A.key,E)===0};var T=function(E,A){if(E&&E.key!==void 0){var C=i(E.key,A);if(C===0)return E.key;if(C<0)return T(E.rightChild,A);var B=T(E.leftChild,A);return B!==void 0?B:E.key}};this.lowerBound=function(E){return T(f,E)};var I=function(E,A){if(E&&E.key!==void 0){if(i(E.key,A)<=0)return I(E.rightChild,A);var C=I(E.leftChild,A);return C!==void 0?C:E.key}};this.upperBound=function(E){return I(f,E)};var D=function(E,A){if(E&&E.key!==void 0){var C=i(E.key,A);if(C===0)return E.key;if(C>0)return D(E.leftChild,A);var B=D(E.rightChild,A);return B!==void 0?B:E.key}};this.reverseLowerBound=function(E){return D(f,E)};var X=function(E,A){if(E&&E.key!==void 0){if(i(E.key,A)>=0)return X(E.leftChild,A);var C=X(E.rightChild,A);return C!==void 0?C:E.key}};this.reverseUpperBound=function(E){return X(f,E)},this.union=function(E){var A=this;E.forEach(function(C){return A.insert(C)})},this.getHeight=function(){if(this.empty())return 0;var E=function(A){return A?Math.max(E(A.leftChild),E(A.rightChild))+1:1};return E(f)};var K=function(E){return o(this,function(A){switch(A.label){case 0:return E&&E.key!==void 0?[5,s(K(E.leftChild))]:[2];case 1:return A.sent(),[4,E.key];case 2:return A.sent(),[5,s(K(E.rightChild))];case 3:return A.sent(),[2]}})};this[Symbol.iterator]=function(){return K(f)},a.forEach(function(E){return d.insert(E)}),Object.freeze(this)}Object.freeze(h),l.default=h},{"../Base/TreeNode":25}],34:[function(r,n,l){function o(s){var u=this;s===void 0&&(s=[]);var h=0,a=[];this.size=function(){return h},this.empty=function(){return h===0},this.clear=function(){h=0,a.length=0},this.push=function(i){a.push(i),++h},this.pop=function(){a.pop(),h>0&&--h},this.top=function(){return a[h-1]},s.forEach(function(i){return u.push(i)}),Object.freeze(this)}Object.defineProperty(l,"__esModule",{value:!0}),Object.freeze(o),l.default=o},{}],35:[function(r,n,l){var o=this&&this.__generator||function(i,d){var c,f,p,v,m={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return v={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function g(x){return function(y){return function(w){if(c)throw new TypeError("Generator is already executing.");for(;m;)try{if(c=1,f&&(p=2&w[0]?f.return:w[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,w[1])).done)return p;switch(f=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return m.label++,{value:w[1],done:!1};case 5:m.label++,f=w[1],w=[0];continue;case 7:w=m.ops.pop(),m.trys.pop();continue;default:if(!(p=(p=m.trys).length>0&&p[p.length-1])&&(w[0]===6||w[0]===2)){m=0;continue}if(w[0]===3&&(!p||w[1]>p[0]&&w[1]<p[3])){m.label=w[1];break}if(w[0]===6&&m.label<p[1]){m.label=p[1],p=w;break}if(p&&m.label<p[2]){m.label=p[2],m.ops.push(w);break}p[2]&&m.ops.pop(),m.trys.pop();continue}w=d.call(i,m)}catch(F){w=[6,F],f=0}finally{c=p=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([x,y])}}},s=this&&this.__read||function(i,d){var c=typeof Symbol=="function"&&i[Symbol.iterator];if(!c)return i;var f,p,v=c.call(i),m=[];try{for(;(d===void 0||d-- >0)&&!(f=v.next()).done;)m.push(f.value)}catch(g){p={error:g}}finally{try{f&&!f.done&&(c=v.return)&&c.call(v)}finally{if(p)throw p.error}}return m},u=this&&this.__spreadArray||function(i,d,c){if(c||arguments.length===2)for(var f,p=0,v=d.length;p<v;p++)!f&&p in d||(f||(f=Array.prototype.slice.call(d,0,p)),f[p]=d[p]);return i.concat(f||Array.prototype.slice.call(d))},h=this&&this.__values||function(i){var d=typeof Symbol=="function"&&Symbol.iterator,c=d&&i[d],f=0;if(c)return c.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&f>=i.length&&(i=void 0),{value:i&&i[f++],done:!i}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};function a(i){var d=this;i===void 0&&(i=[]);var c=0,f=[];this.size=function(){return c},this.empty=function(){return c===0},this.clear=function(){c=0,f.length=0},this.front=function(){if(!this.empty())return f[0]},this.back=function(){if(!this.empty())return f[c-1]},this.forEach=function(p){f.forEach(p)},this.getElementByPos=function(p){if(p<0||p>=c)throw new Error("pos must more than 0 and less than vector's size");return f[p]},this.eraseElementByPos=function(p){if(p<0||p>=c)throw new Error("pos must more than 0 and less than vector's size");for(var v=p;v<c-1;++v)f[v]=f[v+1];this.popBack()},this.eraseElementByValue=function(p){var v=[];this.forEach(function(g){g!==p&&v.push(g)}),v.forEach(function(g,x){f[x]=g});for(var m=v.length;c>m;)this.popBack()},this.pushBack=function(p){f.push(p),++c},this.popBack=function(){f.pop(),c>0&&--c},this.setElementByPos=function(p,v){if(p<0||p>=c)throw new Error("pos must more than 0 and less than vector's size");f[p]=v},this.insert=function(p,v,m){if(m===void 0&&(m=1),p<0||p>c)throw new Error("pos must more than 0 and less than or equal to vector's size");f.splice.apply(f,u([p,0],s(new Array(m).fill(v)),!1)),c+=m},this.find=function(p){return f.includes(p)},this.reverse=function(){f.reverse()},this.unique=function(){var p,v=[];this.forEach(function(g,x){x!==0&&g===p||(v.push(g),p=g)}),v.forEach(function(g,x){f[x]=g});for(var m=v.length;c>m;)this.popBack()},this.sort=function(p){f.sort(p)},this[Symbol.iterator]=function(){return function(){return o(this,function(p){switch(p.label){case 0:return[5,h(f)];case 1:return[2,p.sent()]}})}()},i.forEach(function(p){return d.pushBack(p)}),Object.freeze(this)}Object.defineProperty(l,"__esModule",{value:!0}),Object.freeze(a),l.default=a},{}],36:[function(r,n,l){Object.defineProperty(l,"__esModule",{value:!0}),l.HashMap=l.HashSet=l.Map=l.Set=l.PriorityQueue=l.Deque=l.LinkList=l.Queue=l.Stack=l.Vector=void 0;var o=r("./Vector/Vector");l.Vector=o.default;var s=r("./Stack/Stack");l.Stack=s.default;var u=r("./Queue/Queue");l.Queue=u.default;var h=r("./LinkList/LinkList");l.LinkList=h.default;var a=r("./Deque/Deque");l.Deque=a.default;var i=r("./PriorityQueue/PriorityQueue");l.PriorityQueue=i.default;var d=r("./Set/Set");l.Set=d.default;var c=r("./Map/Map");l.Map=c.default;var f=r("./HashSet/HashSet");l.HashSet=f.default;var p=r("./HashMap/HashMap");l.HashMap=p.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(r,n,l){const o=r("yallist"),s=Symbol("max"),u=Symbol("length"),h=Symbol("lengthCalculator"),a=Symbol("allowStale"),i=Symbol("maxAge"),d=Symbol("dispose"),c=Symbol("noDisposeOnSet"),f=Symbol("lruList"),p=Symbol("cache"),v=Symbol("updateAgeOnGet"),m=()=>1,g=(I,D,X)=>{const K=I[p].get(D);if(K){const E=K.value;if(x(I,E)){if(w(I,K),!I[a])return}else X&&(I[v]&&(K.value.now=Date.now()),I[f].unshiftNode(K));return E.value}},x=(I,D)=>{if(!D||!D.maxAge&&!I[i])return!1;const X=Date.now()-D.now;return D.maxAge?X>D.maxAge:I[i]&&X>I[i]},y=I=>{if(I[u]>I[s])for(let D=I[f].tail;I[u]>I[s]&&D!==null;){const X=D.prev;w(I,D),D=X}},w=(I,D)=>{if(D){const X=D.value;I[d]&&I[d](X.key,X.value),I[u]-=X.length,I[p].delete(X.key),I[f].removeNode(D)}};class F{constructor(D,X,K,E,A){this.key=D,this.value=X,this.length=K,this.now=E,this.maxAge=A||0}}const T=(I,D,X,K)=>{let E=X.value;x(I,E)&&(w(I,X),I[a]||(E=void 0)),E&&D.call(K,E.value,E.key,I)};n.exports=class{constructor(I){if(typeof I=="number"&&(I={max:I}),I||(I={}),I.max&&(typeof I.max!="number"||I.max<0))throw new TypeError("max must be a non-negative number");this[s]=I.max||1/0;const D=I.length||m;if(this[h]=typeof D!="function"?m:D,this[a]=I.stale||!1,I.maxAge&&typeof I.maxAge!="number")throw new TypeError("maxAge must be a number");this[i]=I.maxAge||0,this[d]=I.dispose,this[c]=I.noDisposeOnSet||!1,this[v]=I.updateAgeOnGet||!1,this.reset()}set max(I){if(typeof I!="number"||I<0)throw new TypeError("max must be a non-negative number");this[s]=I||1/0,y(this)}get max(){return this[s]}set allowStale(I){this[a]=!!I}get allowStale(){return this[a]}set maxAge(I){if(typeof I!="number")throw new TypeError("maxAge must be a non-negative number");this[i]=I,y(this)}get maxAge(){return this[i]}set lengthCalculator(I){typeof I!="function"&&(I=m),I!==this[h]&&(this[h]=I,this[u]=0,this[f].forEach(D=>{D.length=this[h](D.value,D.key),this[u]+=D.length})),y(this)}get lengthCalculator(){return this[h]}get length(){return this[u]}get itemCount(){return this[f].length}rforEach(I,D){D=D||this;for(let X=this[f].tail;X!==null;){const K=X.prev;T(this,I,X,D),X=K}}forEach(I,D){D=D||this;for(let X=this[f].head;X!==null;){const K=X.next;T(this,I,X,D),X=K}}keys(){return this[f].toArray().map(I=>I.key)}values(){return this[f].toArray().map(I=>I.value)}reset(){this[d]&&this[f]&&this[f].length&&this[f].forEach(I=>this[d](I.key,I.value)),this[p]=new Map,this[f]=new o,this[u]=0}dump(){return this[f].map(I=>!x(this,I)&&{k:I.key,v:I.value,e:I.now+(I.maxAge||0)}).toArray().filter(I=>I)}dumpLru(){return this[f]}set(I,D,X){if((X=X||this[i])&&typeof X!="number")throw new TypeError("maxAge must be a number");const K=X?Date.now():0,E=this[h](D,I);if(this[p].has(I)){if(E>this[s])return w(this,this[p].get(I)),!1;const C=this[p].get(I).value;return this[d]&&(this[c]||this[d](I,C.value)),C.now=K,C.maxAge=X,C.value=D,this[u]+=E-C.length,C.length=E,this.get(I),y(this),!0}const A=new F(I,D,E,K,X);return A.length>this[s]?(this[d]&&this[d](I,D),!1):(this[u]+=A.length,this[f].unshift(A),this[p].set(I,this[f].head),y(this),!0)}has(I){if(!this[p].has(I))return!1;const D=this[p].get(I).value;return!x(this,D)}get(I){return g(this,I,!0)}peek(I){return g(this,I,!1)}pop(){const I=this[f].tail;return I?(w(this,I),I.value):null}del(I){w(this,this[p].get(I))}load(I){this.reset();const D=Date.now();for(let X=I.length-1;X>=0;X--){const K=I[X],E=K.e||0;if(E===0)this.set(K.k,K.v);else{const A=E-D;A>0&&this.set(K.k,K.v,A)}}}prune(){this[p].forEach((I,D)=>g(this,D,!1))}}},{yallist:83}],38:[function(r,n,l){(function(o){(function(){const s=n.exports;s.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"},s.codes={};for(const h in s.types){const a=s.types[h];s.codes[a]=h}s.CMD_SHIFT=4,s.CMD_MASK=240,s.DUP_MASK=8,s.QOS_MASK=3,s.QOS_SHIFT=1,s.RETAIN_MASK=1,s.VARBYTEINT_MASK=127,s.VARBYTEINT_FIN_MASK=128,s.VARBYTEINT_MAX=268435455,s.SESSIONPRESENT_MASK=1,s.SESSIONPRESENT_HEADER=o.from([s.SESSIONPRESENT_MASK]),s.CONNACK_HEADER=o.from([s.codes.connack<<s.CMD_SHIFT]),s.USERNAME_MASK=128,s.PASSWORD_MASK=64,s.WILL_RETAIN_MASK=32,s.WILL_QOS_MASK=24,s.WILL_QOS_SHIFT=3,s.WILL_FLAG_MASK=4,s.CLEAN_SESSION_MASK=2,s.CONNECT_HEADER=o.from([s.codes.connect<<s.CMD_SHIFT]),s.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},s.propertiesCodes={};for(const h in s.properties){const a=s.properties[h];s.propertiesCodes[a]=h}function u(h){return[0,1,2].map(a=>[0,1].map(i=>[0,1].map(d=>{const c=o.alloc(1);return c.writeUInt8(s.codes[h]<<s.CMD_SHIFT|(i?s.DUP_MASK:0)|a<<s.QOS_SHIFT|d,0,!0),c})))}s.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"},s.PUBLISH_HEADER=u("publish"),s.SUBSCRIBE_HEADER=u("subscribe"),s.SUBSCRIBE_OPTIONS_QOS_MASK=3,s.SUBSCRIBE_OPTIONS_NL_MASK=1,s.SUBSCRIBE_OPTIONS_NL_SHIFT=2,s.SUBSCRIBE_OPTIONS_RAP_MASK=1,s.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,s.SUBSCRIBE_OPTIONS_RH_MASK=3,s.SUBSCRIBE_OPTIONS_RH_SHIFT=4,s.SUBSCRIBE_OPTIONS_RH=[0,16,32],s.SUBSCRIBE_OPTIONS_NL=4,s.SUBSCRIBE_OPTIONS_RAP=8,s.SUBSCRIBE_OPTIONS_QOS=[0,1,2],s.UNSUBSCRIBE_HEADER=u("unsubscribe"),s.ACKS={unsuback:u("unsuback"),puback:u("puback"),pubcomp:u("pubcomp"),pubrel:u("pubrel"),pubrec:u("pubrec")},s.SUBACK_HEADER=o.from([s.codes.suback<<s.CMD_SHIFT]),s.VERSION3=o.from([3]),s.VERSION4=o.from([4]),s.VERSION5=o.from([5]),s.VERSION131=o.from([131]),s.VERSION132=o.from([132]),s.QOS=[0,1,2].map(h=>o.from([h])),s.EMPTY={pingreq:o.from([s.codes.pingreq<<4,0]),pingresp:o.from([s.codes.pingresp<<4,0]),disconnect:o.from([s.codes.disconnect<<4,0])}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:17}],39:[function(r,n,l){(function(o){(function(){const s=r("./writeToStream"),u=r("events");class h extends u{constructor(){super(),this._array=new Array(20),this._i=0}write(i){return this._array[this._i++]=i,!0}concat(){let i=0;const d=new Array(this._array.length),c=this._array;let f,p=0;for(f=0;f<c.length&&c[f]!==void 0;f++)typeof c[f]!="string"?d[f]=c[f].length:d[f]=o.byteLength(c[f]),i+=d[f];const v=o.allocUnsafe(i);for(f=0;f<c.length&&c[f]!==void 0;f++)typeof c[f]!="string"?(c[f].copy(v,p),p+=d[f]):(v.write(c[f],p),p+=d[f]);return v}}n.exports=function(a,i){const d=new h;return s(a,d,i),d.concat()}}).call(this)}).call(this,r("buffer").Buffer)},{"./writeToStream":44,buffer:17,events:22}],40:[function(r,n,l){l.parser=r("./parser").parser,l.generate=r("./generate"),l.writeToStream=r("./writeToStream")},{"./generate":39,"./parser":43,"./writeToStream":44}],41:[function(r,n,l){(function(o){(function(){const u={},h=o.isBuffer(o.from([1,2]).subarray(0,1));function a(i){const d=o.allocUnsafe(2);return d.writeUInt8(i>>8,0),d.writeUInt8(255&i,1),d}n.exports={cache:u,generateCache:function(){for(let i=0;i<65536;i++)u[i]=a(i)},generateNumber:a,genBufVariableByteInt:function(i){let d=0,c=0;const f=o.allocUnsafe(4);do d=i%128|0,(i=i/128|0)>0&&(d|=128),f.writeUInt8(d,c++);while(i>0&&c<4);return i>0&&(c=0),h?f.subarray(0,c):f.slice(0,c)},generate4ByteBuffer:function(i){const d=o.allocUnsafe(4);return d.writeUInt32BE(i,0),d}}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:17}],42:[function(r,n,l){n.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(r,n,l){const o=r("bl"),s=r("events"),u=r("./packet"),h=r("./constants"),a=r("debug")("mqtt-packet:parser");class i extends s{constructor(){super(),this.parser=this.constructor.parser}static parser(c){return this instanceof i?(this.settings=c||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new i().parser(c)}_resetState(){a("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new u,this.error=null,this._list=o(),this._stateCounter=0}parse(c){for(this.error&&this._resetState(),this._list.append(c),a("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++,a("parse: state complete. _stateCounter is now: %d",this._stateCounter),a("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return a("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const c=this._list.readUInt8(0);return this.packet.cmd=h.types[c>>h.CMD_SHIFT],this.packet.retain=(c&h.RETAIN_MASK)!=0,this.packet.qos=c>>h.QOS_SHIFT&h.QOS_MASK,this.packet.dup=(c&h.DUP_MASK)!=0,a("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0}_parseLength(){const c=this._parseVarByteNum(!0);return c&&(this.packet.length=c.value,this._list.consume(c.bytes)),a("_parseLength %d",c.value),!!c}_parsePayload(){a("_parsePayload: payload %O",this._list);let c=!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"))}c=!0}return a("_parsePayload complete result: %s",c),c}_parseConnect(){let c,f,p,v;a("_parseConnect");const m={},g=this.packet,x=this._parseString();if(x===null)return this._emitError(new Error("Cannot parse protocolId"));if(x!=="MQTT"&&x!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(g.protocolId=x,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(g.protocolVersion=this._list.readUInt8(this._pos),g.protocolVersion>=128&&(g.bridgeMode=!0,g.protocolVersion=g.protocolVersion-128),g.protocolVersion!==3&&g.protocolVersion!==4&&g.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(m.username=this._list.readUInt8(this._pos)&h.USERNAME_MASK,m.password=this._list.readUInt8(this._pos)&h.PASSWORD_MASK,m.will=this._list.readUInt8(this._pos)&h.WILL_FLAG_MASK,m.will&&(g.will={},g.will.retain=(this._list.readUInt8(this._pos)&h.WILL_RETAIN_MASK)!=0,g.will.qos=(this._list.readUInt8(this._pos)&h.WILL_QOS_MASK)>>h.WILL_QOS_SHIFT),g.clean=(this._list.readUInt8(this._pos)&h.CLEAN_SESSION_MASK)!=0,this._pos++,g.keepalive=this._parseNum(),g.keepalive===-1)return this._emitError(new Error("Packet too short"));if(g.protocolVersion===5){const w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(g.properties=w)}const y=this._parseString();if(y===null)return this._emitError(new Error("Packet too short"));if(g.clientId=y,a("_parseConnect: packet.clientId: %s",g.clientId),m.will){if(g.protocolVersion===5){const w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(g.will.properties=w)}if((c=this._parseString())===null)return this._emitError(new Error("Cannot parse will topic"));if(g.will.topic=c,a("_parseConnect: packet.will.topic: %s",g.will.topic),(f=this._parseBuffer())===null)return this._emitError(new Error("Cannot parse will payload"));g.will.payload=f,a("_parseConnect: packet.will.paylaod: %s",g.will.payload)}if(m.username){if((v=this._parseString())===null)return this._emitError(new Error("Cannot parse username"));g.username=v,a("_parseConnect: packet.username: %s",g.username)}if(m.password){if((p=this._parseBuffer())===null)return this._emitError(new Error("Cannot parse password"));g.password=p}return this.settings=g,a("_parseConnect: complete"),g}_parseConnack(){a("_parseConnack");const c=this.packet;if(this._list.length<1)return null;if(c.sessionPresent=!!(this._list.readUInt8(this._pos++)&h.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?c.reasonCode=this._list.readUInt8(this._pos++):c.reasonCode=0;else{if(this._list.length<2)return null;c.returnCode=this._list.readUInt8(this._pos++)}if(c.returnCode===-1||c.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}a("_parseConnack: complete")}_parsePublish(){a("_parsePublish");const c=this.packet;if(c.topic=this._parseString(),c.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(c.qos>0)||this._parseMessageId()){if(this.settings.protocolVersion===5){const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}c.payload=this._list.slice(this._pos,c.length),a("_parsePublish: payload from buffer list: %o",c.payload)}}_parseSubscribe(){a("_parseSubscribe");const c=this.packet;let f,p,v,m,g,x,y;if(c.qos!==1)return this._emitError(new Error("Wrong subscribe header"));if(c.subscriptions=[],this._parseMessageId()){if(this.settings.protocolVersion===5){const w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(c.properties=w)}for(;this._pos<c.length;){if((f=this._parseString())===null)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=c.length)return this._emitError(new Error("Malformed Subscribe Payload"));v=(p=this._parseByte())&h.SUBSCRIBE_OPTIONS_QOS_MASK,x=(p>>h.SUBSCRIBE_OPTIONS_NL_SHIFT&h.SUBSCRIBE_OPTIONS_NL_MASK)!=0,g=(p>>h.SUBSCRIBE_OPTIONS_RAP_SHIFT&h.SUBSCRIBE_OPTIONS_RAP_MASK)!=0,m=p>>h.SUBSCRIBE_OPTIONS_RH_SHIFT&h.SUBSCRIBE_OPTIONS_RH_MASK,y={topic:f,qos:v},this.settings.protocolVersion===5?(y.nl=x,y.rap=g,y.rh=m):this.settings.bridgeMode&&(y.rh=0,y.rap=!0,y.nl=!0),a("_parseSubscribe: push subscription `%s` to subscription",y),c.subscriptions.push(y)}}}_parseSuback(){a("_parseSuback");const c=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(this.settings.protocolVersion===5){const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}for(;this._pos<this.packet.length;)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseUnsubscribe(){a("_parseUnsubscribe");const c=this.packet;if(c.unsubscriptions=[],this._parseMessageId()){if(this.settings.protocolVersion===5){const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}for(;this._pos<c.length;){const f=this._parseString();if(f===null)return this._emitError(new Error("Cannot parse topic"));a("_parseUnsubscribe: push topic `%s` to unsubscriptions",f),c.unsubscriptions.push(f)}}}_parseUnsuback(){a("_parseUnsuback");const c=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if(this.settings.protocolVersion===5){const f=this._parseProperties();for(Object.getOwnPropertyNames(f).length&&(c.properties=f),c.granted=[];this._pos<this.packet.length;)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseConfirmation(){a("_parseConfirmation: packet.cmd: `%s`",this.packet.cmd);const c=this.packet;if(this._parseMessageId(),this.settings.protocolVersion===5&&(c.length>2?(c.reasonCode=this._parseByte(),a("_parseConfirmation: packet.reasonCode `%d`",c.reasonCode)):c.reasonCode=0,c.length>3)){const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}return!0}_parseDisconnect(){const c=this.packet;if(a("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?c.reasonCode=this._parseByte():c.reasonCode=0;const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}return a("_parseDisconnect result: true"),!0}_parseAuth(){a("_parseAuth");const c=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));c.reasonCode=this._parseByte();const f=this._parseProperties();return Object.getOwnPropertyNames(f).length&&(c.properties=f),a("_parseAuth: result: true"),!0}_parseMessageId(){const c=this.packet;return c.messageId=this._parseNum(),c.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(a("_parseMessageId: packet.messageId %d",c.messageId),!0)}_parseString(c){const f=this._parseNum(),p=f+this._pos;if(f===-1||p>this._list.length||p>this.packet.length)return null;const v=this._list.toString("utf8",this._pos,p);return this._pos+=f,a("_parseString: result: %s",v),v}_parseStringPair(){return a("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const c=this._parseNum(),f=c+this._pos;if(c===-1||f>this._list.length||f>this.packet.length)return null;const p=this._list.slice(this._pos,f);return this._pos+=c,a("_parseBuffer: result: %o",p),p}_parseNum(){if(this._list.length-this._pos<2)return-1;const c=this._list.readUInt16BE(this._pos);return this._pos+=2,a("_parseNum: result: %s",c),c}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const c=this._list.readUInt32BE(this._pos);return this._pos+=4,a("_parse4ByteNum: result: %s",c),c}_parseVarByteNum(c){a("_parseVarByteNum");let f,p=0,v=1,m=0,g=!1;const x=this._pos?this._pos:0;for(;p<4&&x+p<this._list.length;){if(m+=v*((f=this._list.readUInt8(x+p++))&h.VARBYTEINT_MASK),v*=128,(f&h.VARBYTEINT_FIN_MASK)==0){g=!0;break}if(this._list.length<=p)break}return!g&&p===4&&this._list.length>=p&&this._emitError(new Error("Invalid variable byte integer")),x&&(this._pos+=p),a("_parseVarByteNum: result: %o",g=!!g&&(c?{bytes:p,value:m}:m)),g}_parseByte(){let c;return this._pos<this._list.length&&(c=this._list.readUInt8(this._pos),this._pos++),a("_parseByte: result: %o",c),c}_parseByType(c){switch(a("_parseByType: type: %s",c),c){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(){a("_parseProperties");const c=this._parseVarByteNum(),f=this._pos+c,p={};for(;this._pos<f;){const v=this._parseByte();if(!v)return this._emitError(new Error("Cannot parse property code type")),!1;const m=h.propertiesCodes[v];if(!m)return this._emitError(new Error("Unknown property")),!1;if(m!=="userProperties")p[m]?Array.isArray(p[m])?p[m].push(this._parseByType(h.propertiesTypes[m])):(p[m]=[p[m]],p[m].push(this._parseByType(h.propertiesTypes[m]))):p[m]=this._parseByType(h.propertiesTypes[m]);else{p[m]||(p[m]=Object.create(null));const g=this._parseByType(h.propertiesTypes[m]);if(p[m][g.name])if(Array.isArray(p[m][g.name]))p[m][g.name].push(g.value);else{const x=p[m][g.name];p[m][g.name]=[x],p[m][g.name].push(g.value)}else p[m][g.name]=g.value}}return p}_newPacket(){return a("_newPacket"),this.packet&&(this._list.consume(this.packet.length),a("_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)),a("_newPacket: new packet"),this.packet=new u,this._pos=0,!0}_emitError(c){a("_emitError"),this.error=c,this.emit("error",c)}}n.exports=i},{"./constants":38,"./packet":42,bl:15,debug:18,events:22}],44:[function(r,n,l){(function(o){(function(){const s=r("./constants"),u=o.allocUnsafe(0),h=o.from([0]),a=r("./numbers"),i=r("process-nextick-args").nextTick,d=r("debug")("mqtt-packet:writeToStream"),c=a.cache,f=a.generateNumber,p=a.generateCache,v=a.genBufVariableByteInt,m=a.generate4ByteBuffer;let g=X,x=!0;function y($,N,V){switch(d("generate called"),N.cork&&(N.cork(),i(w,N)),x&&(x=!1,p()),d("generate: packet.cmd: %s",$.cmd),$.cmd){case"connect":return function(M,O,H){const W=M||{},ee=W.protocolId||"MQTT";let oe=W.protocolVersion||4;const ie=W.will;let ae=W.clean;const b=W.keepalive||0,_=W.clientId||"",R=W.username,G=W.password,J=W.properties;ae===void 0&&(ae=!0);let te=0;if(typeof ee!="string"&&!o.isBuffer(ee))return O.emit("error",new Error("Invalid protocolId")),!1;if(te+=ee.length+2,oe!==3&&oe!==4&&oe!==5)return O.emit("error",new Error("Invalid protocol version")),!1;if(te+=1,(typeof _=="string"||o.isBuffer(_))&&(_||oe>=4)&&(_||ae))te+=o.byteLength(_)+2;else{if(oe<4)return O.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(1*ae==0)return O.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof b!="number"||b<0||b>65535||b%1!=0)return O.emit("error",new Error("Invalid keepalive")),!1;if(te+=2,te+=1,oe===5){var se=A(O,J);if(!se)return!1;te+=se.length}if(ie){if(typeof ie!="object")return O.emit("error",new Error("Invalid will")),!1;if(!ie.topic||typeof ie.topic!="string")return O.emit("error",new Error("Invalid will topic")),!1;if(te+=o.byteLength(ie.topic)+2,te+=2,ie.payload){if(!(ie.payload.length>=0))return O.emit("error",new Error("Invalid will payload")),!1;typeof ie.payload=="string"?te+=o.byteLength(ie.payload):te+=ie.payload.length}var j={};if(oe===5){if(!(j=A(O,ie.properties)))return!1;te+=j.length}}let S=!1;if(R!=null){if(!Z(R))return O.emit("error",new Error("Invalid username")),!1;S=!0,te+=o.byteLength(R)+2}if(G!=null){if(!S)return O.emit("error",new Error("Username is required to use password")),!1;if(!Z(G))return O.emit("error",new Error("Invalid password")),!1;te+=q(G)+2}O.write(s.CONNECT_HEADER),T(O,te),E(O,ee),W.bridgeMode&&(oe+=128),O.write(oe===131?s.VERSION131:oe===132?s.VERSION132:oe===4?s.VERSION4:oe===5?s.VERSION5:s.VERSION3);let k=0;return k|=R!=null?s.USERNAME_MASK:0,k|=G!=null?s.PASSWORD_MASK:0,k|=ie&&ie.retain?s.WILL_RETAIN_MASK:0,k|=ie&&ie.qos?ie.qos<<s.WILL_QOS_SHIFT:0,k|=ie?s.WILL_FLAG_MASK:0,k|=ae?s.CLEAN_SESSION_MASK:0,O.write(o.from([k])),g(O,b),oe===5&&se.write(),E(O,_),ie&&(oe===5&&j.write(),I(O,ie.topic),E(O,ie.payload)),R!=null&&E(O,R),G!=null&&E(O,G),!0}($,N);case"connack":return function(M,O,H){const W=H?H.protocolVersion:4,ee=M||{},oe=W===5?ee.reasonCode:ee.returnCode,ie=ee.properties;let ae=2;if(typeof oe!="number")return O.emit("error",new Error("Invalid return code")),!1;let b=null;if(W===5){if(!(b=A(O,ie)))return!1;ae+=b.length}return O.write(s.CONNACK_HEADER),T(O,ae),O.write(ee.sessionPresent?s.SESSIONPRESENT_HEADER:h),O.write(o.from([oe])),b!=null&&b.write(),!0}($,N,V);case"publish":return function(M,O,H){d("publish: packet: %o",M);const W=H?H.protocolVersion:4,ee=M||{},oe=ee.qos||0,ie=ee.retain?s.RETAIN_MASK:0,ae=ee.topic,b=ee.payload||u,_=ee.messageId,R=ee.properties;let G=0;if(typeof ae=="string")G+=o.byteLength(ae)+2;else{if(!o.isBuffer(ae))return O.emit("error",new Error("Invalid topic")),!1;G+=ae.length+2}if(o.isBuffer(b)?G+=b.length:G+=o.byteLength(b),oe&&typeof _!="number")return O.emit("error",new Error("Invalid messageId")),!1;oe&&(G+=2);let J=null;if(W===5){if(!(J=A(O,R)))return!1;G+=J.length}return O.write(s.PUBLISH_HEADER[oe][ee.dup?1:0][ie?1:0]),T(O,G),g(O,q(ae)),O.write(ae),oe>0&&g(O,_),J!=null&&J.write(),d("publish: payload: %o",b),O.write(b)}($,N,V);case"puback":case"pubrec":case"pubrel":case"pubcomp":return function(M,O,H){const W=H?H.protocolVersion:4,ee=M||{},oe=ee.cmd||"puback",ie=ee.messageId,ae=ee.dup&&oe==="pubrel"?s.DUP_MASK:0;let b=0;const _=ee.reasonCode,R=ee.properties;let G=W===5?3:2;if(oe==="pubrel"&&(b=1),typeof ie!="number")return O.emit("error",new Error("Invalid messageId")),!1;let J=null;if(W===5&&typeof R=="object"){if(!(J=C(O,R,H,G)))return!1;G+=J.length}return O.write(s.ACKS[oe][b][ae][0]),T(O,G),g(O,ie),W===5&&O.write(o.from([_])),J!==null&&J.write(),!0}($,N,V);case"subscribe":return function(M,O,H){d("subscribe: packet: ");const W=H?H.protocolVersion:4,ee=M||{},oe=ee.dup?s.DUP_MASK:0,ie=ee.messageId,ae=ee.subscriptions,b=ee.properties;let _=0;if(typeof ie!="number")return O.emit("error",new Error("Invalid messageId")),!1;_+=2;let R=null;if(W===5){if(!(R=A(O,b)))return!1;_+=R.length}if(typeof ae!="object"||!ae.length)return O.emit("error",new Error("Invalid subscriptions")),!1;for(let J=0;J<ae.length;J+=1){const te=ae[J].topic,se=ae[J].qos;if(typeof te!="string")return O.emit("error",new Error("Invalid subscriptions - invalid topic")),!1;if(typeof se!="number")return O.emit("error",new Error("Invalid subscriptions - invalid qos")),!1;if(W===5){if(typeof(ae[J].nl||!1)!="boolean")return O.emit("error",new Error("Invalid subscriptions - invalid No Local")),!1;if(typeof(ae[J].rap||!1)!="boolean")return O.emit("error",new Error("Invalid subscriptions - invalid Retain as Published")),!1;const k=ae[J].rh||0;if(typeof k!="number"||k>2)return O.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}_+=o.byteLength(te)+2+1}d("subscribe: writing to stream: %o",s.SUBSCRIBE_HEADER),O.write(s.SUBSCRIBE_HEADER[1][oe?1:0][0]),T(O,_),g(O,ie),R!==null&&R.write();let G=!0;for(const J of ae){const te=J.topic,se=J.qos,j=+J.nl,S=+J.rap,k=J.rh;let Y;I(O,te),Y=s.SUBSCRIBE_OPTIONS_QOS[se],W===5&&(Y|=j?s.SUBSCRIBE_OPTIONS_NL:0,Y|=S?s.SUBSCRIBE_OPTIONS_RAP:0,Y|=k?s.SUBSCRIBE_OPTIONS_RH[k]:0),G=O.write(o.from([Y]))}return G}($,N,V);case"suback":return function(M,O,H){const W=H?H.protocolVersion:4,ee=M||{},oe=ee.messageId,ie=ee.granted,ae=ee.properties;let b=0;if(typeof oe!="number")return O.emit("error",new Error("Invalid messageId")),!1;if(b+=2,typeof ie!="object"||!ie.length)return O.emit("error",new Error("Invalid qos vector")),!1;for(let R=0;R<ie.length;R+=1){if(typeof ie[R]!="number")return O.emit("error",new Error("Invalid qos vector")),!1;b+=1}let _=null;if(W===5){if(!(_=C(O,ae,H,b)))return!1;b+=_.length}return O.write(s.SUBACK_HEADER),T(O,b),g(O,oe),_!==null&&_.write(),O.write(o.from(ie))}($,N,V);case"unsubscribe":return function(M,O,H){const W=H?H.protocolVersion:4,ee=M||{},oe=ee.messageId,ie=ee.dup?s.DUP_MASK:0,ae=ee.unsubscriptions,b=ee.properties;let _=0;if(typeof oe!="number")return O.emit("error",new Error("Invalid messageId")),!1;if(_+=2,typeof ae!="object"||!ae.length)return O.emit("error",new Error("Invalid unsubscriptions")),!1;for(let J=0;J<ae.length;J+=1){if(typeof ae[J]!="string")return O.emit("error",new Error("Invalid unsubscriptions")),!1;_+=o.byteLength(ae[J])+2}let R=null;if(W===5){if(!(R=A(O,b)))return!1;_+=R.length}O.write(s.UNSUBSCRIBE_HEADER[1][ie?1:0][0]),T(O,_),g(O,oe),R!==null&&R.write();let G=!0;for(let J=0;J<ae.length;J++)G=I(O,ae[J]);return G}($,N,V);case"unsuback":return function(M,O,H){const W=H?H.protocolVersion:4,ee=M||{},oe=ee.messageId,ie=ee.dup?s.DUP_MASK:0,ae=ee.granted,b=ee.properties,_=ee.cmd;let R=2;if(typeof oe!="number")return O.emit("error",new Error("Invalid messageId")),!1;if(W===5){if(typeof ae!="object"||!ae.length)return O.emit("error",new Error("Invalid qos vector")),!1;for(let J=0;J<ae.length;J+=1){if(typeof ae[J]!="number")return O.emit("error",new Error("Invalid qos vector")),!1;R+=1}}let G=null;if(W===5){if(!(G=C(O,b,H,R)))return!1;R+=G.length}return O.write(s.ACKS[_][0][ie][0]),T(O,R),g(O,oe),G!==null&&G.write(),W===5&&O.write(o.from(ae)),!0}($,N,V);case"pingreq":case"pingresp":return function(M,O,H){return O.write(s.EMPTY[M.cmd])}($,N);case"disconnect":return function(M,O,H){const W=H?H.protocolVersion:4,ee=M||{},oe=ee.reasonCode,ie=ee.properties;let ae=W===5?1:0,b=null;if(W===5){if(!(b=C(O,ie,H,ae)))return!1;ae+=b.length}return O.write(o.from([s.codes.disconnect<<4])),T(O,ae),W===5&&O.write(o.from([oe])),b!==null&&b.write(),!0}($,N,V);case"auth":return function(M,O,H){const W=H?H.protocolVersion:4,ee=M||{},oe=ee.reasonCode,ie=ee.properties;let ae=W===5?1:0;W!==5&&O.emit("error",new Error("Invalid mqtt version for auth packet"));const b=C(O,ie,H,ae);return b?(ae+=b.length,O.write(o.from([s.codes.auth<<4])),T(O,ae),O.write(o.from([oe])),b!==null&&b.write(),!0):!1}($,N,V);default:return N.emit("error",new Error("Unknown command")),!1}}function w($){$.uncork()}Object.defineProperty(y,"cacheNumbers",{get:()=>g===X,set($){$?(c&&Object.keys(c).length!==0||(x=!0),g=X):(x=!1,g=K)}});const F={};function T($,N){if(N>s.VARBYTEINT_MAX)return $.emit("error",new Error(`Invalid variable byte integer: ${N}`)),!1;let V=F[N];return V||(V=v(N),N<16384&&(F[N]=V)),d("writeVarByteInt: writing to stream: %o",V),$.write(V)}function I($,N){const V=o.byteLength(N);return g($,V),d("writeString: %s",N),$.write(N,"utf8")}function D($,N,V){I($,N),I($,V)}function X($,N){return d("writeNumberCached: number: %d",N),d("writeNumberCached: %o",c[N]),$.write(c[N])}function K($,N){const V=f(N);return d("writeNumberGenerated: %o",V),$.write(V)}function E($,N){typeof N=="string"?I($,N):N?(g($,N.length),$.write(N)):g($,0)}function A($,N){if(typeof N!="object"||N.length!=null)return{length:1,write(){U($,{},0)}};let V=0;function M(O,H){let W=0;switch(s.propertiesTypes[O]){case"byte":if(typeof H!="boolean")return $.emit("error",new Error(`Invalid ${O}: ${H}`)),!1;W+=2;break;case"int8":if(typeof H!="number"||H<0||H>255)return $.emit("error",new Error(`Invalid ${O}: ${H}`)),!1;W+=2;break;case"binary":if(H&&H===null)return $.emit("error",new Error(`Invalid ${O}: ${H}`)),!1;W+=1+o.byteLength(H)+2;break;case"int16":if(typeof H!="number"||H<0||H>65535)return $.emit("error",new Error(`Invalid ${O}: ${H}`)),!1;W+=3;break;case"int32":if(typeof H!="number"||H<0||H>4294967295)return $.emit("error",new Error(`Invalid ${O}: ${H}`)),!1;W+=5;break;case"var":if(typeof H!="number"||H<0||H>268435455)return $.emit("error",new Error(`Invalid ${O}: ${H}`)),!1;W+=1+o.byteLength(v(H));break;case"string":if(typeof H!="string")return $.emit("error",new Error(`Invalid ${O}: ${H}`)),!1;W+=3+o.byteLength(H.toString());break;case"pair":if(typeof H!="object")return $.emit("error",new Error(`Invalid ${O}: ${H}`)),!1;W+=Object.getOwnPropertyNames(H).reduce((ee,oe)=>{const ie=H[oe];return Array.isArray(ie)?ee+=ie.reduce((ae,b)=>ae+=3+o.byteLength(oe.toString())+2+o.byteLength(b.toString()),0):ee+=3+o.byteLength(oe.toString())+2+o.byteLength(H[oe].toString()),ee},0);break;default:return $.emit("error",new Error(`Invalid property ${O}: ${H}`)),!1}return W}if(N)for(const O in N){let H=0,W=0;const ee=N[O];if(Array.isArray(ee))for(let oe=0;oe<ee.length;oe++){if(!(W=M(O,ee[oe])))return!1;H+=W}else{if(!(W=M(O,ee)))return!1;H=W}if(!H)return!1;V+=H}return{length:o.byteLength(v(V))+V,write(){U($,N,V)}}}function C($,N,V,M){const O=["reasonString","userProperties"],H=V&&V.properties&&V.properties.maximumPacketSize?V.properties.maximumPacketSize:0;let W=A($,N);if(H)for(;M+W.length>H;){const ee=O.shift();if(!ee||!N[ee])return!1;delete N[ee],W=A($,N)}return W}function B($,N,V){switch(s.propertiesTypes[N]){case"byte":$.write(o.from([s.properties[N]])),$.write(o.from([+V]));break;case"int8":$.write(o.from([s.properties[N]])),$.write(o.from([V]));break;case"binary":$.write(o.from([s.properties[N]])),E($,V);break;case"int16":$.write(o.from([s.properties[N]])),g($,V);break;case"int32":$.write(o.from([s.properties[N]])),function(M,O){const H=m(O);d("write4ByteNumber: %o",H),M.write(H)}($,V);break;case"var":$.write(o.from([s.properties[N]])),T($,V);break;case"string":$.write(o.from([s.properties[N]])),I($,V);break;case"pair":Object.getOwnPropertyNames(V).forEach(M=>{const O=V[M];Array.isArray(O)?O.forEach(H=>{$.write(o.from([s.properties[N]])),D($,M.toString(),H.toString())}):($.write(o.from([s.properties[N]])),D($,M.toString(),O.toString()))});break;default:return $.emit("error",new Error(`Invalid property ${N} value: ${V}`)),!1}}function U($,N,V){T($,V);for(const M in N)if(Object.prototype.hasOwnProperty.call(N,M)&&N[M]!==null){const O=N[M];if(Array.isArray(O))for(let H=0;H<O.length;H++)B($,M,O[H]);else B($,M,O)}}function q($){return $?$ instanceof o?$.length:o.byteLength($):0}function Z($){return typeof $=="string"||$ instanceof o}n.exports=y}).call(this)}).call(this,r("buffer").Buffer)},{"./constants":38,"./numbers":41,buffer:17,debug:18,"process-nextick-args":49}],45:[function(r,n,l){var o=1e3,s=60*o,u=60*s,h=24*u,a=7*h,i=365.25*h;function d(c,f,p,v){var m=f>=1.5*p;return Math.round(c/p)+" "+v+(m?"s":"")}n.exports=function(c,f){f=f||{};var p=typeof c;if(p==="string"&&c.length>0)return function(v){if(!((v=String(v)).length>100)){var m=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(v);if(m){var g=parseFloat(m[1]);switch((m[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return g*i;case"weeks":case"week":case"w":return g*a;case"days":case"day":case"d":return g*h;case"hours":case"hour":case"hrs":case"hr":case"h":return g*u;case"minutes":case"minute":case"mins":case"min":case"m":return g*s;case"seconds":case"second":case"secs":case"sec":case"s":return g*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g;default:return}}}}(c);if(p==="number"&&isFinite(c))return f.long?function(v){var m=Math.abs(v);return m>=h?d(v,m,h,"day"):m>=u?d(v,m,u,"hour"):m>=s?d(v,m,s,"minute"):m>=o?d(v,m,o,"second"):v+" ms"}(c):function(v){var m=Math.abs(v);return m>=h?Math.round(v/h)+"d":m>=u?Math.round(v/u)+"h":m>=s?Math.round(v/s)+"m":m>=o?Math.round(v/o)+"s":v+"ms"}(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}},{}],46:[function(r,n,l){const o=r("./lib/number-allocator.js");n.exports.NumberAllocator=o},{"./lib/number-allocator.js":47}],47:[function(r,n,l){const o=r("js-sdsl").Set,s=r("debug")("number-allocator:trace"),u=r("debug")("number-allocator:error");function h(i,d){this.low=i,this.high=d}function a(i,d){if(!(this instanceof a))return new a(i,d);this.min=i,this.max=d,this.ss=new o([],(c,f)=>c.compare(f)),s("Create"),this.clear()}h.prototype.equals=function(i){return this.low===i.low&&this.high===i.high},h.prototype.compare=function(i){return this.low<i.low&&this.high<i.low?-1:i.low<this.low&&i.high<this.low?1:0},a.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},a.prototype.alloc=function(){if(this.ss.size()===0)return s("alloc():empty"),null;const i=this.ss.front(),d=i.low;return d+1<=i.high?++i.low:this.ss.eraseElementByPos(0),s("alloc():"+d),d},a.prototype.use=function(i){const d=new h(i,i),c=this.ss.lowerBound(d);if(c){if(c.equals(d))return this.ss.eraseElementByValue(c),s("use():"+i),!0;if(c.low>i)return!1;if(c.low===i)return++c.low,s("use():"+i),!0;if(c.high===i)return--c.high,s("use():"+i),!0;const f=c.low;return c.low=i+1,this.ss.insert(new h(f,i-1)),s("use():"+i),!0}return s("use():failed"),!1},a.prototype.free=function(i){if(i<this.min||i>this.max)return void u("free():"+i+" is out of range");const d=new h(i,i),c=this.ss.lowerBound(d);if(c){if(c.low<=i&&i<=c.high)return void u("free():"+i+" has already been vacant");if(c===this.ss.front())i+1===c.low?--c.low:this.ss.insert(d);else{const f=this.ss.reverseLowerBound(d);f.high+1===i?i+1===c.low?(this.ss.eraseElementByValue(f),c.low=f.low):f.high=i:i+1===c.low?c.low=i:this.ss.insert(d)}}else{if(c===this.ss.front())return void this.ss.insert(d);const f=this.ss.reverseLowerBound(d);f.high+1===i?f.high=i:this.ss.insert(d)}s("free():"+i)},a.prototype.clear=function(){s("clear()"),this.ss.clear(),this.ss.insert(new h(this.min,this.max))},a.prototype.intervalCount=function(){return this.ss.size()},a.prototype.dump=function(){console.log("length:"+this.ss.size());for(const i of this.ss)console.log(i)},n.exports=a},{debug:18,"js-sdsl":36}],48:[function(r,n,l){var o=r("wrappy");function s(h){var a=function(){return a.called?a.value:(a.called=!0,a.value=h.apply(this,arguments))};return a.called=!1,a}function u(h){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=h.apply(this,arguments)},i=h.name||"Function wrapped with `once`";return a.onceError=i+" shouldn't be called more than once",a.called=!1,a}n.exports=o(s),n.exports.strict=o(u),s.proto=s(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return s(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return u(this)},configurable:!0})})},{wrappy:79}],49:[function(r,n,l){(function(o){(function(){o===void 0||!o.version||o.version.indexOf("v0.")===0||o.version.indexOf("v1.")===0&&o.version.indexOf("v1.8.")!==0?n.exports={nextTick:function(s,u,h,a){if(typeof s!="function")throw new TypeError('"callback" argument must be a function');var i,d,c=arguments.length;switch(c){case 0:case 1:return o.nextTick(s);case 2:return o.nextTick(function(){s.call(null,u)});case 3:return o.nextTick(function(){s.call(null,u,h)});case 4:return o.nextTick(function(){s.call(null,u,h,a)});default:for(i=new Array(c-1),d=0;d<i.length;)i[d++]=arguments[d];return o.nextTick(function(){s.apply(null,i)})}}}:n.exports=o}).call(this)}).call(this,r("_process"))},{_process:50}],50:[function(r,n,l){var o,s,u=n.exports={};function h(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(y){if(o===setTimeout)return setTimeout(y,0);if((o===h||!o)&&setTimeout)return o=setTimeout,setTimeout(y,0);try{return o(y,0)}catch(w){try{return o.call(null,y,0)}catch(F){return o.call(this,y,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:h}catch(y){o=h}try{s=typeof clearTimeout=="function"?clearTimeout:a}catch(y){s=a}})();var d,c=[],f=!1,p=-1;function v(){f&&d&&(f=!1,d.length?c=d.concat(c):p=-1,c.length&&m())}function m(){if(!f){var y=i(v);f=!0;for(var w=c.length;w;){for(d=c,c=[];++p<w;)d&&d[p].run();p=-1,w=c.length}d=null,f=!1,function(F){if(s===clearTimeout)return clearTimeout(F);if((s===a||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(F);try{s(F)}catch(T){try{return s.call(null,F)}catch(I){return s.call(this,F)}}}(y)}}function g(y,w){this.fun=y,this.array=w}function x(){}u.nextTick=function(y){var w=new Array(arguments.length-1);if(arguments.length>1)for(var F=1;F<arguments.length;F++)w[F-1]=arguments[F];c.push(new g(y,w)),c.length!==1||f||i(m)},g.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=x,u.addListener=x,u.once=x,u.off=x,u.removeListener=x,u.removeAllListeners=x,u.emit=x,u.prependListener=x,u.prependOnceListener=x,u.listeners=function(y){return[]},u.binding=function(y){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(y){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{}],51:[function(r,n,l){(function(o){(function(){(function(s){var u=typeof l=="object"&&l&&!l.nodeType&&l,h=typeof n=="object"&&n&&!n.nodeType&&n,a=typeof o=="object"&&o;a.global!==a&&a.window!==a&&a.self!==a||(s=a);var i,d,c=2147483647,f=36,p=1,v=26,m=38,g=700,x=72,y=128,w="-",F=/^xn--/,T=/[^\x20-\x7E]/,I=/[\x2E\u3002\uFF0E\uFF61]/g,D={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},X=f-p,K=Math.floor,E=String.fromCharCode;function A(M){throw new RangeError(D[M])}function C(M,O){for(var H=M.length,W=[];H--;)W[H]=O(M[H]);return W}function B(M,O){var H=M.split("@"),W="";return H.length>1&&(W=H[0]+"@",M=H[1]),W+C((M=M.replace(I,".")).split("."),O).join(".")}function U(M){for(var O,H,W=[],ee=0,oe=M.length;ee<oe;)(O=M.charCodeAt(ee++))>=55296&&O<=56319&&ee<oe?(64512&(H=M.charCodeAt(ee++)))==56320?W.push(((1023&O)<<10)+(1023&H)+65536):(W.push(O),ee--):W.push(O);return W}function q(M){return C(M,function(O){var H="";return O>65535&&(H+=E((O-=65536)>>>10&1023|55296),O=56320|1023&O),H+=E(O)}).join("")}function Z(M,O){return M+22+75*(M<26)-((O!=0)<<5)}function $(M,O,H){var W=0;for(M=H?K(M/g):M>>1,M+=K(M/O);M>X*v>>1;W+=f)M=K(M/X);return K(W+(X+1)*M/(M+m))}function N(M){var O,H,W,ee,oe,ie,ae,b,_,R,G,J=[],te=M.length,se=0,j=y,S=x;for((H=M.lastIndexOf(w))<0&&(H=0),W=0;W<H;++W)M.charCodeAt(W)>=128&&A("not-basic"),J.push(M.charCodeAt(W));for(ee=H>0?H+1:0;ee<te;){for(oe=se,ie=1,ae=f;ee>=te&&A("invalid-input"),((b=(G=M.charCodeAt(ee++))-48<10?G-22:G-65<26?G-65:G-97<26?G-97:f)>=f||b>K((c-se)/ie))&&A("overflow"),se+=b*ie,!(b<(_=ae<=S?p:ae>=S+v?v:ae-S));ae+=f)ie>K(c/(R=f-_))&&A("overflow"),ie*=R;S=$(se-oe,O=J.length+1,oe==0),K(se/O)>c-j&&A("overflow"),j+=K(se/O),se%=O,J.splice(se++,0,j)}return q(J)}function V(M){var O,H,W,ee,oe,ie,ae,b,_,R,G,J,te,se,j,S=[];for(J=(M=U(M)).length,O=y,H=0,oe=x,ie=0;ie<J;++ie)(G=M[ie])<128&&S.push(E(G));for(W=ee=S.length,ee&&S.push(w);W<J;){for(ae=c,ie=0;ie<J;++ie)(G=M[ie])>=O&&G<ae&&(ae=G);for(ae-O>K((c-H)/(te=W+1))&&A("overflow"),H+=(ae-O)*te,O=ae,ie=0;ie<J;++ie)if((G=M[ie])<O&&++H>c&&A("overflow"),G==O){for(b=H,_=f;!(b<(R=_<=oe?p:_>=oe+v?v:_-oe));_+=f)j=b-R,se=f-R,S.push(E(Z(R+j%se,0))),b=K(j/se);S.push(E(Z(b,0))),oe=$(H,te,W==ee),H=0,++W}++H,++O}return S.join("")}if(i={version:"1.4.1",ucs2:{decode:U,encode:q},decode:N,encode:V,toASCII:function(M){return B(M,function(O){return T.test(O)?"xn--"+V(O):O})},toUnicode:function(M){return B(M,function(O){return F.test(O)?N(O.slice(4).toLowerCase()):O})}},u&&h)if(n.exports==u)h.exports=i;else for(d in i)i.hasOwnProperty(d)&&(u[d]=i[d]);else s.punycode=i})(this)}).call(this)}).call(this,typeof xe!="undefined"?xe:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],52:[function(r,n,l){function o(u,h){return Object.prototype.hasOwnProperty.call(u,h)}n.exports=function(u,h,a,i){h=h||"&",a=a||"=";var d={};if(typeof u!="string"||u.length===0)return d;var c=/\+/g;u=u.split(h);var f=1e3;i&&typeof i.maxKeys=="number"&&(f=i.maxKeys);var p=u.length;f>0&&p>f&&(p=f);for(var v=0;v<p;++v){var m,g,x,y,w=u[v].replace(c,"%20"),F=w.indexOf(a);F>=0?(m=w.substr(0,F),g=w.substr(F+1)):(m=w,g=""),x=decodeURIComponent(m),y=decodeURIComponent(g),o(d,x)?s(d[x])?d[x].push(y):d[x]=[d[x],y]:d[x]=y}return d};var s=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"}},{}],53:[function(r,n,l){var o=function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}};n.exports=function(a,i,d,c){return i=i||"&",d=d||"=",a===null&&(a=void 0),typeof a=="object"?u(h(a),function(f){var p=encodeURIComponent(o(f))+d;return s(a[f])?u(a[f],function(v){return p+encodeURIComponent(o(v))}).join(i):p+encodeURIComponent(o(a[f]))}).join(i):c?encodeURIComponent(o(c))+d+encodeURIComponent(o(a)):""};var s=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"};function u(a,i){if(a.map)return a.map(i);for(var d=[],c=0;c<a.length;c++)d.push(i(a[c],c));return d}var h=Object.keys||function(a){var i=[];for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&i.push(d);return i}},{}],54:[function(r,n,l){l.decode=l.parse=r("./decode"),l.encode=l.stringify=r("./encode")},{"./decode":52,"./encode":53}],55:[function(r,n,l){var o={};function s(h,a,i){i||(i=Error);var d=function(c){var f,p;function v(m,g,x){return c.call(this,function(y,w,F){return typeof a=="string"?a:a(y,w,F)}(m,g,x))||this}return p=c,(f=v).prototype=Object.create(p.prototype),f.prototype.constructor=f,f.__proto__=p,v}(i);d.prototype.name=i.name,d.prototype.code=h,o[h]=d}function u(h,a){if(Array.isArray(h)){var i=h.length;return h=h.map(function(d){return String(d)}),i>2?"one of ".concat(a," ").concat(h.slice(0,i-1).join(", "),", or ")+h[i-1]:i===2?"one of ".concat(a," ").concat(h[0]," or ").concat(h[1]):"of ".concat(a," ").concat(h[0])}return"of ".concat(a," ").concat(String(h))}s("ERR_INVALID_OPT_VALUE",function(h,a){return'The value "'+a+'" is invalid for option "'+h+'"'},TypeError),s("ERR_INVALID_ARG_TYPE",function(h,a,i){var d,c,f;if(typeof a=="string"&&(c="not ",a.substr(0,c.length)===c)?(d="must not be",a=a.replace(/^not /,"")):d="must be",function(v,m,g){return(g===void 0||g>v.length)&&(g=v.length),v.substring(g-m.length,g)===m}(h," argument"))f="The ".concat(h," ").concat(d," ").concat(u(a,"type"));else{var p=function(v,m,g){return typeof g!="number"&&(g=0),!(g+m.length>v.length)&&v.indexOf(m,g)!==-1}(h,".")?"property":"argument";f='The "'.concat(h,'" ').concat(p," ").concat(d," ").concat(u(a,"type"))}return f+=". Received type ".concat(typeof i)},TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",function(h){return"The "+h+" method is not implemented"}),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",function(h){return"Cannot call "+h+" after a stream was destroyed"}),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",function(h){return"Unknown encoding: "+h},TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),n.exports.codes=o},{}],56:[function(r,n,l){(function(o){(function(){var s=Object.keys||function(v){var m=[];for(var g in v)m.push(g);return m};n.exports=c;var u=r("./_stream_readable"),h=r("./_stream_writable");r("inherits")(c,u);for(var a=s(h.prototype),i=0;i<a.length;i++){var d=a[i];c.prototype[d]||(c.prototype[d]=h.prototype[d])}function c(v){if(!(this instanceof c))return new c(v);u.call(this,v),h.call(this,v),this.allowHalfOpen=!0,v&&(v.readable===!1&&(this.readable=!1),v.writable===!1&&(this.writable=!1),v.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||o.nextTick(p,this)}function p(v){v.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(v){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=v,this._writableState.destroyed=v)}})}).call(this)}).call(this,r("_process"))},{"./_stream_readable":58,"./_stream_writable":60,_process:50,inherits:24}],57:[function(r,n,l){n.exports=s;var o=r("./_stream_transform");function s(u){if(!(this instanceof s))return new s(u);o.call(this,u)}r("inherits")(s,o),s.prototype._transform=function(u,h,a){a(null,u)}},{"./_stream_transform":59,inherits:24}],58:[function(r,n,l){(function(o,s){(function(){var u;n.exports=A,A.ReadableState=E,r("events").EventEmitter;var h=function(b,_){return b.listeners(_).length},a=r("./internal/streams/stream"),i=r("buffer").Buffer,d=s.Uint8Array||function(){},c,f=r("util");c=f&&f.debuglog?f.debuglog("stream"):function(){};var p,v,m,g=r("./internal/streams/buffer_list"),x=r("./internal/streams/destroy"),y=r("./internal/streams/state").getHighWaterMark,w=r("../errors").codes,F=w.ERR_INVALID_ARG_TYPE,T=w.ERR_STREAM_PUSH_AFTER_EOF,I=w.ERR_METHOD_NOT_IMPLEMENTED,D=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r("inherits")(A,a);var X=x.errorOrDestroy,K=["error","close","destroy","pause","resume"];function E(b,_,R){u=u||r("./_stream_duplex"),b=b||{},typeof R!="boolean"&&(R=_ instanceof u),this.objectMode=!!b.objectMode,R&&(this.objectMode=this.objectMode||!!b.readableObjectMode),this.highWaterMark=y(this,b,"readableHighWaterMark",R),this.buffer=new g,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=b.emitClose!==!1,this.autoDestroy=!!b.autoDestroy,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(p||(p=r("string_decoder/").StringDecoder),this.decoder=new p(b.encoding),this.encoding=b.encoding)}function A(b){if(u=u||r("./_stream_duplex"),!(this instanceof A))return new A(b);var _=this instanceof u;this._readableState=new E(b,this,_),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),a.call(this)}function C(b,_,R,G,J){c("readableAddChunk",_);var te,se=b._readableState;if(_===null)se.reading=!1,function(j,S){if(c("onEofChunk"),!S.ended){if(S.decoder){var k=S.decoder.end();k&&k.length&&(S.buffer.push(k),S.length+=S.objectMode?1:k.length)}S.ended=!0,S.sync?Z(j):(S.needReadable=!1,S.emittedReadable||(S.emittedReadable=!0,$(j)))}}(b,se);else if(J||(te=function(j,S){var k;Y=S,i.isBuffer(Y)||Y instanceof d||typeof S=="string"||S===void 0||j.objectMode||(k=new F("chunk",["string","Buffer","Uint8Array"],S));var Y;return k}(se,_)),te)X(b,te);else if(se.objectMode||_&&_.length>0)if(typeof _=="string"||se.objectMode||Object.getPrototypeOf(_)===i.prototype||(_=function(j){return i.from(j)}(_)),G)se.endEmitted?X(b,new D):B(b,se,_,!0);else if(se.ended)X(b,new T);else{if(se.destroyed)return!1;se.reading=!1,se.decoder&&!R?(_=se.decoder.write(_),se.objectMode||_.length!==0?B(b,se,_,!1):N(b,se)):B(b,se,_,!1)}else G||(se.reading=!1,N(b,se));return!se.ended&&(se.length<se.highWaterMark||se.length===0)}function B(b,_,R,G){_.flowing&&_.length===0&&!_.sync?(_.awaitDrain=0,b.emit("data",R)):(_.length+=_.objectMode?1:R.length,G?_.buffer.unshift(R):_.buffer.push(R),_.needReadable&&Z(b)),N(b,_)}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(b){this._readableState&&(this._readableState.destroyed=b)}}),A.prototype.destroy=x.destroy,A.prototype._undestroy=x.undestroy,A.prototype._destroy=function(b,_){_(b)},A.prototype.push=function(b,_){var R,G=this._readableState;return G.objectMode?R=!0:typeof b=="string"&&((_=_||G.defaultEncoding)!==G.encoding&&(b=i.from(b,_),_=""),R=!0),C(this,b,_,!1,R)},A.prototype.unshift=function(b){return C(this,b,null,!0,!1)},A.prototype.isPaused=function(){return this._readableState.flowing===!1},A.prototype.setEncoding=function(b){p||(p=r("string_decoder/").StringDecoder);var _=new p(b);this._readableState.decoder=_,this._readableState.encoding=this._readableState.decoder.encoding;for(var R=this._readableState.buffer.head,G="";R!==null;)G+=_.write(R.data),R=R.next;return this._readableState.buffer.clear(),G!==""&&this._readableState.buffer.push(G),this._readableState.length=G.length,this};var U=1073741824;function q(b,_){return b<=0||_.length===0&&_.ended?0:_.objectMode?1:b!=b?_.flowing&&_.length?_.buffer.head.data.length:_.length:(b>_.highWaterMark&&(_.highWaterMark=function(R){return R>=U?R=U:(R--,R|=R>>>1,R|=R>>>2,R|=R>>>4,R|=R>>>8,R|=R>>>16,R++),R}(b)),b<=_.length?b:_.ended?_.length:(_.needReadable=!0,0))}function Z(b){var _=b._readableState;c("emitReadable",_.needReadable,_.emittedReadable),_.needReadable=!1,_.emittedReadable||(c("emitReadable",_.flowing),_.emittedReadable=!0,o.nextTick($,b))}function $(b){var _=b._readableState;c("emitReadable_",_.destroyed,_.length,_.ended),_.destroyed||!_.length&&!_.ended||(b.emit("readable"),_.emittedReadable=!1),_.needReadable=!_.flowing&&!_.ended&&_.length<=_.highWaterMark,W(b)}function N(b,_){_.readingMore||(_.readingMore=!0,o.nextTick(V,b,_))}function V(b,_){for(;!_.reading&&!_.ended&&(_.length<_.highWaterMark||_.flowing&&_.length===0);){var R=_.length;if(c("maybeReadMore read 0"),b.read(0),R===_.length)break}_.readingMore=!1}function M(b){var _=b._readableState;_.readableListening=b.listenerCount("readable")>0,_.resumeScheduled&&!_.paused?_.flowing=!0:b.listenerCount("data")>0&&b.resume()}function O(b){c("readable nexttick read 0"),b.read(0)}function H(b,_){c("resume",_.reading),_.reading||b.read(0),_.resumeScheduled=!1,b.emit("resume"),W(b),_.flowing&&!_.reading&&b.read(0)}function W(b){var _=b._readableState;for(c("flow",_.flowing);_.flowing&&b.read()!==null;);}function ee(b,_){return _.length===0?null:(_.objectMode?R=_.buffer.shift():!b||b>=_.length?(R=_.decoder?_.buffer.join(""):_.buffer.length===1?_.buffer.first():_.buffer.concat(_.length),_.buffer.clear()):R=_.buffer.consume(b,_.decoder),R);var R}function oe(b){var _=b._readableState;c("endReadable",_.endEmitted),_.endEmitted||(_.ended=!0,o.nextTick(ie,_,b))}function ie(b,_){if(c("endReadableNT",b.endEmitted,b.length),!b.endEmitted&&b.length===0&&(b.endEmitted=!0,_.readable=!1,_.emit("end"),b.autoDestroy)){var R=_._writableState;(!R||R.autoDestroy&&R.finished)&&_.destroy()}}function ae(b,_){for(var R=0,G=b.length;R<G;R++)if(b[R]===_)return R;return-1}A.prototype.read=function(b){c("read",b),b=parseInt(b,10);var _=this._readableState,R=b;if(b!==0&&(_.emittedReadable=!1),b===0&&_.needReadable&&((_.highWaterMark!==0?_.length>=_.highWaterMark:_.length>0)||_.ended))return c("read: emitReadable",_.length,_.ended),_.length===0&&_.ended?oe(this):Z(this),null;if((b=q(b,_))===0&&_.ended)return _.length===0&&oe(this),null;var G,J=_.needReadable;return c("need readable",J),(_.length===0||_.length-b<_.highWaterMark)&&c("length less than watermark",J=!0),_.ended||_.reading?c("reading or ended",J=!1):J&&(c("do read"),_.reading=!0,_.sync=!0,_.length===0&&(_.needReadable=!0),this._read(_.highWaterMark),_.sync=!1,_.reading||(b=q(R,_))),(G=b>0?ee(b,_):null)===null?(_.needReadable=_.length<=_.highWaterMark,b=0):(_.length-=b,_.awaitDrain=0),_.length===0&&(_.ended||(_.needReadable=!0),R!==b&&_.ended&&oe(this)),G!==null&&this.emit("data",G),G},A.prototype._read=function(b){X(this,new I("_read()"))},A.prototype.pipe=function(b,_){var R=this,G=this._readableState;switch(G.pipesCount){case 0:G.pipes=b;break;case 1:G.pipes=[G.pipes,b];break;default:G.pipes.push(b)}G.pipesCount+=1,c("pipe count=%d opts=%j",G.pipesCount,_);var J=(!_||_.end!==!1)&&b!==o.stdout&&b!==o.stderr?se:ce;function te(me,ge){c("onunpipe"),me===R&&ge&&ge.hasUnpiped===!1&&(ge.hasUnpiped=!0,c("cleanup"),b.removeListener("close",ne),b.removeListener("finish",ue),b.removeListener("drain",j),b.removeListener("error",Y),b.removeListener("unpipe",te),R.removeListener("end",se),R.removeListener("end",ce),R.removeListener("data",k),S=!0,!G.awaitDrain||b._writableState&&!b._writableState.needDrain||j())}function se(){c("onend"),b.end()}G.endEmitted?o.nextTick(J):R.once("end",J),b.on("unpipe",te);var j=function(me){return function(){var ge=me._readableState;c("pipeOnDrain",ge.awaitDrain),ge.awaitDrain&&ge.awaitDrain--,ge.awaitDrain===0&&h(me,"data")&&(ge.flowing=!0,W(me))}}(R);b.on("drain",j);var S=!1;function k(me){c("ondata");var ge=b.write(me);c("dest.write",ge),ge===!1&&((G.pipesCount===1&&G.pipes===b||G.pipesCount>1&&ae(G.pipes,b)!==-1)&&!S&&(c("false write response, pause",G.awaitDrain),G.awaitDrain++),R.pause())}function Y(me){c("onerror",me),ce(),b.removeListener("error",Y),h(b,"error")===0&&X(b,me)}function ne(){b.removeListener("finish",ue),ce()}function ue(){c("onfinish"),b.removeListener("close",ne),ce()}function ce(){c("unpipe"),R.unpipe(b)}return R.on("data",k),function(me,ge,Ce){if(typeof me.prependListener=="function")return me.prependListener(ge,Ce);me._events&&me._events[ge]?Array.isArray(me._events[ge])?me._events[ge].unshift(Ce):me._events[ge]=[Ce,me._events[ge]]:me.on(ge,Ce)}(b,"error",Y),b.once("close",ne),b.once("finish",ue),b.emit("pipe",R),G.flowing||(c("pipe resume"),R.resume()),b},A.prototype.unpipe=function(b){var _=this._readableState,R={hasUnpiped:!1};if(_.pipesCount===0)return this;if(_.pipesCount===1)return b&&b!==_.pipes?this:(b||(b=_.pipes),_.pipes=null,_.pipesCount=0,_.flowing=!1,b&&b.emit("unpipe",this,R),this);if(!b){var G=_.pipes,J=_.pipesCount;_.pipes=null,_.pipesCount=0,_.flowing=!1;for(var te=0;te<J;te++)G[te].emit("unpipe",this,{hasUnpiped:!1});return this}var se=ae(_.pipes,b);return se===-1?this:(_.pipes.splice(se,1),_.pipesCount-=1,_.pipesCount===1&&(_.pipes=_.pipes[0]),b.emit("unpipe",this,R),this)},A.prototype.on=function(b,_){var R=a.prototype.on.call(this,b,_),G=this._readableState;return b==="data"?(G.readableListening=this.listenerCount("readable")>0,G.flowing!==!1&&this.resume()):b==="readable"&&(G.endEmitted||G.readableListening||(G.readableListening=G.needReadable=!0,G.flowing=!1,G.emittedReadable=!1,c("on readable",G.length,G.reading),G.length?Z(this):G.reading||o.nextTick(O,this))),R},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(b,_){var R=a.prototype.removeListener.call(this,b,_);return b==="readable"&&o.nextTick(M,this),R},A.prototype.removeAllListeners=function(b){var _=a.prototype.removeAllListeners.apply(this,arguments);return b!=="readable"&&b!==void 0||o.nextTick(M,this),_},A.prototype.resume=function(){var b=this._readableState;return b.flowing||(c("resume"),b.flowing=!b.readableListening,function(_,R){R.resumeScheduled||(R.resumeScheduled=!0,o.nextTick(H,_,R))}(this,b)),b.paused=!1,this},A.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(b){var _=this,R=this._readableState,G=!1;for(var J in b.on("end",function(){if(c("wrapped end"),R.decoder&&!R.ended){var se=R.decoder.end();se&&se.length&&_.push(se)}_.push(null)}),b.on("data",function(se){c("wrapped data"),R.decoder&&(se=R.decoder.write(se)),(!R.objectMode||se!=null)&&(R.objectMode||se&&se.length)&&(_.push(se)||(G=!0,b.pause()))}),b)this[J]===void 0&&typeof b[J]=="function"&&(this[J]=function(se){return function(){return b[se].apply(b,arguments)}}(J));for(var te=0;te<K.length;te++)b.on(K[te],this.emit.bind(this,K[te]));return this._read=function(se){c("wrapped _read",se),G&&(G=!1,b.resume())},this},typeof Symbol=="function"&&(A.prototype[Symbol.asyncIterator]=function(){return v===void 0&&(v=r("./internal/streams/async_iterator")),v(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(b){this._readableState&&(this._readableState.flowing=b)}}),A._fromList=ee,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(A.from=function(b,_){return m===void 0&&(m=r("./internal/streams/from")),m(A,b,_)})}).call(this)}).call(this,r("_process"),typeof xe!="undefined"?xe:typeof self!="undefined"?self:typeof window!="undefined"?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(r,n,l){n.exports=d;var o=r("../errors").codes,s=o.ERR_METHOD_NOT_IMPLEMENTED,u=o.ERR_MULTIPLE_CALLBACK,h=o.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=o.ERR_TRANSFORM_WITH_LENGTH_0,i=r("./_stream_duplex");function d(p){if(!(this instanceof d))return new d(p);i.call(this,p),this._transformState={afterTransform:function(v,m){var g=this._transformState;g.transforming=!1;var x=g.writecb;if(x===null)return this.emit("error",new u);g.writechunk=null,g.writecb=null,m!=null&&this.push(m),x(v);var y=this._readableState;y.reading=!1,(y.needReadable||y.length<y.highWaterMark)&&this._read(y.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,p&&(typeof p.transform=="function"&&(this._transform=p.transform),typeof p.flush=="function"&&(this._flush=p.flush)),this.on("prefinish",c)}function c(){var p=this;typeof this._flush!="function"||this._readableState.destroyed?f(this,null,null):this._flush(function(v,m){f(p,v,m)})}function f(p,v,m){if(v)return p.emit("error",v);if(m!=null&&p.push(m),p._writableState.length)throw new a;if(p._transformState.transforming)throw new h;return p.push(null)}r("inherits")(d,i),d.prototype.push=function(p,v){return this._transformState.needTransform=!1,i.prototype.push.call(this,p,v)},d.prototype._transform=function(p,v,m){m(new s("_transform()"))},d.prototype._write=function(p,v,m){var g=this._transformState;if(g.writecb=m,g.writechunk=p,g.writeencoding=v,!g.transforming){var x=this._readableState;(g.needTransform||x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}},d.prototype._read=function(p){var v=this._transformState;v.writechunk===null||v.transforming?v.needTransform=!0:(v.transforming=!0,this._transform(v.writechunk,v.writeencoding,v.afterTransform))},d.prototype._destroy=function(p,v){i.prototype._destroy.call(this,p,function(m){v(m)})}},{"../errors":55,"./_stream_duplex":56,inherits:24}],60:[function(r,n,l){(function(o,s){(function(){function u(N){var V=this;this.next=null,this.entry=null,this.finish=function(){(function(M,O,H){var W=M.entry;for(M.entry=null;W;){var ee=W.callback;O.pendingcb--,ee(H),W=W.next}O.corkedRequestsFree.next=M})(V,N)}}var h;n.exports=A,A.WritableState=E;var a={deprecate:r("util-deprecate")},i=r("./internal/streams/stream"),d=r("buffer").Buffer,c=s.Uint8Array||function(){},f,p=r("./internal/streams/destroy"),v=r("./internal/streams/state").getHighWaterMark,m=r("../errors").codes,g=m.ERR_INVALID_ARG_TYPE,x=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_MULTIPLE_CALLBACK,w=m.ERR_STREAM_CANNOT_PIPE,F=m.ERR_STREAM_DESTROYED,T=m.ERR_STREAM_NULL_VALUES,I=m.ERR_STREAM_WRITE_AFTER_END,D=m.ERR_UNKNOWN_ENCODING,X=p.errorOrDestroy;function K(){}function E(N,V,M){h=h||r("./_stream_duplex"),N=N||{},typeof M!="boolean"&&(M=V instanceof h),this.objectMode=!!N.objectMode,M&&(this.objectMode=this.objectMode||!!N.writableObjectMode),this.highWaterMark=v(this,N,"writableHighWaterMark",M),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var O=N.decodeStrings===!1;this.decodeStrings=!O,this.defaultEncoding=N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(H){(function(W,ee){var oe=W._writableState,ie=oe.sync,ae=oe.writecb;if(typeof ae!="function")throw new y;if(function(_){_.writing=!1,_.writecb=null,_.length-=_.writelen,_.writelen=0}(oe),ee)(function(_,R,G,J,te){--R.pendingcb,G?(o.nextTick(te,J),o.nextTick($,_,R),_._writableState.errorEmitted=!0,X(_,J)):(te(J),_._writableState.errorEmitted=!0,X(_,J),$(_,R))})(W,oe,ie,ee,ae);else{var b=q(oe)||W.destroyed;b||oe.corked||oe.bufferProcessing||!oe.bufferedRequest||U(W,oe),ie?o.nextTick(B,W,oe,b,ae):B(W,oe,b,ae)}})(V,H)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=N.emitClose!==!1,this.autoDestroy=!!N.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new u(this)}function A(N){var V=this instanceof(h=h||r("./_stream_duplex"));if(!V&&!f.call(A,this))return new A(N);this._writableState=new E(N,this,V),this.writable=!0,N&&(typeof N.write=="function"&&(this._write=N.write),typeof N.writev=="function"&&(this._writev=N.writev),typeof N.destroy=="function"&&(this._destroy=N.destroy),typeof N.final=="function"&&(this._final=N.final)),i.call(this)}function C(N,V,M,O,H,W,ee){V.writelen=O,V.writecb=ee,V.writing=!0,V.sync=!0,V.destroyed?V.onwrite(new F("write")):M?N._writev(H,V.onwrite):N._write(H,W,V.onwrite),V.sync=!1}function B(N,V,M,O){M||function(H,W){W.length===0&&W.needDrain&&(W.needDrain=!1,H.emit("drain"))}(N,V),V.pendingcb--,O(),$(N,V)}function U(N,V){V.bufferProcessing=!0;var M=V.bufferedRequest;if(N._writev&&M&&M.next){var O=V.bufferedRequestCount,H=new Array(O),W=V.corkedRequestsFree;W.entry=M;for(var ee=0,oe=!0;M;)H[ee]=M,M.isBuf||(oe=!1),M=M.next,ee+=1;H.allBuffers=oe,C(N,V,!0,V.length,H,"",W.finish),V.pendingcb++,V.lastBufferedRequest=null,W.next?(V.corkedRequestsFree=W.next,W.next=null):V.corkedRequestsFree=new u(V),V.bufferedRequestCount=0}else{for(;M;){var ie=M.chunk,ae=M.encoding,b=M.callback;if(C(N,V,!1,V.objectMode?1:ie.length,ie,ae,b),M=M.next,V.bufferedRequestCount--,V.writing)break}M===null&&(V.lastBufferedRequest=null)}V.bufferedRequest=M,V.bufferProcessing=!1}function q(N){return N.ending&&N.length===0&&N.bufferedRequest===null&&!N.finished&&!N.writing}function Z(N,V){N._final(function(M){V.pendingcb--,M&&X(N,M),V.prefinished=!0,N.emit("prefinish"),$(N,V)})}function $(N,V){var M=q(V);if(M&&(function(H,W){W.prefinished||W.finalCalled||(typeof H._final!="function"||W.destroyed?(W.prefinished=!0,H.emit("prefinish")):(W.pendingcb++,W.finalCalled=!0,o.nextTick(Z,H,W)))}(N,V),V.pendingcb===0&&(V.finished=!0,N.emit("finish"),V.autoDestroy))){var O=N._readableState;(!O||O.autoDestroy&&O.endEmitted)&&N.destroy()}return M}r("inherits")(A,i),E.prototype.getBuffer=function(){for(var N=this.bufferedRequest,V=[];N;)V.push(N),N=N.next;return V},function(){try{Object.defineProperty(E.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(N){}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(N){return!!f.call(this,N)||this===A&&N&&N._writableState instanceof E}})):f=function(N){return N instanceof this},A.prototype.pipe=function(){X(this,new w)},A.prototype.write=function(N,V,M){var O,H=this._writableState,W=!1,ee=!H.objectMode&&(O=N,d.isBuffer(O)||O instanceof c);return ee&&!d.isBuffer(N)&&(N=function(oe){return d.from(oe)}(N)),typeof V=="function"&&(M=V,V=null),ee?V="buffer":V||(V=H.defaultEncoding),typeof M!="function"&&(M=K),H.ending?function(oe,ie){var ae=new I;X(oe,ae),o.nextTick(ie,ae)}(this,M):(ee||function(oe,ie,ae,b){var _;return ae===null?_=new T:typeof ae=="string"||ie.objectMode||(_=new g("chunk",["string","Buffer"],ae)),!_||(X(oe,_),o.nextTick(b,_),!1)}(this,H,N,M))&&(H.pendingcb++,W=function(oe,ie,ae,b,_,R){if(!ae){var G=function(j,S,k){return j.objectMode||j.decodeStrings===!1||typeof S!="string"||(S=d.from(S,k)),S}(ie,b,_);b!==G&&(ae=!0,_="buffer",b=G)}var J=ie.objectMode?1:b.length;ie.length+=J;var te=ie.length<ie.highWaterMark;if(te||(ie.needDrain=!0),ie.writing||ie.corked){var se=ie.lastBufferedRequest;ie.lastBufferedRequest={chunk:b,encoding:_,isBuf:ae,callback:R,next:null},se?se.next=ie.lastBufferedRequest:ie.bufferedRequest=ie.lastBufferedRequest,ie.bufferedRequestCount+=1}else C(oe,ie,!1,J,b,_,R);return te}(this,H,ee,N,V,M)),W},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var N=this._writableState;N.corked&&(N.corked--,N.writing||N.corked||N.bufferProcessing||!N.bufferedRequest||U(this,N))},A.prototype.setDefaultEncoding=function(N){if(typeof N=="string"&&(N=N.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((N+"").toLowerCase())>-1))throw new D(N);return this._writableState.defaultEncoding=N,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(N,V,M){M(new x("_write()"))},A.prototype._writev=null,A.prototype.end=function(N,V,M){var O=this._writableState;return typeof N=="function"?(M=N,N=null,V=null):typeof V=="function"&&(M=V,V=null),N!=null&&this.write(N,V),O.corked&&(O.corked=1,this.uncork()),O.ending||function(H,W,ee){W.ending=!0,$(H,W),ee&&(W.finished?o.nextTick(ee):H.once("finish",ee)),W.ended=!0,H.writable=!1}(this,O,M),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(N){this._writableState&&(this._writableState.destroyed=N)}}),A.prototype.destroy=p.destroy,A.prototype._undestroy=p.undestroy,A.prototype._destroy=function(N,V){V(N)}}).call(this)}).call(this,r("_process"),typeof xe!="undefined"?xe:typeof self!="undefined"?self:typeof window!="undefined"?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(r,n,l){(function(o){(function(){var s;function u(w,F,T){return F in w?Object.defineProperty(w,F,{value:T,enumerable:!0,configurable:!0,writable:!0}):w[F]=T,w}var h=r("./end-of-stream"),a=Symbol("lastResolve"),i=Symbol("lastReject"),d=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),p=Symbol("handlePromise"),v=Symbol("stream");function m(w,F){return{value:w,done:F}}function g(w){var F=w[a];if(F!==null){var T=w[v].read();T!==null&&(w[f]=null,w[a]=null,w[i]=null,F(m(T,!1)))}}var x=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((u(s={get stream(){return this[v]},next:function(){var w=this,F=this[d];if(F!==null)return Promise.reject(F);if(this[c])return Promise.resolve(m(void 0,!0));if(this[v].destroyed)return new Promise(function(X,K){o.nextTick(function(){w[d]?K(w[d]):X(m(void 0,!0))})});var T,I=this[f];if(I)T=new Promise(function(X,K){return function(E,A){X.then(function(){K[c]?E(m(void 0,!0)):K[p](E,A)},A)}}(I,this));else{var D=this[v].read();if(D!==null)return Promise.resolve(m(D,!1));T=new Promise(this[p])}return this[f]=T,T}},Symbol.asyncIterator,function(){return this}),u(s,"return",function(){var w=this;return new Promise(function(F,T){w[v].destroy(null,function(I){I?T(I):F(m(void 0,!0))})})}),s),x);n.exports=function(w){var F,T=Object.create(y,(u(F={},v,{value:w,writable:!0}),u(F,a,{value:null,writable:!0}),u(F,i,{value:null,writable:!0}),u(F,d,{value:null,writable:!0}),u(F,c,{value:w._readableState.endEmitted,writable:!0}),u(F,p,{value:function(I,D){var X=T[v].read();X?(T[f]=null,T[a]=null,T[i]=null,I(m(X,!1))):(T[a]=I,T[i]=D)},writable:!0}),F));return T[f]=null,h(w,function(I){if(I&&I.code!=="ERR_STREAM_PREMATURE_CLOSE"){var D=T[i];return D!==null&&(T[f]=null,T[a]=null,T[i]=null,D(I)),void(T[d]=I)}var X=T[a];X!==null&&(T[f]=null,T[a]=null,T[i]=null,X(m(void 0,!0))),T[c]=!0}),w.on("readable",function(I){o.nextTick(g,I)}.bind(null,T)),T}}).call(this)}).call(this,r("_process"))},{"./end-of-stream":64,_process:50}],62:[function(r,n,l){function o(d,c){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(d);c&&(p=p.filter(function(v){return Object.getOwnPropertyDescriptor(d,v).enumerable})),f.push.apply(f,p)}return f}function s(d,c,f){return c in d?Object.defineProperty(d,c,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[c]=f,d}function u(d,c){for(var f=0;f<c.length;f++){var p=c[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}var h=r("buffer").Buffer,a=r("util").inspect,i=a&&a.custom||"inspect";n.exports=function(){function d(){(function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")})(this,d),this.head=null,this.tail=null,this.length=0}var c,f;return c=d,(f=[{key:"push",value:function(p){var v={data:p,next:null};this.length>0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(p){var v={data:p,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var p=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,p}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(p){if(this.length===0)return"";for(var v=this.head,m=""+v.data;v=v.next;)m+=p+v.data;return m}},{key:"concat",value:function(p){if(this.length===0)return h.alloc(0);for(var v,m,g,x=h.allocUnsafe(p>>>0),y=this.head,w=0;y;)v=y.data,m=x,g=w,h.prototype.copy.call(v,m,g),w+=y.data.length,y=y.next;return x}},{key:"consume",value:function(p,v){var m;return p<this.head.data.length?(m=this.head.data.slice(0,p),this.head.data=this.head.data.slice(p)):m=p===this.head.data.length?this.shift():v?this._getString(p):this._getBuffer(p),m}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(p){var v=this.head,m=1,g=v.data;for(p-=g.length;v=v.next;){var x=v.data,y=p>x.length?x.length:p;if(y===x.length?g+=x:g+=x.slice(0,p),(p-=y)===0){y===x.length?(++m,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=x.slice(y));break}++m}return this.length-=m,g}},{key:"_getBuffer",value:function(p){var v=h.allocUnsafe(p),m=this.head,g=1;for(m.data.copy(v),p-=m.data.length;m=m.next;){var x=m.data,y=p>x.length?x.length:p;if(x.copy(v,v.length-p,0,y),(p-=y)===0){y===x.length?(++g,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=x.slice(y));break}++g}return this.length-=g,v}},{key:i,value:function(p,v){return a(this,function(m){for(var g=1;g<arguments.length;g++){var x=arguments[g]!=null?arguments[g]:{};g%2?o(Object(x),!0).forEach(function(y){s(m,y,x[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(x)):o(Object(x)).forEach(function(y){Object.defineProperty(m,y,Object.getOwnPropertyDescriptor(x,y))})}return m}({},v,{depth:0,customInspect:!1}))}}])&&u(c.prototype,f),d}()},{buffer:17,util:16}],63:[function(r,n,l){(function(o){(function(){function s(a,i){h(a,i),u(a)}function u(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function h(a,i){a.emit("error",i)}n.exports={destroy:function(a,i){var d=this,c=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return c||f?(i?i(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(h,this,a)):o.nextTick(h,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(p){!i&&p?d._writableState?d._writableState.errorEmitted?o.nextTick(u,d):(d._writableState.errorEmitted=!0,o.nextTick(s,d,p)):o.nextTick(s,d,p):i?(o.nextTick(u,d),i(p)):o.nextTick(u,d)}),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(a,i){var d=a._readableState,c=a._writableState;d&&d.autoDestroy||c&&c.autoDestroy?a.destroy(i):a.emit("error",i)}}}).call(this)}).call(this,r("_process"))},{_process:50}],64:[function(r,n,l){var o=r("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function s(){}n.exports=function u(h,a,i){if(typeof a=="function")return u(h,null,a);a||(a={}),i=function(F){var T=!1;return function(){if(!T){T=!0;for(var I=arguments.length,D=new Array(I),X=0;X<I;X++)D[X]=arguments[X];F.apply(this,D)}}}(i||s);var d=a.readable||a.readable!==!1&&h.readable,c=a.writable||a.writable!==!1&&h.writable,f=function(){h.writable||v()},p=h._writableState&&h._writableState.finished,v=function(){c=!1,p=!0,d||i.call(h)},m=h._readableState&&h._readableState.endEmitted,g=function(){d=!1,m=!0,c||i.call(h)},x=function(F){i.call(h,F)},y=function(){var F;return d&&!m?(h._readableState&&h._readableState.ended||(F=new o),i.call(h,F)):c&&!p?(h._writableState&&h._writableState.ended||(F=new o),i.call(h,F)):void 0},w=function(){h.req.on("finish",v)};return function(F){return F.setHeader&&typeof F.abort=="function"}(h)?(h.on("complete",v),h.on("abort",y),h.req?w():h.on("request",w)):c&&!h._writableState&&(h.on("end",f),h.on("close",f)),h.on("end",g),h.on("finish",v),a.error!==!1&&h.on("error",x),h.on("close",y),function(){h.removeListener("complete",v),h.removeListener("abort",y),h.removeListener("request",w),h.req&&h.req.removeListener("finish",v),h.removeListener("end",f),h.removeListener("close",f),h.removeListener("finish",v),h.removeListener("end",g),h.removeListener("error",x),h.removeListener("close",y)}}},{"../../../errors":55}],65:[function(r,n,l){n.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],66:[function(r,n,l){var o,s=r("../../../errors").codes,u=s.ERR_MISSING_ARGS,h=s.ERR_STREAM_DESTROYED;function a(c){if(c)throw c}function i(c){c()}function d(c,f){return c.pipe(f)}n.exports=function(){for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];var v,m=function(x){return x.length?typeof x[x.length-1]!="function"?a:x.pop():a}(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new u("streams");var g=f.map(function(x,y){var w=y<f.length-1;return function(F,T,I,D){D=function(E){var A=!1;return function(){A||(A=!0,E.apply(void 0,arguments))}}(D);var X=!1;F.on("close",function(){X=!0}),o===void 0&&(o=r("./end-of-stream")),o(F,{readable:T,writable:I},function(E){if(E)return D(E);X=!0,D()});var K=!1;return function(E){if(!X&&!K)return K=!0,function(A){return A.setHeader&&typeof A.abort=="function"}(F)?F.abort():typeof F.destroy=="function"?F.destroy():void D(E||new h("pipe"))}}(x,w,y>0,function(F){v||(v=F),F&&g.forEach(i),w||(g.forEach(i),m(v))})});return f.reduce(d)}},{"../../../errors":55,"./end-of-stream":64}],67:[function(r,n,l){var o=r("../../../errors").codes.ERR_INVALID_OPT_VALUE;n.exports={getHighWaterMark:function(s,u,h,a){var i=function(d,c,f){return d.highWaterMark!=null?d.highWaterMark:c?d[f]:null}(u,a,h);if(i!=null){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new o(a?h:"highWaterMark",i);return Math.floor(i)}return s.objectMode?16:16384}}},{"../../../errors":55}],68:[function(r,n,l){n.exports=r("events").EventEmitter},{events:22}],69:[function(r,n,l){(l=n.exports=r("./lib/_stream_readable.js")).Stream=l,l.Readable=l,l.Writable=r("./lib/_stream_writable.js"),l.Duplex=r("./lib/_stream_duplex.js"),l.Transform=r("./lib/_stream_transform.js"),l.PassThrough=r("./lib/_stream_passthrough.js"),l.finished=r("./lib/internal/streams/end-of-stream.js"),l.pipeline=r("./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(r,n,l){n.exports=function(){if(typeof arguments[0]!="function")throw new Error("callback needed");if(typeof arguments[1]!="number")throw new Error("interval needed");var o;if(arguments.length>0){o=new Array(arguments.length-2);for(var s=0;s<o.length;s++)o[s]=arguments[s+2]}return new function(u,h,a){var i=this;this._callback=u,this._args=a,this._interval=setInterval(u,h,this._args),this.reschedule=function(d){d||(d=i._interval),i._interval&&clearInterval(i._interval),i._interval=setInterval(i._callback,d,i._args)},this.clear=function(){i._interval&&(clearInterval(i._interval),i._interval=void 0)},this.destroy=function(){i._interval&&clearInterval(i._interval),i._callback=void 0,i._interval=void 0,i._args=void 0}}(arguments[0],arguments[1],o)}},{}],71:[function(r,n,l){n.exports=r("./index.js")()},{"./index.js":72}],72:[function(r,n,l){(function(o){(function(){function s(u){return u instanceof o?o.from(u):new u.constructor(u.buffer.slice(),u.byteOffset,u.length)}n.exports=function(u){return(u=u||{}).circles?function(a){var i=[],d=[];return a.proto?function f(p){if(typeof p!="object"||p===null)return p;if(p instanceof Date)return new Date(p);if(Array.isArray(p))return c(p,f);if(p instanceof Map)return new Map(c(Array.from(p),f));if(p instanceof Set)return new Set(c(Array.from(p),f));var v={};for(var m in i.push(p),d.push(v),p){var g=p[m];if(typeof g!="object"||g===null)v[m]=g;else if(g instanceof Date)v[m]=new Date(g);else if(g instanceof Map)v[m]=new Map(c(Array.from(g),f));else if(g instanceof Set)v[m]=new Set(c(Array.from(g),f));else if(ArrayBuffer.isView(g))v[m]=s(g);else{var x=i.indexOf(g);v[m]=x!==-1?d[x]:f(g)}}return i.pop(),d.pop(),v}:function f(p){if(typeof p!="object"||p===null)return p;if(p instanceof Date)return new Date(p);if(Array.isArray(p))return c(p,f);if(p instanceof Map)return new Map(c(Array.from(p),f));if(p instanceof Set)return new Set(c(Array.from(p),f));var v={};for(var m in i.push(p),d.push(v),p)if(Object.hasOwnProperty.call(p,m)!==!1){var g=p[m];if(typeof g!="object"||g===null)v[m]=g;else if(g instanceof Date)v[m]=new Date(g);else if(g instanceof Map)v[m]=new Map(c(Array.from(g),f));else if(g instanceof Set)v[m]=new Set(c(Array.from(g),f));else if(ArrayBuffer.isView(g))v[m]=s(g);else{var x=i.indexOf(g);v[m]=x!==-1?d[x]:f(g)}}return i.pop(),d.pop(),v};function c(f,p){for(var v=Object.keys(f),m=new Array(v.length),g=0;g<v.length;g++){var x=v[g],y=f[x];if(typeof y!="object"||y===null)m[x]=y;else if(y instanceof Date)m[x]=new Date(y);else if(ArrayBuffer.isView(y))m[x]=s(y);else{var w=i.indexOf(y);m[x]=w!==-1?d[w]:p(y)}}return m}}(u):u.proto?function a(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return h(i,a);if(i instanceof Map)return new Map(h(Array.from(i),a));if(i instanceof Set)return new Set(h(Array.from(i),a));var d={};for(var c in i){var f=i[c];typeof f!="object"||f===null?d[c]=f:f instanceof Date?d[c]=new Date(f):f instanceof Map?d[c]=new Map(h(Array.from(f),a)):f instanceof Set?d[c]=new Set(h(Array.from(f),a)):ArrayBuffer.isView(f)?d[c]=s(f):d[c]=a(f)}return d}:function a(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return h(i,a);if(i instanceof Map)return new Map(h(Array.from(i),a));if(i instanceof Set)return new Set(h(Array.from(i),a));var d={};for(var c in i)if(Object.hasOwnProperty.call(i,c)!==!1){var f=i[c];typeof f!="object"||f===null?d[c]=f:f instanceof Date?d[c]=new Date(f):f instanceof Map?d[c]=new Map(h(Array.from(f),a)):f instanceof Set?d[c]=new Set(h(Array.from(f),a)):ArrayBuffer.isView(f)?d[c]=s(f):d[c]=a(f)}return d};function h(a,i){for(var d=Object.keys(a),c=new Array(d.length),f=0;f<d.length;f++){var p=d[f],v=a[p];typeof v!="object"||v===null?c[p]=v:v instanceof Date?c[p]=new Date(v):ArrayBuffer.isView(v)?c[p]=s(v):c[p]=i(v)}return c}}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:17}],73:[function(r,n,l){var o=r("buffer"),s=o.Buffer;function u(a,i){for(var d in a)i[d]=a[d]}function h(a,i,d){return s(a,i,d)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?n.exports=o:(u(o,l),l.Buffer=h),h.prototype=Object.create(s.prototype),u(s,h),h.from=function(a,i,d){if(typeof a=="number")throw new TypeError("Argument must not be a number");return s(a,i,d)},h.alloc=function(a,i,d){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=s(a);return i!==void 0?typeof d=="string"?c.fill(i,d):c.fill(i):c.fill(0),c},h.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return s(a)},h.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(a)}},{buffer:17}],74:[function(r,n,l){n.exports=function(o){var s=o._readableState;return s?s.objectMode||typeof o._duplexState=="number"?o.read():o.read((u=s,u.buffer.length?u.buffer.head?u.buffer.head.data.length:u.buffer[0].length:u.length)):null;var u}},{}],75:[function(r,n,l){var o=r("safe-buffer").Buffer,s=o.isEncoding||function(m){switch((m=""+m)&&m.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 u(m){var g;switch(this.encoding=function(x){var y=function(w){if(!w)return"utf8";for(var F;;)switch(w){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 w;default:if(F)return;w=(""+w).toLowerCase(),F=!0}}(x);if(typeof y!="string"&&(o.isEncoding===s||!s(x)))throw new Error("Unknown encoding: "+x);return y||x}(m),this.encoding){case"utf16le":this.text=i,this.end=d,g=4;break;case"utf8":this.fillLast=a,g=4;break;case"base64":this.text=c,this.end=f,g=3;break;default:return this.write=p,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(g)}function h(m){return m<=127?0:m>>5==6?2:m>>4==14?3:m>>3==30?4:m>>6==2?-1:-2}function a(m){var g=this.lastTotal-this.lastNeed,x=function(y,w,F){if((192&w[0])!=128)return y.lastNeed=0,"�";if(y.lastNeed>1&&w.length>1){if((192&w[1])!=128)return y.lastNeed=1,"�";if(y.lastNeed>2&&w.length>2&&(192&w[2])!=128)return y.lastNeed=2,"�"}}(this,m);return x!==void 0?x:this.lastNeed<=m.length?(m.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(m.copy(this.lastChar,g,0,m.length),void(this.lastNeed-=m.length))}function i(m,g){if((m.length-g)%2==0){var x=m.toString("utf16le",g);if(x){var y=x.charCodeAt(x.length-1);if(y>=55296&&y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=m[m.length-1],m.toString("utf16le",g,m.length-1)}function d(m){var g=m&&m.length?this.write(m):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,x)}return g}function c(m,g){var x=(m.length-g)%3;return x===0?m.toString("base64",g):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=m[m.length-1]:(this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1]),m.toString("base64",g,m.length-x))}function f(m){var g=m&&m.length?this.write(m):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function p(m){return m.toString(this.encoding)}function v(m){return m&&m.length?this.write(m):""}l.StringDecoder=u,u.prototype.write=function(m){if(m.length===0)return"";var g,x;if(this.lastNeed){if((g=this.fillLast(m))===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<m.length?g?g+this.text(m,x):this.text(m,x):g||""},u.prototype.end=function(m){var g=m&&m.length?this.write(m):"";return this.lastNeed?g+"�":g},u.prototype.text=function(m,g){var x=function(w,F,T){var I=F.length-1;if(I<T)return 0;var D=h(F[I]);return D>=0?(D>0&&(w.lastNeed=D-1),D):--I<T||D===-2?0:(D=h(F[I]))>=0?(D>0&&(w.lastNeed=D-2),D):--I<T||D===-2?0:(D=h(F[I]))>=0?(D>0&&(D===2?D=0:w.lastNeed=D-3),D):0}(this,m,g);if(!this.lastNeed)return m.toString("utf8",g);this.lastTotal=x;var y=m.length-(x-this.lastNeed);return m.copy(this.lastChar,0,y),m.toString("utf8",g,y)},u.prototype.fillLast=function(m){if(this.lastNeed<=m.length)return m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,m.length),this.lastNeed-=m.length}},{"safe-buffer":73}],76:[function(r,n,l){var o=r("punycode"),s=r("./util");function u(){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}l.parse=F,l.resolve=function(T,I){return F(T,!1,!0).resolve(I)},l.resolveObject=function(T,I){return T?F(T,!1,!0).resolveObject(I):I},l.format=function(T){return s.isString(T)&&(T=F(T)),T instanceof u?T.format():u.prototype.format.call(T)},l.Url=u;var h=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
37
|
-
`," "]),c=["'"].concat(d),f=["%","/","?",";","#"].concat(c),p=["/","?","#"],v=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},x={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=r("querystring");function F(T,I,D){if(T&&s.isObject(T)&&T instanceof u)return T;var X=new u;return X.parse(T,I,D),X}u.prototype.parse=function(T,I,D){if(!s.isString(T))throw new TypeError("Parameter 'url' must be a string, not "+typeof T);var X=T.indexOf("?"),K=X!==-1&&X<T.indexOf("#")?"?":"#",E=T.split(K);E[0]=E[0].replace(/\\/g,"/");var A=T=E.join(K);if(A=A.trim(),!D&&T.split("#").length===1){var C=i.exec(A);if(C)return this.path=A,this.href=A,this.pathname=C[1],C[2]?(this.search=C[2],this.query=I?w.parse(this.search.substr(1)):this.search.substr(1)):I&&(this.search="",this.query={}),this}var B=h.exec(A);if(B){var U=(B=B[0]).toLowerCase();this.protocol=U,A=A.substr(B.length)}if(D||B||A.match(/^\/\/[^@\/]+@[^@\/]+/)){var q=A.substr(0,2)==="//";!q||B&&x[B]||(A=A.substr(2),this.slashes=!0)}if(!x[B]&&(q||B&&!y[B])){for(var Z,$,N=-1,V=0;V<p.length;V++)(M=A.indexOf(p[V]))!==-1&&(N===-1||M<N)&&(N=M);for(($=N===-1?A.lastIndexOf("@"):A.lastIndexOf("@",N))!==-1&&(Z=A.slice(0,$),A=A.slice($+1),this.auth=decodeURIComponent(Z)),N=-1,V=0;V<f.length;V++){var M;(M=A.indexOf(f[V]))!==-1&&(N===-1||M<N)&&(N=M)}N===-1&&(N=A.length),this.host=A.slice(0,N),A=A.slice(N),this.parseHost(),this.hostname=this.hostname||"";var O=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!O)for(var H=this.hostname.split(/\./),W=(V=0,H.length);V<W;V++){var ee=H[V];if(ee&&!ee.match(v)){for(var oe="",ie=0,ae=ee.length;ie<ae;ie++)ee.charCodeAt(ie)>127?oe+="x":oe+=ee[ie];if(!oe.match(v)){var b=H.slice(0,V),_=H.slice(V+1),R=ee.match(m);R&&(b.push(R[1]),_.unshift(R[2])),_.length&&(A="/"+_.join(".")+A),this.hostname=b.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=o.toASCII(this.hostname));var G=this.port?":"+this.port:"",J=this.hostname||"";this.host=J+G,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),A[0]!=="/"&&(A="/"+A))}if(!g[U])for(V=0,W=c.length;V<W;V++){var te=c[V];if(A.indexOf(te)!==-1){var se=encodeURIComponent(te);se===te&&(se=escape(te)),A=A.split(te).join(se)}}var j=A.indexOf("#");j!==-1&&(this.hash=A.substr(j),A=A.slice(0,j));var S=A.indexOf("?");if(S!==-1?(this.search=A.substr(S),this.query=A.substr(S+1),I&&(this.query=w.parse(this.query)),A=A.slice(0,S)):I&&(this.search="",this.query={}),A&&(this.pathname=A),y[U]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){G=this.pathname||"";var k=this.search||"";this.path=G+k}return this.href=this.format(),this},u.prototype.format=function(){var T=this.auth||"";T&&(T=(T=encodeURIComponent(T)).replace(/%3A/i,":"),T+="@");var I=this.protocol||"",D=this.pathname||"",X=this.hash||"",K=!1,E="";this.host?K=T+this.host:this.hostname&&(K=T+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(K+=":"+this.port)),this.query&&s.isObject(this.query)&&Object.keys(this.query).length&&(E=w.stringify(this.query));var A=this.search||E&&"?"+E||"";return I&&I.substr(-1)!==":"&&(I+=":"),this.slashes||(!I||y[I])&&K!==!1?(K="//"+(K||""),D&&D.charAt(0)!=="/"&&(D="/"+D)):K||(K=""),X&&X.charAt(0)!=="#"&&(X="#"+X),A&&A.charAt(0)!=="?"&&(A="?"+A),I+K+(D=D.replace(/[?#]/g,function(C){return encodeURIComponent(C)}))+(A=A.replace("#","%23"))+X},u.prototype.resolve=function(T){return this.resolveObject(F(T,!1,!0)).format()},u.prototype.resolveObject=function(T){if(s.isString(T)){var I=new u;I.parse(T,!1,!0),T=I}for(var D=new u,X=Object.keys(this),K=0;K<X.length;K++){var E=X[K];D[E]=this[E]}if(D.hash=T.hash,T.href==="")return D.href=D.format(),D;if(T.slashes&&!T.protocol){for(var A=Object.keys(T),C=0;C<A.length;C++){var B=A[C];B!=="protocol"&&(D[B]=T[B])}return y[D.protocol]&&D.hostname&&!D.pathname&&(D.path=D.pathname="/"),D.href=D.format(),D}if(T.protocol&&T.protocol!==D.protocol){if(!y[T.protocol]){for(var U=Object.keys(T),q=0;q<U.length;q++){var Z=U[q];D[Z]=T[Z]}return D.href=D.format(),D}if(D.protocol=T.protocol,T.host||x[T.protocol])D.pathname=T.pathname;else{for(var $=(T.pathname||"").split("/");$.length&&!(T.host=$.shift()););T.host||(T.host=""),T.hostname||(T.hostname=""),$[0]!==""&&$.unshift(""),$.length<2&&$.unshift(""),D.pathname=$.join("/")}if(D.search=T.search,D.query=T.query,D.host=T.host||"",D.auth=T.auth,D.hostname=T.hostname||T.host,D.port=T.port,D.pathname||D.search){var N=D.pathname||"",V=D.search||"";D.path=N+V}return D.slashes=D.slashes||T.slashes,D.href=D.format(),D}var M=D.pathname&&D.pathname.charAt(0)==="/",O=T.host||T.pathname&&T.pathname.charAt(0)==="/",H=O||M||D.host&&T.pathname,W=H,ee=D.pathname&&D.pathname.split("/")||[],oe=($=T.pathname&&T.pathname.split("/")||[],D.protocol&&!y[D.protocol]);if(oe&&(D.hostname="",D.port=null,D.host&&(ee[0]===""?ee[0]=D.host:ee.unshift(D.host)),D.host="",T.protocol&&(T.hostname=null,T.port=null,T.host&&($[0]===""?$[0]=T.host:$.unshift(T.host)),T.host=null),H=H&&($[0]===""||ee[0]==="")),O)D.host=T.host||T.host===""?T.host:D.host,D.hostname=T.hostname||T.hostname===""?T.hostname:D.hostname,D.search=T.search,D.query=T.query,ee=$;else if($.length)ee||(ee=[]),ee.pop(),ee=ee.concat($),D.search=T.search,D.query=T.query;else if(!s.isNullOrUndefined(T.search))return oe&&(D.hostname=D.host=ee.shift(),(R=!!(D.host&&D.host.indexOf("@")>0)&&D.host.split("@"))&&(D.auth=R.shift(),D.host=D.hostname=R.shift())),D.search=T.search,D.query=T.query,s.isNull(D.pathname)&&s.isNull(D.search)||(D.path=(D.pathname?D.pathname:"")+(D.search?D.search:"")),D.href=D.format(),D;if(!ee.length)return D.pathname=null,D.search?D.path="/"+D.search:D.path=null,D.href=D.format(),D;for(var ie=ee.slice(-1)[0],ae=(D.host||T.host||ee.length>1)&&(ie==="."||ie==="..")||ie==="",b=0,_=ee.length;_>=0;_--)(ie=ee[_])==="."?ee.splice(_,1):ie===".."?(ee.splice(_,1),b++):b&&(ee.splice(_,1),b--);if(!H&&!W)for(;b--;b)ee.unshift("..");!H||ee[0]===""||ee[0]&&ee[0].charAt(0)==="/"||ee.unshift(""),ae&&ee.join("/").substr(-1)!=="/"&&ee.push("");var R,G=ee[0]===""||ee[0]&&ee[0].charAt(0)==="/";return oe&&(D.hostname=D.host=G?"":ee.length?ee.shift():"",(R=!!(D.host&&D.host.indexOf("@")>0)&&D.host.split("@"))&&(D.auth=R.shift(),D.host=D.hostname=R.shift())),(H=H||D.host&&ee.length)&&!G&&ee.unshift(""),ee.length?D.pathname=ee.join("/"):(D.pathname=null,D.path=null),s.isNull(D.pathname)&&s.isNull(D.search)||(D.path=(D.pathname?D.pathname:"")+(D.search?D.search:"")),D.auth=T.auth||D.auth,D.slashes=D.slashes||T.slashes,D.href=D.format(),D},u.prototype.parseHost=function(){var T=this.host,I=a.exec(T);I&&((I=I[0])!==":"&&(this.port=I.substr(1)),T=T.substr(0,T.length-I.length)),T&&(this.hostname=T)}},{"./util":77,punycode:51,querystring:54}],77:[function(r,n,l){n.exports={isString:function(o){return typeof o=="string"},isObject:function(o){return typeof o=="object"&&o!==null},isNull:function(o){return o===null},isNullOrUndefined:function(o){return o==null}}},{}],78:[function(r,n,l){(function(o){(function(){function s(u){try{if(!o.localStorage)return!1}catch(a){return!1}var h=o.localStorage[u];return h!=null&&String(h).toLowerCase()==="true"}n.exports=function(u,h){if(s("noDeprecation"))return u;var a=!1;return function(){if(!a){if(s("throwDeprecation"))throw new Error(h);s("traceDeprecation")?console.trace(h):console.warn(h),a=!0}return u.apply(this,arguments)}}}).call(this)}).call(this,typeof xe!="undefined"?xe:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],79:[function(r,n,l){n.exports=function o(s,u){if(s&&u)return o(s)(u);if(typeof s!="function")throw new TypeError("need wrapper function");return Object.keys(s).forEach(function(a){h[a]=s[a]}),h;function h(){for(var a=new Array(arguments.length),i=0;i<a.length;i++)a[i]=arguments[i];var d=s.apply(this,a),c=a[a.length-1];return typeof d=="function"&&d!==c&&Object.keys(c).forEach(function(f){d[f]=c[f]}),d}}},{}],80:[function(r,n,l){n.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},{}],81:[function(r,n,l){n.exports=function(){for(var s={},u=0;u<arguments.length;u++){var h=arguments[u];for(var a in h)o.call(h,a)&&(s[a]=h[a])}return s};var o=Object.prototype.hasOwnProperty},{}],82:[function(r,n,l){n.exports=function(o){o.prototype[Symbol.iterator]=function*(){for(let s=this.head;s;s=s.next)yield s.value}}},{}],83:[function(r,n,l){function o(i){var d=this;if(d instanceof o||(d=new o),d.tail=null,d.head=null,d.length=0,i&&typeof i.forEach=="function")i.forEach(function(p){d.push(p)});else if(arguments.length>0)for(var c=0,f=arguments.length;c<f;c++)d.push(arguments[c]);return d}function s(i,d,c){var f=d===i.head?new a(c,null,d,i):new a(c,d,d.next,i);return f.next===null&&(i.tail=f),f.prev===null&&(i.head=f),i.length++,f}function u(i,d){i.tail=new a(d,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function h(i,d){i.head=new a(d,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function a(i,d,c,f){if(!(this instanceof a))return new a(i,d,c,f);this.list=f,this.value=i,d?(d.next=this,this.prev=d):this.prev=null,c?(c.prev=this,this.next=c):this.next=null}n.exports=o,o.Node=a,o.create=o,o.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var d=i.next,c=i.prev;return d&&(d.prev=c),c&&(c.next=d),i===this.head&&(this.head=d),i===this.tail&&(this.tail=c),i.list.length--,i.next=null,i.prev=null,i.list=null,d},o.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var d=this.head;i.list=this,i.next=d,d&&(d.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}},o.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var d=this.tail;i.list=this,i.prev=d,d&&(d.next=i),this.tail=i,this.head||(this.head=i),this.length++}},o.prototype.push=function(){for(var i=0,d=arguments.length;i<d;i++)u(this,arguments[i]);return this.length},o.prototype.unshift=function(){for(var i=0,d=arguments.length;i<d;i++)h(this,arguments[i]);return this.length},o.prototype.pop=function(){if(this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}},o.prototype.shift=function(){if(this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}},o.prototype.forEach=function(i,d){d=d||this;for(var c=this.head,f=0;c!==null;f++)i.call(d,c.value,f,this),c=c.next},o.prototype.forEachReverse=function(i,d){d=d||this;for(var c=this.tail,f=this.length-1;c!==null;f--)i.call(d,c.value,f,this),c=c.prev},o.prototype.get=function(i){for(var d=0,c=this.head;c!==null&&d<i;d++)c=c.next;if(d===i&&c!==null)return c.value},o.prototype.getReverse=function(i){for(var d=0,c=this.tail;c!==null&&d<i;d++)c=c.prev;if(d===i&&c!==null)return c.value},o.prototype.map=function(i,d){d=d||this;for(var c=new o,f=this.head;f!==null;)c.push(i.call(d,f.value,this)),f=f.next;return c},o.prototype.mapReverse=function(i,d){d=d||this;for(var c=new o,f=this.tail;f!==null;)c.push(i.call(d,f.value,this)),f=f.prev;return c},o.prototype.reduce=function(i,d){var c,f=this.head;if(arguments.length>1)c=d;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");f=this.head.next,c=this.head.value}for(var p=0;f!==null;p++)c=i(c,f.value,p),f=f.next;return c},o.prototype.reduceReverse=function(i,d){var c,f=this.tail;if(arguments.length>1)c=d;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");f=this.tail.prev,c=this.tail.value}for(var p=this.length-1;f!==null;p--)c=i(c,f.value,p),f=f.prev;return c},o.prototype.toArray=function(){for(var i=new Array(this.length),d=0,c=this.head;c!==null;d++)i[d]=c.value,c=c.next;return i},o.prototype.toArrayReverse=function(){for(var i=new Array(this.length),d=0,c=this.tail;c!==null;d++)i[d]=c.value,c=c.prev;return i},o.prototype.slice=function(i,d){(d=d||this.length)<0&&(d+=this.length),(i=i||0)<0&&(i+=this.length);var c=new o;if(d<i||d<0)return c;i<0&&(i=0),d>this.length&&(d=this.length);for(var f=0,p=this.head;p!==null&&f<i;f++)p=p.next;for(;p!==null&&f<d;f++,p=p.next)c.push(p.value);return c},o.prototype.sliceReverse=function(i,d){(d=d||this.length)<0&&(d+=this.length),(i=i||0)<0&&(i+=this.length);var c=new o;if(d<i||d<0)return c;i<0&&(i=0),d>this.length&&(d=this.length);for(var f=this.length,p=this.tail;p!==null&&f>d;f--)p=p.prev;for(;p!==null&&f>i;f--,p=p.prev)c.push(p.value);return c},o.prototype.splice=function(i,d,...c){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var f=0,p=this.head;p!==null&&f<i;f++)p=p.next;var v=[];for(f=0;p&&f<d;f++)v.push(p.value),p=this.removeNode(p);for(p===null&&(p=this.tail),p!==this.head&&p!==this.tail&&(p=p.prev),f=0;f<c.length;f++)p=s(this,p,c[f]);return v},o.prototype.reverse=function(){for(var i=this.head,d=this.tail,c=i;c!==null;c=c.prev){var f=c.prev;c.prev=c.next,c.next=f}return this.head=d,this.tail=i,this};try{r("./iterator.js")(o)}catch(i){}},{"./iterator.js":82}]},{},[12])(12)})})(Gv);function Qv(e,t){var s,u;let r=t.payload.topicName,n=t.payload.message,l=t.payload.notifyTime,o=`<div style="padding:0px 12px 0px 0px;width:300px;">
|
|
36
|
+
**/process.env.NODE_ENV!=="production"&&Object.freeze({});process.env.NODE_ENV!=="production"&&Object.freeze([]);const Em=()=>{},Am=Object.prototype.hasOwnProperty,n0=(e,t)=>Am.call(e,t),Mr=e=>typeof e=="function",Gt=e=>typeof e=="string",nu=e=>e!==null&&typeof e=="object",iu=e=>e===void 0,wo=e=>typeof e=="boolean",Qt=e=>typeof e=="number",zo=e=>typeof Element=="undefined"?!1:e instanceof Element,Cm=e=>Gt(e)?!Number.isNaN(Number(e)):!1;var i0;const er=typeof window!="undefined",Sm=e=>typeof e=="string",Bm=()=>{};er&&((i0=window==null?void 0:window.navigator)!=null&&i0.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function aa(e){return typeof e=="function"?e():N.unref(e)}function km(e){return e}function sa(e){return N.getCurrentScope()?(N.onScopeDispose(e),!0):!1}function Tm(e,t=!0){N.getCurrentInstance()?N.onMounted(e):t?e():N.nextTick(e)}function ou(e,t,r={}){const{immediate:n=!0}=r,l=N.ref(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function u(){l.value=!1,s()}function h(...a){s(),l.value=!0,o=setTimeout(()=>{l.value=!1,o=null,e(...a)},aa(t))}return n&&(l.value=!0,er&&h()),sa(u),{isPending:N.readonly(l),start:h,stop:u}}function au(e){var t;const r=aa(e);return(t=r==null?void 0:r.$el)!=null?t:r}const su=er?window:void 0;function lu(...e){let t,r,n,l;if(Sm(e[0])||Array.isArray(e[0])?([r,n,l]=e,t=su):[t,r,n,l]=e,!t)return Bm;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(i=>i()),o.length=0},u=(i,d,c,f)=>(i.addEventListener(d,c,f),()=>i.removeEventListener(d,c,f)),h=N.watch(()=>[au(t),aa(l)],([i,d])=>{s(),i&&o.push(...r.flatMap(c=>n.map(f=>u(i,c,f,d))))},{immediate:!0,flush:"post"}),a=()=>{h(),s()};return sa(a),a}function Fm(e,t=!1){const r=N.ref(),n=()=>r.value=!!e();return n(),Tm(n,t),r}const o0=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},a0="__vueuse_ssr_handlers__";o0[a0]=o0[a0]||{};var s0=Object.getOwnPropertySymbols,Im=Object.prototype.hasOwnProperty,Dm=Object.prototype.propertyIsEnumerable,Rm=(e,t)=>{var r={};for(var n in e)Im.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&s0)for(var n of s0(e))t.indexOf(n)<0&&Dm.call(e,n)&&(r[n]=e[n]);return r};function Om(e,t,r={}){const n=r,{window:l=su}=n,o=Rm(n,["window"]);let s;const u=Fm(()=>l&&"ResizeObserver"in l),h=()=>{s&&(s.disconnect(),s=void 0)},a=N.watch(()=>au(e),d=>{h(),u.value&&l&&d&&(s=new ResizeObserver(t),s.observe(d,o))},{immediate:!0,flush:"post"}),i=()=>{h(),a()};return sa(i),{isSupported:u,stop:i}}var l0;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(l0||(l0={}));var Pm=Object.defineProperty,u0=Object.getOwnPropertySymbols,Mm=Object.prototype.hasOwnProperty,Nm=Object.prototype.propertyIsEnumerable,c0=(e,t,r)=>t in e?Pm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lm=(e,t)=>{for(var r in t||(t={}))Mm.call(t,r)&&c0(e,r,t[r]);if(u0)for(var r of u0(t))Nm.call(t,r)&&c0(e,r,t[r]);return e};const Um={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]};Lm({linear:km},Um);const f0={current:0},h0=N.ref(0),uu=2e3,p0=Symbol("elZIndexContextKey"),cu=Symbol("zIndexContextKey"),zm=e=>{const t=N.getCurrentInstance()?N.inject(p0,f0):f0,r=e||(N.getCurrentInstance()?N.inject(cu,void 0):void 0),n=N.computed(()=>{const s=N.unref(r);return Qt(s)?s:uu}),l=N.computed(()=>n.value+h0.value),o=()=>(t.current++,h0.value=t.current,l.value);return!er&&N.inject(p0),{initialZIndex:n,currentZIndex:l,nextZIndex:o}};var qm={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 jm=e=>(t,r)=>Hm(t,r,N.unref(e)),Hm=(e,t,r)=>On.get(r,e,e).replace(/\{(\w+)\}/g,(n,l)=>{var o;return`${(o=t==null?void 0:t[l])!=null?o:`{${l}}`}`}),$m=e=>{const t=N.computed(()=>N.unref(e).name),r=N.isRef(e)?e:N.ref(e);return{lang:t,locale:r,t:jm(e)}},fu=Symbol("localeContextKey"),Vm=e=>{const t=e||N.inject(fu,N.ref());return $m(N.computed(()=>t.value||qm))},hu="__epPropKey",qe=e=>e,Wm=e=>nu(e)&&!!e[hu],pu=(e,t)=>{if(!nu(e)||Wm(e))return e;const{values:r,required:n,default:l,type:o,validator:s}=e,h={type:o,required:!!n,validator:r||s?a=>{let i=!1,d=[];if(r&&(d=Array.from(r),n0(e,"default")&&d.push(l),i||(i=d.includes(a))),s&&(i||(i=s(a))),!i&&d.length>0){const c=[...new Set(d)].map(f=>JSON.stringify(f)).join(", ");N.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${c}], got value ${JSON.stringify(a)}.`)}return i}:void 0,[hu]:!0};return n0(e,"default")&&(h.default=l),h},tr=e=>On.fromPairs(Object.entries(e).map(([t,r])=>[t,pu(r,t)])),Km=["","default","small","large"],du=pu({type:String,values:Km,required:!1}),mu=Symbol("size"),Gm=()=>{const e=N.inject(mu,{});return N.computed(()=>N.unref(e.size)||"")},Qm=Symbol("emptyValuesContextKey"),Ym=tr({emptyValues:Array,valueOnClear:{type:qe([String,Number,Boolean,Function]),default:void 0,validator:e=>Mr(e)?!e():!e}}),d0=e=>Object.keys(e),In=N.ref();function la(e,t=void 0){const r=N.getCurrentInstance()?N.inject(tu,In):In;return e?N.computed(()=>{var n,l;return(l=(n=r.value)==null?void 0:n[e])!=null?l:t}):r}function vu(e,t){const r=la(),n=wr(e,N.computed(()=>{var u;return((u=r.value)==null?void 0:u.namespace)||En})),l=Vm(N.computed(()=>{var u;return(u=r.value)==null?void 0:u.locale})),o=zm(N.computed(()=>{var u;return((u=r.value)==null?void 0:u.zIndex)||uu})),s=N.computed(()=>{var u;return N.unref(t)||((u=r.value)==null?void 0:u.size)||""});return yu(N.computed(()=>N.unref(r)||{})),{ns:n,locale:l,zIndex:o,size:s}}const yu=(e,t,r=!1)=>{var n;const l=!!N.getCurrentInstance(),o=l?la():void 0,s=(n=void 0)!=null?n:l?N.provide:void 0;if(!s)return;const u=N.computed(()=>{const h=N.unref(e);return o!=null&&o.value?Xm(o.value,h):h});return s(tu,u),s(fu,N.computed(()=>u.value.locale)),s(ru,N.computed(()=>u.value.namespace)),s(cu,N.computed(()=>u.value.zIndex)),s(mu,{size:N.computed(()=>u.value.size||"")}),s(Qm,N.computed(()=>({emptyValues:u.value.emptyValues,valueOnClear:u.value.valueOnClear}))),(r||!In.value)&&(In.value=u.value),u},Xm=(e,t)=>{const r=[...new Set([...d0(e),...d0(t)])],n={};for(const l of r)n[l]=t[l]!==void 0?t[l]:e[l];return n};var _r=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r};function qo(e,t="px"){if(!e)return"";if(Qt(e)||Cm(e))return`${e}${t}`;if(Gt(e))return e}const ua=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t!=null?t:{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},gu=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),Zm=e=>(e.install=Em,e),Jm=tr({size:{type:qe([Number,String])},color:{type:String}}),e2=N.defineComponent({name:"ElIcon",inheritAttrs:!1}),t2=N.defineComponent(_e(he({},e2),{props:Jm,setup(e){const t=e,r=wr("icon"),n=N.computed(()=>{const{size:l,color:o}=t;return!l&&!o?{}:{fontSize:iu(l)?void 0:qo(l),"--color":o}});return(l,o)=>(N.openBlock(),N.createElementBlock("i",N.mergeProps({class:N.unref(r).b(),style:N.unref(n)},l.$attrs),[N.renderSlot(l.$slots,"default")],16))}}));var r2=_r(t2,[["__file","icon.vue"]]);const mr=ua(r2);/*! Element Plus Icons Vue v2.3.2 */var n2=N.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,r)=>(N.openBlock(),N.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N.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"})]))}}),i2=n2,o2=N.defineComponent({name:"Close",__name:"close",setup(e){return(t,r)=>(N.openBlock(),N.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N.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"})]))}}),xu=o2,a2=N.defineComponent({name:"InfoFilled",__name:"info-filled",setup(e){return(t,r)=>(N.openBlock(),N.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N.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.99 12.99 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"})]))}}),m0=a2,s2=N.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,r)=>(N.openBlock(),N.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),l2=s2,u2=N.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,r)=>(N.openBlock(),N.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N.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.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),c2=u2,f2=N.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,r)=>(N.openBlock(),N.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 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"})]))}}),h2=f2;const Nr=qe([String,Object,Function]),p2={Close:xu},Dn={primary:m0,success:c2,warning:h2,error:i2,info:m0},d2=e=>e,ca=Symbol("formContextKey"),bu=Symbol("formItemContextKey"),m2=()=>{const e=N.inject(ca,void 0),t=N.inject(bu,void 0);return{form:e,formItem:t}},wu=e=>{const t=N.getCurrentInstance();return N.computed(()=>{var r,n;return(n=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:n[e]})},v2=(e,t={})=>{const r=N.ref(void 0),n=t.prop?r:wu("size"),l=t.global?r:Gm(),o=t.form?{size:void 0}:N.inject(ca,void 0),s=t.formItem?{size:void 0}:N.inject(bu,void 0);return N.computed(()=>n.value||N.unref(e)||(s==null?void 0:s.size)||(o==null?void 0:o.size)||l.value||"")},_u=e=>{const t=wu("disabled"),r=N.inject(ca,void 0);return N.computed(()=>t.value||N.unref(e)||(r==null?void 0:r.disabled)||!1)},An={esc:"Escape",delete:"Delete",backspace:"Backspace"},y2=tr({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:qe([String,Object,Array])},offset:{type:qe(Array),default:[0,0]},badgeClass:{type:String}}),g2=N.defineComponent({name:"ElBadge"}),x2=N.defineComponent(_e(he({},g2),{props:y2,setup(e,{expose:t}){const r=e,n=wr("badge"),l=N.computed(()=>r.isDot?"":Qt(r.value)&&Qt(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`),o=N.computed(()=>{var s,u,h,a,i;return[{backgroundColor:r.color,marginRight:qo(-((u=(s=r.offset)==null?void 0:s[0])!=null?u:0)),marginTop:qo((a=(h=r.offset)==null?void 0:h[1])!=null?a:0)},(i=r.badgeStyle)!=null?i:{}]});return t({content:l}),(s,u)=>(N.openBlock(),N.createElementBlock("div",{class:N.normalizeClass(N.unref(n).b())},[N.renderSlot(s.$slots,"default"),N.createVNode(N.Transition,{name:`${N.unref(n).namespace.value}-zoom-in-center`,persisted:""},{default:N.withCtx(()=>[N.withDirectives(N.createElementVNode("sup",{class:N.normalizeClass([N.unref(n).e("content"),N.unref(n).em("content",s.type),N.unref(n).is("fixed",!!s.$slots.default),N.unref(n).is("dot",s.isDot),N.unref(n).is("hide-zero",!s.showZero&&r.value===0),s.badgeClass]),style:N.normalizeStyle(N.unref(o))},[N.renderSlot(s.$slots,"content",{value:N.unref(l)},()=>[N.createTextVNode(N.toDisplayString(N.unref(l)),1)])],6),[[N.vShow,!s.hidden&&(N.unref(l)||s.isDot||s.$slots.content)]])]),_:3},8,["name"])],2))}}));var b2=_r(x2,[["__file","badge.vue"]]);const w2=ua(b2),Eu=Symbol("buttonGroupContextKey"),_2=({from:e,replacement:t,scope:r,version:n,ref:l,type:o="API"},s)=>{N.watch(()=>N.unref(s),u=>{},{immediate:!0})},E2=(e,t)=>{_2({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},N.computed(()=>e.type==="text"));const r=N.inject(Eu,void 0),n=la("button"),{form:l}=m2(),o=v2(N.computed(()=>r==null?void 0:r.size)),s=_u(),u=N.ref(),h=N.useSlots(),a=N.computed(()=>{var m;return e.type||(r==null?void 0:r.type)||((m=n.value)==null?void 0:m.type)||""}),i=N.computed(()=>{var m,g,x;return(x=(g=e.autoInsertSpace)!=null?g:(m=n.value)==null?void 0:m.autoInsertSpace)!=null?x:!1}),d=N.computed(()=>{var m,g,x;return(x=(g=e.plain)!=null?g:(m=n.value)==null?void 0:m.plain)!=null?x:!1}),c=N.computed(()=>{var m,g,x;return(x=(g=e.round)!=null?g:(m=n.value)==null?void 0:m.round)!=null?x:!1}),f=N.computed(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=N.computed(()=>{var m;const g=(m=h.default)==null?void 0:m.call(h);if(i.value&&(g==null?void 0:g.length)===1){const x=g[0];if((x==null?void 0:x.type)===N.Text){const y=x.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(y.trim())}}return!1});return{_disabled:s,_size:o,_type:a,_ref:u,_props:f,_plain:d,_round:c,shouldAddSpace:p,handleClick:m=>{if(s.value||e.loading){m.stopPropagation();return}e.nativeType==="reset"&&(l==null||l.resetFields()),t("click",m)}}},A2=["default","primary","success","warning","info","danger","text",""],C2=["button","submit","reset"],jo=tr({size:du,disabled:Boolean,type:{type:String,values:A2,default:""},icon:{type:Nr},nativeType:{type:String,values:C2,default:"button"},loading:Boolean,loadingIcon:{type:Nr,default:()=>l2},plain:{type:Boolean,default:void 0},text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:qe([String,Object]),default:"button"}}),S2={click:e=>e instanceof MouseEvent};function $e(e,t){B2(e)&&(e="100%");var r=k2(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function mn(e){return Math.min(1,Math.max(0,e))}function B2(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function k2(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Au(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function vn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ht(e){return e.length===1?"0"+e:String(e)}function T2(e,t,r){return{r:$e(e,255)*255,g:$e(t,255)*255,b:$e(r,255)*255}}function v0(e,t,r){e=$e(e,255),t=$e(t,255),r=$e(r,255);var n=Math.max(e,t,r),l=Math.min(e,t,r),o=0,s=0,u=(n+l)/2;if(n===l)s=0,o=0;else{var h=n-l;switch(s=u>.5?h/(2-n-l):h/(n+l),n){case e:o=(t-r)/h+(t<r?6:0);break;case t:o=(r-e)/h+2;break;case r:o=(e-t)/h+4;break}o/=6}return{h:o,s,l:u}}function _o(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function F2(e,t,r){var n,l,o;if(e=$e(e,360),t=$e(t,100),r=$e(r,100),t===0)l=r,o=r,n=r;else{var s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;n=_o(u,s,e+1/3),l=_o(u,s,e),o=_o(u,s,e-1/3)}return{r:n*255,g:l*255,b:o*255}}function y0(e,t,r){e=$e(e,255),t=$e(t,255),r=$e(r,255);var n=Math.max(e,t,r),l=Math.min(e,t,r),o=0,s=n,u=n-l,h=n===0?0:u/n;if(n===l)o=0;else{switch(n){case e:o=(t-r)/u+(t<r?6:0);break;case t:o=(r-e)/u+2;break;case r:o=(e-t)/u+4;break}o/=6}return{h:o,s:h,v:s}}function I2(e,t,r){e=$e(e,360)*6,t=$e(t,100),r=$e(r,100);var n=Math.floor(e),l=e-n,o=r*(1-t),s=r*(1-l*t),u=r*(1-(1-l)*t),h=n%6,a=[r,s,o,o,u,r][h],i=[u,r,r,s,o,o][h],d=[o,o,u,r,r,s][h];return{r:a*255,g:i*255,b:d*255}}function g0(e,t,r,n){var l=[Ht(Math.round(e).toString(16)),Ht(Math.round(t).toString(16)),Ht(Math.round(r).toString(16))];return n&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function D2(e,t,r,n,l){var o=[Ht(Math.round(e).toString(16)),Ht(Math.round(t).toString(16)),Ht(Math.round(r).toString(16)),Ht(R2(n))];return l&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function R2(e){return Math.round(parseFloat(e)*255).toString(16)}function x0(e){return tt(e)/255}function tt(e){return parseInt(e,16)}function O2(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Ho={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function P2(e){var t={r:0,g:0,b:0},r=1,n=null,l=null,o=null,s=!1,u=!1;return typeof e=="string"&&(e=L2(e)),typeof e=="object"&&(Et(e.r)&&Et(e.g)&&Et(e.b)?(t=T2(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Et(e.h)&&Et(e.s)&&Et(e.v)?(n=vn(e.s),l=vn(e.v),t=I2(e.h,n,l),s=!0,u="hsv"):Et(e.h)&&Et(e.s)&&Et(e.l)&&(n=vn(e.s),o=vn(e.l),t=F2(e.h,n,o),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=Au(r),{ok:s,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var M2="[-\\+]?\\d+%?",N2="[-\\+]?\\d*\\.\\d+%?",Dt="(?:".concat(N2,")|(?:").concat(M2,")"),Eo="[\\s|\\(]+(".concat(Dt,")[,|\\s]+(").concat(Dt,")[,|\\s]+(").concat(Dt,")\\s*\\)?"),Ao="[\\s|\\(]+(".concat(Dt,")[,|\\s]+(").concat(Dt,")[,|\\s]+(").concat(Dt,")[,|\\s]+(").concat(Dt,")\\s*\\)?"),ut={CSS_UNIT:new RegExp(Dt),rgb:new RegExp("rgb"+Eo),rgba:new RegExp("rgba"+Ao),hsl:new RegExp("hsl"+Eo),hsla:new RegExp("hsla"+Ao),hsv:new RegExp("hsv"+Eo),hsva:new RegExp("hsva"+Ao),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function L2(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ho[e])e=Ho[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=ut.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=ut.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ut.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=ut.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ut.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=ut.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ut.hex8.exec(e),r?{r:tt(r[1]),g:tt(r[2]),b:tt(r[3]),a:x0(r[4]),format:t?"name":"hex8"}:(r=ut.hex6.exec(e),r?{r:tt(r[1]),g:tt(r[2]),b:tt(r[3]),format:t?"name":"hex"}:(r=ut.hex4.exec(e),r?{r:tt(r[1]+r[1]),g:tt(r[2]+r[2]),b:tt(r[3]+r[3]),a:x0(r[4]+r[4]),format:t?"name":"hex8"}:(r=ut.hex3.exec(e),r?{r:tt(r[1]+r[1]),g:tt(r[2]+r[2]),b:tt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Et(e){return!!ut.CSS_UNIT.exec(String(e))}var U2=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=O2(t)),this.originalInput=t;var l=P2(t);this.originalInput=t,this.r=l.r,this.g=l.g,this.b=l.b,this.a=l.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:l.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=l.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,l,o=t.r/255,s=t.g/255,u=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),u<=.03928?l=u/12.92:l=Math.pow((u+.055)/1.055,2.4),.2126*r+.7152*n+.0722*l},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Au(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=y0(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=y0(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),l=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(l,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=v0(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=v0(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),l=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(l,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),g0(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),D2(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round($e(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round($e(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+g0(this.r,this.g,this.b,!1),r=0,n=Object.entries(Ho);r<n.length;r++){var l=n[r],o=l[0],s=l[1];if(t===s)return o}return!1},e.prototype.toString=function(t){var r=!!t;t=t!=null?t:this.format;var n=!1,l=this.a<1&&this.a>=0,o=!r&&l&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=mn(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=mn(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=mn(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=mn(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),l=new e(t).toRgb(),o=r/100,s={r:(l.r-n.r)*o+n.r,g:(l.g-n.g)*o+n.g,b:(l.b-n.b)*o+n.b,a:(l.a-n.a)*o+n.a};return new e(s)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),l=360/r,o=[this];for(n.h=(n.h-(l*t>>1)+720)%360;--t;)n.h=(n.h+l)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,l=r.s,o=r.v,s=[],u=1/t;t--;)s.push(new e({h:n,s:l,v:o})),o=(o+u)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),l=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/l,g:(r.g*r.a+n.g*n.a*(1-r.a))/l,b:(r.b*r.a+n.b*n.a*(1-r.a))/l,a:l})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,l=[this],o=360/t,s=1;s<t;s++)l.push(new e({h:(n+s*o)%360,s:r.s,l:r.l}));return l},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ft(e,t=20){return e.mix("#141414",t).toString()}function z2(e){const t=_u(),r=wr("button");return N.computed(()=>{let n={},l=e.color;if(l){const o=l.match(/var\((.*?)\)/);o&&(l=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const s=new U2(l),u=e.dark?s.tint(20).toString():Ft(s,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?Ft(s,90):s.tint(90).toString(),"text-color":l,"border-color":e.dark?Ft(s,50):s.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":l,"hover-border-color":l,"active-bg-color":u,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":u}),t.value&&(n[r.cssVarBlockName("disabled-bg-color")]=e.dark?Ft(s,90):s.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?Ft(s,50):s.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?Ft(s,80):s.tint(80).toString());else{const h=e.dark?Ft(s,30):s.tint(30).toString(),a=s.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(n=r.cssVarBlock({"bg-color":l,"text-color":a,"border-color":l,"hover-bg-color":h,"hover-text-color":a,"hover-border-color":h,"active-bg-color":u,"active-border-color":u}),t.value){const i=e.dark?Ft(s,50):s.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=i,n[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=i}}}return n})}const q2=N.defineComponent({name:"ElButton"}),j2=N.defineComponent(_e(he({},q2),{props:jo,emits:S2,setup(e,{expose:t,emit:r}){const n=e,l=z2(n),o=wr("button"),{_ref:s,_size:u,_type:h,_disabled:a,_props:i,_plain:d,_round:c,shouldAddSpace:f,handleClick:p}=E2(n,r),v=N.computed(()=>[o.b(),o.m(h.value),o.m(u.value),o.is("disabled",a.value),o.is("loading",n.loading),o.is("plain",d.value),o.is("round",c.value),o.is("circle",n.circle),o.is("text",n.text),o.is("link",n.link),o.is("has-bg",n.bg)]);return t({ref:s,size:u,type:h,disabled:a,shouldAddSpace:f}),(m,g)=>(N.openBlock(),N.createBlock(N.resolveDynamicComponent(m.tag),N.mergeProps({ref_key:"_ref",ref:s},N.unref(i),{class:N.unref(v),style:N.unref(l),onClick:N.unref(p)}),{default:N.withCtx(()=>[m.loading?(N.openBlock(),N.createElementBlock(N.Fragment,{key:0},[m.$slots.loading?N.renderSlot(m.$slots,"loading",{key:0}):(N.openBlock(),N.createBlock(N.unref(mr),{key:1,class:N.normalizeClass(N.unref(o).is("loading"))},{default:N.withCtx(()=>[(N.openBlock(),N.createBlock(N.resolveDynamicComponent(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(N.openBlock(),N.createBlock(N.unref(mr),{key:1},{default:N.withCtx(()=>[m.icon?(N.openBlock(),N.createBlock(N.resolveDynamicComponent(m.icon),{key:0})):N.renderSlot(m.$slots,"icon",{key:1})]),_:3})):N.createCommentVNode("v-if",!0),m.$slots.default?(N.openBlock(),N.createElementBlock("span",{key:2,class:N.normalizeClass({[N.unref(o).em("text","expand")]:N.unref(f)})},[N.renderSlot(m.$slots,"default")],2)):N.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}}));var H2=_r(j2,[["__file","button.vue"]]);const $2={size:jo.size,type:jo.type},V2=N.defineComponent({name:"ElButtonGroup"}),W2=N.defineComponent(_e(he({},V2),{props:$2,setup(e){const t=e;N.provide(Eu,N.reactive({size:N.toRef(t,"size"),type:N.toRef(t,"type")}));const r=wr("button");return(n,l)=>(N.openBlock(),N.createElementBlock("div",{class:N.normalizeClass(N.unref(r).b("group"))},[N.renderSlot(n.$slots,"default")],2))}}));var Cu=_r(W2,[["__file","button-group.vue"]]);const K2=ua(H2,{ButtonGroup:Cu});Zm(Cu);var Su={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(xe,function(){var r=1e3,n=6e4,l=36e5,o="millisecond",s="second",u="minute",h="hour",a="day",i="week",d="month",c="quarter",f="year",p="date",v="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,x={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("_"),ordinal:function(D){var P=["th","st","nd","rd"],j=D%100;return"["+D+(P[(j-20)%10]||P[j]||P[0])+"]"}},y=function(D,P,j){var Z=String(D);return!Z||Z.length>=P?D:""+Array(P+1-Z.length).join(j)+D},w={s:y,z:function(D){var P=-D.utcOffset(),j=Math.abs(P),Z=Math.floor(j/60),V=j%60;return(P<=0?"+":"-")+y(Z,2,"0")+":"+y(V,2,"0")},m:function D(P,j){if(P.date()<j.date())return-D(j,P);var Z=12*(j.year()-P.year())+(j.month()-P.month()),V=P.clone().add(Z,d),L=j-V<0,H=P.clone().add(Z+(L?-1:1),d);return+(-(Z+(j-V)/(L?V-H:H-V))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:d,y:f,w:i,d:a,D:p,h,m:u,s,ms:o,Q:c}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},k="en",T={};T[k]=x;var F="$isDayjsObject",I=function(D){return D instanceof A||!(!D||!D[F])},G=function D(P,j,Z){var V;if(!P)return k;if(typeof P=="string"){var L=P.toLowerCase();T[L]&&(V=L),j&&(T[L]=j,V=L);var H=P.split("-");if(!V&&H.length>1)return D(H[0])}else{var U=P.name;T[U]=P,V=U}return!Z&&V&&(k=V),V||!Z&&k},K=function(D,P){if(I(D))return D.clone();var j=typeof P=="object"?P:{};return j.date=D,j.args=arguments,new A(j)},E=w;E.l=G,E.i=I,E.w=function(D,P){return K(D,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var A=function(){function D(j){this.$L=G(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[F]=!0}var P=D.prototype;return P.parse=function(j){this.$d=function(Z){var V=Z.date,L=Z.utc;if(V===null)return new Date(NaN);if(E.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var H=V.match(m);if(H){var U=H[2]-1||0,O=(H[7]||"0").substring(0,3);return L?new Date(Date.UTC(H[1],U,H[3]||1,H[4]||0,H[5]||0,H[6]||0,O)):new Date(H[1],U,H[3]||1,H[4]||0,H[5]||0,H[6]||0,O)}}return new Date(V)}(j),this.init()},P.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},P.$utils=function(){return E},P.isValid=function(){return this.$d.toString()!==v},P.isSame=function(j,Z){var V=K(j);return this.startOf(Z)<=V&&V<=this.endOf(Z)},P.isAfter=function(j,Z){return K(j)<this.startOf(Z)},P.isBefore=function(j,Z){return this.endOf(Z)<K(j)},P.$g=function(j,Z,V){return E.u(j)?this[Z]:this.set(V,j)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(j,Z){var V=this,L=!!E.u(Z)||Z,H=E.p(j),U=function(b,_){var R=E.w(V.$u?Date.UTC(V.$y,_,b):new Date(V.$y,_,b),V);return L?R:R.endOf(a)},O=function(b,_){return E.w(V.toDate()[b].apply(V.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(_)),V)},W=this.$W,$=this.$M,J=this.$D,ie="set"+(this.$u?"UTC":"");switch(H){case f:return L?U(1,0):U(31,11);case d:return L?U(1,$):U(0,$+1);case i:var ae=this.$locale().weekStart||0,oe=(W<ae?W+7:W)-ae;return U(L?J-oe:J+(6-oe),$);case a:case p:return O(ie+"Hours",0);case h:return O(ie+"Minutes",1);case u:return O(ie+"Seconds",2);case s:return O(ie+"Milliseconds",3);default:return this.clone()}},P.endOf=function(j){return this.startOf(j,!1)},P.$set=function(j,Z){var V,L=E.p(j),H="set"+(this.$u?"UTC":""),U=(V={},V[a]=H+"Date",V[p]=H+"Date",V[d]=H+"Month",V[f]=H+"FullYear",V[h]=H+"Hours",V[u]=H+"Minutes",V[s]=H+"Seconds",V[o]=H+"Milliseconds",V)[L],O=L===a?this.$D+(Z-this.$W):Z;if(L===d||L===f){var W=this.clone().set(p,1);W.$d[U](O),W.init(),this.$d=W.set(p,Math.min(this.$D,W.daysInMonth())).$d}else U&&this.$d[U](O);return this.init(),this},P.set=function(j,Z){return this.clone().$set(j,Z)},P.get=function(j){return this[E.p(j)]()},P.add=function(j,Z){var V,L=this;j=Number(j);var H=E.p(Z),U=function($){var J=K(L);return E.w(J.date(J.date()+Math.round($*j)),L)};if(H===d)return this.set(d,this.$M+j);if(H===f)return this.set(f,this.$y+j);if(H===a)return U(1);if(H===i)return U(7);var O=(V={},V[u]=n,V[h]=l,V[s]=r,V)[H]||1,W=this.$d.getTime()+j*O;return E.w(W,this)},P.subtract=function(j,Z){return this.add(-1*j,Z)},P.format=function(j){var Z=this,V=this.$locale();if(!this.isValid())return V.invalidDate||v;var L=j||"YYYY-MM-DDTHH:mm:ssZ",H=E.z(this),U=this.$H,O=this.$m,W=this.$M,$=V.weekdays,J=V.months,ie=V.meridiem,ae=function(_,R,Q,ee){return _&&(_[R]||_(Z,L))||Q[R].slice(0,ee)},oe=function(_){return E.s(U%12||12,_,"0")},b=ie||function(_,R,Q){var ee=_<12?"AM":"PM";return Q?ee.toLowerCase():ee};return L.replace(g,function(_,R){return R||function(Q){switch(Q){case"YY":return String(Z.$y).slice(-2);case"YYYY":return E.s(Z.$y,4,"0");case"M":return W+1;case"MM":return E.s(W+1,2,"0");case"MMM":return ae(V.monthsShort,W,J,3);case"MMMM":return ae(J,W);case"D":return Z.$D;case"DD":return E.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return ae(V.weekdaysMin,Z.$W,$,2);case"ddd":return ae(V.weekdaysShort,Z.$W,$,3);case"dddd":return $[Z.$W];case"H":return String(U);case"HH":return E.s(U,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return b(U,O,!0);case"A":return b(U,O,!1);case"m":return String(O);case"mm":return E.s(O,2,"0");case"s":return String(Z.$s);case"ss":return E.s(Z.$s,2,"0");case"SSS":return E.s(Z.$ms,3,"0");case"Z":return H}return null}(_)||H.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(j,Z,V){var L,H=this,U=E.p(Z),O=K(j),W=(O.utcOffset()-this.utcOffset())*n,$=this-O,J=function(){return E.m(H,O)};switch(U){case f:L=J()/12;break;case d:L=J();break;case c:L=J()/3;break;case i:L=($-W)/6048e5;break;case a:L=($-W)/864e5;break;case h:L=$/l;break;case u:L=$/n;break;case s:L=$/r;break;default:L=$}return V?L:E.a(L)},P.daysInMonth=function(){return this.endOf(d).$D},P.$locale=function(){return T[this.$L]},P.locale=function(j,Z){if(!j)return this.$L;var V=this.clone(),L=G(j,Z,!0);return L&&(V.$L=L),V},P.clone=function(){return E.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},D}(),S=A.prototype;return K.prototype=S,[["$ms",o],["$s",s],["$m",u],["$H",h],["$W",a],["$M",d],["$y",f],["$D",p]].forEach(function(D){S[D[1]]=function(P){return this.$g(P,D[0],D[1])}}),K.extend=function(D,P){return D.$i||(D(P,A,K),D.$i=!0),K},K.locale=G,K.isDayjs=I,K.unix=function(D){return K(1e3*D)},K.en=T[k],K.Ls=T,K.p={},K})})(Su);var G2=Su.exports;const Q2=Vo(G2),Y2=tr(he({a11y:{type:Boolean,default:!0},locale:{type:qe(Object)},size:du,button:{type:qe(Object)},card:{type:qe(Object)},dialog:{type:qe(Object)},link:{type:qe(Object)},experimentalFeatures:{type:qe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:qe(Object)},zIndex:Number,namespace:{type:String,default:"el"}},Ym)),rt={};N.defineComponent({name:"ElConfigProvider",props:Y2,setup(e,{slots:t}){const r=yu(e);return N.watch(()=>e.message,n=>{var l,o;Object.assign(rt,(o=(l=r==null?void 0:r.value)==null?void 0:l.message)!=null?o:{},n!=null?n:{})},{immediate:!0,deep:!0}),()=>N.renderSlot(t,"default",{config:r==null?void 0:r.value})}});const Bu=["primary","success","info","warning","error"],Qe=d2({customClass:"",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:er?document.body:void 0}),X2=tr({customClass:{type:String,default:Qe.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Qe.dangerouslyUseHTMLString},duration:{type:Number,default:Qe.duration},icon:{type:Nr,default:Qe.icon},id:{type:String,default:Qe.id},message:{type:qe([String,Object,Function]),default:Qe.message},onClose:{type:qe(Function),default:Qe.onClose},showClose:{type:Boolean,default:Qe.showClose},type:{type:String,values:Bu,default:Qe.type},plain:{type:Boolean,default:Qe.plain},offset:{type:Number,default:Qe.offset},zIndex:{type:Number,default:Qe.zIndex},grouping:{type:Boolean,default:Qe.grouping},repeatNum:{type:Number,default:Qe.repeatNum}}),Z2={destroy:()=>!0},ft=N.shallowReactive([]),J2=e=>{const t=ft.findIndex(l=>l.id===e),r=ft[t];let n;return t>0&&(n=ft[t-1]),{current:r,prev:n}},ev=e=>{const{prev:t}=J2(e);return t?t.vm.exposed.bottom.value:0},tv=(e,t)=>ft.findIndex(n=>n.id===e)>0?16:t,rv=N.defineComponent({name:"ElMessage"}),nv=N.defineComponent(_e(he({},rv),{props:X2,emits:Z2,setup(e,{expose:t,emit:r}){const n=e,{Close:l}=p2,o=N.ref(!1),{ns:s,zIndex:u}=vu("message"),{currentZIndex:h,nextZIndex:a}=u,i=N.ref(),d=N.ref(!1),c=N.ref(0);let f;const p=N.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),v=N.computed(()=>{const G=n.type;return{[s.bm("icon",G)]:G&&Dn[G]}}),m=N.computed(()=>n.icon||Dn[n.type]||""),g=N.computed(()=>ev(n.id)),x=N.computed(()=>tv(n.id,n.offset)+g.value),y=N.computed(()=>c.value+x.value),w=N.computed(()=>({top:`${x.value}px`,zIndex:h.value}));function k(){n.duration!==0&&({stop:f}=ou(()=>{F()},n.duration))}function T(){f==null||f()}function F(){d.value=!1,N.nextTick(()=>{var G;o.value||((G=n.onClose)==null||G.call(n),r("destroy"))})}function I({code:G}){G===An.esc&&F()}return N.onMounted(()=>{k(),a(),d.value=!0}),N.watch(()=>n.repeatNum,()=>{T(),k()}),lu(document,"keydown",I),Om(i,()=>{c.value=i.value.getBoundingClientRect().height}),t({visible:d,bottom:y,close:F}),(G,K)=>(N.openBlock(),N.createBlock(N.Transition,{name:N.unref(s).b("fade"),onBeforeEnter:E=>o.value=!0,onBeforeLeave:G.onClose,onAfterLeave:E=>G.$emit("destroy"),persisted:""},{default:N.withCtx(()=>[N.withDirectives(N.createElementVNode("div",{id:G.id,ref_key:"messageRef",ref:i,class:N.normalizeClass([N.unref(s).b(),{[N.unref(s).m(G.type)]:G.type},N.unref(s).is("closable",G.showClose),N.unref(s).is("plain",G.plain),G.customClass]),style:N.normalizeStyle(N.unref(w)),role:"alert",onMouseenter:T,onMouseleave:k},[G.repeatNum>1?(N.openBlock(),N.createBlock(N.unref(w2),{key:0,value:G.repeatNum,type:N.unref(p),class:N.normalizeClass(N.unref(s).e("badge"))},null,8,["value","type","class"])):N.createCommentVNode("v-if",!0),N.unref(m)?(N.openBlock(),N.createBlock(N.unref(mr),{key:1,class:N.normalizeClass([N.unref(s).e("icon"),N.unref(v)])},{default:N.withCtx(()=>[(N.openBlock(),N.createBlock(N.resolveDynamicComponent(N.unref(m))))]),_:1},8,["class"])):N.createCommentVNode("v-if",!0),N.renderSlot(G.$slots,"default",{},()=>[G.dangerouslyUseHTMLString?(N.openBlock(),N.createElementBlock(N.Fragment,{key:1},[N.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),N.createElementVNode("p",{class:N.normalizeClass(N.unref(s).e("content")),innerHTML:G.message},null,10,["innerHTML"])],2112)):(N.openBlock(),N.createElementBlock("p",{key:0,class:N.normalizeClass(N.unref(s).e("content"))},N.toDisplayString(G.message),3))]),G.showClose?(N.openBlock(),N.createBlock(N.unref(mr),{key:2,class:N.normalizeClass(N.unref(s).e("closeBtn")),onClick:N.withModifiers(F,["stop"])},{default:N.withCtx(()=>[N.createVNode(N.unref(l))]),_:1},8,["class","onClick"])):N.createCommentVNode("v-if",!0)],46,["id"]),[[N.vShow,d.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}}));var iv=_r(nv,[["__file","message.vue"]]);let ov=1;const ku=e=>{const t=!e||Gt(e)||N.isVNode(e)||Mr(e)?{message:e}:e,r=he(he({},Qe),t);if(!r.appendTo)r.appendTo=document.body;else if(Gt(r.appendTo)){let n=document.querySelector(r.appendTo);zo(n)||(n=document.body),r.appendTo=n}return wo(rt.grouping)&&!r.grouping&&(r.grouping=rt.grouping),Qt(rt.duration)&&r.duration===3e3&&(r.duration=rt.duration),Qt(rt.offset)&&r.offset===16&&(r.offset=rt.offset),wo(rt.showClose)&&!r.showClose&&(r.showClose=rt.showClose),wo(rt.plain)&&!r.plain&&(r.plain=rt.plain),r},av=e=>{const t=ft.indexOf(e);if(t===-1)return;ft.splice(t,1);const{handler:r}=e;r.close()},sv=(n,r)=>{var l=n,{appendTo:e}=l,t=ga(l,["appendTo"]);const o=`message_${ov++}`,s=t.onClose,u=document.createElement("div"),h=_e(he({},t),{id:o,onClose:()=>{s==null||s(),av(c)},onDestroy:()=>{N.render(null,u)}}),a=N.createVNode(iv,h,Mr(h.message)||N.isVNode(h.message)?{default:Mr(h.message)?h.message:()=>h.message}:null);a.appContext=r||vr._context,N.render(a,u),e.appendChild(u.firstElementChild);const i=a.component,c={id:o,vnode:a,vm:i,handler:{close:()=>{i.exposed.close()}},props:a.component.props};return c},vr=(e={},t)=>{if(!er)return{close:()=>{}};const r=ku(e);if(r.grouping&&ft.length){const l=ft.find(({vnode:o})=>{var s;return((s=o.props)==null?void 0:s.message)===r.message});if(l)return l.props.repeatNum+=1,l.props.type=r.type,l.handler}if(Qt(rt.max)&&ft.length>=rt.max)return{close:()=>{}};const n=sv(r,t);return ft.push(n),n.handler};Bu.forEach(e=>{vr[e]=(t={},r)=>{const n=ku(t);return vr(_e(he({},n),{type:e}),r)}});function lv(e){const t=[...ft];for(const r of t)(!e||e===r.props.type)&&r.handler.close()}vr.closeAll=lv;vr._context=null;const ot=gu(vr,"$message"),Tu=["primary","success","info","warning","error"],uv=tr({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Nr},id:{type:String,default:""},message:{type:qe([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:qe(Function),default:()=>{}},onClose:{type:qe(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...Tu,""],default:""},zIndex:Number,closeIcon:{type:Nr,default:xu}}),cv={destroy:()=>!0},fv=N.defineComponent({name:"ElNotification"}),hv=N.defineComponent(_e(he({},fv),{props:uv,emits:cv,setup(e,{expose:t}){const r=e,{ns:n,zIndex:l}=vu("notification"),{nextZIndex:o,currentZIndex:s}=l,u=N.ref(!1);let h;const a=N.computed(()=>{const x=r.type;return x&&Dn[r.type]?n.m(x):""}),i=N.computed(()=>r.type&&Dn[r.type]||r.icon),d=N.computed(()=>r.position.endsWith("right")?"right":"left"),c=N.computed(()=>r.position.startsWith("top")?"top":"bottom"),f=N.computed(()=>{var x;return{[c.value]:`${r.offset}px`,zIndex:(x=r.zIndex)!=null?x:s.value}});function p(){r.duration>0&&({stop:h}=ou(()=>{u.value&&m()},r.duration))}function v(){h==null||h()}function m(){u.value=!1}function g({code:x}){x===An.delete||x===An.backspace?v():x===An.esc?u.value&&m():p()}return N.onMounted(()=>{p(),o(),u.value=!0}),lu(document,"keydown",g),t({visible:u,close:m}),(x,y)=>(N.openBlock(),N.createBlock(N.Transition,{name:N.unref(n).b("fade"),onBeforeLeave:x.onClose,onAfterLeave:w=>x.$emit("destroy"),persisted:""},{default:N.withCtx(()=>[N.withDirectives(N.createElementVNode("div",{id:x.id,class:N.normalizeClass([N.unref(n).b(),x.customClass,N.unref(d)]),style:N.normalizeStyle(N.unref(f)),role:"alert",onMouseenter:v,onMouseleave:p,onClick:x.onClick},[N.unref(i)?(N.openBlock(),N.createBlock(N.unref(mr),{key:0,class:N.normalizeClass([N.unref(n).e("icon"),N.unref(a)])},{default:N.withCtx(()=>[(N.openBlock(),N.createBlock(N.resolveDynamicComponent(N.unref(i))))]),_:1},8,["class"])):N.createCommentVNode("v-if",!0),N.createElementVNode("div",{class:N.normalizeClass(N.unref(n).e("group"))},[N.createElementVNode("h2",{class:N.normalizeClass(N.unref(n).e("title")),textContent:N.toDisplayString(x.title)},null,10,["textContent"]),N.withDirectives(N.createElementVNode("div",{class:N.normalizeClass(N.unref(n).e("content")),style:N.normalizeStyle(x.title?void 0:{margin:0})},[N.renderSlot(x.$slots,"default",{},()=>[x.dangerouslyUseHTMLString?(N.openBlock(),N.createElementBlock(N.Fragment,{key:1},[N.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),N.createElementVNode("p",{innerHTML:x.message},null,8,["innerHTML"])],2112)):(N.openBlock(),N.createElementBlock("p",{key:0},N.toDisplayString(x.message),1))])],6),[[N.vShow,x.message]]),x.showClose?(N.openBlock(),N.createBlock(N.unref(mr),{key:0,class:N.normalizeClass(N.unref(n).e("closeBtn")),onClick:N.withModifiers(m,["stop"])},{default:N.withCtx(()=>[(N.openBlock(),N.createBlock(N.resolveDynamicComponent(x.closeIcon)))]),_:1},8,["class","onClick"])):N.createCommentVNode("v-if",!0)],2)],46,["id","onClick"]),[[N.vShow,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}}));var pv=_r(hv,[["__file","notification.vue"]]);const yr={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Rn=16;let dv=1;const Yt=function(e={},t){if(!er)return{close:()=>{}};(Gt(e)||N.isVNode(e))&&(e={message:e});const r=e.position||"top-right";let n=e.offset||0;yr[r].forEach(({vm:i})=>{var d;n+=(((d=i.el)==null?void 0:d.offsetHeight)||0)+Rn}),n+=Rn;const l=`notification_${dv++}`,o=e.onClose,s=_e(he({},e),{offset:n,id:l,onClose:()=>{mv(l,r,o)}});let u=document.body;zo(e.appendTo)?u=e.appendTo:Gt(e.appendTo)&&(u=document.querySelector(e.appendTo)),zo(u)||(u=document.body);const h=document.createElement("div"),a=N.createVNode(pv,s,Mr(s.message)?s.message:N.isVNode(s.message)?()=>s.message:null);return a.appContext=iu(t)?Yt._context:t,a.props.onDestroy=()=>{N.render(null,h)},N.render(a,h),yr[r].push({vm:a}),u.appendChild(h.firstElementChild),{close:()=>{a.component.exposed.visible.value=!1}}};Tu.forEach(e=>{Yt[e]=(t={},r)=>((Gt(t)||N.isVNode(t))&&(t={message:t}),Yt(_e(he({},t),{type:e}),r))});function mv(e,t,r){const n=yr[t],l=n.findIndex(({vm:a})=>{var i;return((i=a.component)==null?void 0:i.props.id)===e});if(l===-1)return;const{vm:o}=n[l];if(!o)return;r==null||r(o);const s=o.el.offsetHeight,u=t.split("-")[0];n.splice(l,1);const h=n.length;if(!(h<1))for(let a=l;a<h;a++){const{el:i,component:d}=n[a].vm,c=Number.parseInt(i.style[u],10)-s-Rn;d.props.offset=c}}function vv(){for(const e of Object.values(yr))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}function yv(e="top-right"){var t,r,n;let l=((r=(t=yr[e][0])==null?void 0:t.vm.props)==null?void 0:r.offset)||0;for(const{vm:o}of yr[e])o.component.props.offset=l,l+=(((n=o.el)==null?void 0:n.offsetHeight)||0)+Rn}Yt.closeAll=vv;Yt.updateOffsets=yv;Yt._context=null;const gv=gu(Yt,"$notify"),Fu="0123456789abcdeffedcba9876543210",Iu="4b0de988570c3a0f",xv=window.ENCRYPT;let fr=xv&&new eu;function Du(e=16,t="0123456789abcdefghijklmnopqrstuvwxyz"){let r="",n=t.length;for(;e>0;)r+=t[Math.floor(Math.random()*n)],e--;return r}function Ru(){return He(this,null,function*(){return fr||(fr=new eu),new Promise((e,t)=>{fr.armEnum().then(r=>{e(+r)}).catch(r=>{ot({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),t(r)})})})}On.throttle(()=>He(exports,null,function*(){const e=yield Ru(),t={};if(typeof e!="number"||e<=0)ot({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),t.resetToken();else{const r=yield wv();if(!t.token)return;r.length?r.includes(t.ukeyHid)||(ot({type:"error",ElMessage:"U盘锁不匹配,请检查U盘锁!"}),t.resetToken()):(ot({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),t.resetToken())}}),5e3,{trailing:!1});function bv(e=0){return He(this,null,function*(){return fr?new Promise((t,r)=>{fr.armGetDongleInfo(e).then(n=>{n?t(n):(ot({type:"warning",ElMessage:"U盘锁信息为空,请检查U盘锁!"}),r(n))}).catch(n=>{r(n)})}):ot({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"})})}function wv(){return He(this,null,function*(){if(!fr)return ot({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"});const e=yield Ru();let t=[];for(let r=0;r<e;r++){const n=yield bv(r);t.push(n)}return t})}Du(16);Du(16);const Ou=window.meta.app.inspect?dr.constants.CBC:dr.constants.ECB;mm.generateKeyPair();function b0(e,t,r={}){const n=Pu(Iu),l=r.mode||Ou;r=l===dr.constants.ECB?he({mode:l,inputEncoding:"utf8",outputEncoding:"hex"},r):he({iv:Fu,mode:l,inputEncoding:"utf8",outputEncoding:"hex"},r);let o="";try{o=dr.encrypt(e,n,r)}catch(s){console.log("err: ",s)}return o}function w0(e,t,r={}){const n=Pu(Iu),l=r.mode||Ou;return r=l===dr.constants.ECB?he({mode:l,inputEncoding:"hex",outputEncoding:"utf8"},r):he({iv:Fu,mode:l,inputEncoding:"hex",outputEncoding:"utf8"},r),dr.decrypt(e,n,r)}function Pu(e){return[...e].map(t=>t.charCodeAt().toString(16)).join("")}const _0={getLocal:e=>{try{let t=window.localStorage.getItem(e);return t=t!==null?w0(t):t,JSON.parse(t)}catch(t){console.error(t)}},setLocal:(e,t)=>{try{let r=JSON.stringify(t);r=r!==null?b0(r):r,window.localStorage.setItem(e,r)}catch(r){console.error(r)}},eachLocal:e=>{if(!e||ps(e)!=="Function")return console.error("传递参数非函数类型!");for(let t=0,r=window.localStorage.length;t<r;t++){const n=window.localStorage.key(t);e((void 0).getLocal(n),n)}},clearLocal:()=>{window.localStorage.clear()},removeLocal:e=>{window.localStorage.removeItem(e)},getSession:e=>{try{let t=window.sessionStorage.getItem(e);return t=t!==null?w0(t):t,JSON.parse(t)}catch(t){console.error(t)}},setSession:(e,t)=>{try{let r=JSON.stringify(t);r=r!==null?b0(r):r,window.sessionStorage.setItem(e,r)}catch(r){console.error(r)}},eachSession:e=>{if(!e||ps(e)!=="Function")return console.error("传递参数非函数类型!");for(let t=0,r=window.sessionStorage.length;t<r;t++){const n=window.sessionStorage.key(t);e((void 0).getSession(n),n)}},clearSession:()=>{window.sessionStorage.clear()},removeSession:e=>{window.sessionStorage.removeItem(e)}},E0=e=>{const{quality:t,value:r,function_id:n}=e;return(t>>7&1)===1||t===0&&n===2&&r===1},A0="USER_TOKEN",C0="STATION_ID",_v=[{key:0,value:"离线"},{key:1,value:"在线"}],Ev=[{key:0,value:"反向"},{key:1,value:"正向"},{key:2,value:"停止"}],Av=[{key:1,value:1},{key:2,value:2},{key:3,value:3},{key:4,value:4},{key:5,value:5}],Cv="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1747379227336'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='23558'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='64'%20height='64'%3e%3cpath%20d='M687.543%20658.286c-21.943-10.972-47.543-10.972-65.829%200C599.771%20669.257%20588.8%20691.2%20588.8%20716.8s10.971%2043.886%2032.914%2058.514c21.943%2010.972%2047.543%2010.972%2065.829%200%2021.943-10.971%2032.914-32.914%2032.914-58.514s-14.628-43.886-32.914-58.514zM10.97%20694.857c-10.971%2021.943-14.628%2036.572%200%2051.2L91.43%20833.83c14.628%2014.628%2032.914%2010.971%2051.2%200l47.542-21.943-153.6-164.572-25.6%2047.543zM936.23%20526.63V650.97H724.114c29.257%2032.915%2032.915%2076.8%2014.629%20113.372h197.486V921.6H1024V526.629h-87.771z%20m-402.286%203.657l212.114-201.143c7.314-7.314%2010.972-14.629%2010.972-25.6%200-10.972-3.658-18.286-10.972-25.6L588.8%20113.37c-7.314-7.314-14.629-10.971-25.6-10.971-10.971%200-18.286%203.657-25.6%2010.971l-482.743%20460.8c-7.314%207.315-10.971%2014.629-10.971%2025.6%200%2010.972%203.657%2018.286%2010.971%2025.6l157.257%20164.572c7.315%207.314%2014.629%2010.971%2025.6%2010.971%2010.972%200%2018.286-3.657%2025.6-10.971l219.429-208.457%2080.457%2098.743c10.971-21.943%2029.257-40.229%2051.2-51.2l-80.457-98.743z'%20p-id='23559'%20fill='%23999999'%3e%3c/path%3e%3c/svg%3e",Sv="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1747379205045'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='23361'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='64'%20height='64'%3e%3cpath%20d='M808.19035614-5.81530905v72.49414403h144.98828683v147.05954724h74.56540444V-5.81530905zM77.03514075%2066.67883498h147.05954724V-5.81530905H4.54099794v219.55369127H77.03514075zM953.17864297%20942.82233719h-144.98828683v74.56540445h219.55369127V797.83405037h-74.56540444zM77.03514075%20797.83405037H4.54099794v219.55369127h219.55369005v-74.56540445H77.03514075zM866.18567111%20526.49882905v-6.21378371c2.07126164-20.71261275-14.49882905-39.35396386-35.21144058-41.4252255h-120.13315201c-8.28504534%200-14.49882905%202.07126164-20.71261275%206.21378371l-28.99765688-91.13549392c-6.2137837-14.49882905-18.64135111-24.85513482-35.21144058-28.99765688-16.57008947%202.07126164-28.99765689%2014.49882905-35.2114418%2028.99765688l-49.71026962%20155.34459259-35.21144059-275.4777446c0-14.49882905-14.49882905-28.99765689-35.21144059-35.21144059-20.71261275%200-35.21144059%206.2137837-35.21144179%2028.99765689l-70.42288117%20219.55369126-6.2137837-49.71026963c-8.28504534-12.42756741-20.71261275-22.78387317-35.2114418-28.99765687-14.49882905%200-28.99765689%208.28504534-35.21144058%2020.71261154l-35.21144059%2049.71026962h-84.92171142c-20.71261275%202.07126164-37.28270222%2014.49882905-43.49648593%2035.2114418%204.14252206%2020.71261275%2020.71261275%2037.28270222%2043.49648593%2041.42522428h105.63432296c10.35630577%200%2020.71261275-6.2137837%2028.99765809-14.49882903l28.99765688%2091.13549512c6.2137837%2016.57008947%2018.64135111%2026.92639645%2035.21144058%2031.06891852%2016.57008947-2.07126164%2028.99765689-14.49882905%2035.21144181-28.99765809l55.92405333-176.05720413%2035.21144058%20289.97657244c0%2014.49882905%2014.49882905%2028.99765689%2035.21144058%2035.21144057%2016.57008947-2.07126164%2028.99765689-14.49882905%2035.2114418-28.99765687l55.92405334-211.26864593%2020.71261153%2055.92405333c6.2137837%2014.49882905%2018.64135111%2024.85513482%2035.2114418%2028.99765688%2014.49882905%200%2028.99765689-8.28504534%2035.21144058-20.71261154l20.71261275-49.71026963h99.42053926c18.64135111%200%2033.14018016-14.49882905%2035.21144058-31.06891851z'%20p-id='23362'%20fill='%23999999'%3e%3c/path%3e%3c/svg%3e",Bv="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20class='icon'%20width='256px'%20height='256.00px'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M272.832598%20272.833878h479.9988v479.9988h-479.9988z'%20fill='%23BBE2FF'%20/%3e%3cpath%20d='M919.93498%20105.890295m-66.175834%200a66.175835%2066.175835%200%201%200%20132.351669%200%2066.175835%2066.175835%200%201%200-132.351669%200Z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M919.93498%20919.93626m-66.175834%200a66.175835%2066.175835%200%201%200%20132.351669%200%2066.175835%2066.175835%200%201%200-132.351669%200Z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M105.889015%20105.890295m-66.175834%200a66.175835%2066.175835%200%201%200%20132.351669%200%2066.175835%2066.175835%200%201%200-132.351669%200Z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M105.889015%20919.93626m-66.175834%200a66.175835%2066.175835%200%201%200%20132.351669%200%2066.175835%2066.175835%200%201%200-132.351669%200Z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M916.670988%201.026557a104.383739%20104.383739%200%200%200-104.383739%20104.383739%2090.751773%2090.751773%200%200%200%2016.895958%2052.863868l-73.919815%2070.847823h-489.086777l-74.079815-70.847823a97.087757%2097.087757%200%200%200%2017.087957-54.879862%20103.679741%20103.679741%200%200%200-104.415739-103.391742%20104.767738%20104.767738%200%201%200%200%20209.535476%20102.399744%20102.399744%200%200%200%2053.567866-15.295962l81.759796%2082.975793v479.9988l-74.623814%2075.679811a103.071742%20103.071742%200%200%200-60.799848-19.99995%20104.383739%20104.383739%200%201%200%20104.511739%20104.383739%20119.455701%20119.455701%200%200%200-12.959968-53.279867l73.407817-78.111805h482.174794l73.407817%2078.111805a111.007722%20111.007722%200%200%200-12.799968%2051.199872%20105.375737%20105.375737%200%200%200%20104.255739%20105.599736%20103.99974%20103.99974%200%201%200-61.183847-187.90353l-58.687853-58.943853v-513.310717l65.823835-66.239834a104.255739%20104.255739%200%201%200%2054.047865-193.375517z%20m-259.199352%20738.430154v-69.599826h92.799768v69.599826z%20m92.799768-115.99971h-139.039652v115.99971h-185.599536v-115.99971h-139.135652v-208.767478h139.167652v-139.167652h185.599536v139.167652h139.167652z%20m-371.007072-324.735188v69.599826h-92.799768v-69.599826z%20m-92.799768%20440.734898v-69.599826h92.799768v69.599826z%20m463.99884-440.734898v69.599826h-92.799768v-69.599826z%20m-703.678241-193.311517a57.983855%2057.983855%200%201%201%2057.983855%2057.983856%2057.983855%2057.983855%200%200%201-57.983855-57.983856z%20m57.983855%20869.885826a57.983855%2057.983855%200%201%201%2057.983855-57.983855%2057.983855%2057.983855%200%200%201-57.983855%2057.983855z%20m811.90197-115.99971a57.983855%2057.983855%200%201%201-57.983855%2057.983855%2057.983855%2057.983855%200%200%201%2057.983855-57.983855z%20m0-695.90226a57.983855%2057.983855%200%201%201%2057.983855-57.983856%2057.983855%2057.983855%200%200%201-57.983855%2057.983856z'%20fill='%230091EB'%20/%3e%3cpath%20d='M515.551991%2091.522331a82.847793%2082.847793%200%200%200-76.799808%2052.831868l43.295892%2016.639959a35.96791%2035.96791%200%200%201%2068.03183%202.719993l44.511889-13.087968a82.751793%2082.751793%200%200%200-79.039803-59.103852z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M647.487661%2098.018315a154.591614%20154.591614%200%200%200-131.90367-74.751813%20152.735618%20152.735618%200%200%200-131.199672%2073.599816l39.583901%2024.223939a107.295732%20107.295732%200%200%201%20183.711541%200.799998z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M515.551991%20947.168192a82.783793%2082.783793%200%200%200%2078.879803-59.071852l-44.511889-13.087968a35.93591%2035.93591%200%200%201-68.03183%202.687994l-43.295891%2016.671958a82.879793%2082.879793%200%200%200%2076.959807%2052.799868z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M384.384319%20941.888205a152.735618%20152.735618%200%200%200%20131.199672%2073.599816%20154.623613%20154.623613%200%200%200%20131.90367-74.751813l-39.8079-23.87194a107.295732%20107.295732%200%200%201-183.711541%200.831998z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M871.519101%20553.473176l13.087967%2044.511889a82.335794%2082.335794%200%200%200%206.399984-155.83961l-16.639958%2043.295891a35.96791%2035.96791%200%200%201-2.719993%2067.99983z'%20fill='%230091EB'%20/%3e%3cpath%20d='M1011.96675%20519.105262a152.767618%20152.767618%200%200%200-73.599816-131.199672l-24.223939%2039.583901a107.359732%20107.359732%200%200%201-0.831998%20183.711541l23.83994%2039.8079a154.591614%20154.591614%200%200%200%2074.815813-131.90367z'%20fill='%230091EB'%20/%3e%3cpath%20d='M157.472886%20485.505346l-16.607958-43.295892a82.335794%2082.335794%200%200%200%206.239984%20155.839611l13.119967-44.511889a35.93591%2035.93591%200%200%201-2.751993-67.99983z'%20fill='%230091EB'%20/%3e%3cpath%20d='M19.713231%20519.105262a154.623613%20154.623613%200%200%200%2074.751813%20131.93567l23.83994-39.8079a107.327732%20107.327732%200%200%201-0.863998-183.743541l-24.223939-39.583901a152.735618%20152.735618%200%200%200-73.599816%20131.199672z'%20fill='%230091EB'%20/%3e%3cpath%20d='M332.864448%20437.889465h69.599826v46.399884h-69.599826z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M472.0641%20437.889465h92.799768v46.399884h-92.799768z'%20fill='%230091EB'%20/%3e%3cpath%20d='M634.431694%20437.889465h69.599826v46.399884h-69.599826z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M332.864448%20530.689233h69.599826v46.399884h-69.599826z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M472.0641%20530.689233h92.799768v46.399884h-92.799768z'%20fill='%230091EB'%20/%3e%3cpath%20d='M634.431694%20530.689233h69.599826v46.399884h-69.599826z'%20fill='%23FFB541'%20/%3e%3cpath%20d='M272.832598%20272.833878h127.99968v127.99968h-127.99968z'%20fill='%230091EB'%20/%3e%3cpath%20d='M272.832598%20624.832998h127.99968v127.99968h-127.99968z'%20fill='%230091EB'%20/%3e%3cpath%20d='M624.831718%20272.833878h127.99968v127.99968h-127.99968z'%20fill='%230091EB'%20/%3e%3cpath%20d='M624.831718%20624.832998h127.99968v127.99968h-127.99968z'%20fill='%230091EB'%20/%3e%3c/svg%3e",kv="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753954524851'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1506'%20width='256'%20height='256'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M888.65792%20280.15616a46.80704%2046.80704%200%200%200-46.80704-46.80704H233.34912a46.80704%2046.80704%200%200%200-46.80704%2046.80704v93.61408h702.11584V280.15616zM186.54208%20420.5824v374.46144a46.80704%2046.80704%200%200%200%2046.80704%2046.80704h608.49664a46.80704%2046.80704%200%200%200%2046.80704-46.80704V420.5824H186.54208z%20m442.9056%2084.98688l30.92992%2011.47904c-15.62624%2024.23808-35.39968%2050.38592-50.70848%2067.6096l-25.51296-10.84416c15.31392-17.85856%2034.7648-46.56128%2045.29152-68.24448z%20m-184.64768-1.59744c17.54112%2020.09088%2038.26688%2047.5136%2047.5136%2065.37728l-25.51296%2015.62624c-8.61184-17.85856-28.70272-46.23872-45.92128-67.28704l23.92064-13.71648z%20m199.95136%20267.2384h-45.28128c-32.20992%200-39.86432-8.92928-39.86432-39.86432v-102.36416h-46.23872c-5.73952%2069.8368-21.6832%20121.18528-101.0944%20149.56544-3.5072-7.97184-11.47904-19.456-18.49344-25.51296%2072.07424-22.9632%2083.87072-66.01728%2088.65792-124.05248H399.19616v-28.70272h122.7776V483.88096h30.92992v116.39808h122.46016v28.70272h-85.7856v102.04672c0%2010.5216%201.90976%2012.11904%2013.71136%2012.11904h38.90176c8.92928%200%2010.84416-4.1472%2011.8016-28.38016%206.69696%204.78208%2019.12832%209.56928%2027.42272%2011.47904-3.49696%2035.39968-11.4688%2044.96384-36.66432%2044.96384z'%20fill='%23005CFF'%20p-id='1507'%3e%3c/path%3e%3c/svg%3e",At=window.meta.graph.penFormMap?window.meta.graph.penFormMap:{NORMAL:[{name:"颜色",key:"color",type:"color",dataIds:{}}],TEXT:[{name:"显示内容",key:"text",type:"text",dataIds:{}}],AUDIO:[{name:"颜色",key:"color",type:"color",dataIds:{}}],MP4:[{name:"颜色",key:"color",type:"color",dataIds:{}}],CAMERA:[{name:"颜色",key:"color",type:"color",dataIds:{}}],VIDEO_STREAM:[{name:"颜色",key:"color",type:"color",dataIds:{}}],POINT_VALUE:[{name:"在线状态",key:"online_state",type:"select",dataIds:{},options:[{label:"在线",value:1},{label:"离线",value:0}]},{name:"测点值",key:"point_value",type:"text",dataIds:{}}],LIGHT_PLATE:[{name:"光字牌",key:"light_plate",type:"select",dataIds:{},options:[{label:"离线",value:-1},{label:"正常",value:0},{label:"预警",value:1},{label:"一般",value:2},{label:"严重",value:3},{label:"危急",value:4}]}]},Mu=window.meta.graph.lightPlateColorMap?window.meta.graph.lightPlateColorMap:{0:"#00d200",1:"#e2ac06",2:"#fa800a",3:"#f04155",4:"#ff0000"},Nu=window.meta.graph.lightPlateTextMap?window.meta.graph.lightPlateTextMap:{0:"#fff",1:"#fff",2:"#fff",3:"#fff",4:"#fff"},Oe={form:[{name:"带电状态",key:"charged_state",type:"select",dataIds:{},options:_v.map(e=>({label:e.value,value:e.key}))},{name:"潮流方向",key:"electric_direction",type:"select",dataIds:{},options:Ev.map(e=>({label:e.value,value:e.key}))},{name:"电荷大小",key:"electric_size",type:"select",dataIds:{},options:Av.map(e=>({label:e.value,value:e.key}))}],anchors:[{x:0,y:.5,id:"0"},{x:.5,y:0,id:"1"},{x:1,y:.5,id:"2"},{x:.5,y:1,id:"3"}],dataType:window.dataType,dataProp:window.dataProp,visibleLevel:window.visibleLevel},ye=_e(he({penType:Se.NORMAL},Oe),{form:[...At[Se.NORMAL],...Oe.form]});Se.POINT_VALUE,Oe.anchors,window.visibleLevel,[...At[Se.POINT_VALUE],...Oe.form],Oe.form,window.dataType,window.dataProp,window.visibleLevel,Oe.form,window.dataType,window.dataProp,window.visibleLevel,Nu[0],Se.LIGHT_PLATE,Mu[0],Oe.anchors,window.visibleLevel,[...At[Se.LIGHT_PLATE],...Oe.form],Se.SENSOR,Oe.anchors,window.visibleLevel,[...At[Se.LIGHT_PLATE],...Oe.form],_e(he({width:100,height:30,name:"text",text:"文本",disableAnchor:!0,penType:Se.TEXT},Oe),{form:[...At[Se.TEXT],...Oe.form]}),he({width:100,height:100,name:"square"},ye),_e(he({type:1,name:"line",width:100,height:5,lineWidth:2,lineName:"line",penName:"line",background:"#FFF000",color:"#FFF000"},ye),{lineAnimateType:1,anchors:[{x:0,y:.5,id:"0"},{x:1,y:.5,id:"1"}]}),he({width:200,height:50,borderRadius:0,name:"rectangle"},ye),he({width:100,height:100,name:"circle"},ye),he({width:100,height:100,name:"triangle"},ye),he({width:100,height:100,name:"diamond"},ye),he({width:100,height:100,name:"pentagon"},ye),he({width:100,height:100,name:"hexagon"},ye),he({width:100,height:100,name:"pentagram"},ye),he({width:120,height:60,name:"leftArrow"},ye),he({width:120,height:60,name:"rightArrow"},ye),he({width:150,height:60,name:"twowayArrow"},ye),he({width:100,height:100,name:"cloud"},ye),he({textTop:-.1,width:100,height:100,name:"message"},ye),he({width:80,height:100,name:"file"},ye),_e(he({name:"svg",width:100,height:100,image:Sv,audioId:"",penType:Se.AUDIO},Oe),{form:[...At[Se.AUDIO],...Oe.form],events:[{name:"enter",action:sn.Emit,value:ct.OPEN_AUDIO,where:{type:""},params:JSON.stringify({action:ct.OPEN_AUDIO,data:""})},{name:"leave",action:sn.Emit,value:ct.CLOSE_AUDIO,where:{type:""},params:JSON.stringify({action:ct.CLOSE_AUDIO,data:""})}]}),_e(he({name:"svg",width:100,height:100,image:Cv,cameraId:"",events:[{name:"enter",action:sn.Emit,value:ct.OPEN_CAMERA,where:{type:""},params:JSON.stringify({action:ct.OPEN_CAMERA,data:""})},{name:"leave",action:sn.Emit,value:ct.CLOSE_CAMERA,where:{type:""},params:JSON.stringify({action:ct.CLOSE_CAMERA,data:""})}],penType:Se.CAMERA},Oe),{form:[...At[Se.CAMERA],...Oe.form]}),_e(he({name:"video",width:100,height:100,video:"https://video.699pic.com/videos/17/69/11/a_aa3jeKZ0D63g1556176911_10s.mp4",autoPlay:!0,penType:Se.MP4},Oe),{form:[...At[Se.MP4],...Oe.form]}),_e(he({name:"video",width:100,height:100,video:"https://video.699pic.com/videos/17/69/11/a_aa3jeKZ0D63g1556176911_10s.mp4",autoPlay:!0,penType:Se.VIDEO_STREAM},Oe),{form:[...At[Se.VIDEO_STREAM],...Oe.form]}),_e(he({width:60,height:100,name:"cube",z:.25},ye),{props:{custom:[{key:"z",label:"Z",type:"number",min:0,placeholder:"<= 1 即宽度的比例"},{key:"backgroundFront",label:"前背景色",type:"color"},{key:"backgroundUp",label:"顶背景色",type:"color"},{key:"backgroundRight",label:"右背景色",type:"color"}]}}),he({width:70,height:100,name:"people"},ye),_e(he({name:"table",width:80,height:30,disableAnchor:!0,colWidth:90,rowHeight:32,bordered:!0,vLine:!0,hLine:!0,stripe:!1,color:"#333",textColor:"#444"},ye),{penType:Se.TABLE,data:[["设备 ID","设备名称","数据协议","级别"],["1","200","MQTT",{text:"一级告警",background:"#650b09",textColor:"#FF5D3CFF"}],["2","湿度传感器","MQTT",{text:"二级告警",background:"#4d2a02",textColor:"#E6A82EFF"}],["3","物联网设备","MQTT",{text:"一级告警",background:"#650b09",textColor:"#FF5D3CFF"}],["4","物联网设备/智能家居/智慧城市","MQTT",{text:"三级告警",textColor:"#58CC84FF",background:"#042617;"}]],styles:[{row:0,textColor:"#000"}]}),_e(he({name:"rectangle",penName:"按钮",width:80,height:30,borderRadius:.2,text:"按钮",background:"#1890ff",color:"#1890ff",textColor:"#fff",activeBackground:"#40a9ff",activeColor:"#40a9ff",activeTextColor:"#fff",hoverBackground:"#40a9ff",hoverColor:"#40a9ff",hoverTextColor:"#fff"},ye),{penType:Se.BUTTON}),_e(he({name:"switch",penName:"开关",height:30,width:60,checked:!1,offColor:"#BFBFBF",onColor:"#1890ff",disableOffColor:"#E5E5E5",disableOnColor:"#A3D3FF",locked:0},ye),{penType:Se.SWITCH}),_e(he({name:"radio",penName:"单选框",width:150,height:100,direction:"vertical",checked:"",options:[{text:"选项一"},{text:"选项二"},{text:"选项三",isForbidden:!0}]},ye),{penType:Se.RADIO}),_e(he({name:"checkbox",penName:"多选框",width:30,height:30,checked:!0,value:"选项一"},ye),{penType:Se.CHECKBOX}),_e(he({name:"slider",penName:"进度条",width:300,height:30,value:10,textWidth:50,barHeight:4,min:0,max:100,color:"#1890ff",background:"#D4D6D9",textColor:"#222",unit:"%"},ye),{penType:Se.SLIDER}),_e(he({name:"rectangle",penName:"输入框",height:50,width:200,input:!0,borderRadius:.05,ellipsis:!0,text:"输入数据",textAlign:"left",color:"#D9D9D9FF",textColor:"#000000FF",hoverTextColor:"#000000FF",activeTextColor:"#000000FF",textLeft:10},ye),{penType:Se.INPUT}),_e(he({name:"rectangle",penName:"选择器",height:50,width:200,borderRadius:.05,ellipsis:!0,text:"选项1",textAlign:"left",color:"#D9D9D9FF",textColor:"#000000FF",hoverTextColor:"#000000FF",activeTextColor:"#000000FF",textLeft:10,dropdownList:[{text:"选项1"},{text:"选项2"},{text:"选项3"}]},ye),{penType:Se.SELECT}),_e(he({name:"time",penName:"时间",width:300,height:40,text:`${Q2().format("YYYY-MM-DD HH:mm:ss")}`,lineWidth:0,interval:67,fillZero:!0},ye),{penType:Se.TIME,form:[{key:"timeFormat",name:"显示格式",type:"text"},{key:"fillZero",name:"是否补0",type:"switch"},...ye.form],timeFormat:"`${year}-${month}-${day} ${hours}:${minutes}:${seconds} 星期${week}`"}),he({text:"开始/结束",width:120,height:40,borderRadius:.5,name:"rectangle"},ye),he({text:"流程",width:120,height:40,name:"rectangle"},ye),he({text:"判定",width:120,height:60,name:"diamond"},ye),he({text:"数据",width:120,height:50,name:"flowData",offsetX:.14},ye),he({text:"准备",width:120,height:50,name:"hexagon"},ye),he({text:"子流程",width:120,height:50,name:"flowSubprocess"},ye),he({text:"数据库",width:80,height:120,name:"flowDb"},ye),he({text:"文档",width:120,height:100,name:"flowDocument"},ye),he({text:"内部存储",width:120,height:80,name:"flowInternalStorage"},ye),he({text:"外部存储",width:120,height:80,name:"flowExternStorage"},ye),he({text:"队列",width:100,height:100,name:"flowQueue"},ye),he({text:"手动输入",width:120,height:80,name:"flowManually"},ye),he({text:"展示",width:120,height:80,name:"flowDisplay"},ye),he({text:"并行模式",width:120,height:50,name:"flowParallel"},ye),he({text:"注释",width:100,height:100,name:"flowComment"},ye),he({text:"",width:30,height:30,name:"circle",background:"#555",lineWidth:0},ye),he({width:30,height:30,name:"activityFinal"},ye),he({text:"活动",width:120,height:50,borderRadius:.25,name:"rectangle"},ye),he({text:"决策/合并",width:120,height:50,name:"diamond"},ye),he({text:"垂直泳道",width:200,height:500,name:"swimlaneV",textBaseline:"top",textTop:20,lineTop:.08},ye),he({text:"水平泳道",width:500,height:200,name:"swimlaneH",textWidth:.01,textLeft:.04,textAlign:"left",lineLeft:.08},ye),he({text:"垂直分岔/汇合",width:10,height:150,name:"forkV",fillStyle:"#555",strokeStyle:"transparent"},ye),he({text:"水平分岔/汇合",width:150,height:10,name:"forkH",fillStyle:"#555",strokeStyle:"transparent"},ye),he({name:"andGate",width:100,height:150},ye),he({name:"basicEvent",width:100,height:150},ye),he({name:"unexpandedEvent",width:100,height:150},ye),he({name:"priorityAndGate",width:100,height:150},ye),he({name:"forbiddenGate",width:100,height:150},ye),he({name:"event",width:100,height:150},ye),he({name:"switchEvent",width:100,height:150},ye),he({name:"conditionalEvent",width:150,height:100},ye),he({name:"transferSymbol",width:100,height:150},ye),he({name:"orGate",width:100,height:150},ye),he({name:"xorGate",width:100,height:150},ye),he({name:"votingGate",width:100,height:150},ye),he({text:"主题",width:200,height:50,name:"mindNode",borderRadius:.5},ye),he({text:"子主题",width:160,height:40,name:"mindLine"},ye);const Tv=(e,t={isDev:!1,devServerUrl:"",devServerPort:8443})=>e.replace(/(https?:\/\/)(\b(?:\d{1,3}\.){3}\d{1,3}\b)(:(\d+))?/,`$1${t.isDev?t.devServerUrl:r1}:${t.isDev?t.devServerPort:i1}`);class Fv{constructor(t){Tt(this,"editor");this.editor=t}initPlugin(t,r,n={}){t.installPenPlugins({name:r},[{plugin:xc.mindBoxPlugin,options:n},{plugin:bc.collapseChildPlugin,options:n}])}}var S0;(function(e){e[e.Node=0]="Node",e[e.Line=1]="Line"})(S0||(S0={}));var B0;(function(e){e[e.None=0]="None",e[e.DisableEdit=1]="DisableEdit",e[e.DisableMove=2]="DisableMove",e[e.DisableScale=3]="DisableScale",e[e.DisableMoveScale=4]="DisableMoveScale",e[e.Disable=10]="Disable"})(B0||(B0={}));var k0;(function(e){e[e.Default=0]="Default",e[e.In=1]="In",e[e.Out=2]="Out"})(k0||(k0={}));var T0;(function(e){e[e.None=0]="None",e[e.Linear=1]="Linear",e[e.Radial=2]="Radial"})(T0||(T0={}));var F0;(function(e){e[e.CanvasTemplate=1]="CanvasTemplate",e[e.CanvasImageBottom=2]="CanvasImageBottom",e[e.CanvasMain=3]="CanvasMain",e[e.CanvasImage=4]="CanvasImage"})(F0||(F0={}));var I0;(function(e){e[e.Normal=0]="Normal",e[e.Beads=1]="Beads",e[e.Dot=2]="Dot",e[e.Arrow=3]="Arrow",e[e.WaterDrop=4]="WaterDrop",e[e.Custom=5]="Custom"})(I0||(I0={}));var D0;(function(e){e[e.Image=0]="Image",e[e.Icon=1]="Icon",e[e.Pen=2]="Pen",e[e.Element=3]="Element"})(D0||(D0={}));var R0;(function(e){e[e.None=0]="None",e[e.LineAnchor=1]="LineAnchor",e[e.NodeAnchor=2]="NodeAnchor",e[e.Line=3]="Line",e[e.Node=4]="Node",e[e.Resize=5]="Resize",e[e.Rotate=6]="Rotate",e[e.LineAnchorPrev=7]="LineAnchorPrev",e[e.LineAnchorNext=8]="LineAnchorNext"})(R0||(R0={}));var O0;(function(e){e[e.None=0]="None",e[e.Translate=1]="Translate",e[e.Select=2]="Select",e[e.Resize=3]="Resize",e[e.AddAnchor=4]="AddAnchor"})(O0||(O0={}));var P0;(function(e){e[e.None=0]="None",e[e.Down=1]="Down",e[e.Translate=2]="Translate"})(P0||(P0={}));var M0;(function(e){e[e.None=-1]="None",e[e.Up=0]="Up",e[e.Right=1]="Right",e[e.Bottom=2]="Bottom",e[e.Left=3]="Left"})(M0||(M0={}));var N0;(function(e){e[e.Mirror=0]="Mirror",e[e.Bilateral=1]="Bilateral",e[e.Free=2]="Free"})(N0||(N0={}));var L0;(function(e){e[e.Default=0]="Default",e[e.In=1]="In",e[e.Out=2]="Out",e[e.DisableConnected=3]="DisableConnected",e[e.DisableConnectTo=4]="DisableConnectTo",e[e.Disable=10]="Disable"})(L0||(L0={}));var U0;(function(e){e[e.Default=0]="Default",e[e.Line=1]="Line"})(U0||(U0={}));var $o;(function(e){e[e.None=-1]="None",e[e.Document=0]="Document",e[e.Canvas=1]="Canvas"})($o||($o={}));$o.Document;var z0;(function(e){e[e.Add=0]="Add",e[e.Update=1]="Update",e[e.Delete=2]="Delete",e[e.Replace=3]="Replace"})(z0||(z0={}));function q0(e){const t=parseInt,r=Math.round;let n=e.length,l={};if(n>9){const[o,s,u,h]=e=e.split(",");if(n=e.length,n<3||n>4)return null;l.r=t(o[3]=="a"?o.slice(5):o.slice(4)),l.g=t(s),l.b=t(u),l.a=h?parseFloat(h):-1}else{if(n==8||n==6||n<4)return null;n<6&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(n>4?e[4]+e[4]:"")),e=t(e.slice(1),16),n==9||n==5?(l.r=e>>24&255,l.g=e>>16&255,l.b=e>>8&255,l.a=r((e&255)/.255)/1e3):(l.r=e>>16,l.g=e>>8&255,l.b=e&255,l.a=-1)}return l}function Iv(e,t,r,n){let l,o,s,u,h,a,i,d=Math.round,c=typeof r=="string";return typeof e!="number"||e<-1||e>1||typeof t!="string"||t[0]!="r"&&t[0]!="#"||r&&!c||(i=t.length>9,i=c?r.length>9?!0:r=="c"?!i:!1:i,h=q0(t),u=e<0,a=r&&r!="c"?q0(r):u?{r:0,g:0,b:0,a:-1}:{r:255,g:255,b:255,a:-1},e=u?e*-1:e,u=1-e,!h||!a)?null:(n?(l=d(u*h.r+e*a.r),o=d(u*h.g+e*a.g),s=d(u*h.b+e*a.b)):(l=d(dt(u*dt(h.r,2)+e*dt(a.r,2),.5)),o=d(dt(u*dt(h.g,2)+e*dt(a.g,2),.5)),s=d(dt(u*dt(h.b,2)+e*dt(a.b,2),.5))),c=h.a,a=a.a,h=c>=0||a>=0,c=h?c<0?a:a<0?c:c*u+a*e:0,i?"rgb"+(h?"a(":"(")+l+","+o+","+s+(h?","+d(c*1e3)/1e3:"")+")":"#"+(4294967296+l*16777216+o*65536+s*256+(h?d(c*255):0)).toString(16).slice(1,h?void 0:-2))}globalThis.pSBC=Iv;var j0;(function(e){e[e.None=0]="None",e[e.LocalStorage=1]="LocalStorage",e[e.Cookie=2]="Cookie"})(j0||(j0={}));location.host.indexOf("le5le.com");const sr={};var H0;(function(e){e[e.Link=0]="Link",e[e.SetProps=1]="SetProps",e[e.StartAnimate=2]="StartAnimate",e[e.PauseAnimate=3]="PauseAnimate",e[e.StopAnimate=4]="StopAnimate",e[e.JS=5]="JS",e[e.GlobalFn=6]="GlobalFn",e[e.Emit=7]="Emit",e[e.StartVideo=8]="StartVideo",e[e.PauseVideo=9]="PauseVideo",e[e.StopVideo=10]="StopVideo",e[e.SendPropData=11]="SendPropData",e[e.SendVarData=12]="SendVarData",e[e.Navigator=13]="Navigator",e[e.Dialog=14]="Dialog",e[e.SendData=15]="SendData",e[e.PostMessage=16]="PostMessage",e[e.PostMessageToParent=17]="PostMessageToParent",e[e.Message=18]="Message"})(H0||(H0={}));var Dv={exports:{}};(function(e,t){(function(r){e.exports=r()})(function(){return function(){return function r(n,l,o){function s(a,i){if(!l[a]){if(!n[a]){var d=typeof Br=="function"&&Br;if(!i&&d)return d(a,!0);if(u)return u(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=l[a]={exports:{}};n[a][0].call(f.exports,function(p){return s(n[a][1][p]||p)},f,f.exports,r,n,l,o)}return l[a].exports}for(var u=typeof Br=="function"&&Br,h=0;h<o.length;h++)s(o[h]);return s}}()({1:[function(r,n,l){(function(o,s){(function(){const u=r("events").EventEmitter,h=r("./store"),a=r("./topic-alias-recv"),i=r("./topic-alias-send"),d=r("mqtt-packet"),c=r("./default-message-id-provider"),f=r("readable-stream").Writable,p=r("inherits"),v=r("reinterval"),m=r("rfdc/default"),g=r("./validations"),x=r("xtend"),y=r("debug")("mqttjs:client"),w=o?o.nextTick:function(S){setTimeout(S,0)},k=s.setImmediate||function(S){w(S)},T={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0},F={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 I(S,D){let P;D.properties&&(P=D.properties.topicAlias);let j=D.topic.toString();if(j.length===0){if(P===void 0)return new Error("Unregistered Topic Alias");if((j=S.topicAliasSend.getTopicByAlias(P))===void 0)return new Error("Unregistered Topic Alias");D.topic=j}P&&delete D.properties.topicAlias}function G(S,D,P){y("sendPacket :: packet: %O",D),y("sendPacket :: emitting `packetsend`"),S.emit("packetsend",D),y("sendPacket :: writing to stream");const j=d.writeToStream(D,S.stream,S.options);y("sendPacket :: writeToStream result %s",j),!j&&P&&P!==E?(y("sendPacket :: handle events on `drain` once through callback."),S.stream.once("drain",P)):P&&(y("sendPacket :: invoking cb"),P())}function K(S,D,P,j){y("storeAndSend :: store packet with cmd %s to outgoingStore",D.cmd);let Z,V=D;if(V.cmd==="publish"&&(V=m(D),Z=I(S,V)))return P&&P(Z);S.outgoingStore.put(V,function(L){if(L)return P&&P(L);j(),G(S,D,P)})}function E(S){y("nop ::",S)}function A(S,D){let P;const j=this;if(!(this instanceof A))return new A(S,D);for(P in this.options=D||{},T)this.options[P]===void 0?this.options[P]=T[P]:this.options[P]=D[P];y("MqttClient :: options.protocol",D.protocol),y("MqttClient :: options.protocolVersion",D.protocolVersion),y("MqttClient :: options.username",D.username),y("MqttClient :: options.keepalive",D.keepalive),y("MqttClient :: options.reconnectPeriod",D.reconnectPeriod),y("MqttClient :: options.rejectUnauthorized",D.rejectUnauthorized),y("MqttClient :: options.topicAliasMaximum",D.topicAliasMaximum),this.options.clientId=typeof D.clientId=="string"?D.clientId:"mqttjs_"+Math.random().toString(16).substr(2,8),y("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=D.protocolVersion===5&&D.customHandleAcks?D.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=S,this.messageIdProvider=this.options.messageIdProvider===void 0?new c:this.options.messageIdProvider,this.outgoingStore=D.outgoingStore||new h,this.incomingStore=D.incomingStore||new h,this.queueQoSZero=D.queueQoSZero===void 0||D.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,D.topicAliasMaximum>0&&(D.topicAliasMaximum>65535?y("MqttClient :: options.topicAliasMaximum is out of range"):this.topicAliasRecv=new a(D.topicAliasMaximum)),this.on("connect",function(){const Z=this.queue;y("connect :: sending queued packets"),function V(){const L=Z.shift();y("deliver :: entry %o",L);let H=null;if(!L)return void j._resubscribe();H=L.packet,y("deliver :: call _sendPacket for %o",H);let U=!0;H.messageId&&H.messageId!==0&&(j.messageIdProvider.register(H.messageId)||(U=!1)),U?j._sendPacket(H,function(O){L.cb&&L.cb(O),V()}):(y("messageId: %d has already used. The message is skipped and removed.",H.messageId),V())}()}),this.on("close",function(){y("close :: connected set to `false`"),this.connected=!1,y("close :: clearing connackTimer"),clearTimeout(this.connackTimer),y("close :: clearing ping timer"),j.pingTimer!==null&&(j.pingTimer.clear(),j.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),y("close :: calling _setupReconnect"),this._setupReconnect()}),u.call(this),y("MqttClient :: setting up stream"),this._setupStream()}p(A,u),A.prototype._setupStream=function(){const S=this,D=new f,P=d.parser(this.options);let j=null;const Z=[];function V(){if(Z.length)w(L);else{const U=j;j=null,U()}}function L(){y("work :: getting next packet in queue");const U=Z.shift();if(U)y("work :: packet pulled from queue"),S._handlePacket(U,V);else{y("work :: no packets in queue");const O=j;j=null,y("work :: done flag is %s",!!O),O&&O()}}y("_setupStream :: calling method to clear reconnect"),this._clearReconnect(),y("_setupStream :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),P.on("packet",function(U){y("parser :: on packet push to packets array."),Z.push(U)}),D._write=function(U,O,W){j=W,y("writable stream :: parsing buffer"),P.parse(U),L()},y("_setupStream :: pipe stream to writable stream"),this.stream.pipe(D),this.stream.on("error",function(U){y("streamErrorHandler :: error",U.message),U.code?(y("streamErrorHandler :: emitting error"),S.emit("error",U)):E(U)}),this.stream.on("close",function(){var U;y("(%s)stream :: on close",S.options.clientId),(U=S.outgoing)&&(y("flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(U).forEach(function(O){U[O].volatile&&typeof U[O].cb=="function"&&(U[O].cb(new Error("Connection closed")),delete U[O])})),y("stream: emit close to MqttClient"),S.emit("close")}),y("_setupStream: sending packet `connect`");const H=Object.create(this.options);if(H.cmd="connect",this.topicAliasRecv&&(H.properties||(H.properties={}),this.topicAliasRecv&&(H.properties.topicAliasMaximum=this.topicAliasRecv.max)),G(this,H),P.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"&&G(this,x({cmd:"auth",reasonCode:0},this.options.authPacket))}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(function(){y("!!connectTimeout hit!! Calling _cleanUp with force `true`"),S._cleanUp(!0)},this.options.connectTimeout)},A.prototype._handlePacket=function(S,D){const P=this.options;if(P.protocolVersion===5&&P.properties&&P.properties.maximumPacketSize&&P.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(y("_handlePacket :: emitting packetreceive"),this.emit("packetreceive",S),S.cmd){case"publish":this._handlePublish(S,D);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":this._handleAck(S),D();break;case"pubrel":this._handlePubrel(S,D);break;case"connack":this._handleConnack(S),D();break;case"auth":this._handleAuth(S),D();break;case"pingresp":this._handlePingresp(S),D();break;case"disconnect":this._handleDisconnect(S),D()}},A.prototype._checkDisconnecting=function(S){return this.disconnecting&&(S&&S!==E?S(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting},A.prototype.publish=function(S,D,P,j){y("publish :: message `%s` to topic `%s`",D,S);const Z=this.options;if(typeof P=="function"&&(j=P,P=null),P=x({qos:0,retain:!1,dup:!1},P),this._checkDisconnecting(j))return this;const V=this,L=function(){let H=0;if((P.qos===1||P.qos===2)&&(H=V._nextId())===null)return y("No messageId left"),!1;const U={cmd:"publish",topic:S,payload:D,qos:P.qos,retain:P.retain,messageId:H,dup:P.dup};switch(Z.protocolVersion===5&&(U.properties=P.properties),y("publish :: qos",P.qos),P.qos){case 1:case 2:V.outgoing[U.messageId]={volatile:!1,cb:j||E},y("MqttClient:publish: packet cmd: %s",U.cmd),V._sendPacket(U,void 0,P.cbStorePut);break;default:y("MqttClient:publish: packet cmd: %s",U.cmd),V._sendPacket(U,j,P.cbStorePut)}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!L())&&this._storeProcessingQueue.push({invoke:L,cbStorePut:P.cbStorePut,callback:j}),this},A.prototype.subscribe=function(){const S=this,D=new Array(arguments.length);for(let $=0;$<arguments.length;$++)D[$]=arguments[$];const P=[];let j=D.shift();const Z=j.resubscribe;let V=D.pop()||E,L=D.pop();const H=this.options.protocolVersion;delete j.resubscribe,typeof j=="string"&&(j=[j]),typeof V!="function"&&(L=V,V=E);const U=g.validateTopics(j);if(U!==null)return k(V,new Error("Invalid topic "+U)),this;if(this._checkDisconnecting(V))return y("subscribe: discconecting true"),this;const O={qos:0};if(H===5&&(O.nl=!1,O.rap=!1,O.rh=0),L=x(O,L),Array.isArray(j)?j.forEach(function($){if(y("subscribe: array topic %s",$),!Object.prototype.hasOwnProperty.call(S._resubscribeTopics,$)||S._resubscribeTopics[$].qos<L.qos||Z){const J={topic:$,qos:L.qos};H===5&&(J.nl=L.nl,J.rap=L.rap,J.rh=L.rh,J.properties=L.properties),y("subscribe: pushing topic `%s` and qos `%s` to subs list",J.topic,J.qos),P.push(J)}}):Object.keys(j).forEach(function($){if(y("subscribe: object topic %s",$),!Object.prototype.hasOwnProperty.call(S._resubscribeTopics,$)||S._resubscribeTopics[$].qos<j[$].qos||Z){const J={topic:$,qos:j[$].qos};H===5&&(J.nl=j[$].nl,J.rap=j[$].rap,J.rh=j[$].rh,J.properties=L.properties),y("subscribe: pushing `%s` to subs list",J),P.push(J)}}),!P.length)return V(null,[]),this;const W=function(){const $=S._nextId();if($===null)return y("No messageId left"),!1;const J={cmd:"subscribe",subscriptions:P,qos:1,retain:!1,dup:!1,messageId:$};if(L.properties&&(J.properties=L.properties),S.options.resubscribe){y("subscribe :: resubscribe true");const ie=[];P.forEach(function(ae){if(S.options.reconnectPeriod>0){const oe={qos:ae.qos};H===5&&(oe.nl=ae.nl||!1,oe.rap=ae.rap||!1,oe.rh=ae.rh||0,oe.properties=ae.properties),S._resubscribeTopics[ae.topic]=oe,ie.push(ae.topic)}}),S.messageIdToTopic[J.messageId]=ie}return S.outgoing[J.messageId]={volatile:!0,cb:function(ie,ae){if(!ie){const oe=ae.granted;for(let b=0;b<oe.length;b+=1)P[b].qos=oe[b]}V(ie,P)}},y("subscribe :: call _sendPacket"),S._sendPacket(J),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!W())&&this._storeProcessingQueue.push({invoke:W,callback:V}),this},A.prototype.unsubscribe=function(){const S=this,D=new Array(arguments.length);for(let H=0;H<arguments.length;H++)D[H]=arguments[H];let P=D.shift(),j=D.pop()||E,Z=D.pop();typeof P=="string"&&(P=[P]),typeof j!="function"&&(Z=j,j=E);const V=g.validateTopics(P);if(V!==null)return k(j,new Error("Invalid topic "+V)),this;if(S._checkDisconnecting(j))return this;const L=function(){const H=S._nextId();if(H===null)return y("No messageId left"),!1;const U={cmd:"unsubscribe",qos:1,messageId:H};return typeof P=="string"?U.unsubscriptions=[P]:Array.isArray(P)&&(U.unsubscriptions=P),S.options.resubscribe&&U.unsubscriptions.forEach(function(O){delete S._resubscribeTopics[O]}),typeof Z=="object"&&Z.properties&&(U.properties=Z.properties),S.outgoing[U.messageId]={volatile:!0,cb:j},y("unsubscribe: call _sendPacket"),S._sendPacket(U),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!L())&&this._storeProcessingQueue.push({invoke:L,callback:j}),this},A.prototype.end=function(S,D,P){const j=this;function Z(){y("end :: (%s) :: finish :: calling _cleanUp with force %s",j.options.clientId,S),j._cleanUp(S,()=>{y("end :: finish :: calling process.nextTick on closeStores"),w(function(){y("end :: closeStores: closing incoming and outgoing stores"),j.disconnected=!0,j.incomingStore.close(function(V){j.outgoingStore.close(function(L){if(y("end :: closeStores: emitting end"),j.emit("end"),P){const H=V||L;y("end :: closeStores: invoking callback with args"),P(H)}})}),j._deferredReconnect&&j._deferredReconnect()}.bind(j))},D)}return y("end :: (%s)",this.options.clientId),S!=null&&typeof S=="boolean"||(P=D||E,D=S,S=!1,typeof D!="object"&&(P=D,D=null,typeof P!="function"&&(P=E))),typeof D!="object"&&(P=D,D=null),y("end :: cb? %s",!!P),P=P||E,this.disconnecting?(P(),this):(this._clearReconnect(),this.disconnecting=!0,!S&&Object.keys(this.outgoing).length>0?(y("end :: (%s) :: calling finish in 10ms once outgoing is empty",j.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,Z,10))):(y("end :: (%s) :: immediately calling finish",j.options.clientId),Z()),this)},A.prototype.removeOutgoingMessage=function(S){const D=this.outgoing[S]?this.outgoing[S].cb:null;return delete this.outgoing[S],this.outgoingStore.del({messageId:S},function(){D(new Error("Message removed"))}),this},A.prototype.reconnect=function(S){y("client reconnect");const D=this,P=function(){S?(D.options.incomingStore=S.incomingStore,D.options.outgoingStore=S.outgoingStore):(D.options.incomingStore=null,D.options.outgoingStore=null),D.incomingStore=D.options.incomingStore||new h,D.outgoingStore=D.options.outgoingStore||new h,D.disconnecting=!1,D.disconnected=!1,D._deferredReconnect=null,D._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=P:P(),this},A.prototype._reconnect=function(){y("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this._setupStream()}),y("client already connected. disconnecting first.")):(y("_reconnect: calling _setupStream"),this._setupStream())},A.prototype._setupReconnect=function(){const S=this;!S.disconnecting&&!S.reconnectTimer&&S.options.reconnectPeriod>0?(this.reconnecting||(y("_setupReconnect :: emit `offline` state"),this.emit("offline"),y("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),y("_setupReconnect :: setting reconnectTimer for %d ms",S.options.reconnectPeriod),S.reconnectTimer=setInterval(function(){y("reconnectTimer :: reconnect triggered!"),S._reconnect()},S.options.reconnectPeriod)):y("_setupReconnect :: doing nothing...")},A.prototype._clearReconnect=function(){y("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)},A.prototype._cleanUp=function(S,D){const P=arguments[2];if(D&&(y("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",D)),y("_cleanUp :: forced? %s",S),S)this.options.reconnectPeriod===0&&this.options.clean&&(j=this.outgoing)&&(y("flush: queue exists? %b",!!j),Object.keys(j).forEach(function(Z){typeof j[Z].cb=="function"&&(j[Z].cb(new Error("Connection closed")),delete j[Z])})),y("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{const Z=x({cmd:"disconnect"},P);y("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(Z,k.bind(null,this.stream.end.bind(this.stream)))}var j;this.disconnecting||(y("_cleanUp :: client not disconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this.pingTimer!==null&&(y("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),D&&!this.connected&&(y("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",D),D())},A.prototype._sendPacket=function(S,D,P){y("_sendPacket :: (%s) :: start",this.options.clientId),P=P||E,D=D||E;const j=function(Z,V){if(Z.options.protocolVersion===5&&V.cmd==="publish"){let L;V.properties&&(L=V.properties.topicAlias);const H=V.topic.toString();if(Z.topicAliasSend)if(L){if(H.length!==0&&(y("applyTopicAlias :: register topic: %s - alias: %d",H,L),!Z.topicAliasSend.put(H,L)))return y("applyTopicAlias :: error out of range. topic: %s - alias: %d",H,L),new Error("Sending Topic Alias out of range")}else H.length!==0&&(Z.options.autoAssignTopicAlias?(L=Z.topicAliasSend.getAliasByTopic(H))?(V.topic="",V.properties=_e(he({},V.properties),{topicAlias:L}),y("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",H,L)):(L=Z.topicAliasSend.getLruAlias(),Z.topicAliasSend.put(H,L),V.properties=_e(he({},V.properties),{topicAlias:L}),y("applyTopicAlias :: auto assign topic: %s - alias: %d",H,L)):Z.options.autoUseTopicAlias&&(L=Z.topicAliasSend.getAliasByTopic(H))&&(V.topic="",V.properties=_e(he({},V.properties),{topicAlias:L}),y("applyTopicAlias :: auto use topic: %s - alias: %d",H,L)));else if(L)return y("applyTopicAlias :: error out of range. topic: %s - alias: %d",H,L),new Error("Sending Topic Alias out of range")}}(this,S);if(j)D(j);else{if(!this.connected)return S.cmd==="auth"?(this._shiftPingInterval(),void G(this,S,D)):(y("_sendPacket :: client not connected. Storing packet offline."),void this._storePacket(S,D,P));switch(this._shiftPingInterval(),S.cmd){case"publish":break;case"pubrel":return void K(this,S,D,P);default:return void G(this,S,D)}switch(S.qos){case 2:case 1:K(this,S,D,P);break;case 0:default:G(this,S,D)}y("_sendPacket :: (%s) :: end",this.options.clientId)}},A.prototype._storePacket=function(S,D,P){y("_storePacket :: packet: %o",S),y("_storePacket :: cb? %s",!!D),P=P||E;let j=S;if(j.cmd==="publish"){const Z=I(this,j=m(S));if(Z)return D&&D(Z)}(j.qos||0)===0&&this.queueQoSZero||j.cmd!=="publish"?this.queue.push({packet:j,cb:D}):j.qos>0?(D=this.outgoing[j.messageId]?this.outgoing[j.messageId].cb:null,this.outgoingStore.put(j,function(Z){if(Z)return D&&D(Z);P()})):D&&D(new Error("No connection to broker"))},A.prototype._setupPingTimer=function(){y("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive);const S=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=v(function(){S._checkPing()},1e3*this.options.keepalive))},A.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(1e3*this.options.keepalive)},A.prototype._checkPing=function(){y("_checkPing :: checking ping..."),this.pingResp?(y("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(y("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))},A.prototype._handlePingresp=function(){this.pingResp=!0},A.prototype._handleConnack=function(S){y("_handleConnack");const D=this.options,P=D.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 i(S.properties.topicAliasMaximum))}S.properties.serverKeepAlive&&D.keepalive&&(D.keepalive=S.properties.serverKeepAlive,this._shiftPingInterval()),S.properties.maximumPacketSize&&(D.properties||(D.properties={}),D.properties.maximumPacketSize=S.properties.maximumPacketSize)}if(P===0)this.reconnecting=!1,this._onConnect(S);else if(P>0){const j=new Error("Connection refused: "+F[P]);j.code=P,this.emit("error",j)}},A.prototype._handleAuth=function(S){const D=this.options.protocolVersion,P=D===5?S.reasonCode:S.returnCode;if(D!==5){const Z=new Error("Protocol error: Auth packets are only supported in MQTT 5. Your version:"+D);return Z.code=P,void this.emit("error",Z)}const j=this;this.handleAuth(S,function(Z,V){if(Z)j.emit("error",Z);else if(P===24)j.reconnecting=!1,j._sendPacket(V);else{const L=new Error("Connection refused: "+F[P]);Z.code=P,j.emit("error",L)}})},A.prototype.handleAuth=function(S,D){D()},A.prototype._handlePublish=function(S,D){y("_handlePublish: packet %o",S),D=D!==void 0?D:E;let P=S.topic.toString();const j=S.payload,Z=S.qos,V=S.messageId,L=this,H=this.options,U=[0,16,128,131,135,144,145,151,153];if(this.options.protocolVersion===5){let O;if(S.properties&&(O=S.properties.topicAlias),O!==void 0)if(P.length===0){if(!(O>0&&O<=65535))return y("_handlePublish :: topic alias out of range. alias: %d",O),void this.emit("error",new Error("Received Topic Alias is out of range"));{const W=this.topicAliasRecv.getTopicByAlias(O);if(!W)return y("_handlePublish :: unregistered topic alias. alias: %d",O),void this.emit("error",new Error("Received unregistered Topic Alias"));y("_handlePublish :: topic complemented by alias. topic: %s - alias: %d",P=W,O)}}else{if(!this.topicAliasRecv.put(P,O))return y("_handlePublish :: topic alias out of range. alias: %d",O),void this.emit("error",new Error("Received Topic Alias is out of range"));y("_handlePublish :: registered topic: %s - alias: %d",P,O)}}switch(y("_handlePublish: qos %d",Z),Z){case 2:H.customHandleAcks(P,j,S,function(O,W){return O instanceof Error||(W=O,O=null),O?L.emit("error",O):U.indexOf(W)===-1?L.emit("error",new Error("Wrong reason code for pubrec")):void(W?L._sendPacket({cmd:"pubrec",messageId:V,reasonCode:W},D):L.incomingStore.put(S,function(){L._sendPacket({cmd:"pubrec",messageId:V},D)}))});break;case 1:H.customHandleAcks(P,j,S,function(O,W){return O instanceof Error||(W=O,O=null),O?L.emit("error",O):U.indexOf(W)===-1?L.emit("error",new Error("Wrong reason code for puback")):(W||L.emit("message",P,j,S),void L.handleMessage(S,function($){if($)return D&&D($);L._sendPacket({cmd:"puback",messageId:V,reasonCode:W},D)}))});break;case 0:this.emit("message",P,j,S),this.handleMessage(S,D);break;default:y("_handlePublish: unknown QoS. Doing nothing.")}},A.prototype.handleMessage=function(S,D){D()},A.prototype._handleAck=function(S){const D=S.messageId,P=S.cmd;let j=null;const Z=this.outgoing[D]?this.outgoing[D].cb:null,V=this;let L;if(Z){switch(y("_handleAck :: packet type",P),P){case"pubcomp":case"puback":{const H=S.reasonCode;H&&H>0&&H!==16&&((L=new Error("Publish error: "+F[H])).code=H,Z(L,S)),delete this.outgoing[D],this.outgoingStore.del(S,Z),this.messageIdProvider.deallocate(D),this._invokeStoreProcessingQueue();break}case"pubrec":{j={cmd:"pubrel",qos:2,messageId:D};const H=S.reasonCode;H&&H>0&&H!==16?((L=new Error("Publish error: "+F[H])).code=H,Z(L,S)):this._sendPacket(j);break}case"suback":delete this.outgoing[D],this.messageIdProvider.deallocate(D);for(let H=0;H<S.granted.length;H++)if(128&S.granted[H]){const U=this.messageIdToTopic[D];U&&U.forEach(function(O){delete V._resubscribeTopics[O]})}this._invokeStoreProcessingQueue(),Z(null,S);break;case"unsuback":delete this.outgoing[D],this.messageIdProvider.deallocate(D),this._invokeStoreProcessingQueue(),Z(null);break;default:V.emit("error",new Error("unrecognized packet type"))}this.disconnecting&&Object.keys(this.outgoing).length===0&&this.emit("outgoingEmpty")}else y("_handleAck :: Server sent an ack in error. Ignoring.")},A.prototype._handlePubrel=function(S,D){y("handling pubrel packet"),D=D!==void 0?D:E;const P=this,j={cmd:"pubcomp",messageId:S.messageId};P.incomingStore.get(S,function(Z,V){Z?P._sendPacket(j,D):(P.emit("message",V.topic,V.payload,V),P.handleMessage(V,function(L){if(L)return D(L);P.incomingStore.del(V,E),P._sendPacket(j,D)}))})},A.prototype._handleDisconnect=function(S){this.emit("disconnect",S)},A.prototype._nextId=function(){return this.messageIdProvider.allocate()},A.prototype.getLastMessageId=function(){return this.messageIdProvider.getLastAllocated()},A.prototype._resubscribe=function(){y("_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){y("_resubscribe: protocolVersion 5");for(let D=0;D<S.length;D++){const P={};P[S[D]]=this._resubscribeTopics[S[D]],P.resubscribe=!0,this.subscribe(P,{properties:P[S[D]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1},A.prototype._onConnect=function(S){if(this.disconnected)return void this.emit("connect",S);const D=this;this.connackPacket=S,this.messageIdProvider.clear(),this._setupPingTimer(),this.connected=!0,function P(){let j=D.outgoingStore.createStream();function Z(){D._storeProcessing=!1,D._packetIdsDuringStoreProcessing={}}function V(){j.destroy(),j=null,D._flushStoreProcessingQueue(),Z()}D.once("close",V),j.on("error",function(L){Z(),D._flushStoreProcessingQueue(),D.removeListener("close",V),D.emit("error",L)}),j.on("end",function(){let L=!0;for(const H in D._packetIdsDuringStoreProcessing)if(!D._packetIdsDuringStoreProcessing[H]){L=!1;break}L?(Z(),D.removeListener("close",V),D._invokeAllStoreProcessingQueue(),D.emit("connect",S)):P()}),function L(){if(!j)return;D._storeProcessing=!0;const H=j.read(1);let U;H?D._packetIdsDuringStoreProcessing[H.messageId]?L():D.disconnecting||D.reconnectTimer?j.destroy&&j.destroy():(U=D.outgoing[H.messageId]?D.outgoing[H.messageId].cb:null,D.outgoing[H.messageId]={volatile:!1,cb:function(O,W){U&&U(O,W),L()}},D._packetIdsDuringStoreProcessing[H.messageId]=!0,D.messageIdProvider.register(H.messageId)?D._sendPacket(H):y("messageId: %d has already used.",H.messageId)):j.once("readable",L)}()}()},A.prototype._invokeStoreProcessingQueue=function(){if(this._storeProcessingQueue.length>0){const S=this._storeProcessingQueue[0];if(S&&S.invoke())return this._storeProcessingQueue.shift(),!0}return!1},A.prototype._invokeAllStoreProcessingQueue=function(){for(;this._invokeStoreProcessingQueue(););},A.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)},n.exports=A}).call(this)}).call(this,r("_process"),typeof xe!="undefined"?xe:typeof self!="undefined"?self:typeof window!="undefined"?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(r,n,l){const{Buffer:o}=r("buffer"),s=r("readable-stream").Transform,u=r("duplexify");let h,a,i,d=!1;n.exports=function(c,f){if(f.hostname=f.hostname||f.host,!f.hostname)throw new Error("Could not determine host. Specify host manually.");const p=f.protocolId==="MQIsdp"&&f.protocolVersion===3?"mqttv3.1":"mqtt";(function(m){m.hostname||(m.hostname="localhost"),m.path||(m.path="/"),m.wsOptions||(m.wsOptions={})})(f);const v=function(m,g){const x=m.protocol==="alis"?"wss":"ws";let y=x+"://"+m.hostname+m.path;return m.port&&m.port!==80&&m.port!==443&&(y=x+"://"+m.hostname+":"+m.port+m.path),typeof m.transformWsUrl=="function"&&(y=m.transformWsUrl(y,m,g)),y}(f,c);return(h=f.my).connectSocket({url:v,protocols:p}),a=function(){const m=new s;return m._write=function(g,x,y){h.sendSocketMessage({data:g.buffer,success:function(){y()},fail:function(){y(new Error)}})},m._flush=function(g){h.closeSocket({success:function(){g()}})},m}(),i=u.obj(),d||(d=!0,h.onSocketOpen(function(){i.setReadable(a),i.setWritable(a),i.emit("connect")}),h.onSocketMessage(function(m){if(typeof m.data=="string"){const g=o.from(m.data,"base64");a.push(g)}else{const g=new FileReader;g.addEventListener("load",function(){let x=g.result;x=x instanceof ArrayBuffer?o.from(x):o.from(x,"utf8"),a.push(x)}),g.readAsArrayBuffer(m.data)}}),h.onSocketClose(function(){i.end(),i.destroy()}),h.onSocketError(function(m){i.destroy(m)})),i}},{buffer:17,duplexify:20,"readable-stream":69}],3:[function(r,n,l){const o=r("net"),s=r("debug")("mqttjs:tcp");n.exports=function(u,h){h.port=h.port||1883,h.hostname=h.hostname||h.host||"localhost";const a=h.port,i=h.hostname;return s("port %d and host %s",a,i),o.createConnection(a,i)}},{debug:18,net:16}],4:[function(r,n,l){const o=r("tls"),s=r("net"),u=r("debug")("mqttjs:tls");n.exports=function(h,a){a.port=a.port||8883,a.host=a.hostname||a.host||"localhost",s.isIP(a.host)===0&&(a.servername=a.host),a.rejectUnauthorized=a.rejectUnauthorized!==!1,delete a.path,u("port %d host %s rejectUnauthorized %b",a.port,a.host,a.rejectUnauthorized);const i=o.connect(a);function d(c){a.rejectUnauthorized&&h.emit("error",c),i.end()}return i.on("secureConnect",function(){a.rejectUnauthorized&&!i.authorized?i.emit("error",new Error("TLS not authorized")):i.removeListener("error",d)}),i.on("error",d),i}},{debug:18,net:16,tls:16}],5:[function(r,n,l){(function(o){(function(){const{Buffer:s}=r("buffer"),u=r("ws"),h=r("debug")("mqttjs:ws"),a=r("duplexify"),i=r("readable-stream").Transform,d=["rejectUnauthorized","ca","cert","key","pfx","passphrase"],c=o!==void 0&&o.title==="browser"||typeof __webpack_require__=="function";function f(v,m){let g=v.protocol+"://"+v.hostname+":"+v.port+v.path;return typeof v.transformWsUrl=="function"&&(g=v.transformWsUrl(g,v,m)),g}function p(v){const m=v;return v.hostname||(m.hostname="localhost"),v.port||(v.protocol==="wss"?m.port=443:m.port=80),v.path||(m.path="/"),v.wsOptions||(m.wsOptions={}),c||v.protocol!=="wss"||d.forEach(function(g){Object.prototype.hasOwnProperty.call(v,g)&&!Object.prototype.hasOwnProperty.call(v.wsOptions,g)&&(m.wsOptions[g]=v[g])}),m}n.exports=c?function(v,m){let g;h("browserStreamBuilder");const x=function(S){const D=p(S);if(D.hostname||(D.hostname=D.host),!D.hostname){if(typeof document=="undefined")throw new Error("Could not determine host. Specify host manually.");const P=new URL(document.URL);D.hostname=P.hostname,D.port||(D.port=P.port)}return D.objectMode===void 0&&(D.objectMode=!(D.binary===!0||D.binary===void 0)),D}(m).browserBufferSize||524288,y=m.browserBufferTimeout||1e3,w=!m.objectMode,k=function(S,D){const P=D.protocolId==="MQIsdp"&&D.protocolVersion===3?"mqttv3.1":"mqtt",j=f(D,S),Z=new WebSocket(j,[P]);return Z.binaryType="arraybuffer",Z}(v,m),T=function(S,D,P){const j=new i({objectModeMode:S.objectMode});return j._write=D,j._flush=P,j}(m,function S(D,P,j){k.bufferedAmount>x&&setTimeout(S,y,D,P,j),w&&typeof D=="string"&&(D=s.from(D,"utf8"));try{k.send(D)}catch(Z){return j(Z)}j()},function(S){k.close(),S()});m.objectMode||(T._writev=A),T.on("close",()=>{k.close()});const F=k.addEventListener!==void 0;function I(){g.setReadable(T),g.setWritable(T),g.emit("connect")}function G(){g.end(),g.destroy()}function K(S){g.destroy(S)}function E(S){let D=S.data;D=D instanceof ArrayBuffer?s.from(D):s.from(D,"utf8"),T.push(D)}function A(S,D){const P=new Array(S.length);for(let j=0;j<S.length;j++)typeof S[j].chunk=="string"?P[j]=s.from(S[j],"utf8"):P[j]=S[j].chunk;this._write(s.concat(P),"binary",D)}return k.readyState===k.OPEN?g=T:(g=g=a(void 0,void 0,m),m.objectMode||(g._writev=A),F?k.addEventListener("open",I):k.onopen=I),g.socket=k,F?(k.addEventListener("close",G),k.addEventListener("error",K),k.addEventListener("message",E)):(k.onclose=G,k.onerror=K,k.onmessage=E),g}:function(v,m){h("streamBuilder");const g=p(m),x=f(g,v),y=function(k,T,F){h("createWebSocket"),h("protocol: "+F.protocolId+" "+F.protocolVersion);const I=F.protocolId==="MQIsdp"&&F.protocolVersion===3?"mqttv3.1":"mqtt";return h("creating new Websocket for url: "+T+" and protocol: "+I),new u(T,[I],F.wsOptions)}(0,x,g),w=u.createWebSocketStream(y,g.wsOptions);return w.url=x,y.on("close",()=>{w.destroy()}),w}}).call(this)}).call(this,r("_process"))},{_process:50,buffer:17,debug:18,duplexify:20,"readable-stream":69,ws:80}],6:[function(r,n,l){const{Buffer:o}=r("buffer"),s=r("readable-stream").Transform,u=r("duplexify");let h,a,i;n.exports=function(d,c){if(c.hostname=c.hostname||c.host,!c.hostname)throw new Error("Could not determine host. Specify host manually.");const f=c.protocolId==="MQIsdp"&&c.protocolVersion===3?"mqttv3.1":"mqtt";(function(m){m.hostname||(m.hostname="localhost"),m.path||(m.path="/"),m.wsOptions||(m.wsOptions={})})(c);const p=function(m,g){const x=m.protocol==="wxs"?"wss":"ws";let y=x+"://"+m.hostname+m.path;return m.port&&m.port!==80&&m.port!==443&&(y=x+"://"+m.hostname+":"+m.port+m.path),typeof m.transformWsUrl=="function"&&(y=m.transformWsUrl(y,m,g)),y}(c,d);h=wx.connectSocket({url:p,protocols:[f]}),a=function(){const m=new s;return m._write=function(g,x,y){h.send({data:g.buffer,success:function(){y()},fail:function(w){y(new Error(w))}})},m._flush=function(g){h.close({success:function(){g()}})},m}(),(i=u.obj())._destroy=function(m,g){h.close({success:function(){g&&g(m)}})};const v=i.destroy;return i.destroy=function(){i.destroy=v;const m=this;setTimeout(function(){h.close({fail:function(){m._destroy(new Error)}})},0)}.bind(i),h.onOpen(function(){i.setReadable(a),i.setWritable(a),i.emit("connect")}),h.onMessage(function(m){let g=m.data;g=g instanceof ArrayBuffer?o.from(g):o.from(g,"utf8"),a.push(g)}),h.onClose(function(){i.end(),i.destroy()}),h.onError(function(m){i.destroy(new Error(m.errMsg))}),i}},{buffer:17,duplexify:20,"readable-stream":69}],7:[function(r,n,l){function o(){if(!(this instanceof o))return new o;this.nextId=Math.max(1,Math.floor(65535*Math.random()))}o.prototype.allocate=function(){const s=this.nextId++;return this.nextId===65536&&(this.nextId=1),s},o.prototype.getLastAllocated=function(){return this.nextId===1?65535:this.nextId-1},o.prototype.register=function(s){return!0},o.prototype.deallocate=function(s){},o.prototype.clear=function(){},n.exports=o},{}],8:[function(r,n,l){const o=r("xtend"),s=r("readable-stream").Readable,u={objectMode:!0},h={clean:!0};function a(i){if(!(this instanceof a))return new a(i);this.options=i||{},this.options=o(h,i),this._inflights=new Map}a.prototype.put=function(i,d){return this._inflights.set(i.messageId,i),d&&d(),this},a.prototype.createStream=function(){const i=new s(u),d=[];let c=!1,f=0;return this._inflights.forEach(function(p,v){d.push(p)}),i._read=function(){!c&&f<d.length?this.push(d[f++]):this.push(null)},i.destroy=function(){if(c)return;const p=this;c=!0,setTimeout(function(){p.emit("close")},0)},i},a.prototype.del=function(i,d){return(i=this._inflights.get(i.messageId))?(this._inflights.delete(i.messageId),d(null,i)):d&&d(new Error("missing packet")),this},a.prototype.get=function(i,d){return(i=this._inflights.get(i.messageId))?d(null,i):d&&d(new Error("missing packet")),this},a.prototype.close=function(i){this.options.clean&&(this._inflights=null),i&&i()},n.exports=a},{"readable-stream":69,xtend:81}],9:[function(r,n,l){function o(s){if(!(this instanceof o))return new o(s);this.aliasToTopic={},this.max=s}o.prototype.put=function(s,u){return!(u===0||u>this.max)&&(this.aliasToTopic[u]=s,this.length=Object.keys(this.aliasToTopic).length,!0)},o.prototype.getTopicByAlias=function(s){return this.aliasToTopic[s]},o.prototype.clear=function(){this.aliasToTopic={}},n.exports=o},{}],10:[function(r,n,l){const o=r("lru-cache"),s=r("number-allocator").NumberAllocator;function u(h){if(!(this instanceof u))return new u(h);h>0&&(this.aliasToTopic=new o({max:h}),this.topicToAlias={},this.numberAllocator=new s(1,h),this.max=h,this.length=0)}u.prototype.put=function(h,a){if(a===0||a>this.max)return!1;const i=this.aliasToTopic.get(a);return i&&delete this.topicToAlias[i],this.aliasToTopic.set(a,h),this.topicToAlias[h]=a,this.numberAllocator.use(a),this.length=this.aliasToTopic.length,!0},u.prototype.getTopicByAlias=function(h){return this.aliasToTopic.get(h)},u.prototype.getAliasByTopic=function(h){const a=this.topicToAlias[h];return a!==void 0&&this.aliasToTopic.get(a),a},u.prototype.clear=function(){this.aliasToTopic.reset(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0},u.prototype.getLruAlias=function(){return this.numberAllocator.firstVacant()||this.aliasToTopic.keys()[this.aliasToTopic.length-1]},n.exports=u},{"lru-cache":37,"number-allocator":46}],11:[function(r,n,l){function o(s){const u=s.split("/");for(let h=0;h<u.length;h++)if(u[h]!=="+"){if(u[h]==="#")return h===u.length-1;if(u[h].indexOf("+")!==-1||u[h].indexOf("#")!==-1)return!1}return!0}n.exports={validateTopics:function(s){if(s.length===0)return"empty_topic_list";for(let u=0;u<s.length;u++)if(!o(s[u]))return s[u];return null}}},{}],12:[function(r,n,l){(function(o){(function(){const s=r("../client"),u=r("../store"),h=r("url"),a=r("xtend"),i=r("debug")("mqttjs"),d={};function c(f,p){if(i("connecting to an MQTT broker..."),typeof f!="object"||p||(p=f,f=null),p=p||{},f){const m=h.parse(f,!0);if(m.port!=null&&(m.port=Number(m.port)),(p=a(m,p)).protocol===null)throw new Error("Missing protocol");p.protocol=p.protocol.replace(/:$/,"")}if(function(m){let g;m.auth&&((g=m.auth.match(/^(.+):(.+)$/))?(m.username=g[1],m.password=g[2]):m.username=m.auth)}(p),p.query&&typeof p.query.clientId=="string"&&(p.clientId=p.query.clientId),p.cert&&p.key){if(!p.protocol)throw new Error("Missing secure protocol key");if(["mqtts","wss","wxs","alis"].indexOf(p.protocol)===-1)switch(p.protocol){case"mqtt":p.protocol="mqtts";break;case"ws":p.protocol="wss";break;case"wx":p.protocol="wxs";break;case"ali":p.protocol="alis";break;default:throw new Error('Unknown protocol for secure connection: "'+p.protocol+'"!')}}if(!d[p.protocol]){const m=["mqtts","wss"].indexOf(p.protocol)!==-1;p.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter(function(g,x){return(!m||x%2!=0)&&typeof d[g]=="function"})[0]}if(p.clean===!1&&!p.clientId)throw new Error("Missing clientId for unclean clients");p.protocol&&(p.defaultProtocol=p.protocol);const v=new s(function(m){return p.servers&&(m._reconnectCount&&m._reconnectCount!==p.servers.length||(m._reconnectCount=0),p.host=p.servers[m._reconnectCount].host,p.port=p.servers[m._reconnectCount].port,p.protocol=p.servers[m._reconnectCount].protocol?p.servers[m._reconnectCount].protocol:p.defaultProtocol,p.hostname=p.host,m._reconnectCount++),i("calling streambuilder for",p.protocol),d[p.protocol](m,p)},p);return v.on("error",function(){}),v}o!==void 0&&o.title!=="browser"||typeof __webpack_require__!="function"?(d.mqtt=r("./tcp"),d.tcp=r("./tcp"),d.ssl=r("./tls"),d.tls=r("./tls"),d.mqtts=r("./tls")):(d.wx=r("./wx"),d.wxs=r("./wx"),d.ali=r("./ali"),d.alis=r("./ali")),d.ws=r("./ws"),d.wss=r("./ws"),n.exports=c,n.exports.connect=c,n.exports.MqttClient=s,n.exports.Store=u}).call(this)}).call(this,r("_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(r,n,l){l.byteLength=function(f){var p=d(f),v=p[0],m=p[1];return 3*(v+m)/4-m},l.toByteArray=function(f){var p,v,m=d(f),g=m[0],x=m[1],y=new u(function(T,F,I){return 3*(F+I)/4-I}(0,g,x)),w=0,k=x>0?g-4:g;for(v=0;v<k;v+=4)p=s[f.charCodeAt(v)]<<18|s[f.charCodeAt(v+1)]<<12|s[f.charCodeAt(v+2)]<<6|s[f.charCodeAt(v+3)],y[w++]=p>>16&255,y[w++]=p>>8&255,y[w++]=255&p;return x===2&&(p=s[f.charCodeAt(v)]<<2|s[f.charCodeAt(v+1)]>>4,y[w++]=255&p),x===1&&(p=s[f.charCodeAt(v)]<<10|s[f.charCodeAt(v+1)]<<4|s[f.charCodeAt(v+2)]>>2,y[w++]=p>>8&255,y[w++]=255&p),y},l.fromByteArray=function(f){for(var p,v=f.length,m=v%3,g=[],x=0,y=v-m;x<y;x+=16383)g.push(c(f,x,x+16383>y?y:x+16383));return m===1?(p=f[v-1],g.push(o[p>>2]+o[p<<4&63]+"==")):m===2&&(p=(f[v-2]<<8)+f[v-1],g.push(o[p>>10]+o[p>>4&63]+o[p<<2&63]+"=")),g.join("")};for(var o=[],s=[],u=typeof Uint8Array!="undefined"?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,i=h.length;a<i;++a)o[a]=h[a],s[h.charCodeAt(a)]=a;function d(f){var p=f.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=f.indexOf("=");return v===-1&&(v=p),[v,v===p?0:4-v%4]}function c(f,p,v){for(var m,g,x=[],y=p;y<v;y+=3)m=(f[y]<<16&16711680)+(f[y+1]<<8&65280)+(255&f[y+2]),x.push(o[(g=m)>>18&63]+o[g>>12&63]+o[g>>6&63]+o[63&g]);return x.join("")}s[45]=62,s[95]=63},{}],14:[function(r,n,l){const{Buffer:o}=r("buffer"),s=Symbol.for("BufferList");function u(h){if(!(this instanceof u))return new u(h);u._init.call(this,h)}u._init=function(h){Object.defineProperty(this,s,{value:!0}),this._bufs=[],this.length=0,h&&this.append(h)},u.prototype._new=function(h){return new u(h)},u.prototype._offset=function(h){if(h===0)return[0,0];let a=0;for(let i=0;i<this._bufs.length;i++){const d=a+this._bufs[i].length;if(h<d||i===this._bufs.length-1)return[i,h-a];a=d}},u.prototype._reverseOffset=function(h){const a=h[0];let i=h[1];for(let d=0;d<a;d++)i+=this._bufs[d].length;return i},u.prototype.get=function(h){if(h>this.length||h<0)return;const a=this._offset(h);return this._bufs[a[0]][a[1]]},u.prototype.slice=function(h,a){return typeof h=="number"&&h<0&&(h+=this.length),typeof a=="number"&&a<0&&(a+=this.length),this.copy(null,0,h,a)},u.prototype.copy=function(h,a,i,d){if((typeof i!="number"||i<0)&&(i=0),(typeof d!="number"||d>this.length)&&(d=this.length),i>=this.length||d<=0)return h||o.alloc(0);const c=!!h,f=this._offset(i),p=d-i;let v=p,m=c&&a||0,g=f[1];if(i===0&&d===this.length){if(!c)return this._bufs.length===1?this._bufs[0]:o.concat(this._bufs,this.length);for(let x=0;x<this._bufs.length;x++)this._bufs[x].copy(h,m),m+=this._bufs[x].length;return h}if(v<=this._bufs[f[0]].length-g)return c?this._bufs[f[0]].copy(h,a,g,g+v):this._bufs[f[0]].slice(g,g+v);c||(h=o.allocUnsafe(p));for(let x=f[0];x<this._bufs.length;x++){const y=this._bufs[x].length-g;if(!(v>y)){this._bufs[x].copy(h,m,g,g+v),m+=y;break}this._bufs[x].copy(h,m,g),m+=y,v-=y,g&&(g=0)}return h.length>m?h.slice(0,m):h},u.prototype.shallowSlice=function(h,a){if(h=h||0,a=typeof a!="number"?this.length:a,h<0&&(h+=this.length),a<0&&(a+=this.length),h===a)return this._new();const i=this._offset(h),d=this._offset(a),c=this._bufs.slice(i[0],d[0]+1);return d[1]===0?c.pop():c[c.length-1]=c[c.length-1].slice(0,d[1]),i[1]!==0&&(c[0]=c[0].slice(i[1])),this._new(c)},u.prototype.toString=function(h,a,i){return this.slice(a,i).toString(h)},u.prototype.consume=function(h){if(h=Math.trunc(h),Number.isNaN(h)||h<=0)return this;for(;this._bufs.length;){if(!(h>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(h),this.length-=h;break}h-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},u.prototype.duplicate=function(){const h=this._new();for(let a=0;a<this._bufs.length;a++)h.append(this._bufs[a]);return h},u.prototype.append=function(h){if(h==null)return this;if(h.buffer)this._appendBuffer(o.from(h.buffer,h.byteOffset,h.byteLength));else if(Array.isArray(h))for(let a=0;a<h.length;a++)this.append(h[a]);else if(this._isBufferList(h))for(let a=0;a<h._bufs.length;a++)this.append(h._bufs[a]);else typeof h=="number"&&(h=h.toString()),this._appendBuffer(o.from(h));return this},u.prototype._appendBuffer=function(h){this._bufs.push(h),this.length+=h.length},u.prototype.indexOf=function(h,a,i){if(i===void 0&&typeof a=="string"&&(i=a,a=void 0),typeof h=="function"||Array.isArray(h))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof h=="number"?h=o.from([h]):typeof h=="string"?h=o.from(h,i):this._isBufferList(h)?h=h.slice():Array.isArray(h.buffer)?h=o.from(h.buffer,h.byteOffset,h.byteLength):o.isBuffer(h)||(h=o.from(h)),a=Number(a||0),isNaN(a)&&(a=0),a<0&&(a=this.length+a),a<0&&(a=0),h.length===0)return a>this.length?this.length:a;const d=this._offset(a);let c=d[0],f=d[1];for(;c<this._bufs.length;c++){const p=this._bufs[c];for(;f<p.length;)if(p.length-f>=h.length){const v=p.indexOf(h,f);if(v!==-1)return this._reverseOffset([c,v]);f=p.length-h.length+1}else{const v=this._reverseOffset([c,f]);if(this._match(v,h))return v;f++}f=0}return-1},u.prototype._match=function(h,a){if(this.length-h<a.length)return!1;for(let i=0;i<a.length;i++)if(this.get(h+i)!==a[i])return!1;return!0},function(){const h={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 a in h)(function(i){u.prototype[i]=h[i]===null?function(d,c){return this.slice(d,d+c)[i](0,c)}:function(d=0){return this.slice(d,d+h[i])[i](0)}})(a)}(),u.prototype._isBufferList=function(h){return h instanceof u||u.isBufferList(h)},u.isBufferList=function(h){return h!=null&&h[s]},n.exports=u},{buffer:17}],15:[function(r,n,l){const o=r("readable-stream").Duplex,s=r("inherits"),u=r("./BufferList");function h(a){if(!(this instanceof h))return new h(a);if(typeof a=="function"){this._callback=a;const i=function(d){this._callback&&(this._callback(d),this._callback=null)}.bind(this);this.on("pipe",function(d){d.on("error",i)}),this.on("unpipe",function(d){d.removeListener("error",i)}),a=null}u._init.call(this,a),o.call(this)}s(h,o),Object.assign(h.prototype,u.prototype),h.prototype._new=function(a){return new h(a)},h.prototype._write=function(a,i,d){this._appendBuffer(a),typeof d=="function"&&d()},h.prototype._read=function(a){if(!this.length)return this.push(null);a=Math.min(a,this.length),this.push(this.slice(0,a)),this.consume(a)},h.prototype.end=function(a){o.prototype.end.call(this,a),this._callback&&(this._callback(null,this.slice()),this._callback=null)},h.prototype._destroy=function(a,i){this._bufs.length=0,this.length=0,i(a)},h.prototype._isBufferList=function(a){return a instanceof h||a instanceof u||h.isBufferList(a)},h.isBufferList=u.isBufferList,n.exports=h,n.exports.BufferListStream=h,n.exports.BufferList=u},{"./BufferList":14,inherits:24,"readable-stream":69}],16:[function(r,n,l){},{}],17:[function(r,n,l){(function(o){(function(){var s=r("base64-js"),u=r("ieee754");l.Buffer=i,l.SlowBuffer=function(b){return+b!=b&&(b=0),i.alloc(+b)},l.INSPECT_MAX_BYTES=50;var h=2147483647;function a(b){if(b>h)throw new RangeError('The value "'+b+'" is invalid for option "size"');var _=new Uint8Array(b);return _.__proto__=i.prototype,_}function i(b,_,R){if(typeof b=="number"){if(typeof _=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(b)}return d(b,_,R)}function d(b,_,R){if(typeof b=="string")return function(te,se){if(typeof se=="string"&&se!==""||(se="utf8"),!i.isEncoding(se))throw new TypeError("Unknown encoding: "+se);var q=0|m(te,se),C=a(q),B=C.write(te,se);return B!==q&&(C=C.slice(0,B)),C}(b,_);if(ArrayBuffer.isView(b))return p(b);if(b==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);if(ae(b,ArrayBuffer)||b&&ae(b.buffer,ArrayBuffer))return function(te,se,q){if(se<0||te.byteLength<se)throw new RangeError('"offset" is outside of buffer bounds');if(te.byteLength<se+(q||0))throw new RangeError('"length" is outside of buffer bounds');var C;return C=se===void 0&&q===void 0?new Uint8Array(te):q===void 0?new Uint8Array(te,se):new Uint8Array(te,se,q),C.__proto__=i.prototype,C}(b,_,R);if(typeof b=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Q=b.valueOf&&b.valueOf();if(Q!=null&&Q!==b)return i.from(Q,_,R);var ee=function(te){if(i.isBuffer(te)){var se=0|v(te.length),q=a(se);return q.length===0||te.copy(q,0,0,se),q}if(te.length!==void 0)return typeof te.length!="number"||oe(te.length)?a(0):p(te);if(te.type==="Buffer"&&Array.isArray(te.data))return p(te.data)}(b);if(ee)return ee;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof b[Symbol.toPrimitive]=="function")return i.from(b[Symbol.toPrimitive]("string"),_,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b)}function c(b){if(typeof b!="number")throw new TypeError('"size" argument must be of type number');if(b<0)throw new RangeError('The value "'+b+'" is invalid for option "size"')}function f(b){return c(b),a(b<0?0:0|v(b))}function p(b){for(var _=b.length<0?0:0|v(b.length),R=a(_),Q=0;Q<_;Q+=1)R[Q]=255&b[Q];return R}function v(b){if(b>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return 0|b}function m(b,_){if(i.isBuffer(b))return b.length;if(ArrayBuffer.isView(b)||ae(b,ArrayBuffer))return b.byteLength;if(typeof b!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof b);var R=b.length,Q=arguments.length>2&&arguments[2]===!0;if(!Q&&R===0)return 0;for(var ee=!1;;)switch(_){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return $(b).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*R;case"hex":return R>>>1;case"base64":return J(b).length;default:if(ee)return Q?-1:$(b).length;_=(""+_).toLowerCase(),ee=!0}}function g(b,_,R){var Q=b[_];b[_]=b[R],b[R]=Q}function x(b,_,R,Q,ee){if(b.length===0)return-1;if(typeof R=="string"?(Q=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),oe(R=+R)&&(R=ee?0:b.length-1),R<0&&(R=b.length+R),R>=b.length){if(ee)return-1;R=b.length-1}else if(R<0){if(!ee)return-1;R=0}if(typeof _=="string"&&(_=i.from(_,Q)),i.isBuffer(_))return _.length===0?-1:y(b,_,R,Q,ee);if(typeof _=="number")return _&=255,typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(b,_,R):Uint8Array.prototype.lastIndexOf.call(b,_,R):y(b,[_],R,Q,ee);throw new TypeError("val must be string, number or Buffer")}function y(b,_,R,Q,ee){var te,se=1,q=b.length,C=_.length;if(Q!==void 0&&((Q=String(Q).toLowerCase())==="ucs2"||Q==="ucs-2"||Q==="utf16le"||Q==="utf-16le")){if(b.length<2||_.length<2)return-1;se=2,q/=2,C/=2,R/=2}function B(ce,me){return se===1?ce[me]:ce.readUInt16BE(me*se)}if(ee){var X=-1;for(te=R;te<q;te++)if(B(b,te)===B(_,X===-1?0:te-X)){if(X===-1&&(X=te),te-X+1===C)return X*se}else X!==-1&&(te-=te-X),X=-1}else for(R+C>q&&(R=q-C),te=R;te>=0;te--){for(var ne=!0,ue=0;ue<C;ue++)if(B(b,te+ue)!==B(_,ue)){ne=!1;break}if(ne)return te}return-1}function w(b,_,R,Q){R=Number(R)||0;var ee=b.length-R;Q?(Q=Number(Q))>ee&&(Q=ee):Q=ee;var te=_.length;Q>te/2&&(Q=te/2);for(var se=0;se<Q;++se){var q=parseInt(_.substr(2*se,2),16);if(oe(q))return se;b[R+se]=q}return se}function k(b,_,R,Q){return ie($(_,b.length-R),b,R,Q)}function T(b,_,R,Q){return ie(function(ee){for(var te=[],se=0;se<ee.length;++se)te.push(255&ee.charCodeAt(se));return te}(_),b,R,Q)}function F(b,_,R,Q){return T(b,_,R,Q)}function I(b,_,R,Q){return ie(J(_),b,R,Q)}function G(b,_,R,Q){return ie(function(ee,te){for(var se,q,C,B=[],X=0;X<ee.length&&!((te-=2)<0);++X)se=ee.charCodeAt(X),q=se>>8,C=se%256,B.push(C),B.push(q);return B}(_,b.length-R),b,R,Q)}function K(b,_,R){return _===0&&R===b.length?s.fromByteArray(b):s.fromByteArray(b.slice(_,R))}function E(b,_,R){R=Math.min(b.length,R);for(var Q=[],ee=_;ee<R;){var te,se,q,C,B=b[ee],X=null,ne=B>239?4:B>223?3:B>191?2:1;if(ee+ne<=R)switch(ne){case 1:B<128&&(X=B);break;case 2:(192&(te=b[ee+1]))==128&&(C=(31&B)<<6|63&te)>127&&(X=C);break;case 3:te=b[ee+1],se=b[ee+2],(192&te)==128&&(192&se)==128&&(C=(15&B)<<12|(63&te)<<6|63&se)>2047&&(C<55296||C>57343)&&(X=C);break;case 4:te=b[ee+1],se=b[ee+2],q=b[ee+3],(192&te)==128&&(192&se)==128&&(192&q)==128&&(C=(15&B)<<18|(63&te)<<12|(63&se)<<6|63&q)>65535&&C<1114112&&(X=C)}X===null?(X=65533,ne=1):X>65535&&(X-=65536,Q.push(X>>>10&1023|55296),X=56320|1023&X),Q.push(X),ee+=ne}return function(ue){var ce=ue.length;if(ce<=A)return String.fromCharCode.apply(String,ue);for(var me="",ge=0;ge<ce;)me+=String.fromCharCode.apply(String,ue.slice(ge,ge+=A));return me}(Q)}l.kMaxLength=h,i.TYPED_ARRAY_SUPPORT=function(){try{var b=new Uint8Array(1);return b.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},b.foo()===42}catch(_){return!1}}(),i.TYPED_ARRAY_SUPPORT||typeof console=="undefined"||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(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}}),typeof Symbol!="undefined"&&Symbol.species!=null&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),i.poolSize=8192,i.from=function(b,_,R){return d(b,_,R)},i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,i.alloc=function(b,_,R){return function(Q,ee,te){return c(Q),Q<=0?a(Q):ee!==void 0?typeof te=="string"?a(Q).fill(ee,te):a(Q).fill(ee):a(Q)}(b,_,R)},i.allocUnsafe=function(b){return f(b)},i.allocUnsafeSlow=function(b){return f(b)},i.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==i.prototype},i.compare=function(b,_){if(ae(b,Uint8Array)&&(b=i.from(b,b.offset,b.byteLength)),ae(_,Uint8Array)&&(_=i.from(_,_.offset,_.byteLength)),!i.isBuffer(b)||!i.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===_)return 0;for(var R=b.length,Q=_.length,ee=0,te=Math.min(R,Q);ee<te;++ee)if(b[ee]!==_[ee]){R=b[ee],Q=_[ee];break}return R<Q?-1:Q<R?1:0},i.isEncoding=function(b){switch(String(b).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}},i.concat=function(b,_){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return i.alloc(0);var R;if(_===void 0)for(_=0,R=0;R<b.length;++R)_+=b[R].length;var Q=i.allocUnsafe(_),ee=0;for(R=0;R<b.length;++R){var te=b[R];if(ae(te,Uint8Array)&&(te=i.from(te)),!i.isBuffer(te))throw new TypeError('"list" argument must be an Array of Buffers');te.copy(Q,ee),ee+=te.length}return Q},i.byteLength=m,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var b=this.length;if(b%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var _=0;_<b;_+=2)g(this,_,_+1);return this},i.prototype.swap32=function(){var b=this.length;if(b%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var _=0;_<b;_+=4)g(this,_,_+3),g(this,_+1,_+2);return this},i.prototype.swap64=function(){var b=this.length;if(b%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var _=0;_<b;_+=8)g(this,_,_+7),g(this,_+1,_+6),g(this,_+2,_+5),g(this,_+3,_+4);return this},i.prototype.toString=function(){var b=this.length;return b===0?"":arguments.length===0?E(this,0,b):function(_,R,Q){var ee=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)||(Q>>>=0)<=(R>>>=0))return"";for(_||(_="utf8");;)switch(_){case"hex":return P(this,R,Q);case"utf8":case"utf-8":return E(this,R,Q);case"ascii":return S(this,R,Q);case"latin1":case"binary":return D(this,R,Q);case"base64":return K(this,R,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,R,Q);default:if(ee)throw new TypeError("Unknown encoding: "+_);_=(_+"").toLowerCase(),ee=!0}}.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(b){if(!i.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||i.compare(this,b)===0},i.prototype.inspect=function(){var b="",_=l.INSPECT_MAX_BYTES;return b=this.toString("hex",0,_).replace(/(.{2})/g,"$1 ").trim(),this.length>_&&(b+=" ... "),"<Buffer "+b+">"},i.prototype.compare=function(b,_,R,Q,ee){if(ae(b,Uint8Array)&&(b=i.from(b,b.offset,b.byteLength)),!i.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(_===void 0&&(_=0),R===void 0&&(R=b?b.length:0),Q===void 0&&(Q=0),ee===void 0&&(ee=this.length),_<0||R>b.length||Q<0||ee>this.length)throw new RangeError("out of range index");if(Q>=ee&&_>=R)return 0;if(Q>=ee)return-1;if(_>=R)return 1;if(_>>>=0,R>>>=0,Q>>>=0,ee>>>=0,this===b)return 0;for(var te=ee-Q,se=R-_,q=Math.min(te,se),C=this.slice(Q,ee),B=b.slice(_,R),X=0;X<q;++X)if(C[X]!==B[X]){te=C[X],se=B[X];break}return te<se?-1:se<te?1:0},i.prototype.includes=function(b,_,R){return this.indexOf(b,_,R)!==-1},i.prototype.indexOf=function(b,_,R){return x(this,b,_,R,!0)},i.prototype.lastIndexOf=function(b,_,R){return x(this,b,_,R,!1)},i.prototype.write=function(b,_,R,Q){if(_===void 0)Q="utf8",R=this.length,_=0;else if(R===void 0&&typeof _=="string")Q=_,R=this.length,_=0;else{if(!isFinite(_))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");_>>>=0,isFinite(R)?(R>>>=0,Q===void 0&&(Q="utf8")):(Q=R,R=void 0)}var ee=this.length-_;if((R===void 0||R>ee)&&(R=ee),b.length>0&&(R<0||_<0)||_>this.length)throw new RangeError("Attempt to write outside buffer bounds");Q||(Q="utf8");for(var te=!1;;)switch(Q){case"hex":return w(this,b,_,R);case"utf8":case"utf-8":return k(this,b,_,R);case"ascii":return T(this,b,_,R);case"latin1":case"binary":return F(this,b,_,R);case"base64":return I(this,b,_,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,b,_,R);default:if(te)throw new TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),te=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function S(b,_,R){var Q="";R=Math.min(b.length,R);for(var ee=_;ee<R;++ee)Q+=String.fromCharCode(127&b[ee]);return Q}function D(b,_,R){var Q="";R=Math.min(b.length,R);for(var ee=_;ee<R;++ee)Q+=String.fromCharCode(b[ee]);return Q}function P(b,_,R){var Q=b.length;(!_||_<0)&&(_=0),(!R||R<0||R>Q)&&(R=Q);for(var ee="",te=_;te<R;++te)ee+=W(b[te]);return ee}function j(b,_,R){for(var Q=b.slice(_,R),ee="",te=0;te<Q.length;te+=2)ee+=String.fromCharCode(Q[te]+256*Q[te+1]);return ee}function Z(b,_,R){if(b%1!=0||b<0)throw new RangeError("offset is not uint");if(b+_>R)throw new RangeError("Trying to access beyond buffer length")}function V(b,_,R,Q,ee,te){if(!i.isBuffer(b))throw new TypeError('"buffer" argument must be a Buffer instance');if(_>ee||_<te)throw new RangeError('"value" argument is out of bounds');if(R+Q>b.length)throw new RangeError("Index out of range")}function L(b,_,R,Q,ee,te){if(R+Q>b.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function H(b,_,R,Q,ee){return _=+_,R>>>=0,ee||L(b,0,R,4),u.write(b,_,R,Q,23,4),R+4}function U(b,_,R,Q,ee){return _=+_,R>>>=0,ee||L(b,0,R,8),u.write(b,_,R,Q,52,8),R+8}i.prototype.slice=function(b,_){var R=this.length;b=~~b,_=_===void 0?R:~~_,b<0?(b+=R)<0&&(b=0):b>R&&(b=R),_<0?(_+=R)<0&&(_=0):_>R&&(_=R),_<b&&(_=b);var Q=this.subarray(b,_);return Q.__proto__=i.prototype,Q},i.prototype.readUIntLE=function(b,_,R){b>>>=0,_>>>=0,R||Z(b,_,this.length);for(var Q=this[b],ee=1,te=0;++te<_&&(ee*=256);)Q+=this[b+te]*ee;return Q},i.prototype.readUIntBE=function(b,_,R){b>>>=0,_>>>=0,R||Z(b,_,this.length);for(var Q=this[b+--_],ee=1;_>0&&(ee*=256);)Q+=this[b+--_]*ee;return Q},i.prototype.readUInt8=function(b,_){return b>>>=0,_||Z(b,1,this.length),this[b]},i.prototype.readUInt16LE=function(b,_){return b>>>=0,_||Z(b,2,this.length),this[b]|this[b+1]<<8},i.prototype.readUInt16BE=function(b,_){return b>>>=0,_||Z(b,2,this.length),this[b]<<8|this[b+1]},i.prototype.readUInt32LE=function(b,_){return b>>>=0,_||Z(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+16777216*this[b+3]},i.prototype.readUInt32BE=function(b,_){return b>>>=0,_||Z(b,4,this.length),16777216*this[b]+(this[b+1]<<16|this[b+2]<<8|this[b+3])},i.prototype.readIntLE=function(b,_,R){b>>>=0,_>>>=0,R||Z(b,_,this.length);for(var Q=this[b],ee=1,te=0;++te<_&&(ee*=256);)Q+=this[b+te]*ee;return Q>=(ee*=128)&&(Q-=Math.pow(2,8*_)),Q},i.prototype.readIntBE=function(b,_,R){b>>>=0,_>>>=0,R||Z(b,_,this.length);for(var Q=_,ee=1,te=this[b+--Q];Q>0&&(ee*=256);)te+=this[b+--Q]*ee;return te>=(ee*=128)&&(te-=Math.pow(2,8*_)),te},i.prototype.readInt8=function(b,_){return b>>>=0,_||Z(b,1,this.length),128&this[b]?-1*(255-this[b]+1):this[b]},i.prototype.readInt16LE=function(b,_){b>>>=0,_||Z(b,2,this.length);var R=this[b]|this[b+1]<<8;return 32768&R?4294901760|R:R},i.prototype.readInt16BE=function(b,_){b>>>=0,_||Z(b,2,this.length);var R=this[b+1]|this[b]<<8;return 32768&R?4294901760|R:R},i.prototype.readInt32LE=function(b,_){return b>>>=0,_||Z(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},i.prototype.readInt32BE=function(b,_){return b>>>=0,_||Z(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},i.prototype.readFloatLE=function(b,_){return b>>>=0,_||Z(b,4,this.length),u.read(this,b,!0,23,4)},i.prototype.readFloatBE=function(b,_){return b>>>=0,_||Z(b,4,this.length),u.read(this,b,!1,23,4)},i.prototype.readDoubleLE=function(b,_){return b>>>=0,_||Z(b,8,this.length),u.read(this,b,!0,52,8)},i.prototype.readDoubleBE=function(b,_){return b>>>=0,_||Z(b,8,this.length),u.read(this,b,!1,52,8)},i.prototype.writeUIntLE=function(b,_,R,Q){b=+b,_>>>=0,R>>>=0,Q||V(this,b,_,R,Math.pow(2,8*R)-1,0);var ee=1,te=0;for(this[_]=255&b;++te<R&&(ee*=256);)this[_+te]=b/ee&255;return _+R},i.prototype.writeUIntBE=function(b,_,R,Q){b=+b,_>>>=0,R>>>=0,Q||V(this,b,_,R,Math.pow(2,8*R)-1,0);var ee=R-1,te=1;for(this[_+ee]=255&b;--ee>=0&&(te*=256);)this[_+ee]=b/te&255;return _+R},i.prototype.writeUInt8=function(b,_,R){return b=+b,_>>>=0,R||V(this,b,_,1,255,0),this[_]=255&b,_+1},i.prototype.writeUInt16LE=function(b,_,R){return b=+b,_>>>=0,R||V(this,b,_,2,65535,0),this[_]=255&b,this[_+1]=b>>>8,_+2},i.prototype.writeUInt16BE=function(b,_,R){return b=+b,_>>>=0,R||V(this,b,_,2,65535,0),this[_]=b>>>8,this[_+1]=255&b,_+2},i.prototype.writeUInt32LE=function(b,_,R){return b=+b,_>>>=0,R||V(this,b,_,4,4294967295,0),this[_+3]=b>>>24,this[_+2]=b>>>16,this[_+1]=b>>>8,this[_]=255&b,_+4},i.prototype.writeUInt32BE=function(b,_,R){return b=+b,_>>>=0,R||V(this,b,_,4,4294967295,0),this[_]=b>>>24,this[_+1]=b>>>16,this[_+2]=b>>>8,this[_+3]=255&b,_+4},i.prototype.writeIntLE=function(b,_,R,Q){if(b=+b,_>>>=0,!Q){var ee=Math.pow(2,8*R-1);V(this,b,_,R,ee-1,-ee)}var te=0,se=1,q=0;for(this[_]=255&b;++te<R&&(se*=256);)b<0&&q===0&&this[_+te-1]!==0&&(q=1),this[_+te]=(b/se>>0)-q&255;return _+R},i.prototype.writeIntBE=function(b,_,R,Q){if(b=+b,_>>>=0,!Q){var ee=Math.pow(2,8*R-1);V(this,b,_,R,ee-1,-ee)}var te=R-1,se=1,q=0;for(this[_+te]=255&b;--te>=0&&(se*=256);)b<0&&q===0&&this[_+te+1]!==0&&(q=1),this[_+te]=(b/se>>0)-q&255;return _+R},i.prototype.writeInt8=function(b,_,R){return b=+b,_>>>=0,R||V(this,b,_,1,127,-128),b<0&&(b=255+b+1),this[_]=255&b,_+1},i.prototype.writeInt16LE=function(b,_,R){return b=+b,_>>>=0,R||V(this,b,_,2,32767,-32768),this[_]=255&b,this[_+1]=b>>>8,_+2},i.prototype.writeInt16BE=function(b,_,R){return b=+b,_>>>=0,R||V(this,b,_,2,32767,-32768),this[_]=b>>>8,this[_+1]=255&b,_+2},i.prototype.writeInt32LE=function(b,_,R){return b=+b,_>>>=0,R||V(this,b,_,4,2147483647,-2147483648),this[_]=255&b,this[_+1]=b>>>8,this[_+2]=b>>>16,this[_+3]=b>>>24,_+4},i.prototype.writeInt32BE=function(b,_,R){return b=+b,_>>>=0,R||V(this,b,_,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[_]=b>>>24,this[_+1]=b>>>16,this[_+2]=b>>>8,this[_+3]=255&b,_+4},i.prototype.writeFloatLE=function(b,_,R){return H(this,b,_,!0,R)},i.prototype.writeFloatBE=function(b,_,R){return H(this,b,_,!1,R)},i.prototype.writeDoubleLE=function(b,_,R){return U(this,b,_,!0,R)},i.prototype.writeDoubleBE=function(b,_,R){return U(this,b,_,!1,R)},i.prototype.copy=function(b,_,R,Q){if(!i.isBuffer(b))throw new TypeError("argument should be a Buffer");if(R||(R=0),Q||Q===0||(Q=this.length),_>=b.length&&(_=b.length),_||(_=0),Q>0&&Q<R&&(Q=R),Q===R||b.length===0||this.length===0)return 0;if(_<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=this.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),b.length-_<Q-R&&(Q=b.length-_+R);var ee=Q-R;if(this===b&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(_,R,Q);else if(this===b&&R<_&&_<Q)for(var te=ee-1;te>=0;--te)b[te+_]=this[te+R];else Uint8Array.prototype.set.call(b,this.subarray(R,Q),_);return ee},i.prototype.fill=function(b,_,R,Q){if(typeof b=="string"){if(typeof _=="string"?(Q=_,_=0,R=this.length):typeof R=="string"&&(Q=R,R=this.length),Q!==void 0&&typeof Q!="string")throw new TypeError("encoding must be a string");if(typeof Q=="string"&&!i.isEncoding(Q))throw new TypeError("Unknown encoding: "+Q);if(b.length===1){var ee=b.charCodeAt(0);(Q==="utf8"&&ee<128||Q==="latin1")&&(b=ee)}}else typeof b=="number"&&(b&=255);if(_<0||this.length<_||this.length<R)throw new RangeError("Out of range index");if(R<=_)return this;var te;if(_>>>=0,R=R===void 0?this.length:R>>>0,b||(b=0),typeof b=="number")for(te=_;te<R;++te)this[te]=b;else{var se=i.isBuffer(b)?b:i.from(b,Q),q=se.length;if(q===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(te=0;te<R-_;++te)this[te+_]=se[te%q]}return this};var O=/[^+/0-9A-Za-z-_]/g;function W(b){return b<16?"0"+b.toString(16):b.toString(16)}function $(b,_){var R;_=_||1/0;for(var Q=b.length,ee=null,te=[],se=0;se<Q;++se){if((R=b.charCodeAt(se))>55295&&R<57344){if(!ee){if(R>56319){(_-=3)>-1&&te.push(239,191,189);continue}if(se+1===Q){(_-=3)>-1&&te.push(239,191,189);continue}ee=R;continue}if(R<56320){(_-=3)>-1&&te.push(239,191,189),ee=R;continue}R=65536+(ee-55296<<10|R-56320)}else ee&&(_-=3)>-1&&te.push(239,191,189);if(ee=null,R<128){if((_-=1)<0)break;te.push(R)}else if(R<2048){if((_-=2)<0)break;te.push(R>>6|192,63&R|128)}else if(R<65536){if((_-=3)<0)break;te.push(R>>12|224,R>>6&63|128,63&R|128)}else{if(!(R<1114112))throw new Error("Invalid code point");if((_-=4)<0)break;te.push(R>>18|240,R>>12&63|128,R>>6&63|128,63&R|128)}}return te}function J(b){return s.toByteArray(function(_){if((_=(_=_.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;_.length%4!=0;)_+="=";return _}(b))}function ie(b,_,R,Q){for(var ee=0;ee<Q&&!(ee+R>=_.length||ee>=b.length);++ee)_[ee+R]=b[ee];return ee}function ae(b,_){return b instanceof _||b!=null&&b.constructor!=null&&b.constructor.name!=null&&b.constructor.name===_.name}function oe(b){return b!=b}}).call(this)}).call(this,r("buffer").Buffer)},{"base64-js":13,buffer:17,ieee754:23}],18:[function(r,n,l){(function(o){(function(){l.formatArgs=function(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const h="color: "+this.color;u.splice(1,0,h,"color: inherit");let a=0,i=0;u[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&d==="%c"&&(i=++a)}),u.splice(i,0,h)},l.save=function(u){try{u?l.storage.setItem("debug",u):l.storage.removeItem("debug")}catch(h){}},l.load=function(){let u;try{u=l.storage.getItem("debug")}catch(h){}return!u&&o!==void 0&&"env"in o&&(u=o.env.DEBUG),u},l.useColors=function(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},l.storage=function(){try{return localStorage}catch(u){}}(),l.destroy=(()=>{let u=!1;return()=>{u||(u=!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`."))}})(),l.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"],l.log=console.debug||console.log||(()=>{}),n.exports=r("./common")(l);const{formatters:s}=n.exports;s.j=function(u){try{return JSON.stringify(u)}catch(h){return"[UnexpectedJSONParseError]: "+h.message}}}).call(this)}).call(this,r("_process"))},{"./common":19,_process:50}],19:[function(r,n,l){n.exports=function(o){function s(a){let i,d,c,f=null;function p(...v){if(!p.enabled)return;const m=p,g=Number(new Date),x=g-(i||g);m.diff=x,m.prev=i,m.curr=g,i=g,v[0]=s.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let y=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(w,k)=>{if(w==="%%")return"%";y++;const T=s.formatters[k];if(typeof T=="function"){const F=v[y];w=T.call(m,F),v.splice(y,1),y--}return w}),s.formatArgs.call(m,v),(m.log||s.log).apply(m,v)}return p.namespace=a,p.useColors=s.useColors(),p.color=s.selectColor(a),p.extend=u,p.destroy=s.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(d!==s.namespaces&&(d=s.namespaces,c=s.enabled(a)),c),set:v=>{f=v}}),typeof s.init=="function"&&s.init(p),p}function u(a,i){const d=s(this.namespace+(i===void 0?":":i)+a);return d.log=this.log,d}function h(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}return s.debug=s,s.default=s,s.coerce=function(a){return a instanceof Error?a.stack||a.message:a},s.disable=function(){const a=[...s.names.map(h),...s.skips.map(h).map(i=>"-"+i)].join(",");return s.enable(""),a},s.enable=function(a){let i;s.save(a),s.namespaces=a,s.names=[],s.skips=[];const d=(typeof a=="string"?a:"").split(/[\s,]+/),c=d.length;for(i=0;i<c;i++)d[i]&&((a=d[i].replace(/\*/g,".*?"))[0]==="-"?s.skips.push(new RegExp("^"+a.substr(1)+"$")):s.names.push(new RegExp("^"+a+"$")))},s.enabled=function(a){if(a[a.length-1]==="*")return!0;let i,d;for(i=0,d=s.skips.length;i<d;i++)if(s.skips[i].test(a))return!1;for(i=0,d=s.names.length;i<d;i++)if(s.names[i].test(a))return!0;return!1},s.humanize=r("ms"),s.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(o).forEach(a=>{s[a]=o[a]}),s.names=[],s.skips=[],s.formatters={},s.selectColor=function(a){let i=0;for(let d=0;d<a.length;d++)i=(i<<5)-i+a.charCodeAt(d),i|=0;return s.colors[Math.abs(i)%s.colors.length]},s.enable(s.load()),s}},{ms:45}],20:[function(r,n,l){(function(o,s){(function(){var u=r("readable-stream"),h=r("end-of-stream"),a=r("inherits"),i=r("stream-shift"),d=s.from&&s.from!==Uint8Array.from?s.from([0]):new s([0]),c=function(m,g){m._corked?m.once("uncork",g):g()},f=function(m,g){return function(x){x?function(y,w){y._autoDestroy&&y.destroy(w)}(m,x.message==="premature close"?null:x):g&&!m._ended&&m.end()}},p=function(){},v=function(m,g,x){if(!(this instanceof v))return new v(m,g,x);u.Duplex.call(this,x),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!x||x.autoDestroy!==!1,this._forwardDestroy=!x||x.destroy!==!1,this._forwardEnd=!x||x.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,m&&this.setWritable(m),g&&this.setReadable(g)};a(v,u.Duplex),v.obj=function(m,g,x){return x||(x={}),x.objectMode=!0,x.highWaterMark=16,new v(m,g,x)},v.prototype.cork=function(){++this._corked==1&&this.emit("cork")},v.prototype.uncork=function(){this._corked&&--this._corked==0&&this.emit("uncork")},v.prototype.setWritable=function(m){if(this._unwrite&&this._unwrite(),this.destroyed)m&&m.destroy&&m.destroy();else if(m!==null&&m!==!1){var g=this,x=h(m,{writable:!0,readable:!1},f(this,this._forwardEnd)),y=function(){var w=g._ondrain;g._ondrain=null,w&&w()};this._unwrite&&o.nextTick(y),this._writable=m,this._writable.on("drain",y),this._unwrite=function(){g._writable.removeListener("drain",y),x()},this.uncork()}else this.end()},v.prototype.setReadable=function(m){if(this._unread&&this._unread(),this.destroyed)m&&m.destroy&&m.destroy();else{if(m===null||m===!1)return this.push(null),void this.resume();var g,x=this,y=h(m,{writable:!1,readable:!0},f(this)),w=function(){x._forward()},k=function(){x.push(null)};this._drained=!0,this._readable=m,this._readable2=m._readableState?m:(g=m,new u.Readable({objectMode:!0,highWaterMark:16}).wrap(g)),this._readable2.on("readable",w),this._readable2.on("end",k),this._unread=function(){x._readable2.removeListener("readable",w),x._readable2.removeListener("end",k),y()},this._forward()}},v.prototype._read=function(){this._drained=!0,this._forward()},v.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var m;for(this._forwarding=!0;this._drained&&(m=i(this._readable2))!==null;)this.destroyed||(this._drained=this.push(m));this._forwarding=!1}},v.prototype.destroy=function(m,g){if(g||(g=p),this.destroyed)return g(null);this.destroyed=!0;var x=this;o.nextTick(function(){x._destroy(m),g(null)})},v.prototype._destroy=function(m){if(m){var g=this._ondrain;this._ondrain=null,g?g(m):this.emit("error",m)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},v.prototype._write=function(m,g,x){if(!this.destroyed)return this._corked?c(this,this._write.bind(this,m,g,x)):m===d?this._finish(x):this._writable?void(this._writable.write(m)===!1?this._ondrain=x:this.destroyed||x()):x()},v.prototype._finish=function(m){var g=this;this.emit("preend"),c(this,function(){var x,y;x=g._forwardEnd&&g._writable,y=function(){g._writableState.prefinished===!1&&(g._writableState.prefinished=!0),g.emit("prefinish"),c(g,m)},x?x._writableState&&x._writableState.finished?y():x._writableState?x.end(y):(x.end(),y()):y()})},v.prototype.end=function(m,g,x){return typeof m=="function"?this.end(null,null,m):typeof g=="function"?this.end(m,null,g):(this._ended=!0,m&&this.write(m),this._writableState.ending||this._writableState.destroyed||this.write(d),u.Writable.prototype.end.call(this,x))},n.exports=v}).call(this)}).call(this,r("_process"),r("buffer").Buffer)},{_process:50,buffer:17,"end-of-stream":21,inherits:24,"readable-stream":69,"stream-shift":74}],21:[function(r,n,l){(function(o){(function(){var s=r("once"),u=function(){},h=function(a,i,d){if(typeof i=="function")return h(a,null,i);i||(i={}),d=s(d||u);var c=a._writableState,f=a._readableState,p=i.readable||i.readable!==!1&&a.readable,v=i.writable||i.writable!==!1&&a.writable,m=!1,g=function(){a.writable||x()},x=function(){v=!1,p||d.call(a)},y=function(){p=!1,v||d.call(a)},w=function(G){d.call(a,G?new Error("exited with error code: "+G):null)},k=function(G){d.call(a,G)},T=function(){o.nextTick(F)},F=function(){if(!m)return(!p||f&&f.ended&&!f.destroyed)&&(!v||c&&c.ended&&!c.destroyed)?void 0:d.call(a,new Error("premature close"))},I=function(){a.req.on("finish",x)};return function(G){return G.setHeader&&typeof G.abort=="function"}(a)?(a.on("complete",x),a.on("abort",T),a.req?I():a.on("request",I)):v&&!c&&(a.on("end",g),a.on("close",g)),function(G){return G.stdio&&Array.isArray(G.stdio)&&G.stdio.length===3}(a)&&a.on("exit",w),a.on("end",y),a.on("finish",x),i.error!==!1&&a.on("error",k),a.on("close",T),function(){m=!0,a.removeListener("complete",x),a.removeListener("abort",T),a.removeListener("request",I),a.req&&a.req.removeListener("finish",x),a.removeListener("end",g),a.removeListener("close",g),a.removeListener("finish",x),a.removeListener("exit",w),a.removeListener("end",y),a.removeListener("error",k),a.removeListener("close",T)}};n.exports=h}).call(this)}).call(this,r("_process"))},{_process:50,once:48}],22:[function(r,n,l){var o=Object.create||function(y){var w=function(){};return w.prototype=y,new w},s=Object.keys||function(y){var w=[];for(var k in y)Object.prototype.hasOwnProperty.call(y,k)&&w.push(k);return k},u=Function.prototype.bind||function(y){var w=this;return function(){return w.apply(y,arguments)}};function h(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=o(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}n.exports=h,h.EventEmitter=h,h.prototype._events=void 0,h.prototype._maxListeners=void 0;var a,i=10;try{var d={};Object.defineProperty&&Object.defineProperty(d,"x",{value:0}),a=d.x===0}catch(y){a=!1}function c(y){return y._maxListeners===void 0?h.defaultMaxListeners:y._maxListeners}function f(y,w,k,T){var F,I,G;if(typeof k!="function")throw new TypeError('"listener" argument must be a function');if((I=y._events)?(I.newListener&&(y.emit("newListener",w,k.listener?k.listener:k),I=y._events),G=I[w]):(I=y._events=o(null),y._eventsCount=0),G){if(typeof G=="function"?G=I[w]=T?[k,G]:[G,k]:T?G.unshift(k):G.push(k),!G.warned&&(F=c(y))&&F>0&&G.length>F){G.warned=!0;var K=new Error("Possible EventEmitter memory leak detected. "+G.length+' "'+String(w)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');K.name="MaxListenersExceededWarning",K.emitter=y,K.type=w,K.count=G.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",K.name,K.message)}}else G=I[w]=k,++y._eventsCount;return y}function p(){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 y=new Array(arguments.length),w=0;w<y.length;++w)y[w]=arguments[w];this.listener.apply(this.target,y)}}function v(y,w,k){var T={fired:!1,wrapFn:void 0,target:y,type:w,listener:k},F=u.call(p,T);return F.listener=k,T.wrapFn=F,F}function m(y,w,k){var T=y._events;if(!T)return[];var F=T[w];return F?typeof F=="function"?k?[F.listener||F]:[F]:k?function(I){for(var G=new Array(I.length),K=0;K<G.length;++K)G[K]=I[K].listener||I[K];return G}(F):x(F,F.length):[]}function g(y){var w=this._events;if(w){var k=w[y];if(typeof k=="function")return 1;if(k)return k.length}return 0}function x(y,w){for(var k=new Array(w),T=0;T<w;++T)k[T]=y[T];return k}a?Object.defineProperty(h,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(y){if(typeof y!="number"||y<0||y!=y)throw new TypeError('"defaultMaxListeners" must be a positive number');i=y}}):h.defaultMaxListeners=i,h.prototype.setMaxListeners=function(y){if(typeof y!="number"||y<0||isNaN(y))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=y,this},h.prototype.getMaxListeners=function(){return c(this)},h.prototype.emit=function(y){var w,k,T,F,I,G,K=y==="error";if(G=this._events)K=K&&G.error==null;else if(!K)return!1;if(K){if(arguments.length>1&&(w=arguments[1]),w instanceof Error)throw w;var E=new Error('Unhandled "error" event. ('+w+")");throw E.context=w,E}if(!(k=G[y]))return!1;var A=typeof k=="function";switch(T=arguments.length){case 1:(function(S,D,P){if(D)S.call(P);else for(var j=S.length,Z=x(S,j),V=0;V<j;++V)Z[V].call(P)})(k,A,this);break;case 2:(function(S,D,P,j){if(D)S.call(P,j);else for(var Z=S.length,V=x(S,Z),L=0;L<Z;++L)V[L].call(P,j)})(k,A,this,arguments[1]);break;case 3:(function(S,D,P,j,Z){if(D)S.call(P,j,Z);else for(var V=S.length,L=x(S,V),H=0;H<V;++H)L[H].call(P,j,Z)})(k,A,this,arguments[1],arguments[2]);break;case 4:(function(S,D,P,j,Z,V){if(D)S.call(P,j,Z,V);else for(var L=S.length,H=x(S,L),U=0;U<L;++U)H[U].call(P,j,Z,V)})(k,A,this,arguments[1],arguments[2],arguments[3]);break;default:for(F=new Array(T-1),I=1;I<T;I++)F[I-1]=arguments[I];(function(S,D,P,j){if(D)S.apply(P,j);else for(var Z=S.length,V=x(S,Z),L=0;L<Z;++L)V[L].apply(P,j)})(k,A,this,F)}return!0},h.prototype.addListener=function(y,w){return f(this,y,w,!1)},h.prototype.on=h.prototype.addListener,h.prototype.prependListener=function(y,w){return f(this,y,w,!0)},h.prototype.once=function(y,w){if(typeof w!="function")throw new TypeError('"listener" argument must be a function');return this.on(y,v(this,y,w)),this},h.prototype.prependOnceListener=function(y,w){if(typeof w!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(y,v(this,y,w)),this},h.prototype.removeListener=function(y,w){var k,T,F,I,G;if(typeof w!="function")throw new TypeError('"listener" argument must be a function');if(!(T=this._events))return this;if(!(k=T[y]))return this;if(k===w||k.listener===w)--this._eventsCount==0?this._events=o(null):(delete T[y],T.removeListener&&this.emit("removeListener",y,k.listener||w));else if(typeof k!="function"){for(F=-1,I=k.length-1;I>=0;I--)if(k[I]===w||k[I].listener===w){G=k[I].listener,F=I;break}if(F<0)return this;F===0?k.shift():function(K,E){for(var A=E,S=A+1,D=K.length;S<D;A+=1,S+=1)K[A]=K[S];K.pop()}(k,F),k.length===1&&(T[y]=k[0]),T.removeListener&&this.emit("removeListener",y,G||w)}return this},h.prototype.removeAllListeners=function(y){var w,k,T;if(!(k=this._events))return this;if(!k.removeListener)return arguments.length===0?(this._events=o(null),this._eventsCount=0):k[y]&&(--this._eventsCount==0?this._events=o(null):delete k[y]),this;if(arguments.length===0){var F,I=s(k);for(T=0;T<I.length;++T)(F=I[T])!=="removeListener"&&this.removeAllListeners(F);return this.removeAllListeners("removeListener"),this._events=o(null),this._eventsCount=0,this}if(typeof(w=k[y])=="function")this.removeListener(y,w);else if(w)for(T=w.length-1;T>=0;T--)this.removeListener(y,w[T]);return this},h.prototype.listeners=function(y){return m(this,y,!0)},h.prototype.rawListeners=function(y){return m(this,y,!1)},h.listenerCount=function(y,w){return typeof y.listenerCount=="function"?y.listenerCount(w):g.call(y,w)},h.prototype.listenerCount=g,h.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],23:[function(r,n,l){l.read=function(o,s,u,h,a){var i,d,c=8*a-h-1,f=(1<<c)-1,p=f>>1,v=-7,m=u?a-1:0,g=u?-1:1,x=o[s+m];for(m+=g,i=x&(1<<-v)-1,x>>=-v,v+=c;v>0;i=256*i+o[s+m],m+=g,v-=8);for(d=i&(1<<-v)-1,i>>=-v,v+=h;v>0;d=256*d+o[s+m],m+=g,v-=8);if(i===0)i=1-p;else{if(i===f)return d?NaN:1/0*(x?-1:1);d+=Math.pow(2,h),i-=p}return(x?-1:1)*d*Math.pow(2,i-h)},l.write=function(o,s,u,h,a,i){var d,c,f,p=8*i-a-1,v=(1<<p)-1,m=v>>1,g=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=h?0:i-1,y=h?1:-1,w=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(c=isNaN(s)?1:0,d=v):(d=Math.floor(Math.log(s)/Math.LN2),s*(f=Math.pow(2,-d))<1&&(d--,f*=2),(s+=d+m>=1?g/f:g*Math.pow(2,1-m))*f>=2&&(d++,f/=2),d+m>=v?(c=0,d=v):d+m>=1?(c=(s*f-1)*Math.pow(2,a),d+=m):(c=s*Math.pow(2,m-1)*Math.pow(2,a),d=0));a>=8;o[u+x]=255&c,x+=y,c/=256,a-=8);for(d=d<<a|c,p+=a;p>0;o[u+x]=255&d,x+=y,d/=256,p-=8);o[u+x-y]|=128*w}},{}],24:[function(r,n,l){typeof Object.create=="function"?n.exports=function(o,s){s&&(o.super_=s,o.prototype=Object.create(s.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:n.exports=function(o,s){if(s){o.super_=s;var u=function(){};u.prototype=s.prototype,o.prototype=new u,o.prototype.constructor=o}}},{}],25:[function(r,n,l){Object.defineProperty(l,"__esModule",{value:!0});var o=function(){function s(u,h){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=u,this.value=h}return s.prototype.rotateLeft=function(){var u=this.parent,h=this.brother,a=this.leftChild,i=this.rightChild;if(!i)throw new Error("unknown error");var d=i.leftChild,c=i.rightChild;return u&&(u.leftChild===this?u.leftChild=i:u.rightChild===this&&(u.rightChild=i)),i.parent=u,i.brother=h,i.leftChild=this,i.rightChild=c,h&&(h.brother=i),this.parent=i,this.brother=c,this.leftChild=a,this.rightChild=d,c&&(c.parent=i,c.brother=this),a&&(a.parent=this,a.brother=d),d&&(d.parent=this,d.brother=a),i},s.prototype.rotateRight=function(){var u=this.parent,h=this.brother,a=this.leftChild;if(!a)throw new Error("unknown error");var i=this.rightChild,d=a.leftChild,c=a.rightChild;return u&&(u.leftChild===this?u.leftChild=a:u.rightChild===this&&(u.rightChild=a)),a.parent=u,a.brother=h,a.leftChild=d,a.rightChild=this,h&&(h.brother=a),d&&(d.parent=a,d.brother=this),this.parent=a,this.brother=d,this.leftChild=c,this.rightChild=i,c&&(c.parent=this,c.brother=i),i&&(i.parent=this,i.brother=c),a},s.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},s.TreeNodeColorType={red:!0,black:!1},s}();Object.freeze(o),l.default=o},{}],26:[function(r,n,l){var o=this&&this.__generator||function(u,h){var a,i,d,c,f={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return c={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function p(v){return function(m){return function(g){if(a)throw new TypeError("Generator is already executing.");for(;f;)try{if(a=1,i&&(d=2&g[0]?i.return:g[0]?i.throw||((d=i.return)&&d.call(i),0):i.next)&&!(d=d.call(i,g[1])).done)return d;switch(i=0,d&&(g=[2&g[0],d.value]),g[0]){case 0:case 1:d=g;break;case 4:return f.label++,{value:g[1],done:!1};case 5:f.label++,i=g[1],g=[0];continue;case 7:g=f.ops.pop(),f.trys.pop();continue;default:if(!(d=(d=f.trys).length>0&&d[d.length-1])&&(g[0]===6||g[0]===2)){f=0;continue}if(g[0]===3&&(!d||g[1]>d[0]&&g[1]<d[3])){f.label=g[1];break}if(g[0]===6&&f.label<d[1]){f.label=d[1],d=g;break}if(d&&f.label<d[2]){f.label=d[2],f.ops.push(g);break}d[2]&&f.ops.pop(),f.trys.pop();continue}g=h.call(u,f)}catch(x){g=[6,x],i=0}finally{a=d=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([v,m])}}};function s(u){var h=this;u===void 0&&(u=[]);var a=[],i=0,d=0,c=0,f=0,p=0,v=0;this.size=function(){return v},this.empty=function(){return v===0},this.clear=function(){i=c=d=f=p=v=0,g.call(this,s.bucketSize),v=0},this.front=function(){return a[i][d]},this.back=function(){return a[c][f]},this.forEach=function(x){if(!this.empty()){var y=0;if(i!==c){for(k=d;k<s.bucketSize;++k)x(a[i][k],y++);for(k=i+1;k<c;++k)for(var w=0;w<s.bucketSize;++w)x(a[k][w],y++);for(k=0;k<=f;++k)x(a[c][k],y++)}else for(var k=d;k<=f;++k)x(a[i][k],y++)}};var m=function(x){var y=i*s.bucketSize+d,w=y+x,k=c*s.bucketSize+f;if(w<y||w>k)throw new Error("pos should more than 0 and less than queue's size");return{curNodeBucketIndex:Math.floor(w/s.bucketSize),curNodePointerIndex:w%s.bucketSize}};this.getElementByPos=function(x){var y=m(x),w=y.curNodeBucketIndex,k=y.curNodePointerIndex;return a[w][k]},this.eraseElementByPos=function(x){var y=this;if(x<0||x>v)throw new Error("pos should more than 0 and less than queue's size");if(x===0)this.popFront();else if(x===this.size())this.popBack();else{for(var w=[],k=x+1;k<v;++k)w.push(this.getElementByPos(k));this.cut(x),this.popBack(),w.forEach(function(T){return y.pushBack(T)})}},this.eraseElementByValue=function(x){if(!this.empty()){var y=[];this.forEach(function(T){T!==x&&y.push(T)});for(var w=y.length,k=0;k<w;++k)this.setElementByPos(k,y[k]);this.cut(w-1)}};var g=function(x){for(var y=[],w=x*s.sigma,k=Math.max(Math.ceil(w/s.bucketSize),2),T=0;T<k;++T)y.push(new Array(s.bucketSize));var F=Math.ceil(x/s.bucketSize),I=Math.floor(k/2)-Math.floor(F/2),G=I,K=0;if(this.size())for(T=0;T<F;++T){for(var E=0;E<s.bucketSize;++E)if(y[I+T][E]=this.front(),this.popFront(),this.empty()){G=I+T,K=E;break}if(this.empty())break}a=y,i=I,d=0,c=G,f=K,p=k,v=x};this.pushBack=function(x){this.empty()||(c===p-1&&f===s.bucketSize-1&&g.call(this,this.size()),f<s.bucketSize-1?++f:c<p-1&&(++c,f=0)),++v,a[c][f]=x},this.popBack=function(){this.empty()||(this.size()!==1&&(f>0?--f:i<c&&(--c,f=s.bucketSize-1)),v>0&&--v)},this.setElementByPos=function(x,y){var w=m(x),k=w.curNodeBucketIndex,T=w.curNodePointerIndex;a[k][T]=y},this.insert=function(x,y,w){var k=this;if(w===void 0&&(w=1),x===0)for(;w--;)this.pushFront(y);else if(x===this.size())for(;w--;)this.pushBack(y);else{for(var T=[],F=x;F<v;++F)T.push(this.getElementByPos(F));for(this.cut(x-1),F=0;F<w;++F)this.pushBack(y);T.forEach(function(I){return k.pushBack(I)})}},this.find=function(x){if(i===c){for(var y=d;y<=f;++y)if(a[i][y]===x)return!0;return!1}for(y=d;y<s.bucketSize;++y)if(a[i][y]===x)return!0;for(y=i+1;y<c;++y)for(var w=0;w<s.bucketSize;++w)if(a[y][w]===x)return!0;for(y=0;y<=f;++y)if(a[c][y]===x)return!0;return!1},this.reverse=function(){for(var x=0,y=v-1;x<y;){var w=this.getElementByPos(x);this.setElementByPos(x,this.getElementByPos(y)),this.setElementByPos(y,w),++x,--y}},this.unique=function(){if(!this.empty()){var x=[],y=this.front();this.forEach(function(k,T){T!==0&&k===y||(x.push(k),y=k)});for(var w=0;w<v;++w)this.setElementByPos(w,x[w]);this.cut(x.length-1)}},this.sort=function(x){var y=[];this.forEach(function(k){y.push(k)}),y.sort(x);for(var w=0;w<v;++w)this.setElementByPos(w,y[w])},this.pushFront=function(x){this.empty()||(i===0&&d===0&&g.call(this,this.size()),d>0?--d:i>0&&(--i,d=s.bucketSize-1)),++v,a[i][d]=x},this.popFront=function(){this.empty()||(this.size()!==1&&(d<s.bucketSize-1?++d:i<c&&(++i,d=0)),v>0&&--v)},this.shrinkToFit=function(){var x=this,y=[];this.forEach(function(F){y.push(F)});var w=y.length;a=[];for(var k=Math.ceil(w/s.bucketSize),T=0;T<k;++T)a.push(new Array(s.bucketSize));this.clear(),y.forEach(function(F){return x.pushBack(F)})},this.cut=function(x){if(x<0)this.clear();else{var y=m(x),w=y.curNodeBucketIndex,k=y.curNodePointerIndex;c=w,f=k,v=x+1}},this[Symbol.iterator]=function(){return function(){var x,y;return o(this,function(w){switch(w.label){case 0:if(v===0)return[2];if(i!==c)return[3,5];y=d,w.label=1;case 1:return y<=f?[4,a[i][y]]:[3,4];case 2:w.sent(),w.label=3;case 3:return++y,[3,1];case 4:return[2];case 5:y=d,w.label=6;case 6:return y<s.bucketSize?[4,a[i][y]]:[3,9];case 7:w.sent(),w.label=8;case 8:return++y,[3,6];case 9:y=i+1,w.label=10;case 10:if(!(y<c))return[3,15];x=0,w.label=11;case 11:return x<s.bucketSize?[4,a[y][x]]:[3,14];case 12:w.sent(),w.label=13;case 13:return++x,[3,11];case 14:return++y,[3,10];case 15:y=0,w.label=16;case 16:return y<=f?[4,a[c][y]]:[3,19];case 17:w.sent(),w.label=18;case 18:return++y,[3,16];case 19:return[2]}})}()},function(){var x=s.bucketSize;u.size?x=u.size():u.length&&(x=u.length);var y=x*s.sigma;p=Math.ceil(y/s.bucketSize),p=Math.max(p,3);for(var w=0;w<p;++w)a.push(new Array(s.bucketSize));var k=Math.ceil(x/s.bucketSize);i=Math.floor(p/2)-Math.floor(k/2),c=i,u.forEach(function(T){return h.pushBack(T)})}(),Object.freeze(this)}Object.defineProperty(l,"__esModule",{value:!0}),s.sigma=3,s.bucketSize=5e3,Object.freeze(s),l.default=s},{}],27:[function(r,n,l){var o=this&&this.__generator||function(i,d){var c,f,p,v,m={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return v={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function g(x){return function(y){return function(w){if(c)throw new TypeError("Generator is already executing.");for(;m;)try{if(c=1,f&&(p=2&w[0]?f.return:w[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,w[1])).done)return p;switch(f=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return m.label++,{value:w[1],done:!1};case 5:m.label++,f=w[1],w=[0];continue;case 7:w=m.ops.pop(),m.trys.pop();continue;default:if(!(p=(p=m.trys).length>0&&p[p.length-1])&&(w[0]===6||w[0]===2)){m=0;continue}if(w[0]===3&&(!p||w[1]>p[0]&&w[1]<p[3])){m.label=w[1];break}if(w[0]===6&&m.label<p[1]){m.label=p[1],p=w;break}if(p&&m.label<p[2]){m.label=p[2],m.ops.push(w);break}p[2]&&m.ops.pop(),m.trys.pop();continue}w=d.call(i,m)}catch(k){w=[6,k],f=0}finally{c=p=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([x,y])}}},s=this&&this.__values||function(i){var d=typeof Symbol=="function"&&Symbol.iterator,c=d&&i[d],f=0;if(c)return c.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&f>=i.length&&(i=void 0),{value:i&&i[f++],done:!i}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(l,"__esModule",{value:!0});var u=r("../LinkList/LinkList"),h=r("../Map/Map");function a(i,d,c){var f=this;if(i===void 0&&(i=[]),d===void 0&&(d=a.initSize),c=c||function(g){var x,y,w=0,k="";if(typeof g=="number")w=((w=Math.floor(g))<<5)-w,w&=w;else{k=typeof g!="string"?JSON.stringify(g):g;try{for(var T=s(k),F=T.next();!F.done;F=T.next())w=(w<<5)-w+F.value.charCodeAt(0),w&=w}catch(I){x={error:I}}finally{try{F&&!F.done&&(y=T.return)&&y.call(T)}finally{if(x)throw x.error}}}return w^=w>>>16},(d&d-1)!=0)throw new Error("initBucketNum must be 2 to the power of n");var p=0,v=[],m=Math.max(a.initSize,Math.min(a.maxSize,d));this.size=function(){return p},this.empty=function(){return p===0},this.clear=function(){p=0,m=d,v=[]},this.forEach=function(g){var x=0;v.forEach(function(y){y.forEach(function(w){g(w,x++)})})},this.setElement=function(g,x){var y,w;if(g==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(x!=null){var k=c(g)&m-1;if(v[k]){var T=v[k].size();if(v[k]instanceof u.default){try{for(var F=s(v[k]),I=F.next();!I.done;I=F.next()){var G=I.value;if(G.key===g)return void(G.value=x)}}catch(E){y={error:E}}finally{try{I&&!I.done&&(w=F.return)&&w.call(F)}finally{if(y)throw y.error}}v[k].pushBack({key:g,value:x}),v[k].size()>=a.treeifyThreshold&&(v[k]=new h.default(v[k]))}else v[k].setElement(g,x);var K=v[k].size();p+=K-T}else++p,v[k]=new u.default([{key:g,value:x}]);p>m*a.sigma&&function(E){if(!(E>=a.maxSize)){m=2*E;var A=[];v.forEach(function(S,D){if(!S.empty()){if(S instanceof u.default&&S.size()===1){var P=S.front(),j=P.key,Z=P.value;A[c(j)&m-1]=new u.default([{key:j,value:Z}])}else if(S instanceof h.default){var V=new u.default,L=new u.default;S.forEach(function(O){c(O.key)&E?L.pushBack(O):V.pushBack(O)}),V.size()>a.untreeifyThreshold?A[D]=new h.default(V):V.size()&&(A[D]=V),L.size()>a.untreeifyThreshold?A[D+E]=new h.default(L):L.size()&&(A[D+E]=L)}else{var H=new u.default,U=new u.default;S.forEach(function(O){c(O.key)&E?U.pushBack(O):H.pushBack(O)}),H.size()&&(A[D]=H),U.size()&&(A[D+E]=U)}v[D].clear()}}),v=A}}.call(this,m)}else this.eraseElementByKey(g)},this.getElementByKey=function(g){var x,y,w=c(g)&m-1;if(v[w]){if(v[w]instanceof h.default)return v[w].getElementByKey(g);try{for(var k=s(v[w]),T=k.next();!T.done;T=k.next()){var F=T.value;if(F.key===g)return F.value}}catch(I){x={error:I}}finally{try{T&&!T.done&&(y=k.return)&&y.call(k)}finally{if(x)throw x.error}}}},this.eraseElementByKey=function(g){var x,y,w=c(g)&m-1;if(v[w]){var k=v[w].size();if(v[w]instanceof h.default)v[w].eraseElementByKey(g),v[w].size()<=a.untreeifyThreshold&&(v[w]=new u.default(v[w]));else{var T=-1;try{for(var F=s(v[w]),I=F.next();!I.done;I=F.next())if(++T,I.value.key===g){v[w].eraseElementByPos(T);break}}catch(K){x={error:K}}finally{try{I&&!I.done&&(y=F.return)&&y.call(F)}finally{if(x)throw x.error}}}var G=v[w].size();p+=G-k}},this.find=function(g){var x,y,w=c(g)&m-1;if(!v[w])return!1;if(v[w]instanceof h.default)return v[w].find(g);try{for(var k=s(v[w]),T=k.next();!T.done;T=k.next())if(T.value.key===g)return!0}catch(F){x={error:F}}finally{try{T&&!T.done&&(y=k.return)&&y.call(k)}finally{if(x)throw x.error}}return!1},this[Symbol.iterator]=function(){return function(){var g,x,y,w,k,T;return o(this,function(F){switch(F.label){case 0:g=0,F.label=1;case 1:if(!(g<m))return[3,10];for(;g<m&&!v[g];)++g;if(g>=m)return[3,10];F.label=2;case 2:F.trys.push([2,7,8,9]),k=void 0,x=s(v[g]),y=x.next(),F.label=3;case 3:return y.done?[3,6]:[4,y.value];case 4:F.sent(),F.label=5;case 5:return y=x.next(),[3,3];case 6:return[3,9];case 7:return w=F.sent(),k={error:w},[3,9];case 8:try{y&&!y.done&&(T=x.return)&&T.call(x)}finally{if(k)throw k.error}return[7];case 9:return++g,[3,1];case 10:return[2]}})}()},i.forEach(function(g){var x=g.key,y=g.value;return f.setElement(x,y)}),Object.freeze(this)}a.initSize=16,a.maxSize=1<<30,a.sigma=.75,a.treeifyThreshold=8,a.untreeifyThreshold=6,a.minTreeifySize=64,Object.freeze(a),l.default=a},{"../LinkList/LinkList":29,"../Map/Map":30}],28:[function(r,n,l){var o=this&&this.__generator||function(i,d){var c,f,p,v,m={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return v={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function g(x){return function(y){return function(w){if(c)throw new TypeError("Generator is already executing.");for(;m;)try{if(c=1,f&&(p=2&w[0]?f.return:w[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,w[1])).done)return p;switch(f=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return m.label++,{value:w[1],done:!1};case 5:m.label++,f=w[1],w=[0];continue;case 7:w=m.ops.pop(),m.trys.pop();continue;default:if(!(p=(p=m.trys).length>0&&p[p.length-1])&&(w[0]===6||w[0]===2)){m=0;continue}if(w[0]===3&&(!p||w[1]>p[0]&&w[1]<p[3])){m.label=w[1];break}if(w[0]===6&&m.label<p[1]){m.label=p[1],p=w;break}if(p&&m.label<p[2]){m.label=p[2],m.ops.push(w);break}p[2]&&m.ops.pop(),m.trys.pop();continue}w=d.call(i,m)}catch(k){w=[6,k],f=0}finally{c=p=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([x,y])}}},s=this&&this.__values||function(i){var d=typeof Symbol=="function"&&Symbol.iterator,c=d&&i[d],f=0;if(c)return c.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&f>=i.length&&(i=void 0),{value:i&&i[f++],done:!i}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(l,"__esModule",{value:!0});var u=r("../Set/Set"),h=r("../LinkList/LinkList");function a(i,d,c){var f=this;if(i===void 0&&(i=[]),d===void 0&&(d=a.initSize),c=c||function(g){var x=0,y="";if(typeof g=="number")x=((x=Math.floor(g))<<5)-x,x&=x;else{y=typeof g!="string"?JSON.stringify(g):g;for(var w=0;w<y.length;w++)x=(x<<5)-x+y.charCodeAt(w),x&=x}return x^=x>>>16},(d&d-1)!=0)throw new Error("initBucketNum must be 2 to the power of n");var p=0,v=[],m=Math.max(a.initSize,Math.min(a.maxSize,d));this.size=function(){return p},this.empty=function(){return p===0},this.clear=function(){p=0,m=d,v=[]},this.forEach=function(g){var x=0;v.forEach(function(y){y.forEach(function(w){g(w,x++)})})},this.insert=function(g){if(g==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");var x=c(g)&m-1;if(v[x]){var y=v[x].size();if(v[x]instanceof h.default){if(v[x].find(g))return;v[x].pushBack(g),v[x].size()>=a.treeifyThreshold&&(v[x]=new u.default(v[x]))}else v[x].insert(g);var w=v[x].size();p+=w-y}else v[x]=new h.default([g]),++p;p>m*a.sigma&&function(k){if(!(k>=a.maxSize)){m=2*k;var T=[];v.forEach(function(F,I){if(!F.empty()){if(F instanceof h.default&&F.size()===1){var G=F.front();if(G===void 0)throw new Error("unknown error");T[c(G)&m-1]=new h.default([G])}else if(F instanceof u.default){var K=new h.default,E=new h.default;F.forEach(function(D){c(D)&k?E.pushBack(D):K.pushBack(D)}),K.size()>a.untreeifyThreshold?T[I]=new u.default(K):K.size()&&(T[I]=K),E.size()>a.untreeifyThreshold?T[I+k]=new u.default(E):E.size()&&(T[I+k]=E)}else{var A=new h.default,S=new h.default;F.forEach(function(D){c(D)&k?S.pushBack(D):A.pushBack(D)}),A.size()&&(T[I]=A),S.size()&&(T[I+k]=S)}v[I].clear()}}),v=T}}.call(this,m)},this.eraseElementByValue=function(g){var x=c(g)&m-1;if(v[x]){var y=v[x].size();v[x].eraseElementByValue(g),v[x]instanceof u.default&&v[x].size()<=a.untreeifyThreshold&&(v[x]=new h.default(v[x]));var w=v[x].size();p+=w-y}},this.find=function(g){var x=c(g)&m-1;return!!v[x]&&v[x].find(g)},this[Symbol.iterator]=function(){return function(){var g,x,y,w,k,T;return o(this,function(F){switch(F.label){case 0:g=0,F.label=1;case 1:if(!(g<m))return[3,10];for(;g<m&&!v[g];)++g;if(g>=m)return[3,10];F.label=2;case 2:F.trys.push([2,7,8,9]),k=void 0,x=s(v[g]),y=x.next(),F.label=3;case 3:return y.done?[3,6]:[4,y.value];case 4:F.sent(),F.label=5;case 5:return y=x.next(),[3,3];case 6:return[3,9];case 7:return w=F.sent(),k={error:w},[3,9];case 8:try{y&&!y.done&&(T=x.return)&&T.call(x)}finally{if(k)throw k.error}return[7];case 9:return++g,[3,1];case 10:return[2]}})}()},i.forEach(function(g){return f.insert(g)}),Object.freeze(this)}a.initSize=16,a.maxSize=1<<30,a.sigma=.75,a.treeifyThreshold=8,a.untreeifyThreshold=6,a.minTreeifySize=64,Object.freeze(a),l.default=a},{"../LinkList/LinkList":29,"../Set/Set":33}],29:[function(r,n,l){var o=this&&this.__generator||function(h,a){var i,d,c,f,p={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return f={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function v(m){return function(g){return function(x){if(i)throw new TypeError("Generator is already executing.");for(;p;)try{if(i=1,d&&(c=2&x[0]?d.return:x[0]?d.throw||((c=d.return)&&c.call(d),0):d.next)&&!(c=c.call(d,x[1])).done)return c;switch(d=0,c&&(x=[2&x[0],c.value]),x[0]){case 0:case 1:c=x;break;case 4:return p.label++,{value:x[1],done:!1};case 5:p.label++,d=x[1],x=[0];continue;case 7:x=p.ops.pop(),p.trys.pop();continue;default:if(!(c=(c=p.trys).length>0&&c[c.length-1])&&(x[0]===6||x[0]===2)){p=0;continue}if(x[0]===3&&(!c||x[1]>c[0]&&x[1]<c[3])){p.label=x[1];break}if(x[0]===6&&p.label<c[1]){p.label=c[1],c=x;break}if(c&&p.label<c[2]){p.label=c[2],p.ops.push(x);break}c[2]&&p.ops.pop(),p.trys.pop();continue}x=a.call(h,p)}catch(y){x=[6,y],d=0}finally{i=c=0}if(5&x[0])throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}([m,g])}}};Object.defineProperty(l,"__esModule",{value:!0});var s=function(){return function(h){this.value=void 0,this.pre=void 0,this.next=void 0,this.value=h}}();function u(h){var a=this;h===void 0&&(h=[]);var i=0,d=void 0,c=void 0;this.size=function(){return i},this.empty=function(){return i===0},this.clear=function(){d=c=void 0,i=0},this.front=function(){return d==null?void 0:d.value},this.back=function(){return c==null?void 0:c.value},this.forEach=function(f){for(var p=d,v=0;p;){if(p.value===void 0)throw new Error("unknown error");f(p.value,v++),p=p.next}},this.getElementByPos=function(f){if(f<0||f>=i)throw new Error("pos must more then 0 and less then the list length");for(var p=d;f--&&p;)p=p.next;if(!p||p.value===void 0)throw new Error("unknown error");return p.value},this.eraseElementByPos=function(f){if(f<0||f>=i)throw new Error("erase pos must more then 0 and less then the list length");if(f===0)this.popFront();else if(f===i-1)this.popBack();else{for(var p=d;f--;){if(!(p!=null&&p.next))throw new Error("unknown error");p=p.next}if(!p||!p.pre||!p.next)throw new Error("unknown error");var v=p.pre,m=p.next;m.pre=v,v.next=m,i>0&&--i}},this.eraseElementByValue=function(f){for(;d&&d.value===f;)this.popFront();for(;c&&c.value===f;)this.popBack();if(d)for(var p=d;p;){if(p.value===f){var v=p.pre,m=p.next;m&&(m.pre=v),v&&(v.next=m),i>0&&--i}p=p.next}},this.pushBack=function(f){if(f==null)throw new Error("you can't push null or undefined here");++i;var p=new s(f);c?(c.next=p,p.pre=c,c=p):d=c=p},this.popBack=function(){c&&(i>0&&--i,c&&(d===c?d=c=void 0:(c=c.pre)&&(c.next=void 0)))},this.setElementByPos=function(f,p){if(p==null)throw new Error("you can't set null or undefined here");if(f<0||f>=i)throw new Error("pos must more then 0 and less then the list length");for(var v=d;f--;){if(!v)throw new Error("unknown error");v=v.next}v&&(v.value=p)},this.insert=function(f,p,v){if(v===void 0&&(v=1),p==null)throw new Error("you can't insert null or undefined here");if(f<0||f>i)throw new Error("insert pos must more then 0 and less then or equal to the list length");if(v<0)throw new Error("insert size must more than 0");if(f===0)for(;v--;)this.pushFront(p);else if(f===i)for(;v--;)this.pushBack(p);else{for(var m=d,g=1;g<f;++g){if(!(m!=null&&m.next))throw new Error("unknown error");m=m==null?void 0:m.next}if(!m)throw new Error("unknown error");var x=m.next;for(i+=v;v--;)m.next=new s(p),m.next.pre=m,m=m.next;m.next=x,x&&(x.pre=m)}},this.find=function(f){for(var p=d;p;){if(p.value===f)return!0;p=p.next}return!1},this.reverse=function(){for(var f=d,p=c,v=0;f&&p&&2*v<i;){var m=f.value;f.value=p.value,p.value=m,f=f.next,p=p.pre,++v}},this.unique=function(){for(var f=d;f;){for(var p=f;p&&p.next&&p.value===p.next.value;)p=p.next,i>0&&--i;f.next=p.next,f.next&&(f.next.pre=f),f=f.next}},this.sort=function(f){var p=[];this.forEach(function(m){p.push(m)}),p.sort(f);var v=d;p.forEach(function(m){v&&(v.value=m,v=v.next)})},this.pushFront=function(f){if(f==null)throw new Error("you can't push null or undefined here");++i;var p=new s(f);d?(p.next=d,d.pre=p,d=p):d=c=p},this.popFront=function(){d&&(i>0&&--i,d&&(d===c?d=c=void 0:(d=d.next)&&(d.pre=void 0)))},this.merge=function(f){var p=this,v=d;f.forEach(function(m){for(;v&&v.value!==void 0&&v.value<=m;)v=v.next;if(v===void 0)p.pushBack(m),v=c;else if(v===d)p.pushFront(m),v=d;else{++i;var g=v.pre;g&&(g.next=new s(m),g.next.pre=g,g.next.next=v,v&&(v.pre=g.next))}})},this[Symbol.iterator]=function(){return function(){var f;return o(this,function(p){switch(p.label){case 0:f=d,p.label=1;case 1:if(f===void 0)return[3,3];if(!f.value)throw new Error("unknown error");return[4,f.value];case 2:return p.sent(),f=f.next,[3,1];case 3:return[2]}})}()},h.forEach(function(f){return a.pushBack(f)}),Object.freeze(this)}Object.freeze(u),l.default=u},{}],30:[function(r,n,l){var o=this&&this.__generator||function(a,i){var d,c,f,p,v={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function m(g){return function(x){return function(y){if(d)throw new TypeError("Generator is already executing.");for(;v;)try{if(d=1,c&&(f=2&y[0]?c.return:y[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,y[1])).done)return f;switch(c=0,f&&(y=[2&y[0],f.value]),y[0]){case 0:case 1:f=y;break;case 4:return v.label++,{value:y[1],done:!1};case 5:v.label++,c=y[1],y=[0];continue;case 7:y=v.ops.pop(),v.trys.pop();continue;default:if(!(f=(f=v.trys).length>0&&f[f.length-1])&&(y[0]===6||y[0]===2)){v=0;continue}if(y[0]===3&&(!f||y[1]>f[0]&&y[1]<f[3])){v.label=y[1];break}if(y[0]===6&&v.label<f[1]){v.label=f[1],f=y;break}if(f&&v.label<f[2]){v.label=f[2],v.ops.push(y);break}f[2]&&v.ops.pop(),v.trys.pop();continue}y=i.call(a,v)}catch(w){y=[6,w],c=0}finally{d=f=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([g,x])}}},s=this&&this.__values||function(a){var i=typeof Symbol=="function"&&Symbol.iterator,d=i&&a[i],c=0;if(d)return d.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&c>=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(l,"__esModule",{value:!0});var u=r("../Base/TreeNode");function h(a,i){var d=this;a===void 0&&(a=[]),i=i||function(E,A){return E<A?-1:E>A?1:0};var c=0,f=new u.default;f.color=u.default.TreeNodeColorType.black,this.size=function(){return c},this.empty=function(){return c===0},this.clear=function(){c=0,f.key=f.value=void 0,f.leftChild=f.rightChild=f.brother=void 0};var p=function(E){if(!E||E.key===void 0)throw new Error("unknown error");return E.leftChild?p(E.leftChild):E},v=function(E){if(!E||E.key===void 0)throw new Error("unknown error");return E.rightChild?v(E.rightChild):E};this.front=function(){if(!this.empty()){var E=p(f);if(E.key===void 0||E.value===void 0)throw new Error("unknown error");return{key:E.key,value:E.value}}},this.back=function(){if(!this.empty()){var E=v(f);if(E.key===void 0||E.value===void 0)throw new Error("unknown error");return{key:E.key,value:E.value}}},this.forEach=function(E){var A,S,D=0;try{for(var P=s(this),j=P.next();!j.done;j=P.next())E(j.value,D++)}catch(Z){A={error:Z}}finally{try{j&&!j.done&&(S=P.return)&&S.call(P)}finally{if(A)throw A.error}}},this.getElementByPos=function(E){var A,S;if(E<0||E>=this.size())throw new Error("pos must more than 0 and less than set's size");var D=0;try{for(var P=s(this),j=P.next();!j.done;j=P.next()){var Z=j.value;if(D===E)return Z;++D}}catch(V){A={error:V}}finally{try{j&&!j.done&&(S=P.return)&&S.call(P)}finally{if(A)throw A.error}}throw new Error("unknown Error")};var m=function(E,A){if(E&&E.key!==void 0&&E.value!==void 0){var S=i(E.key,A);return S===0?{key:E.key,value:E.value}:S<0?m(E.rightChild,A):m(E.leftChild,A)||{key:E.key,value:E.value}}};this.lowerBound=function(E){return m(f,E)};var g=function(E,A){if(E&&E.key!==void 0&&E.value!==void 0)return i(E.key,A)<=0?g(E.rightChild,A):g(E.leftChild,A)||{key:E.key,value:E.value}};this.upperBound=function(E){return g(f,E)};var x=function(E,A){if(E&&E.key!==void 0&&E.value!==void 0){var S=i(E.key,A);return S===0?{key:E.key,value:E.value}:S>0?x(E.leftChild,A):x(E.rightChild,A)||{key:E.key,value:E.value}}};this.reverseLowerBound=function(E){return x(f,E)};var y=function(E,A){if(E&&E.key!==void 0&&E.value!==void 0)return i(E.key,A)>=0?y(E.leftChild,A):y(E.rightChild,A)||{key:E.key,value:E.value}};this.reverseUpperBound=function(E){return y(f,E)};var w=function(E){var A=E.parent;if(!A){if(E===f)return;throw new Error("unknown error")}if(E.color!==u.default.TreeNodeColorType.red){var S=E.brother;if(!S)throw new Error("unknown error");if(E===A.leftChild)if(S.color===u.default.TreeNodeColorType.red){S.color=u.default.TreeNodeColorType.black,A.color=u.default.TreeNodeColorType.red;var D=A.rotateLeft();f===A&&(f=D),w(E)}else S.color===u.default.TreeNodeColorType.black&&(S.rightChild&&S.rightChild.color===u.default.TreeNodeColorType.red?(S.color=A.color,A.color=u.default.TreeNodeColorType.black,S.rightChild&&(S.rightChild.color=u.default.TreeNodeColorType.black),D=A.rotateLeft(),f===A&&(f=D),E.color=u.default.TreeNodeColorType.black):S.rightChild&&S.rightChild.color!==u.default.TreeNodeColorType.black||!S.leftChild||S.leftChild.color!==u.default.TreeNodeColorType.red?S.leftChild&&S.leftChild.color!==u.default.TreeNodeColorType.black||S.rightChild&&S.rightChild.color!==u.default.TreeNodeColorType.black||(S.color=u.default.TreeNodeColorType.red,w(A)):(S.color=u.default.TreeNodeColorType.red,S.leftChild&&(S.leftChild.color=u.default.TreeNodeColorType.black),D=S.rotateRight(),f===S&&(f=D),w(E)));else E===A.rightChild&&(S.color===u.default.TreeNodeColorType.red?(S.color=u.default.TreeNodeColorType.black,A.color=u.default.TreeNodeColorType.red,D=A.rotateRight(),f===A&&(f=D),w(E)):S.color===u.default.TreeNodeColorType.black&&(S.leftChild&&S.leftChild.color===u.default.TreeNodeColorType.red?(S.color=A.color,A.color=u.default.TreeNodeColorType.black,S.leftChild&&(S.leftChild.color=u.default.TreeNodeColorType.black),D=A.rotateRight(),f===A&&(f=D),E.color=u.default.TreeNodeColorType.black):S.leftChild&&S.leftChild.color!==u.default.TreeNodeColorType.black||!S.rightChild||S.rightChild.color!==u.default.TreeNodeColorType.red?S.leftChild&&S.leftChild.color!==u.default.TreeNodeColorType.black||S.rightChild&&S.rightChild.color!==u.default.TreeNodeColorType.black||(S.color=u.default.TreeNodeColorType.red,w(A)):(S.color=u.default.TreeNodeColorType.red,S.rightChild&&(S.rightChild.color=u.default.TreeNodeColorType.black),D=S.rotateLeft(),f===S&&(f=D),w(E))))}else E.color=u.default.TreeNodeColorType.black},k=function(E){for(var A=E;A.leftChild||A.rightChild;){if(A.rightChild){A=p(A.rightChild);var S=E.key;E.key=A.key,A.key=S;var D=E.value;E.value=A.value,A.value=D,E=A}A.leftChild&&(A=v(A.leftChild),S=E.key,E.key=A.key,A.key=S,D=E.value,E.value=A.value,A.value=D,E=A)}w(A),A&&A.remove(),--c,f.color=u.default.TreeNodeColorType.black},T=function(E,A){return!(!E||E.key===void 0)&&(!!T(E.leftChild,A)||!!A(E)||T(E.rightChild,A))};this.eraseElementByPos=function(E){if(E<0||E>=c)throw new Error("pos must more than 0 and less than set's size");var A=0;T(f,function(S){return E===A?(k(S),!0):(++A,!1)})},this.eraseElementByKey=function(E){if(!this.empty()){var A=G(f,E);A!==void 0&&A.key!==void 0&&i(A.key,E)===0&&k(A)}};var F=function(E,A){if(!E||E.key===void 0)throw new Error("unknown error");var S=i(A,E.key);return S<0?E.leftChild?F(E.leftChild,A):(E.leftChild=new u.default,E.leftChild.parent=E,E.leftChild.brother=E.rightChild,E.rightChild&&(E.rightChild.brother=E.leftChild),E.leftChild):S>0?E.rightChild?F(E.rightChild,A):(E.rightChild=new u.default,E.rightChild.parent=E,E.rightChild.brother=E.leftChild,E.leftChild&&(E.leftChild.brother=E.rightChild),E.rightChild):E},I=function(E){var A=E.parent;if(!A){if(E===f)return;throw new Error("unknown error")}if(A.color!==u.default.TreeNodeColorType.black&&A.color===u.default.TreeNodeColorType.red){var S=A.brother,D=A.parent;if(!D)throw new Error("unknown error");if(S&&S.color===u.default.TreeNodeColorType.red)S.color=A.color=u.default.TreeNodeColorType.black,D.color=u.default.TreeNodeColorType.red,I(D);else if(!S||S.color===u.default.TreeNodeColorType.black)if(A===D.leftChild)if(E===A.leftChild){A.color=u.default.TreeNodeColorType.black,D.color=u.default.TreeNodeColorType.red;var P=D.rotateRight();D===f&&(f=P)}else E===A.rightChild&&(P=A.rotateLeft(),D===f&&(f=P),I(A));else A===D.rightChild&&(E===A.leftChild?(P=A.rotateRight(),D===f&&(f=P),I(A)):E===A.rightChild&&(A.color=u.default.TreeNodeColorType.black,D.color=u.default.TreeNodeColorType.red,P=D.rotateLeft(),D===f&&(f=P)))}};this.setElement=function(E,A){if(E==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(A!=null){if(this.empty())return++c,f.key=E,f.value=A,void(f.color=u.default.TreeNodeColorType.black);var S=F(f,E);S.key===void 0||i(S.key,E)!==0?(++c,S.key=E,S.value=A,I(S),f.color=u.default.TreeNodeColorType.black):S.value=A}else this.eraseElementByKey(E)};var G=function(E,A){if(E&&E.key!==void 0){var S=i(A,E.key);return S<0?G(E.leftChild,A):S>0?G(E.rightChild,A):E}};this.find=function(E){return!!G(f,E)},this.getElementByKey=function(E){var A=G(f,E);if((A==null?void 0:A.key)===void 0||(A==null?void 0:A.value)===void 0)throw new Error("unknown error");return A.value},this.union=function(E){var A=this;E.forEach(function(S){var D=S.key,P=S.value;return A.setElement(D,P)})},this.getHeight=function(){if(this.empty())return 0;var E=function(A){return A?Math.max(E(A.leftChild),E(A.rightChild))+1:1};return E(f)};var K=function(E){return o(this,function(A){switch(A.label){case 0:return E&&E.key!==void 0&&E.value!==void 0?[5,s(K(E.leftChild))]:[2];case 1:return A.sent(),[4,{key:E.key,value:E.value}];case 2:return A.sent(),[5,s(K(E.rightChild))];case 3:return A.sent(),[2]}})};this[Symbol.iterator]=function(){return K(f)},a.forEach(function(E){var A=E.key,S=E.value;return d.setElement(A,S)}),Object.freeze(this)}Object.freeze(h),l.default=h},{"../Base/TreeNode":25}],31:[function(r,n,l){function o(s,u){s===void 0&&(s=[]),u=u||function(c,f){return c>f?-1:c<f?1:0};var h=[];s.forEach(function(c){return h.push(c)});var a=h.length,i=function(c,f){if(c<0||c>=a)throw new Error("unknown error");if(f<0||f>=a)throw new Error("unknown error");var p=h[c];h[c]=h[f],h[f]=p},d=function(c){if(c<0||c>=a)throw new Error("unknown error");var f=2*c+1,p=2*c+2;f<a&&u(h[c],h[f])>0&&i(c,f),p<a&&u(h[c],h[p])>0&&i(c,p)};(function(){for(var c=Math.floor((a-1)/2);c>=0;--c)for(var f=c,p=2*f+1;p<a;){var v=p+1,m=p;if(v<a&&u(h[p],h[v])>0&&(m=v),u(h[f],h[m])<=0)break;i(f,m),p=2*(f=m)+1}})(),this.size=function(){return a},this.empty=function(){return a===0},this.clear=function(){a=0,h.length=0},this.push=function(c){if(h.push(c),++a!==1)for(var f=a-1;f>0;){var p=Math.floor((f-1)/2);if(u(h[p],c)<=0)break;d(p),f=p}},this.pop=function(){if(!this.empty())if(this.size()!==1){var c=h[a-1];--a;for(var f=0;f<this.size();){var p=2*f+1,v=2*f+2;if(p>=this.size())break;var m=p;if(v<this.size()&&u(h[p],h[v])>0&&(m=v),u(h[m],c)>=0)break;h[f]=h[m],f=m}h[f]=c}else--a},this.top=function(){return h[0]},Object.freeze(this)}Object.defineProperty(l,"__esModule",{value:!0}),Object.freeze(o),l.default=o},{}],32:[function(r,n,l){Object.defineProperty(l,"__esModule",{value:!0});var o=r("../LinkList/LinkList");function s(u){u===void 0&&(u=[]);var h=new o.default(u);this.size=function(){return h.size()},this.empty=function(){return h.empty()},this.clear=function(){h.clear()},this.push=function(a){h.pushBack(a)},this.pop=function(){h.popFront()},this.front=function(){return h.front()},Object.freeze(this)}Object.freeze(s),l.default=s},{"../LinkList/LinkList":29}],33:[function(r,n,l){var o=this&&this.__generator||function(a,i){var d,c,f,p,v={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function m(g){return function(x){return function(y){if(d)throw new TypeError("Generator is already executing.");for(;v;)try{if(d=1,c&&(f=2&y[0]?c.return:y[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,y[1])).done)return f;switch(c=0,f&&(y=[2&y[0],f.value]),y[0]){case 0:case 1:f=y;break;case 4:return v.label++,{value:y[1],done:!1};case 5:v.label++,c=y[1],y=[0];continue;case 7:y=v.ops.pop(),v.trys.pop();continue;default:if(!(f=(f=v.trys).length>0&&f[f.length-1])&&(y[0]===6||y[0]===2)){v=0;continue}if(y[0]===3&&(!f||y[1]>f[0]&&y[1]<f[3])){v.label=y[1];break}if(y[0]===6&&v.label<f[1]){v.label=f[1],f=y;break}if(f&&v.label<f[2]){v.label=f[2],v.ops.push(y);break}f[2]&&v.ops.pop(),v.trys.pop();continue}y=i.call(a,v)}catch(w){y=[6,w],c=0}finally{d=f=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([g,x])}}},s=this&&this.__values||function(a){var i=typeof Symbol=="function"&&Symbol.iterator,d=i&&a[i],c=0;if(d)return d.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&c>=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(l,"__esModule",{value:!0});var u=r("../Base/TreeNode");function h(a,i){var d=this;a===void 0&&(a=[]),i=i||function(E,A){return E<A?-1:E>A?1:0};var c=0,f=new u.default;f.color=u.default.TreeNodeColorType.black,this.size=function(){return c},this.empty=function(){return c===0},this.clear=function(){c=0,f.key=void 0,f.leftChild=f.rightChild=f.brother=f.parent=void 0,f.color=u.default.TreeNodeColorType.black};var p=function(E){if(!E||E.key===void 0)throw new Error("unknown error");return E.leftChild?p(E.leftChild):E},v=function(E){if(!E||E.key===void 0)throw new Error("unknown error");return E.rightChild?v(E.rightChild):E};this.front=function(){if(!this.empty())return p(f).key},this.back=function(){if(!this.empty())return v(f).key},this.forEach=function(E){var A,S,D=0;try{for(var P=s(this),j=P.next();!j.done;j=P.next())E(j.value,D++)}catch(Z){A={error:Z}}finally{try{j&&!j.done&&(S=P.return)&&S.call(P)}finally{if(A)throw A.error}}},this.getElementByPos=function(E){var A,S;if(E<0||E>=this.size())throw new Error("pos must more than 0 and less than set's size");var D=0;try{for(var P=s(this),j=P.next();!j.done;j=P.next()){var Z=j.value;if(D===E)return Z;++D}}catch(V){A={error:V}}finally{try{j&&!j.done&&(S=P.return)&&S.call(P)}finally{if(A)throw A.error}}throw new Error("unknown error")};var m=function(E){var A=E.parent;if(!A){if(E===f)return;throw new Error("unknown error")}if(E.color!==u.default.TreeNodeColorType.red){var S=E.brother;if(!S)throw new Error("unknown error");if(E===A.leftChild)if(S.color===u.default.TreeNodeColorType.red){S.color=u.default.TreeNodeColorType.black,A.color=u.default.TreeNodeColorType.red;var D=A.rotateLeft();f===A&&(f=D),m(E)}else S.color===u.default.TreeNodeColorType.black&&(S.rightChild&&S.rightChild.color===u.default.TreeNodeColorType.red?(S.color=A.color,A.color=u.default.TreeNodeColorType.black,S.rightChild&&(S.rightChild.color=u.default.TreeNodeColorType.black),D=A.rotateLeft(),f===A&&(f=D),E.color=u.default.TreeNodeColorType.black):S.rightChild&&S.rightChild.color!==u.default.TreeNodeColorType.black||!S.leftChild||S.leftChild.color!==u.default.TreeNodeColorType.red?S.leftChild&&S.leftChild.color!==u.default.TreeNodeColorType.black||S.rightChild&&S.rightChild.color!==u.default.TreeNodeColorType.black||(S.color=u.default.TreeNodeColorType.red,m(A)):(S.color=u.default.TreeNodeColorType.red,S.leftChild&&(S.leftChild.color=u.default.TreeNodeColorType.black),D=S.rotateRight(),f===S&&(f=D),m(E)));else E===A.rightChild&&(S.color===u.default.TreeNodeColorType.red?(S.color=u.default.TreeNodeColorType.black,A.color=u.default.TreeNodeColorType.red,D=A.rotateRight(),f===A&&(f=D),m(E)):S.color===u.default.TreeNodeColorType.black&&(S.leftChild&&S.leftChild.color===u.default.TreeNodeColorType.red?(S.color=A.color,A.color=u.default.TreeNodeColorType.black,S.leftChild&&(S.leftChild.color=u.default.TreeNodeColorType.black),D=A.rotateRight(),f===A&&(f=D),E.color=u.default.TreeNodeColorType.black):S.leftChild&&S.leftChild.color!==u.default.TreeNodeColorType.black||!S.rightChild||S.rightChild.color!==u.default.TreeNodeColorType.red?S.leftChild&&S.leftChild.color!==u.default.TreeNodeColorType.black||S.rightChild&&S.rightChild.color!==u.default.TreeNodeColorType.black||(S.color=u.default.TreeNodeColorType.red,m(A)):(S.color=u.default.TreeNodeColorType.red,S.rightChild&&(S.rightChild.color=u.default.TreeNodeColorType.black),D=S.rotateLeft(),f===S&&(f=D),m(E))))}else E.color=u.default.TreeNodeColorType.black},g=function(E){for(var A=E;A.leftChild||A.rightChild;){if(A.rightChild){A=p(A.rightChild);var S=E.key;E.key=A.key,A.key=S,E=A}A.leftChild&&(A=v(A.leftChild),S=E.key,E.key=A.key,A.key=S,E=A)}m(A),A&&A.remove(),--c,f.color=u.default.TreeNodeColorType.black},x=function(E,A){return!(!E||E.key===void 0)&&(!!x(E.leftChild,A)||!!A(E)||x(E.rightChild,A))};this.eraseElementByPos=function(E){if(E<0||E>=c)throw new Error("pos must more than 0 and less than set's size");var A=0;x(f,function(S){return E===A?(g(S),!0):(++A,!1)})},this.eraseElementByValue=function(E){if(!this.empty()){var A=k(f,E);A!==void 0&&A.key!==void 0&&i(A.key,E)===0&&g(A)}};var y=function(E,A){if(!E||E.key===void 0)throw new Error("unknown error");var S=i(A,E.key);return S<0?E.leftChild?y(E.leftChild,A):(E.leftChild=new u.default,E.leftChild.parent=E,E.leftChild.brother=E.rightChild,E.rightChild&&(E.rightChild.brother=E.leftChild),E.leftChild):S>0?E.rightChild?y(E.rightChild,A):(E.rightChild=new u.default,E.rightChild.parent=E,E.rightChild.brother=E.leftChild,E.leftChild&&(E.leftChild.brother=E.rightChild),E.rightChild):E},w=function(E){var A=E.parent;if(!A){if(E===f)return;throw new Error("unknown error")}if(A.color!==u.default.TreeNodeColorType.black&&A.color===u.default.TreeNodeColorType.red){var S=A.brother,D=A.parent;if(!D)throw new Error("unknown error");if(S&&S.color===u.default.TreeNodeColorType.red)S.color=A.color=u.default.TreeNodeColorType.black,D.color=u.default.TreeNodeColorType.red,w(D);else if(!S||S.color===u.default.TreeNodeColorType.black)if(A===D.leftChild)if(E===A.leftChild){A.color=u.default.TreeNodeColorType.black,D.color=u.default.TreeNodeColorType.red;var P=D.rotateRight();D===f&&(f=P)}else E===A.rightChild&&(P=A.rotateLeft(),D===f&&(f=P),w(A));else A===D.rightChild&&(E===A.leftChild?(P=A.rotateRight(),D===f&&(f=P),w(A)):E===A.rightChild&&(A.color=u.default.TreeNodeColorType.black,D.color=u.default.TreeNodeColorType.red,P=D.rotateLeft(),D===f&&(f=P)))}};this.insert=function(E){if(E==null)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(this.empty())return++c,f.key=E,void(f.color=u.default.TreeNodeColorType.black);var A=y(f,E);A.key!==void 0&&i(A.key,E)===0||(++c,A.key=E,w(A),f.color=u.default.TreeNodeColorType.black)};var k=function(E,A){if(E&&E.key!==void 0){var S=i(A,E.key);return S<0?k(E.leftChild,A):S>0?k(E.rightChild,A):E}};this.find=function(E){var A=k(f,E);return A!==void 0&&A.key!==void 0&&i(A.key,E)===0};var T=function(E,A){if(E&&E.key!==void 0){var S=i(E.key,A);if(S===0)return E.key;if(S<0)return T(E.rightChild,A);var D=T(E.leftChild,A);return D!==void 0?D:E.key}};this.lowerBound=function(E){return T(f,E)};var F=function(E,A){if(E&&E.key!==void 0){if(i(E.key,A)<=0)return F(E.rightChild,A);var S=F(E.leftChild,A);return S!==void 0?S:E.key}};this.upperBound=function(E){return F(f,E)};var I=function(E,A){if(E&&E.key!==void 0){var S=i(E.key,A);if(S===0)return E.key;if(S>0)return I(E.leftChild,A);var D=I(E.rightChild,A);return D!==void 0?D:E.key}};this.reverseLowerBound=function(E){return I(f,E)};var G=function(E,A){if(E&&E.key!==void 0){if(i(E.key,A)>=0)return G(E.leftChild,A);var S=G(E.rightChild,A);return S!==void 0?S:E.key}};this.reverseUpperBound=function(E){return G(f,E)},this.union=function(E){var A=this;E.forEach(function(S){return A.insert(S)})},this.getHeight=function(){if(this.empty())return 0;var E=function(A){return A?Math.max(E(A.leftChild),E(A.rightChild))+1:1};return E(f)};var K=function(E){return o(this,function(A){switch(A.label){case 0:return E&&E.key!==void 0?[5,s(K(E.leftChild))]:[2];case 1:return A.sent(),[4,E.key];case 2:return A.sent(),[5,s(K(E.rightChild))];case 3:return A.sent(),[2]}})};this[Symbol.iterator]=function(){return K(f)},a.forEach(function(E){return d.insert(E)}),Object.freeze(this)}Object.freeze(h),l.default=h},{"../Base/TreeNode":25}],34:[function(r,n,l){function o(s){var u=this;s===void 0&&(s=[]);var h=0,a=[];this.size=function(){return h},this.empty=function(){return h===0},this.clear=function(){h=0,a.length=0},this.push=function(i){a.push(i),++h},this.pop=function(){a.pop(),h>0&&--h},this.top=function(){return a[h-1]},s.forEach(function(i){return u.push(i)}),Object.freeze(this)}Object.defineProperty(l,"__esModule",{value:!0}),Object.freeze(o),l.default=o},{}],35:[function(r,n,l){var o=this&&this.__generator||function(i,d){var c,f,p,v,m={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return v={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function g(x){return function(y){return function(w){if(c)throw new TypeError("Generator is already executing.");for(;m;)try{if(c=1,f&&(p=2&w[0]?f.return:w[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,w[1])).done)return p;switch(f=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return m.label++,{value:w[1],done:!1};case 5:m.label++,f=w[1],w=[0];continue;case 7:w=m.ops.pop(),m.trys.pop();continue;default:if(!(p=(p=m.trys).length>0&&p[p.length-1])&&(w[0]===6||w[0]===2)){m=0;continue}if(w[0]===3&&(!p||w[1]>p[0]&&w[1]<p[3])){m.label=w[1];break}if(w[0]===6&&m.label<p[1]){m.label=p[1],p=w;break}if(p&&m.label<p[2]){m.label=p[2],m.ops.push(w);break}p[2]&&m.ops.pop(),m.trys.pop();continue}w=d.call(i,m)}catch(k){w=[6,k],f=0}finally{c=p=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([x,y])}}},s=this&&this.__read||function(i,d){var c=typeof Symbol=="function"&&i[Symbol.iterator];if(!c)return i;var f,p,v=c.call(i),m=[];try{for(;(d===void 0||d-- >0)&&!(f=v.next()).done;)m.push(f.value)}catch(g){p={error:g}}finally{try{f&&!f.done&&(c=v.return)&&c.call(v)}finally{if(p)throw p.error}}return m},u=this&&this.__spreadArray||function(i,d,c){if(c||arguments.length===2)for(var f,p=0,v=d.length;p<v;p++)!f&&p in d||(f||(f=Array.prototype.slice.call(d,0,p)),f[p]=d[p]);return i.concat(f||Array.prototype.slice.call(d))},h=this&&this.__values||function(i){var d=typeof Symbol=="function"&&Symbol.iterator,c=d&&i[d],f=0;if(c)return c.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&f>=i.length&&(i=void 0),{value:i&&i[f++],done:!i}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};function a(i){var d=this;i===void 0&&(i=[]);var c=0,f=[];this.size=function(){return c},this.empty=function(){return c===0},this.clear=function(){c=0,f.length=0},this.front=function(){if(!this.empty())return f[0]},this.back=function(){if(!this.empty())return f[c-1]},this.forEach=function(p){f.forEach(p)},this.getElementByPos=function(p){if(p<0||p>=c)throw new Error("pos must more than 0 and less than vector's size");return f[p]},this.eraseElementByPos=function(p){if(p<0||p>=c)throw new Error("pos must more than 0 and less than vector's size");for(var v=p;v<c-1;++v)f[v]=f[v+1];this.popBack()},this.eraseElementByValue=function(p){var v=[];this.forEach(function(g){g!==p&&v.push(g)}),v.forEach(function(g,x){f[x]=g});for(var m=v.length;c>m;)this.popBack()},this.pushBack=function(p){f.push(p),++c},this.popBack=function(){f.pop(),c>0&&--c},this.setElementByPos=function(p,v){if(p<0||p>=c)throw new Error("pos must more than 0 and less than vector's size");f[p]=v},this.insert=function(p,v,m){if(m===void 0&&(m=1),p<0||p>c)throw new Error("pos must more than 0 and less than or equal to vector's size");f.splice.apply(f,u([p,0],s(new Array(m).fill(v)),!1)),c+=m},this.find=function(p){return f.includes(p)},this.reverse=function(){f.reverse()},this.unique=function(){var p,v=[];this.forEach(function(g,x){x!==0&&g===p||(v.push(g),p=g)}),v.forEach(function(g,x){f[x]=g});for(var m=v.length;c>m;)this.popBack()},this.sort=function(p){f.sort(p)},this[Symbol.iterator]=function(){return function(){return o(this,function(p){switch(p.label){case 0:return[5,h(f)];case 1:return[2,p.sent()]}})}()},i.forEach(function(p){return d.pushBack(p)}),Object.freeze(this)}Object.defineProperty(l,"__esModule",{value:!0}),Object.freeze(a),l.default=a},{}],36:[function(r,n,l){Object.defineProperty(l,"__esModule",{value:!0}),l.HashMap=l.HashSet=l.Map=l.Set=l.PriorityQueue=l.Deque=l.LinkList=l.Queue=l.Stack=l.Vector=void 0;var o=r("./Vector/Vector");l.Vector=o.default;var s=r("./Stack/Stack");l.Stack=s.default;var u=r("./Queue/Queue");l.Queue=u.default;var h=r("./LinkList/LinkList");l.LinkList=h.default;var a=r("./Deque/Deque");l.Deque=a.default;var i=r("./PriorityQueue/PriorityQueue");l.PriorityQueue=i.default;var d=r("./Set/Set");l.Set=d.default;var c=r("./Map/Map");l.Map=c.default;var f=r("./HashSet/HashSet");l.HashSet=f.default;var p=r("./HashMap/HashMap");l.HashMap=p.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(r,n,l){const o=r("yallist"),s=Symbol("max"),u=Symbol("length"),h=Symbol("lengthCalculator"),a=Symbol("allowStale"),i=Symbol("maxAge"),d=Symbol("dispose"),c=Symbol("noDisposeOnSet"),f=Symbol("lruList"),p=Symbol("cache"),v=Symbol("updateAgeOnGet"),m=()=>1,g=(F,I,G)=>{const K=F[p].get(I);if(K){const E=K.value;if(x(F,E)){if(w(F,K),!F[a])return}else G&&(F[v]&&(K.value.now=Date.now()),F[f].unshiftNode(K));return E.value}},x=(F,I)=>{if(!I||!I.maxAge&&!F[i])return!1;const G=Date.now()-I.now;return I.maxAge?G>I.maxAge:F[i]&&G>F[i]},y=F=>{if(F[u]>F[s])for(let I=F[f].tail;F[u]>F[s]&&I!==null;){const G=I.prev;w(F,I),I=G}},w=(F,I)=>{if(I){const G=I.value;F[d]&&F[d](G.key,G.value),F[u]-=G.length,F[p].delete(G.key),F[f].removeNode(I)}};class k{constructor(I,G,K,E,A){this.key=I,this.value=G,this.length=K,this.now=E,this.maxAge=A||0}}const T=(F,I,G,K)=>{let E=G.value;x(F,E)&&(w(F,G),F[a]||(E=void 0)),E&&I.call(K,E.value,E.key,F)};n.exports=class{constructor(F){if(typeof F=="number"&&(F={max:F}),F||(F={}),F.max&&(typeof F.max!="number"||F.max<0))throw new TypeError("max must be a non-negative number");this[s]=F.max||1/0;const I=F.length||m;if(this[h]=typeof I!="function"?m:I,this[a]=F.stale||!1,F.maxAge&&typeof F.maxAge!="number")throw new TypeError("maxAge must be a number");this[i]=F.maxAge||0,this[d]=F.dispose,this[c]=F.noDisposeOnSet||!1,this[v]=F.updateAgeOnGet||!1,this.reset()}set max(F){if(typeof F!="number"||F<0)throw new TypeError("max must be a non-negative number");this[s]=F||1/0,y(this)}get max(){return this[s]}set allowStale(F){this[a]=!!F}get allowStale(){return this[a]}set maxAge(F){if(typeof F!="number")throw new TypeError("maxAge must be a non-negative number");this[i]=F,y(this)}get maxAge(){return this[i]}set lengthCalculator(F){typeof F!="function"&&(F=m),F!==this[h]&&(this[h]=F,this[u]=0,this[f].forEach(I=>{I.length=this[h](I.value,I.key),this[u]+=I.length})),y(this)}get lengthCalculator(){return this[h]}get length(){return this[u]}get itemCount(){return this[f].length}rforEach(F,I){I=I||this;for(let G=this[f].tail;G!==null;){const K=G.prev;T(this,F,G,I),G=K}}forEach(F,I){I=I||this;for(let G=this[f].head;G!==null;){const K=G.next;T(this,F,G,I),G=K}}keys(){return this[f].toArray().map(F=>F.key)}values(){return this[f].toArray().map(F=>F.value)}reset(){this[d]&&this[f]&&this[f].length&&this[f].forEach(F=>this[d](F.key,F.value)),this[p]=new Map,this[f]=new o,this[u]=0}dump(){return this[f].map(F=>!x(this,F)&&{k:F.key,v:F.value,e:F.now+(F.maxAge||0)}).toArray().filter(F=>F)}dumpLru(){return this[f]}set(F,I,G){if((G=G||this[i])&&typeof G!="number")throw new TypeError("maxAge must be a number");const K=G?Date.now():0,E=this[h](I,F);if(this[p].has(F)){if(E>this[s])return w(this,this[p].get(F)),!1;const S=this[p].get(F).value;return this[d]&&(this[c]||this[d](F,S.value)),S.now=K,S.maxAge=G,S.value=I,this[u]+=E-S.length,S.length=E,this.get(F),y(this),!0}const A=new k(F,I,E,K,G);return A.length>this[s]?(this[d]&&this[d](F,I),!1):(this[u]+=A.length,this[f].unshift(A),this[p].set(F,this[f].head),y(this),!0)}has(F){if(!this[p].has(F))return!1;const I=this[p].get(F).value;return!x(this,I)}get(F){return g(this,F,!0)}peek(F){return g(this,F,!1)}pop(){const F=this[f].tail;return F?(w(this,F),F.value):null}del(F){w(this,this[p].get(F))}load(F){this.reset();const I=Date.now();for(let G=F.length-1;G>=0;G--){const K=F[G],E=K.e||0;if(E===0)this.set(K.k,K.v);else{const A=E-I;A>0&&this.set(K.k,K.v,A)}}}prune(){this[p].forEach((F,I)=>g(this,I,!1))}}},{yallist:83}],38:[function(r,n,l){(function(o){(function(){const s=n.exports;s.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"},s.codes={};for(const h in s.types){const a=s.types[h];s.codes[a]=h}s.CMD_SHIFT=4,s.CMD_MASK=240,s.DUP_MASK=8,s.QOS_MASK=3,s.QOS_SHIFT=1,s.RETAIN_MASK=1,s.VARBYTEINT_MASK=127,s.VARBYTEINT_FIN_MASK=128,s.VARBYTEINT_MAX=268435455,s.SESSIONPRESENT_MASK=1,s.SESSIONPRESENT_HEADER=o.from([s.SESSIONPRESENT_MASK]),s.CONNACK_HEADER=o.from([s.codes.connack<<s.CMD_SHIFT]),s.USERNAME_MASK=128,s.PASSWORD_MASK=64,s.WILL_RETAIN_MASK=32,s.WILL_QOS_MASK=24,s.WILL_QOS_SHIFT=3,s.WILL_FLAG_MASK=4,s.CLEAN_SESSION_MASK=2,s.CONNECT_HEADER=o.from([s.codes.connect<<s.CMD_SHIFT]),s.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},s.propertiesCodes={};for(const h in s.properties){const a=s.properties[h];s.propertiesCodes[a]=h}function u(h){return[0,1,2].map(a=>[0,1].map(i=>[0,1].map(d=>{const c=o.alloc(1);return c.writeUInt8(s.codes[h]<<s.CMD_SHIFT|(i?s.DUP_MASK:0)|a<<s.QOS_SHIFT|d,0,!0),c})))}s.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"},s.PUBLISH_HEADER=u("publish"),s.SUBSCRIBE_HEADER=u("subscribe"),s.SUBSCRIBE_OPTIONS_QOS_MASK=3,s.SUBSCRIBE_OPTIONS_NL_MASK=1,s.SUBSCRIBE_OPTIONS_NL_SHIFT=2,s.SUBSCRIBE_OPTIONS_RAP_MASK=1,s.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,s.SUBSCRIBE_OPTIONS_RH_MASK=3,s.SUBSCRIBE_OPTIONS_RH_SHIFT=4,s.SUBSCRIBE_OPTIONS_RH=[0,16,32],s.SUBSCRIBE_OPTIONS_NL=4,s.SUBSCRIBE_OPTIONS_RAP=8,s.SUBSCRIBE_OPTIONS_QOS=[0,1,2],s.UNSUBSCRIBE_HEADER=u("unsubscribe"),s.ACKS={unsuback:u("unsuback"),puback:u("puback"),pubcomp:u("pubcomp"),pubrel:u("pubrel"),pubrec:u("pubrec")},s.SUBACK_HEADER=o.from([s.codes.suback<<s.CMD_SHIFT]),s.VERSION3=o.from([3]),s.VERSION4=o.from([4]),s.VERSION5=o.from([5]),s.VERSION131=o.from([131]),s.VERSION132=o.from([132]),s.QOS=[0,1,2].map(h=>o.from([h])),s.EMPTY={pingreq:o.from([s.codes.pingreq<<4,0]),pingresp:o.from([s.codes.pingresp<<4,0]),disconnect:o.from([s.codes.disconnect<<4,0])}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:17}],39:[function(r,n,l){(function(o){(function(){const s=r("./writeToStream"),u=r("events");class h extends u{constructor(){super(),this._array=new Array(20),this._i=0}write(i){return this._array[this._i++]=i,!0}concat(){let i=0;const d=new Array(this._array.length),c=this._array;let f,p=0;for(f=0;f<c.length&&c[f]!==void 0;f++)typeof c[f]!="string"?d[f]=c[f].length:d[f]=o.byteLength(c[f]),i+=d[f];const v=o.allocUnsafe(i);for(f=0;f<c.length&&c[f]!==void 0;f++)typeof c[f]!="string"?(c[f].copy(v,p),p+=d[f]):(v.write(c[f],p),p+=d[f]);return v}}n.exports=function(a,i){const d=new h;return s(a,d,i),d.concat()}}).call(this)}).call(this,r("buffer").Buffer)},{"./writeToStream":44,buffer:17,events:22}],40:[function(r,n,l){l.parser=r("./parser").parser,l.generate=r("./generate"),l.writeToStream=r("./writeToStream")},{"./generate":39,"./parser":43,"./writeToStream":44}],41:[function(r,n,l){(function(o){(function(){const u={},h=o.isBuffer(o.from([1,2]).subarray(0,1));function a(i){const d=o.allocUnsafe(2);return d.writeUInt8(i>>8,0),d.writeUInt8(255&i,1),d}n.exports={cache:u,generateCache:function(){for(let i=0;i<65536;i++)u[i]=a(i)},generateNumber:a,genBufVariableByteInt:function(i){let d=0,c=0;const f=o.allocUnsafe(4);do d=i%128|0,(i=i/128|0)>0&&(d|=128),f.writeUInt8(d,c++);while(i>0&&c<4);return i>0&&(c=0),h?f.subarray(0,c):f.slice(0,c)},generate4ByteBuffer:function(i){const d=o.allocUnsafe(4);return d.writeUInt32BE(i,0),d}}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:17}],42:[function(r,n,l){n.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(r,n,l){const o=r("bl"),s=r("events"),u=r("./packet"),h=r("./constants"),a=r("debug")("mqtt-packet:parser");class i extends s{constructor(){super(),this.parser=this.constructor.parser}static parser(c){return this instanceof i?(this.settings=c||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new i().parser(c)}_resetState(){a("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new u,this.error=null,this._list=o(),this._stateCounter=0}parse(c){for(this.error&&this._resetState(),this._list.append(c),a("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++,a("parse: state complete. _stateCounter is now: %d",this._stateCounter),a("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return a("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const c=this._list.readUInt8(0);return this.packet.cmd=h.types[c>>h.CMD_SHIFT],this.packet.retain=(c&h.RETAIN_MASK)!=0,this.packet.qos=c>>h.QOS_SHIFT&h.QOS_MASK,this.packet.dup=(c&h.DUP_MASK)!=0,a("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0}_parseLength(){const c=this._parseVarByteNum(!0);return c&&(this.packet.length=c.value,this._list.consume(c.bytes)),a("_parseLength %d",c.value),!!c}_parsePayload(){a("_parsePayload: payload %O",this._list);let c=!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"))}c=!0}return a("_parsePayload complete result: %s",c),c}_parseConnect(){let c,f,p,v;a("_parseConnect");const m={},g=this.packet,x=this._parseString();if(x===null)return this._emitError(new Error("Cannot parse protocolId"));if(x!=="MQTT"&&x!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(g.protocolId=x,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(g.protocolVersion=this._list.readUInt8(this._pos),g.protocolVersion>=128&&(g.bridgeMode=!0,g.protocolVersion=g.protocolVersion-128),g.protocolVersion!==3&&g.protocolVersion!==4&&g.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(m.username=this._list.readUInt8(this._pos)&h.USERNAME_MASK,m.password=this._list.readUInt8(this._pos)&h.PASSWORD_MASK,m.will=this._list.readUInt8(this._pos)&h.WILL_FLAG_MASK,m.will&&(g.will={},g.will.retain=(this._list.readUInt8(this._pos)&h.WILL_RETAIN_MASK)!=0,g.will.qos=(this._list.readUInt8(this._pos)&h.WILL_QOS_MASK)>>h.WILL_QOS_SHIFT),g.clean=(this._list.readUInt8(this._pos)&h.CLEAN_SESSION_MASK)!=0,this._pos++,g.keepalive=this._parseNum(),g.keepalive===-1)return this._emitError(new Error("Packet too short"));if(g.protocolVersion===5){const w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(g.properties=w)}const y=this._parseString();if(y===null)return this._emitError(new Error("Packet too short"));if(g.clientId=y,a("_parseConnect: packet.clientId: %s",g.clientId),m.will){if(g.protocolVersion===5){const w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(g.will.properties=w)}if((c=this._parseString())===null)return this._emitError(new Error("Cannot parse will topic"));if(g.will.topic=c,a("_parseConnect: packet.will.topic: %s",g.will.topic),(f=this._parseBuffer())===null)return this._emitError(new Error("Cannot parse will payload"));g.will.payload=f,a("_parseConnect: packet.will.paylaod: %s",g.will.payload)}if(m.username){if((v=this._parseString())===null)return this._emitError(new Error("Cannot parse username"));g.username=v,a("_parseConnect: packet.username: %s",g.username)}if(m.password){if((p=this._parseBuffer())===null)return this._emitError(new Error("Cannot parse password"));g.password=p}return this.settings=g,a("_parseConnect: complete"),g}_parseConnack(){a("_parseConnack");const c=this.packet;if(this._list.length<1)return null;if(c.sessionPresent=!!(this._list.readUInt8(this._pos++)&h.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?c.reasonCode=this._list.readUInt8(this._pos++):c.reasonCode=0;else{if(this._list.length<2)return null;c.returnCode=this._list.readUInt8(this._pos++)}if(c.returnCode===-1||c.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}a("_parseConnack: complete")}_parsePublish(){a("_parsePublish");const c=this.packet;if(c.topic=this._parseString(),c.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(c.qos>0)||this._parseMessageId()){if(this.settings.protocolVersion===5){const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}c.payload=this._list.slice(this._pos,c.length),a("_parsePublish: payload from buffer list: %o",c.payload)}}_parseSubscribe(){a("_parseSubscribe");const c=this.packet;let f,p,v,m,g,x,y;if(c.qos!==1)return this._emitError(new Error("Wrong subscribe header"));if(c.subscriptions=[],this._parseMessageId()){if(this.settings.protocolVersion===5){const w=this._parseProperties();Object.getOwnPropertyNames(w).length&&(c.properties=w)}for(;this._pos<c.length;){if((f=this._parseString())===null)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=c.length)return this._emitError(new Error("Malformed Subscribe Payload"));v=(p=this._parseByte())&h.SUBSCRIBE_OPTIONS_QOS_MASK,x=(p>>h.SUBSCRIBE_OPTIONS_NL_SHIFT&h.SUBSCRIBE_OPTIONS_NL_MASK)!=0,g=(p>>h.SUBSCRIBE_OPTIONS_RAP_SHIFT&h.SUBSCRIBE_OPTIONS_RAP_MASK)!=0,m=p>>h.SUBSCRIBE_OPTIONS_RH_SHIFT&h.SUBSCRIBE_OPTIONS_RH_MASK,y={topic:f,qos:v},this.settings.protocolVersion===5?(y.nl=x,y.rap=g,y.rh=m):this.settings.bridgeMode&&(y.rh=0,y.rap=!0,y.nl=!0),a("_parseSubscribe: push subscription `%s` to subscription",y),c.subscriptions.push(y)}}}_parseSuback(){a("_parseSuback");const c=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(this.settings.protocolVersion===5){const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}for(;this._pos<this.packet.length;)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseUnsubscribe(){a("_parseUnsubscribe");const c=this.packet;if(c.unsubscriptions=[],this._parseMessageId()){if(this.settings.protocolVersion===5){const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}for(;this._pos<c.length;){const f=this._parseString();if(f===null)return this._emitError(new Error("Cannot parse topic"));a("_parseUnsubscribe: push topic `%s` to unsubscriptions",f),c.unsubscriptions.push(f)}}}_parseUnsuback(){a("_parseUnsuback");const c=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if(this.settings.protocolVersion===5){const f=this._parseProperties();for(Object.getOwnPropertyNames(f).length&&(c.properties=f),c.granted=[];this._pos<this.packet.length;)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseConfirmation(){a("_parseConfirmation: packet.cmd: `%s`",this.packet.cmd);const c=this.packet;if(this._parseMessageId(),this.settings.protocolVersion===5&&(c.length>2?(c.reasonCode=this._parseByte(),a("_parseConfirmation: packet.reasonCode `%d`",c.reasonCode)):c.reasonCode=0,c.length>3)){const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}return!0}_parseDisconnect(){const c=this.packet;if(a("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?c.reasonCode=this._parseByte():c.reasonCode=0;const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}return a("_parseDisconnect result: true"),!0}_parseAuth(){a("_parseAuth");const c=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));c.reasonCode=this._parseByte();const f=this._parseProperties();return Object.getOwnPropertyNames(f).length&&(c.properties=f),a("_parseAuth: result: true"),!0}_parseMessageId(){const c=this.packet;return c.messageId=this._parseNum(),c.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(a("_parseMessageId: packet.messageId %d",c.messageId),!0)}_parseString(c){const f=this._parseNum(),p=f+this._pos;if(f===-1||p>this._list.length||p>this.packet.length)return null;const v=this._list.toString("utf8",this._pos,p);return this._pos+=f,a("_parseString: result: %s",v),v}_parseStringPair(){return a("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const c=this._parseNum(),f=c+this._pos;if(c===-1||f>this._list.length||f>this.packet.length)return null;const p=this._list.slice(this._pos,f);return this._pos+=c,a("_parseBuffer: result: %o",p),p}_parseNum(){if(this._list.length-this._pos<2)return-1;const c=this._list.readUInt16BE(this._pos);return this._pos+=2,a("_parseNum: result: %s",c),c}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const c=this._list.readUInt32BE(this._pos);return this._pos+=4,a("_parse4ByteNum: result: %s",c),c}_parseVarByteNum(c){a("_parseVarByteNum");let f,p=0,v=1,m=0,g=!1;const x=this._pos?this._pos:0;for(;p<4&&x+p<this._list.length;){if(m+=v*((f=this._list.readUInt8(x+p++))&h.VARBYTEINT_MASK),v*=128,(f&h.VARBYTEINT_FIN_MASK)==0){g=!0;break}if(this._list.length<=p)break}return!g&&p===4&&this._list.length>=p&&this._emitError(new Error("Invalid variable byte integer")),x&&(this._pos+=p),a("_parseVarByteNum: result: %o",g=!!g&&(c?{bytes:p,value:m}:m)),g}_parseByte(){let c;return this._pos<this._list.length&&(c=this._list.readUInt8(this._pos),this._pos++),a("_parseByte: result: %o",c),c}_parseByType(c){switch(a("_parseByType: type: %s",c),c){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(){a("_parseProperties");const c=this._parseVarByteNum(),f=this._pos+c,p={};for(;this._pos<f;){const v=this._parseByte();if(!v)return this._emitError(new Error("Cannot parse property code type")),!1;const m=h.propertiesCodes[v];if(!m)return this._emitError(new Error("Unknown property")),!1;if(m!=="userProperties")p[m]?Array.isArray(p[m])?p[m].push(this._parseByType(h.propertiesTypes[m])):(p[m]=[p[m]],p[m].push(this._parseByType(h.propertiesTypes[m]))):p[m]=this._parseByType(h.propertiesTypes[m]);else{p[m]||(p[m]=Object.create(null));const g=this._parseByType(h.propertiesTypes[m]);if(p[m][g.name])if(Array.isArray(p[m][g.name]))p[m][g.name].push(g.value);else{const x=p[m][g.name];p[m][g.name]=[x],p[m][g.name].push(g.value)}else p[m][g.name]=g.value}}return p}_newPacket(){return a("_newPacket"),this.packet&&(this._list.consume(this.packet.length),a("_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)),a("_newPacket: new packet"),this.packet=new u,this._pos=0,!0}_emitError(c){a("_emitError"),this.error=c,this.emit("error",c)}}n.exports=i},{"./constants":38,"./packet":42,bl:15,debug:18,events:22}],44:[function(r,n,l){(function(o){(function(){const s=r("./constants"),u=o.allocUnsafe(0),h=o.from([0]),a=r("./numbers"),i=r("process-nextick-args").nextTick,d=r("debug")("mqtt-packet:writeToStream"),c=a.cache,f=a.generateNumber,p=a.generateCache,v=a.genBufVariableByteInt,m=a.generate4ByteBuffer;let g=G,x=!0;function y(V,L,H){switch(d("generate called"),L.cork&&(L.cork(),i(w,L)),x&&(x=!1,p()),d("generate: packet.cmd: %s",V.cmd),V.cmd){case"connect":return function(U,O,W){const $=U||{},J=$.protocolId||"MQTT";let ie=$.protocolVersion||4;const ae=$.will;let oe=$.clean;const b=$.keepalive||0,_=$.clientId||"",R=$.username,Q=$.password,ee=$.properties;oe===void 0&&(oe=!0);let te=0;if(typeof J!="string"&&!o.isBuffer(J))return O.emit("error",new Error("Invalid protocolId")),!1;if(te+=J.length+2,ie!==3&&ie!==4&&ie!==5)return O.emit("error",new Error("Invalid protocol version")),!1;if(te+=1,(typeof _=="string"||o.isBuffer(_))&&(_||ie>=4)&&(_||oe))te+=o.byteLength(_)+2;else{if(ie<4)return O.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(1*oe==0)return O.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof b!="number"||b<0||b>65535||b%1!=0)return O.emit("error",new Error("Invalid keepalive")),!1;if(te+=2,te+=1,ie===5){var se=A(O,ee);if(!se)return!1;te+=se.length}if(ae){if(typeof ae!="object")return O.emit("error",new Error("Invalid will")),!1;if(!ae.topic||typeof ae.topic!="string")return O.emit("error",new Error("Invalid will topic")),!1;if(te+=o.byteLength(ae.topic)+2,te+=2,ae.payload){if(!(ae.payload.length>=0))return O.emit("error",new Error("Invalid will payload")),!1;typeof ae.payload=="string"?te+=o.byteLength(ae.payload):te+=ae.payload.length}var q={};if(ie===5){if(!(q=A(O,ae.properties)))return!1;te+=q.length}}let C=!1;if(R!=null){if(!Z(R))return O.emit("error",new Error("Invalid username")),!1;C=!0,te+=o.byteLength(R)+2}if(Q!=null){if(!C)return O.emit("error",new Error("Username is required to use password")),!1;if(!Z(Q))return O.emit("error",new Error("Invalid password")),!1;te+=j(Q)+2}O.write(s.CONNECT_HEADER),T(O,te),E(O,J),$.bridgeMode&&(ie+=128),O.write(ie===131?s.VERSION131:ie===132?s.VERSION132:ie===4?s.VERSION4:ie===5?s.VERSION5:s.VERSION3);let B=0;return B|=R!=null?s.USERNAME_MASK:0,B|=Q!=null?s.PASSWORD_MASK:0,B|=ae&&ae.retain?s.WILL_RETAIN_MASK:0,B|=ae&&ae.qos?ae.qos<<s.WILL_QOS_SHIFT:0,B|=ae?s.WILL_FLAG_MASK:0,B|=oe?s.CLEAN_SESSION_MASK:0,O.write(o.from([B])),g(O,b),ie===5&&se.write(),E(O,_),ae&&(ie===5&&q.write(),F(O,ae.topic),E(O,ae.payload)),R!=null&&E(O,R),Q!=null&&E(O,Q),!0}(V,L);case"connack":return function(U,O,W){const $=W?W.protocolVersion:4,J=U||{},ie=$===5?J.reasonCode:J.returnCode,ae=J.properties;let oe=2;if(typeof ie!="number")return O.emit("error",new Error("Invalid return code")),!1;let b=null;if($===5){if(!(b=A(O,ae)))return!1;oe+=b.length}return O.write(s.CONNACK_HEADER),T(O,oe),O.write(J.sessionPresent?s.SESSIONPRESENT_HEADER:h),O.write(o.from([ie])),b!=null&&b.write(),!0}(V,L,H);case"publish":return function(U,O,W){d("publish: packet: %o",U);const $=W?W.protocolVersion:4,J=U||{},ie=J.qos||0,ae=J.retain?s.RETAIN_MASK:0,oe=J.topic,b=J.payload||u,_=J.messageId,R=J.properties;let Q=0;if(typeof oe=="string")Q+=o.byteLength(oe)+2;else{if(!o.isBuffer(oe))return O.emit("error",new Error("Invalid topic")),!1;Q+=oe.length+2}if(o.isBuffer(b)?Q+=b.length:Q+=o.byteLength(b),ie&&typeof _!="number")return O.emit("error",new Error("Invalid messageId")),!1;ie&&(Q+=2);let ee=null;if($===5){if(!(ee=A(O,R)))return!1;Q+=ee.length}return O.write(s.PUBLISH_HEADER[ie][J.dup?1:0][ae?1:0]),T(O,Q),g(O,j(oe)),O.write(oe),ie>0&&g(O,_),ee!=null&&ee.write(),d("publish: payload: %o",b),O.write(b)}(V,L,H);case"puback":case"pubrec":case"pubrel":case"pubcomp":return function(U,O,W){const $=W?W.protocolVersion:4,J=U||{},ie=J.cmd||"puback",ae=J.messageId,oe=J.dup&&ie==="pubrel"?s.DUP_MASK:0;let b=0;const _=J.reasonCode,R=J.properties;let Q=$===5?3:2;if(ie==="pubrel"&&(b=1),typeof ae!="number")return O.emit("error",new Error("Invalid messageId")),!1;let ee=null;if($===5&&typeof R=="object"){if(!(ee=S(O,R,W,Q)))return!1;Q+=ee.length}return O.write(s.ACKS[ie][b][oe][0]),T(O,Q),g(O,ae),$===5&&O.write(o.from([_])),ee!==null&&ee.write(),!0}(V,L,H);case"subscribe":return function(U,O,W){d("subscribe: packet: ");const $=W?W.protocolVersion:4,J=U||{},ie=J.dup?s.DUP_MASK:0,ae=J.messageId,oe=J.subscriptions,b=J.properties;let _=0;if(typeof ae!="number")return O.emit("error",new Error("Invalid messageId")),!1;_+=2;let R=null;if($===5){if(!(R=A(O,b)))return!1;_+=R.length}if(typeof oe!="object"||!oe.length)return O.emit("error",new Error("Invalid subscriptions")),!1;for(let ee=0;ee<oe.length;ee+=1){const te=oe[ee].topic,se=oe[ee].qos;if(typeof te!="string")return O.emit("error",new Error("Invalid subscriptions - invalid topic")),!1;if(typeof se!="number")return O.emit("error",new Error("Invalid subscriptions - invalid qos")),!1;if($===5){if(typeof(oe[ee].nl||!1)!="boolean")return O.emit("error",new Error("Invalid subscriptions - invalid No Local")),!1;if(typeof(oe[ee].rap||!1)!="boolean")return O.emit("error",new Error("Invalid subscriptions - invalid Retain as Published")),!1;const B=oe[ee].rh||0;if(typeof B!="number"||B>2)return O.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}_+=o.byteLength(te)+2+1}d("subscribe: writing to stream: %o",s.SUBSCRIBE_HEADER),O.write(s.SUBSCRIBE_HEADER[1][ie?1:0][0]),T(O,_),g(O,ae),R!==null&&R.write();let Q=!0;for(const ee of oe){const te=ee.topic,se=ee.qos,q=+ee.nl,C=+ee.rap,B=ee.rh;let X;F(O,te),X=s.SUBSCRIBE_OPTIONS_QOS[se],$===5&&(X|=q?s.SUBSCRIBE_OPTIONS_NL:0,X|=C?s.SUBSCRIBE_OPTIONS_RAP:0,X|=B?s.SUBSCRIBE_OPTIONS_RH[B]:0),Q=O.write(o.from([X]))}return Q}(V,L,H);case"suback":return function(U,O,W){const $=W?W.protocolVersion:4,J=U||{},ie=J.messageId,ae=J.granted,oe=J.properties;let b=0;if(typeof ie!="number")return O.emit("error",new Error("Invalid messageId")),!1;if(b+=2,typeof ae!="object"||!ae.length)return O.emit("error",new Error("Invalid qos vector")),!1;for(let R=0;R<ae.length;R+=1){if(typeof ae[R]!="number")return O.emit("error",new Error("Invalid qos vector")),!1;b+=1}let _=null;if($===5){if(!(_=S(O,oe,W,b)))return!1;b+=_.length}return O.write(s.SUBACK_HEADER),T(O,b),g(O,ie),_!==null&&_.write(),O.write(o.from(ae))}(V,L,H);case"unsubscribe":return function(U,O,W){const $=W?W.protocolVersion:4,J=U||{},ie=J.messageId,ae=J.dup?s.DUP_MASK:0,oe=J.unsubscriptions,b=J.properties;let _=0;if(typeof ie!="number")return O.emit("error",new Error("Invalid messageId")),!1;if(_+=2,typeof oe!="object"||!oe.length)return O.emit("error",new Error("Invalid unsubscriptions")),!1;for(let ee=0;ee<oe.length;ee+=1){if(typeof oe[ee]!="string")return O.emit("error",new Error("Invalid unsubscriptions")),!1;_+=o.byteLength(oe[ee])+2}let R=null;if($===5){if(!(R=A(O,b)))return!1;_+=R.length}O.write(s.UNSUBSCRIBE_HEADER[1][ae?1:0][0]),T(O,_),g(O,ie),R!==null&&R.write();let Q=!0;for(let ee=0;ee<oe.length;ee++)Q=F(O,oe[ee]);return Q}(V,L,H);case"unsuback":return function(U,O,W){const $=W?W.protocolVersion:4,J=U||{},ie=J.messageId,ae=J.dup?s.DUP_MASK:0,oe=J.granted,b=J.properties,_=J.cmd;let R=2;if(typeof ie!="number")return O.emit("error",new Error("Invalid messageId")),!1;if($===5){if(typeof oe!="object"||!oe.length)return O.emit("error",new Error("Invalid qos vector")),!1;for(let ee=0;ee<oe.length;ee+=1){if(typeof oe[ee]!="number")return O.emit("error",new Error("Invalid qos vector")),!1;R+=1}}let Q=null;if($===5){if(!(Q=S(O,b,W,R)))return!1;R+=Q.length}return O.write(s.ACKS[_][0][ae][0]),T(O,R),g(O,ie),Q!==null&&Q.write(),$===5&&O.write(o.from(oe)),!0}(V,L,H);case"pingreq":case"pingresp":return function(U,O,W){return O.write(s.EMPTY[U.cmd])}(V,L);case"disconnect":return function(U,O,W){const $=W?W.protocolVersion:4,J=U||{},ie=J.reasonCode,ae=J.properties;let oe=$===5?1:0,b=null;if($===5){if(!(b=S(O,ae,W,oe)))return!1;oe+=b.length}return O.write(o.from([s.codes.disconnect<<4])),T(O,oe),$===5&&O.write(o.from([ie])),b!==null&&b.write(),!0}(V,L,H);case"auth":return function(U,O,W){const $=W?W.protocolVersion:4,J=U||{},ie=J.reasonCode,ae=J.properties;let oe=$===5?1:0;$!==5&&O.emit("error",new Error("Invalid mqtt version for auth packet"));const b=S(O,ae,W,oe);return b?(oe+=b.length,O.write(o.from([s.codes.auth<<4])),T(O,oe),O.write(o.from([ie])),b!==null&&b.write(),!0):!1}(V,L,H);default:return L.emit("error",new Error("Unknown command")),!1}}function w(V){V.uncork()}Object.defineProperty(y,"cacheNumbers",{get:()=>g===G,set(V){V?(c&&Object.keys(c).length!==0||(x=!0),g=G):(x=!1,g=K)}});const k={};function T(V,L){if(L>s.VARBYTEINT_MAX)return V.emit("error",new Error(`Invalid variable byte integer: ${L}`)),!1;let H=k[L];return H||(H=v(L),L<16384&&(k[L]=H)),d("writeVarByteInt: writing to stream: %o",H),V.write(H)}function F(V,L){const H=o.byteLength(L);return g(V,H),d("writeString: %s",L),V.write(L,"utf8")}function I(V,L,H){F(V,L),F(V,H)}function G(V,L){return d("writeNumberCached: number: %d",L),d("writeNumberCached: %o",c[L]),V.write(c[L])}function K(V,L){const H=f(L);return d("writeNumberGenerated: %o",H),V.write(H)}function E(V,L){typeof L=="string"?F(V,L):L?(g(V,L.length),V.write(L)):g(V,0)}function A(V,L){if(typeof L!="object"||L.length!=null)return{length:1,write(){P(V,{},0)}};let H=0;function U(O,W){let $=0;switch(s.propertiesTypes[O]){case"byte":if(typeof W!="boolean")return V.emit("error",new Error(`Invalid ${O}: ${W}`)),!1;$+=2;break;case"int8":if(typeof W!="number"||W<0||W>255)return V.emit("error",new Error(`Invalid ${O}: ${W}`)),!1;$+=2;break;case"binary":if(W&&W===null)return V.emit("error",new Error(`Invalid ${O}: ${W}`)),!1;$+=1+o.byteLength(W)+2;break;case"int16":if(typeof W!="number"||W<0||W>65535)return V.emit("error",new Error(`Invalid ${O}: ${W}`)),!1;$+=3;break;case"int32":if(typeof W!="number"||W<0||W>4294967295)return V.emit("error",new Error(`Invalid ${O}: ${W}`)),!1;$+=5;break;case"var":if(typeof W!="number"||W<0||W>268435455)return V.emit("error",new Error(`Invalid ${O}: ${W}`)),!1;$+=1+o.byteLength(v(W));break;case"string":if(typeof W!="string")return V.emit("error",new Error(`Invalid ${O}: ${W}`)),!1;$+=3+o.byteLength(W.toString());break;case"pair":if(typeof W!="object")return V.emit("error",new Error(`Invalid ${O}: ${W}`)),!1;$+=Object.getOwnPropertyNames(W).reduce((J,ie)=>{const ae=W[ie];return Array.isArray(ae)?J+=ae.reduce((oe,b)=>oe+=3+o.byteLength(ie.toString())+2+o.byteLength(b.toString()),0):J+=3+o.byteLength(ie.toString())+2+o.byteLength(W[ie].toString()),J},0);break;default:return V.emit("error",new Error(`Invalid property ${O}: ${W}`)),!1}return $}if(L)for(const O in L){let W=0,$=0;const J=L[O];if(Array.isArray(J))for(let ie=0;ie<J.length;ie++){if(!($=U(O,J[ie])))return!1;W+=$}else{if(!($=U(O,J)))return!1;W=$}if(!W)return!1;H+=W}return{length:o.byteLength(v(H))+H,write(){P(V,L,H)}}}function S(V,L,H,U){const O=["reasonString","userProperties"],W=H&&H.properties&&H.properties.maximumPacketSize?H.properties.maximumPacketSize:0;let $=A(V,L);if(W)for(;U+$.length>W;){const J=O.shift();if(!J||!L[J])return!1;delete L[J],$=A(V,L)}return $}function D(V,L,H){switch(s.propertiesTypes[L]){case"byte":V.write(o.from([s.properties[L]])),V.write(o.from([+H]));break;case"int8":V.write(o.from([s.properties[L]])),V.write(o.from([H]));break;case"binary":V.write(o.from([s.properties[L]])),E(V,H);break;case"int16":V.write(o.from([s.properties[L]])),g(V,H);break;case"int32":V.write(o.from([s.properties[L]])),function(U,O){const W=m(O);d("write4ByteNumber: %o",W),U.write(W)}(V,H);break;case"var":V.write(o.from([s.properties[L]])),T(V,H);break;case"string":V.write(o.from([s.properties[L]])),F(V,H);break;case"pair":Object.getOwnPropertyNames(H).forEach(U=>{const O=H[U];Array.isArray(O)?O.forEach(W=>{V.write(o.from([s.properties[L]])),I(V,U.toString(),W.toString())}):(V.write(o.from([s.properties[L]])),I(V,U.toString(),O.toString()))});break;default:return V.emit("error",new Error(`Invalid property ${L} value: ${H}`)),!1}}function P(V,L,H){T(V,H);for(const U in L)if(Object.prototype.hasOwnProperty.call(L,U)&&L[U]!==null){const O=L[U];if(Array.isArray(O))for(let W=0;W<O.length;W++)D(V,U,O[W]);else D(V,U,O)}}function j(V){return V?V instanceof o?V.length:o.byteLength(V):0}function Z(V){return typeof V=="string"||V instanceof o}n.exports=y}).call(this)}).call(this,r("buffer").Buffer)},{"./constants":38,"./numbers":41,buffer:17,debug:18,"process-nextick-args":49}],45:[function(r,n,l){var o=1e3,s=60*o,u=60*s,h=24*u,a=7*h,i=365.25*h;function d(c,f,p,v){var m=f>=1.5*p;return Math.round(c/p)+" "+v+(m?"s":"")}n.exports=function(c,f){f=f||{};var p=typeof c;if(p==="string"&&c.length>0)return function(v){if(!((v=String(v)).length>100)){var m=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(v);if(m){var g=parseFloat(m[1]);switch((m[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return g*i;case"weeks":case"week":case"w":return g*a;case"days":case"day":case"d":return g*h;case"hours":case"hour":case"hrs":case"hr":case"h":return g*u;case"minutes":case"minute":case"mins":case"min":case"m":return g*s;case"seconds":case"second":case"secs":case"sec":case"s":return g*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g;default:return}}}}(c);if(p==="number"&&isFinite(c))return f.long?function(v){var m=Math.abs(v);return m>=h?d(v,m,h,"day"):m>=u?d(v,m,u,"hour"):m>=s?d(v,m,s,"minute"):m>=o?d(v,m,o,"second"):v+" ms"}(c):function(v){var m=Math.abs(v);return m>=h?Math.round(v/h)+"d":m>=u?Math.round(v/u)+"h":m>=s?Math.round(v/s)+"m":m>=o?Math.round(v/o)+"s":v+"ms"}(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}},{}],46:[function(r,n,l){const o=r("./lib/number-allocator.js");n.exports.NumberAllocator=o},{"./lib/number-allocator.js":47}],47:[function(r,n,l){const o=r("js-sdsl").Set,s=r("debug")("number-allocator:trace"),u=r("debug")("number-allocator:error");function h(i,d){this.low=i,this.high=d}function a(i,d){if(!(this instanceof a))return new a(i,d);this.min=i,this.max=d,this.ss=new o([],(c,f)=>c.compare(f)),s("Create"),this.clear()}h.prototype.equals=function(i){return this.low===i.low&&this.high===i.high},h.prototype.compare=function(i){return this.low<i.low&&this.high<i.low?-1:i.low<this.low&&i.high<this.low?1:0},a.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},a.prototype.alloc=function(){if(this.ss.size()===0)return s("alloc():empty"),null;const i=this.ss.front(),d=i.low;return d+1<=i.high?++i.low:this.ss.eraseElementByPos(0),s("alloc():"+d),d},a.prototype.use=function(i){const d=new h(i,i),c=this.ss.lowerBound(d);if(c){if(c.equals(d))return this.ss.eraseElementByValue(c),s("use():"+i),!0;if(c.low>i)return!1;if(c.low===i)return++c.low,s("use():"+i),!0;if(c.high===i)return--c.high,s("use():"+i),!0;const f=c.low;return c.low=i+1,this.ss.insert(new h(f,i-1)),s("use():"+i),!0}return s("use():failed"),!1},a.prototype.free=function(i){if(i<this.min||i>this.max)return void u("free():"+i+" is out of range");const d=new h(i,i),c=this.ss.lowerBound(d);if(c){if(c.low<=i&&i<=c.high)return void u("free():"+i+" has already been vacant");if(c===this.ss.front())i+1===c.low?--c.low:this.ss.insert(d);else{const f=this.ss.reverseLowerBound(d);f.high+1===i?i+1===c.low?(this.ss.eraseElementByValue(f),c.low=f.low):f.high=i:i+1===c.low?c.low=i:this.ss.insert(d)}}else{if(c===this.ss.front())return void this.ss.insert(d);const f=this.ss.reverseLowerBound(d);f.high+1===i?f.high=i:this.ss.insert(d)}s("free():"+i)},a.prototype.clear=function(){s("clear()"),this.ss.clear(),this.ss.insert(new h(this.min,this.max))},a.prototype.intervalCount=function(){return this.ss.size()},a.prototype.dump=function(){console.log("length:"+this.ss.size());for(const i of this.ss)console.log(i)},n.exports=a},{debug:18,"js-sdsl":36}],48:[function(r,n,l){var o=r("wrappy");function s(h){var a=function(){return a.called?a.value:(a.called=!0,a.value=h.apply(this,arguments))};return a.called=!1,a}function u(h){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=h.apply(this,arguments)},i=h.name||"Function wrapped with `once`";return a.onceError=i+" shouldn't be called more than once",a.called=!1,a}n.exports=o(s),n.exports.strict=o(u),s.proto=s(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return s(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return u(this)},configurable:!0})})},{wrappy:79}],49:[function(r,n,l){(function(o){(function(){o===void 0||!o.version||o.version.indexOf("v0.")===0||o.version.indexOf("v1.")===0&&o.version.indexOf("v1.8.")!==0?n.exports={nextTick:function(s,u,h,a){if(typeof s!="function")throw new TypeError('"callback" argument must be a function');var i,d,c=arguments.length;switch(c){case 0:case 1:return o.nextTick(s);case 2:return o.nextTick(function(){s.call(null,u)});case 3:return o.nextTick(function(){s.call(null,u,h)});case 4:return o.nextTick(function(){s.call(null,u,h,a)});default:for(i=new Array(c-1),d=0;d<i.length;)i[d++]=arguments[d];return o.nextTick(function(){s.apply(null,i)})}}}:n.exports=o}).call(this)}).call(this,r("_process"))},{_process:50}],50:[function(r,n,l){var o,s,u=n.exports={};function h(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(y){if(o===setTimeout)return setTimeout(y,0);if((o===h||!o)&&setTimeout)return o=setTimeout,setTimeout(y,0);try{return o(y,0)}catch(w){try{return o.call(null,y,0)}catch(k){return o.call(this,y,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:h}catch(y){o=h}try{s=typeof clearTimeout=="function"?clearTimeout:a}catch(y){s=a}})();var d,c=[],f=!1,p=-1;function v(){f&&d&&(f=!1,d.length?c=d.concat(c):p=-1,c.length&&m())}function m(){if(!f){var y=i(v);f=!0;for(var w=c.length;w;){for(d=c,c=[];++p<w;)d&&d[p].run();p=-1,w=c.length}d=null,f=!1,function(k){if(s===clearTimeout)return clearTimeout(k);if((s===a||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(k);try{s(k)}catch(T){try{return s.call(null,k)}catch(F){return s.call(this,k)}}}(y)}}function g(y,w){this.fun=y,this.array=w}function x(){}u.nextTick=function(y){var w=new Array(arguments.length-1);if(arguments.length>1)for(var k=1;k<arguments.length;k++)w[k-1]=arguments[k];c.push(new g(y,w)),c.length!==1||f||i(m)},g.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=x,u.addListener=x,u.once=x,u.off=x,u.removeListener=x,u.removeAllListeners=x,u.emit=x,u.prependListener=x,u.prependOnceListener=x,u.listeners=function(y){return[]},u.binding=function(y){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(y){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{}],51:[function(r,n,l){(function(o){(function(){(function(s){var u=typeof l=="object"&&l&&!l.nodeType&&l,h=typeof n=="object"&&n&&!n.nodeType&&n,a=typeof o=="object"&&o;a.global!==a&&a.window!==a&&a.self!==a||(s=a);var i,d,c=2147483647,f=36,p=1,v=26,m=38,g=700,x=72,y=128,w="-",k=/^xn--/,T=/[^\x20-\x7E]/,F=/[\x2E\u3002\uFF0E\uFF61]/g,I={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},G=f-p,K=Math.floor,E=String.fromCharCode;function A(U){throw new RangeError(I[U])}function S(U,O){for(var W=U.length,$=[];W--;)$[W]=O(U[W]);return $}function D(U,O){var W=U.split("@"),$="";return W.length>1&&($=W[0]+"@",U=W[1]),$+S((U=U.replace(F,".")).split("."),O).join(".")}function P(U){for(var O,W,$=[],J=0,ie=U.length;J<ie;)(O=U.charCodeAt(J++))>=55296&&O<=56319&&J<ie?(64512&(W=U.charCodeAt(J++)))==56320?$.push(((1023&O)<<10)+(1023&W)+65536):($.push(O),J--):$.push(O);return $}function j(U){return S(U,function(O){var W="";return O>65535&&(W+=E((O-=65536)>>>10&1023|55296),O=56320|1023&O),W+=E(O)}).join("")}function Z(U,O){return U+22+75*(U<26)-((O!=0)<<5)}function V(U,O,W){var $=0;for(U=W?K(U/g):U>>1,U+=K(U/O);U>G*v>>1;$+=f)U=K(U/G);return K($+(G+1)*U/(U+m))}function L(U){var O,W,$,J,ie,ae,oe,b,_,R,Q,ee=[],te=U.length,se=0,q=y,C=x;for((W=U.lastIndexOf(w))<0&&(W=0),$=0;$<W;++$)U.charCodeAt($)>=128&&A("not-basic"),ee.push(U.charCodeAt($));for(J=W>0?W+1:0;J<te;){for(ie=se,ae=1,oe=f;J>=te&&A("invalid-input"),((b=(Q=U.charCodeAt(J++))-48<10?Q-22:Q-65<26?Q-65:Q-97<26?Q-97:f)>=f||b>K((c-se)/ae))&&A("overflow"),se+=b*ae,!(b<(_=oe<=C?p:oe>=C+v?v:oe-C));oe+=f)ae>K(c/(R=f-_))&&A("overflow"),ae*=R;C=V(se-ie,O=ee.length+1,ie==0),K(se/O)>c-q&&A("overflow"),q+=K(se/O),se%=O,ee.splice(se++,0,q)}return j(ee)}function H(U){var O,W,$,J,ie,ae,oe,b,_,R,Q,ee,te,se,q,C=[];for(ee=(U=P(U)).length,O=y,W=0,ie=x,ae=0;ae<ee;++ae)(Q=U[ae])<128&&C.push(E(Q));for($=J=C.length,J&&C.push(w);$<ee;){for(oe=c,ae=0;ae<ee;++ae)(Q=U[ae])>=O&&Q<oe&&(oe=Q);for(oe-O>K((c-W)/(te=$+1))&&A("overflow"),W+=(oe-O)*te,O=oe,ae=0;ae<ee;++ae)if((Q=U[ae])<O&&++W>c&&A("overflow"),Q==O){for(b=W,_=f;!(b<(R=_<=ie?p:_>=ie+v?v:_-ie));_+=f)q=b-R,se=f-R,C.push(E(Z(R+q%se,0))),b=K(q/se);C.push(E(Z(b,0))),ie=V(W,te,$==J),W=0,++$}++W,++O}return C.join("")}if(i={version:"1.4.1",ucs2:{decode:P,encode:j},decode:L,encode:H,toASCII:function(U){return D(U,function(O){return T.test(O)?"xn--"+H(O):O})},toUnicode:function(U){return D(U,function(O){return k.test(O)?L(O.slice(4).toLowerCase()):O})}},u&&h)if(n.exports==u)h.exports=i;else for(d in i)i.hasOwnProperty(d)&&(u[d]=i[d]);else s.punycode=i})(this)}).call(this)}).call(this,typeof xe!="undefined"?xe:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],52:[function(r,n,l){function o(u,h){return Object.prototype.hasOwnProperty.call(u,h)}n.exports=function(u,h,a,i){h=h||"&",a=a||"=";var d={};if(typeof u!="string"||u.length===0)return d;var c=/\+/g;u=u.split(h);var f=1e3;i&&typeof i.maxKeys=="number"&&(f=i.maxKeys);var p=u.length;f>0&&p>f&&(p=f);for(var v=0;v<p;++v){var m,g,x,y,w=u[v].replace(c,"%20"),k=w.indexOf(a);k>=0?(m=w.substr(0,k),g=w.substr(k+1)):(m=w,g=""),x=decodeURIComponent(m),y=decodeURIComponent(g),o(d,x)?s(d[x])?d[x].push(y):d[x]=[d[x],y]:d[x]=y}return d};var s=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"}},{}],53:[function(r,n,l){var o=function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}};n.exports=function(a,i,d,c){return i=i||"&",d=d||"=",a===null&&(a=void 0),typeof a=="object"?u(h(a),function(f){var p=encodeURIComponent(o(f))+d;return s(a[f])?u(a[f],function(v){return p+encodeURIComponent(o(v))}).join(i):p+encodeURIComponent(o(a[f]))}).join(i):c?encodeURIComponent(o(c))+d+encodeURIComponent(o(a)):""};var s=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"};function u(a,i){if(a.map)return a.map(i);for(var d=[],c=0;c<a.length;c++)d.push(i(a[c],c));return d}var h=Object.keys||function(a){var i=[];for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&i.push(d);return i}},{}],54:[function(r,n,l){l.decode=l.parse=r("./decode"),l.encode=l.stringify=r("./encode")},{"./decode":52,"./encode":53}],55:[function(r,n,l){var o={};function s(h,a,i){i||(i=Error);var d=function(c){var f,p;function v(m,g,x){return c.call(this,function(y,w,k){return typeof a=="string"?a:a(y,w,k)}(m,g,x))||this}return p=c,(f=v).prototype=Object.create(p.prototype),f.prototype.constructor=f,f.__proto__=p,v}(i);d.prototype.name=i.name,d.prototype.code=h,o[h]=d}function u(h,a){if(Array.isArray(h)){var i=h.length;return h=h.map(function(d){return String(d)}),i>2?"one of ".concat(a," ").concat(h.slice(0,i-1).join(", "),", or ")+h[i-1]:i===2?"one of ".concat(a," ").concat(h[0]," or ").concat(h[1]):"of ".concat(a," ").concat(h[0])}return"of ".concat(a," ").concat(String(h))}s("ERR_INVALID_OPT_VALUE",function(h,a){return'The value "'+a+'" is invalid for option "'+h+'"'},TypeError),s("ERR_INVALID_ARG_TYPE",function(h,a,i){var d,c,f;if(typeof a=="string"&&(c="not ",a.substr(0,c.length)===c)?(d="must not be",a=a.replace(/^not /,"")):d="must be",function(v,m,g){return(g===void 0||g>v.length)&&(g=v.length),v.substring(g-m.length,g)===m}(h," argument"))f="The ".concat(h," ").concat(d," ").concat(u(a,"type"));else{var p=function(v,m,g){return typeof g!="number"&&(g=0),!(g+m.length>v.length)&&v.indexOf(m,g)!==-1}(h,".")?"property":"argument";f='The "'.concat(h,'" ').concat(p," ").concat(d," ").concat(u(a,"type"))}return f+=". Received type ".concat(typeof i)},TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",function(h){return"The "+h+" method is not implemented"}),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",function(h){return"Cannot call "+h+" after a stream was destroyed"}),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",function(h){return"Unknown encoding: "+h},TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),n.exports.codes=o},{}],56:[function(r,n,l){(function(o){(function(){var s=Object.keys||function(v){var m=[];for(var g in v)m.push(g);return m};n.exports=c;var u=r("./_stream_readable"),h=r("./_stream_writable");r("inherits")(c,u);for(var a=s(h.prototype),i=0;i<a.length;i++){var d=a[i];c.prototype[d]||(c.prototype[d]=h.prototype[d])}function c(v){if(!(this instanceof c))return new c(v);u.call(this,v),h.call(this,v),this.allowHalfOpen=!0,v&&(v.readable===!1&&(this.readable=!1),v.writable===!1&&(this.writable=!1),v.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||o.nextTick(p,this)}function p(v){v.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(v){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=v,this._writableState.destroyed=v)}})}).call(this)}).call(this,r("_process"))},{"./_stream_readable":58,"./_stream_writable":60,_process:50,inherits:24}],57:[function(r,n,l){n.exports=s;var o=r("./_stream_transform");function s(u){if(!(this instanceof s))return new s(u);o.call(this,u)}r("inherits")(s,o),s.prototype._transform=function(u,h,a){a(null,u)}},{"./_stream_transform":59,inherits:24}],58:[function(r,n,l){(function(o,s){(function(){var u;n.exports=A,A.ReadableState=E,r("events").EventEmitter;var h=function(b,_){return b.listeners(_).length},a=r("./internal/streams/stream"),i=r("buffer").Buffer,d=s.Uint8Array||function(){},c,f=r("util");c=f&&f.debuglog?f.debuglog("stream"):function(){};var p,v,m,g=r("./internal/streams/buffer_list"),x=r("./internal/streams/destroy"),y=r("./internal/streams/state").getHighWaterMark,w=r("../errors").codes,k=w.ERR_INVALID_ARG_TYPE,T=w.ERR_STREAM_PUSH_AFTER_EOF,F=w.ERR_METHOD_NOT_IMPLEMENTED,I=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r("inherits")(A,a);var G=x.errorOrDestroy,K=["error","close","destroy","pause","resume"];function E(b,_,R){u=u||r("./_stream_duplex"),b=b||{},typeof R!="boolean"&&(R=_ instanceof u),this.objectMode=!!b.objectMode,R&&(this.objectMode=this.objectMode||!!b.readableObjectMode),this.highWaterMark=y(this,b,"readableHighWaterMark",R),this.buffer=new g,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=b.emitClose!==!1,this.autoDestroy=!!b.autoDestroy,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(p||(p=r("string_decoder/").StringDecoder),this.decoder=new p(b.encoding),this.encoding=b.encoding)}function A(b){if(u=u||r("./_stream_duplex"),!(this instanceof A))return new A(b);var _=this instanceof u;this._readableState=new E(b,this,_),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),a.call(this)}function S(b,_,R,Q,ee){c("readableAddChunk",_);var te,se=b._readableState;if(_===null)se.reading=!1,function(q,C){if(c("onEofChunk"),!C.ended){if(C.decoder){var B=C.decoder.end();B&&B.length&&(C.buffer.push(B),C.length+=C.objectMode?1:B.length)}C.ended=!0,C.sync?Z(q):(C.needReadable=!1,C.emittedReadable||(C.emittedReadable=!0,V(q)))}}(b,se);else if(ee||(te=function(q,C){var B;X=C,i.isBuffer(X)||X instanceof d||typeof C=="string"||C===void 0||q.objectMode||(B=new k("chunk",["string","Buffer","Uint8Array"],C));var X;return B}(se,_)),te)G(b,te);else if(se.objectMode||_&&_.length>0)if(typeof _=="string"||se.objectMode||Object.getPrototypeOf(_)===i.prototype||(_=function(q){return i.from(q)}(_)),Q)se.endEmitted?G(b,new I):D(b,se,_,!0);else if(se.ended)G(b,new T);else{if(se.destroyed)return!1;se.reading=!1,se.decoder&&!R?(_=se.decoder.write(_),se.objectMode||_.length!==0?D(b,se,_,!1):L(b,se)):D(b,se,_,!1)}else Q||(se.reading=!1,L(b,se));return!se.ended&&(se.length<se.highWaterMark||se.length===0)}function D(b,_,R,Q){_.flowing&&_.length===0&&!_.sync?(_.awaitDrain=0,b.emit("data",R)):(_.length+=_.objectMode?1:R.length,Q?_.buffer.unshift(R):_.buffer.push(R),_.needReadable&&Z(b)),L(b,_)}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(b){this._readableState&&(this._readableState.destroyed=b)}}),A.prototype.destroy=x.destroy,A.prototype._undestroy=x.undestroy,A.prototype._destroy=function(b,_){_(b)},A.prototype.push=function(b,_){var R,Q=this._readableState;return Q.objectMode?R=!0:typeof b=="string"&&((_=_||Q.defaultEncoding)!==Q.encoding&&(b=i.from(b,_),_=""),R=!0),S(this,b,_,!1,R)},A.prototype.unshift=function(b){return S(this,b,null,!0,!1)},A.prototype.isPaused=function(){return this._readableState.flowing===!1},A.prototype.setEncoding=function(b){p||(p=r("string_decoder/").StringDecoder);var _=new p(b);this._readableState.decoder=_,this._readableState.encoding=this._readableState.decoder.encoding;for(var R=this._readableState.buffer.head,Q="";R!==null;)Q+=_.write(R.data),R=R.next;return this._readableState.buffer.clear(),Q!==""&&this._readableState.buffer.push(Q),this._readableState.length=Q.length,this};var P=1073741824;function j(b,_){return b<=0||_.length===0&&_.ended?0:_.objectMode?1:b!=b?_.flowing&&_.length?_.buffer.head.data.length:_.length:(b>_.highWaterMark&&(_.highWaterMark=function(R){return R>=P?R=P:(R--,R|=R>>>1,R|=R>>>2,R|=R>>>4,R|=R>>>8,R|=R>>>16,R++),R}(b)),b<=_.length?b:_.ended?_.length:(_.needReadable=!0,0))}function Z(b){var _=b._readableState;c("emitReadable",_.needReadable,_.emittedReadable),_.needReadable=!1,_.emittedReadable||(c("emitReadable",_.flowing),_.emittedReadable=!0,o.nextTick(V,b))}function V(b){var _=b._readableState;c("emitReadable_",_.destroyed,_.length,_.ended),_.destroyed||!_.length&&!_.ended||(b.emit("readable"),_.emittedReadable=!1),_.needReadable=!_.flowing&&!_.ended&&_.length<=_.highWaterMark,$(b)}function L(b,_){_.readingMore||(_.readingMore=!0,o.nextTick(H,b,_))}function H(b,_){for(;!_.reading&&!_.ended&&(_.length<_.highWaterMark||_.flowing&&_.length===0);){var R=_.length;if(c("maybeReadMore read 0"),b.read(0),R===_.length)break}_.readingMore=!1}function U(b){var _=b._readableState;_.readableListening=b.listenerCount("readable")>0,_.resumeScheduled&&!_.paused?_.flowing=!0:b.listenerCount("data")>0&&b.resume()}function O(b){c("readable nexttick read 0"),b.read(0)}function W(b,_){c("resume",_.reading),_.reading||b.read(0),_.resumeScheduled=!1,b.emit("resume"),$(b),_.flowing&&!_.reading&&b.read(0)}function $(b){var _=b._readableState;for(c("flow",_.flowing);_.flowing&&b.read()!==null;);}function J(b,_){return _.length===0?null:(_.objectMode?R=_.buffer.shift():!b||b>=_.length?(R=_.decoder?_.buffer.join(""):_.buffer.length===1?_.buffer.first():_.buffer.concat(_.length),_.buffer.clear()):R=_.buffer.consume(b,_.decoder),R);var R}function ie(b){var _=b._readableState;c("endReadable",_.endEmitted),_.endEmitted||(_.ended=!0,o.nextTick(ae,_,b))}function ae(b,_){if(c("endReadableNT",b.endEmitted,b.length),!b.endEmitted&&b.length===0&&(b.endEmitted=!0,_.readable=!1,_.emit("end"),b.autoDestroy)){var R=_._writableState;(!R||R.autoDestroy&&R.finished)&&_.destroy()}}function oe(b,_){for(var R=0,Q=b.length;R<Q;R++)if(b[R]===_)return R;return-1}A.prototype.read=function(b){c("read",b),b=parseInt(b,10);var _=this._readableState,R=b;if(b!==0&&(_.emittedReadable=!1),b===0&&_.needReadable&&((_.highWaterMark!==0?_.length>=_.highWaterMark:_.length>0)||_.ended))return c("read: emitReadable",_.length,_.ended),_.length===0&&_.ended?ie(this):Z(this),null;if((b=j(b,_))===0&&_.ended)return _.length===0&&ie(this),null;var Q,ee=_.needReadable;return c("need readable",ee),(_.length===0||_.length-b<_.highWaterMark)&&c("length less than watermark",ee=!0),_.ended||_.reading?c("reading or ended",ee=!1):ee&&(c("do read"),_.reading=!0,_.sync=!0,_.length===0&&(_.needReadable=!0),this._read(_.highWaterMark),_.sync=!1,_.reading||(b=j(R,_))),(Q=b>0?J(b,_):null)===null?(_.needReadable=_.length<=_.highWaterMark,b=0):(_.length-=b,_.awaitDrain=0),_.length===0&&(_.ended||(_.needReadable=!0),R!==b&&_.ended&&ie(this)),Q!==null&&this.emit("data",Q),Q},A.prototype._read=function(b){G(this,new F("_read()"))},A.prototype.pipe=function(b,_){var R=this,Q=this._readableState;switch(Q.pipesCount){case 0:Q.pipes=b;break;case 1:Q.pipes=[Q.pipes,b];break;default:Q.pipes.push(b)}Q.pipesCount+=1,c("pipe count=%d opts=%j",Q.pipesCount,_);var ee=(!_||_.end!==!1)&&b!==o.stdout&&b!==o.stderr?se:ce;function te(me,ge){c("onunpipe"),me===R&&ge&&ge.hasUnpiped===!1&&(ge.hasUnpiped=!0,c("cleanup"),b.removeListener("close",ne),b.removeListener("finish",ue),b.removeListener("drain",q),b.removeListener("error",X),b.removeListener("unpipe",te),R.removeListener("end",se),R.removeListener("end",ce),R.removeListener("data",B),C=!0,!Q.awaitDrain||b._writableState&&!b._writableState.needDrain||q())}function se(){c("onend"),b.end()}Q.endEmitted?o.nextTick(ee):R.once("end",ee),b.on("unpipe",te);var q=function(me){return function(){var ge=me._readableState;c("pipeOnDrain",ge.awaitDrain),ge.awaitDrain&&ge.awaitDrain--,ge.awaitDrain===0&&h(me,"data")&&(ge.flowing=!0,$(me))}}(R);b.on("drain",q);var C=!1;function B(me){c("ondata");var ge=b.write(me);c("dest.write",ge),ge===!1&&((Q.pipesCount===1&&Q.pipes===b||Q.pipesCount>1&&oe(Q.pipes,b)!==-1)&&!C&&(c("false write response, pause",Q.awaitDrain),Q.awaitDrain++),R.pause())}function X(me){c("onerror",me),ce(),b.removeListener("error",X),h(b,"error")===0&&G(b,me)}function ne(){b.removeListener("finish",ue),ce()}function ue(){c("onfinish"),b.removeListener("close",ne),ce()}function ce(){c("unpipe"),R.unpipe(b)}return R.on("data",B),function(me,ge,Ce){if(typeof me.prependListener=="function")return me.prependListener(ge,Ce);me._events&&me._events[ge]?Array.isArray(me._events[ge])?me._events[ge].unshift(Ce):me._events[ge]=[Ce,me._events[ge]]:me.on(ge,Ce)}(b,"error",X),b.once("close",ne),b.once("finish",ue),b.emit("pipe",R),Q.flowing||(c("pipe resume"),R.resume()),b},A.prototype.unpipe=function(b){var _=this._readableState,R={hasUnpiped:!1};if(_.pipesCount===0)return this;if(_.pipesCount===1)return b&&b!==_.pipes?this:(b||(b=_.pipes),_.pipes=null,_.pipesCount=0,_.flowing=!1,b&&b.emit("unpipe",this,R),this);if(!b){var Q=_.pipes,ee=_.pipesCount;_.pipes=null,_.pipesCount=0,_.flowing=!1;for(var te=0;te<ee;te++)Q[te].emit("unpipe",this,{hasUnpiped:!1});return this}var se=oe(_.pipes,b);return se===-1?this:(_.pipes.splice(se,1),_.pipesCount-=1,_.pipesCount===1&&(_.pipes=_.pipes[0]),b.emit("unpipe",this,R),this)},A.prototype.on=function(b,_){var R=a.prototype.on.call(this,b,_),Q=this._readableState;return b==="data"?(Q.readableListening=this.listenerCount("readable")>0,Q.flowing!==!1&&this.resume()):b==="readable"&&(Q.endEmitted||Q.readableListening||(Q.readableListening=Q.needReadable=!0,Q.flowing=!1,Q.emittedReadable=!1,c("on readable",Q.length,Q.reading),Q.length?Z(this):Q.reading||o.nextTick(O,this))),R},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(b,_){var R=a.prototype.removeListener.call(this,b,_);return b==="readable"&&o.nextTick(U,this),R},A.prototype.removeAllListeners=function(b){var _=a.prototype.removeAllListeners.apply(this,arguments);return b!=="readable"&&b!==void 0||o.nextTick(U,this),_},A.prototype.resume=function(){var b=this._readableState;return b.flowing||(c("resume"),b.flowing=!b.readableListening,function(_,R){R.resumeScheduled||(R.resumeScheduled=!0,o.nextTick(W,_,R))}(this,b)),b.paused=!1,this},A.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(b){var _=this,R=this._readableState,Q=!1;for(var ee in b.on("end",function(){if(c("wrapped end"),R.decoder&&!R.ended){var se=R.decoder.end();se&&se.length&&_.push(se)}_.push(null)}),b.on("data",function(se){c("wrapped data"),R.decoder&&(se=R.decoder.write(se)),(!R.objectMode||se!=null)&&(R.objectMode||se&&se.length)&&(_.push(se)||(Q=!0,b.pause()))}),b)this[ee]===void 0&&typeof b[ee]=="function"&&(this[ee]=function(se){return function(){return b[se].apply(b,arguments)}}(ee));for(var te=0;te<K.length;te++)b.on(K[te],this.emit.bind(this,K[te]));return this._read=function(se){c("wrapped _read",se),Q&&(Q=!1,b.resume())},this},typeof Symbol=="function"&&(A.prototype[Symbol.asyncIterator]=function(){return v===void 0&&(v=r("./internal/streams/async_iterator")),v(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(b){this._readableState&&(this._readableState.flowing=b)}}),A._fromList=J,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(A.from=function(b,_){return m===void 0&&(m=r("./internal/streams/from")),m(A,b,_)})}).call(this)}).call(this,r("_process"),typeof xe!="undefined"?xe:typeof self!="undefined"?self:typeof window!="undefined"?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(r,n,l){n.exports=d;var o=r("../errors").codes,s=o.ERR_METHOD_NOT_IMPLEMENTED,u=o.ERR_MULTIPLE_CALLBACK,h=o.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=o.ERR_TRANSFORM_WITH_LENGTH_0,i=r("./_stream_duplex");function d(p){if(!(this instanceof d))return new d(p);i.call(this,p),this._transformState={afterTransform:function(v,m){var g=this._transformState;g.transforming=!1;var x=g.writecb;if(x===null)return this.emit("error",new u);g.writechunk=null,g.writecb=null,m!=null&&this.push(m),x(v);var y=this._readableState;y.reading=!1,(y.needReadable||y.length<y.highWaterMark)&&this._read(y.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,p&&(typeof p.transform=="function"&&(this._transform=p.transform),typeof p.flush=="function"&&(this._flush=p.flush)),this.on("prefinish",c)}function c(){var p=this;typeof this._flush!="function"||this._readableState.destroyed?f(this,null,null):this._flush(function(v,m){f(p,v,m)})}function f(p,v,m){if(v)return p.emit("error",v);if(m!=null&&p.push(m),p._writableState.length)throw new a;if(p._transformState.transforming)throw new h;return p.push(null)}r("inherits")(d,i),d.prototype.push=function(p,v){return this._transformState.needTransform=!1,i.prototype.push.call(this,p,v)},d.prototype._transform=function(p,v,m){m(new s("_transform()"))},d.prototype._write=function(p,v,m){var g=this._transformState;if(g.writecb=m,g.writechunk=p,g.writeencoding=v,!g.transforming){var x=this._readableState;(g.needTransform||x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}},d.prototype._read=function(p){var v=this._transformState;v.writechunk===null||v.transforming?v.needTransform=!0:(v.transforming=!0,this._transform(v.writechunk,v.writeencoding,v.afterTransform))},d.prototype._destroy=function(p,v){i.prototype._destroy.call(this,p,function(m){v(m)})}},{"../errors":55,"./_stream_duplex":56,inherits:24}],60:[function(r,n,l){(function(o,s){(function(){function u(L){var H=this;this.next=null,this.entry=null,this.finish=function(){(function(U,O,W){var $=U.entry;for(U.entry=null;$;){var J=$.callback;O.pendingcb--,J(W),$=$.next}O.corkedRequestsFree.next=U})(H,L)}}var h;n.exports=A,A.WritableState=E;var a={deprecate:r("util-deprecate")},i=r("./internal/streams/stream"),d=r("buffer").Buffer,c=s.Uint8Array||function(){},f,p=r("./internal/streams/destroy"),v=r("./internal/streams/state").getHighWaterMark,m=r("../errors").codes,g=m.ERR_INVALID_ARG_TYPE,x=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_MULTIPLE_CALLBACK,w=m.ERR_STREAM_CANNOT_PIPE,k=m.ERR_STREAM_DESTROYED,T=m.ERR_STREAM_NULL_VALUES,F=m.ERR_STREAM_WRITE_AFTER_END,I=m.ERR_UNKNOWN_ENCODING,G=p.errorOrDestroy;function K(){}function E(L,H,U){h=h||r("./_stream_duplex"),L=L||{},typeof U!="boolean"&&(U=H instanceof h),this.objectMode=!!L.objectMode,U&&(this.objectMode=this.objectMode||!!L.writableObjectMode),this.highWaterMark=v(this,L,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var O=L.decodeStrings===!1;this.decodeStrings=!O,this.defaultEncoding=L.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(W){(function($,J){var ie=$._writableState,ae=ie.sync,oe=ie.writecb;if(typeof oe!="function")throw new y;if(function(_){_.writing=!1,_.writecb=null,_.length-=_.writelen,_.writelen=0}(ie),J)(function(_,R,Q,ee,te){--R.pendingcb,Q?(o.nextTick(te,ee),o.nextTick(V,_,R),_._writableState.errorEmitted=!0,G(_,ee)):(te(ee),_._writableState.errorEmitted=!0,G(_,ee),V(_,R))})($,ie,ae,J,oe);else{var b=j(ie)||$.destroyed;b||ie.corked||ie.bufferProcessing||!ie.bufferedRequest||P($,ie),ae?o.nextTick(D,$,ie,b,oe):D($,ie,b,oe)}})(H,W)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=L.emitClose!==!1,this.autoDestroy=!!L.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new u(this)}function A(L){var H=this instanceof(h=h||r("./_stream_duplex"));if(!H&&!f.call(A,this))return new A(L);this._writableState=new E(L,this,H),this.writable=!0,L&&(typeof L.write=="function"&&(this._write=L.write),typeof L.writev=="function"&&(this._writev=L.writev),typeof L.destroy=="function"&&(this._destroy=L.destroy),typeof L.final=="function"&&(this._final=L.final)),i.call(this)}function S(L,H,U,O,W,$,J){H.writelen=O,H.writecb=J,H.writing=!0,H.sync=!0,H.destroyed?H.onwrite(new k("write")):U?L._writev(W,H.onwrite):L._write(W,$,H.onwrite),H.sync=!1}function D(L,H,U,O){U||function(W,$){$.length===0&&$.needDrain&&($.needDrain=!1,W.emit("drain"))}(L,H),H.pendingcb--,O(),V(L,H)}function P(L,H){H.bufferProcessing=!0;var U=H.bufferedRequest;if(L._writev&&U&&U.next){var O=H.bufferedRequestCount,W=new Array(O),$=H.corkedRequestsFree;$.entry=U;for(var J=0,ie=!0;U;)W[J]=U,U.isBuf||(ie=!1),U=U.next,J+=1;W.allBuffers=ie,S(L,H,!0,H.length,W,"",$.finish),H.pendingcb++,H.lastBufferedRequest=null,$.next?(H.corkedRequestsFree=$.next,$.next=null):H.corkedRequestsFree=new u(H),H.bufferedRequestCount=0}else{for(;U;){var ae=U.chunk,oe=U.encoding,b=U.callback;if(S(L,H,!1,H.objectMode?1:ae.length,ae,oe,b),U=U.next,H.bufferedRequestCount--,H.writing)break}U===null&&(H.lastBufferedRequest=null)}H.bufferedRequest=U,H.bufferProcessing=!1}function j(L){return L.ending&&L.length===0&&L.bufferedRequest===null&&!L.finished&&!L.writing}function Z(L,H){L._final(function(U){H.pendingcb--,U&&G(L,U),H.prefinished=!0,L.emit("prefinish"),V(L,H)})}function V(L,H){var U=j(H);if(U&&(function(W,$){$.prefinished||$.finalCalled||(typeof W._final!="function"||$.destroyed?($.prefinished=!0,W.emit("prefinish")):($.pendingcb++,$.finalCalled=!0,o.nextTick(Z,W,$)))}(L,H),H.pendingcb===0&&(H.finished=!0,L.emit("finish"),H.autoDestroy))){var O=L._readableState;(!O||O.autoDestroy&&O.endEmitted)&&L.destroy()}return U}r("inherits")(A,i),E.prototype.getBuffer=function(){for(var L=this.bufferedRequest,H=[];L;)H.push(L),L=L.next;return H},function(){try{Object.defineProperty(E.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(L){}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(L){return!!f.call(this,L)||this===A&&L&&L._writableState instanceof E}})):f=function(L){return L instanceof this},A.prototype.pipe=function(){G(this,new w)},A.prototype.write=function(L,H,U){var O,W=this._writableState,$=!1,J=!W.objectMode&&(O=L,d.isBuffer(O)||O instanceof c);return J&&!d.isBuffer(L)&&(L=function(ie){return d.from(ie)}(L)),typeof H=="function"&&(U=H,H=null),J?H="buffer":H||(H=W.defaultEncoding),typeof U!="function"&&(U=K),W.ending?function(ie,ae){var oe=new F;G(ie,oe),o.nextTick(ae,oe)}(this,U):(J||function(ie,ae,oe,b){var _;return oe===null?_=new T:typeof oe=="string"||ae.objectMode||(_=new g("chunk",["string","Buffer"],oe)),!_||(G(ie,_),o.nextTick(b,_),!1)}(this,W,L,U))&&(W.pendingcb++,$=function(ie,ae,oe,b,_,R){if(!oe){var Q=function(q,C,B){return q.objectMode||q.decodeStrings===!1||typeof C!="string"||(C=d.from(C,B)),C}(ae,b,_);b!==Q&&(oe=!0,_="buffer",b=Q)}var ee=ae.objectMode?1:b.length;ae.length+=ee;var te=ae.length<ae.highWaterMark;if(te||(ae.needDrain=!0),ae.writing||ae.corked){var se=ae.lastBufferedRequest;ae.lastBufferedRequest={chunk:b,encoding:_,isBuf:oe,callback:R,next:null},se?se.next=ae.lastBufferedRequest:ae.bufferedRequest=ae.lastBufferedRequest,ae.bufferedRequestCount+=1}else S(ie,ae,!1,ee,b,_,R);return te}(this,W,J,L,H,U)),$},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var L=this._writableState;L.corked&&(L.corked--,L.writing||L.corked||L.bufferProcessing||!L.bufferedRequest||P(this,L))},A.prototype.setDefaultEncoding=function(L){if(typeof L=="string"&&(L=L.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((L+"").toLowerCase())>-1))throw new I(L);return this._writableState.defaultEncoding=L,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(L,H,U){U(new x("_write()"))},A.prototype._writev=null,A.prototype.end=function(L,H,U){var O=this._writableState;return typeof L=="function"?(U=L,L=null,H=null):typeof H=="function"&&(U=H,H=null),L!=null&&this.write(L,H),O.corked&&(O.corked=1,this.uncork()),O.ending||function(W,$,J){$.ending=!0,V(W,$),J&&($.finished?o.nextTick(J):W.once("finish",J)),$.ended=!0,W.writable=!1}(this,O,U),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(L){this._writableState&&(this._writableState.destroyed=L)}}),A.prototype.destroy=p.destroy,A.prototype._undestroy=p.undestroy,A.prototype._destroy=function(L,H){H(L)}}).call(this)}).call(this,r("_process"),typeof xe!="undefined"?xe:typeof self!="undefined"?self:typeof window!="undefined"?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(r,n,l){(function(o){(function(){var s;function u(w,k,T){return k in w?Object.defineProperty(w,k,{value:T,enumerable:!0,configurable:!0,writable:!0}):w[k]=T,w}var h=r("./end-of-stream"),a=Symbol("lastResolve"),i=Symbol("lastReject"),d=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),p=Symbol("handlePromise"),v=Symbol("stream");function m(w,k){return{value:w,done:k}}function g(w){var k=w[a];if(k!==null){var T=w[v].read();T!==null&&(w[f]=null,w[a]=null,w[i]=null,k(m(T,!1)))}}var x=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((u(s={get stream(){return this[v]},next:function(){var w=this,k=this[d];if(k!==null)return Promise.reject(k);if(this[c])return Promise.resolve(m(void 0,!0));if(this[v].destroyed)return new Promise(function(G,K){o.nextTick(function(){w[d]?K(w[d]):G(m(void 0,!0))})});var T,F=this[f];if(F)T=new Promise(function(G,K){return function(E,A){G.then(function(){K[c]?E(m(void 0,!0)):K[p](E,A)},A)}}(F,this));else{var I=this[v].read();if(I!==null)return Promise.resolve(m(I,!1));T=new Promise(this[p])}return this[f]=T,T}},Symbol.asyncIterator,function(){return this}),u(s,"return",function(){var w=this;return new Promise(function(k,T){w[v].destroy(null,function(F){F?T(F):k(m(void 0,!0))})})}),s),x);n.exports=function(w){var k,T=Object.create(y,(u(k={},v,{value:w,writable:!0}),u(k,a,{value:null,writable:!0}),u(k,i,{value:null,writable:!0}),u(k,d,{value:null,writable:!0}),u(k,c,{value:w._readableState.endEmitted,writable:!0}),u(k,p,{value:function(F,I){var G=T[v].read();G?(T[f]=null,T[a]=null,T[i]=null,F(m(G,!1))):(T[a]=F,T[i]=I)},writable:!0}),k));return T[f]=null,h(w,function(F){if(F&&F.code!=="ERR_STREAM_PREMATURE_CLOSE"){var I=T[i];return I!==null&&(T[f]=null,T[a]=null,T[i]=null,I(F)),void(T[d]=F)}var G=T[a];G!==null&&(T[f]=null,T[a]=null,T[i]=null,G(m(void 0,!0))),T[c]=!0}),w.on("readable",function(F){o.nextTick(g,F)}.bind(null,T)),T}}).call(this)}).call(this,r("_process"))},{"./end-of-stream":64,_process:50}],62:[function(r,n,l){function o(d,c){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(d);c&&(p=p.filter(function(v){return Object.getOwnPropertyDescriptor(d,v).enumerable})),f.push.apply(f,p)}return f}function s(d,c,f){return c in d?Object.defineProperty(d,c,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[c]=f,d}function u(d,c){for(var f=0;f<c.length;f++){var p=c[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}var h=r("buffer").Buffer,a=r("util").inspect,i=a&&a.custom||"inspect";n.exports=function(){function d(){(function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")})(this,d),this.head=null,this.tail=null,this.length=0}var c,f;return c=d,(f=[{key:"push",value:function(p){var v={data:p,next:null};this.length>0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(p){var v={data:p,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var p=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,p}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(p){if(this.length===0)return"";for(var v=this.head,m=""+v.data;v=v.next;)m+=p+v.data;return m}},{key:"concat",value:function(p){if(this.length===0)return h.alloc(0);for(var v,m,g,x=h.allocUnsafe(p>>>0),y=this.head,w=0;y;)v=y.data,m=x,g=w,h.prototype.copy.call(v,m,g),w+=y.data.length,y=y.next;return x}},{key:"consume",value:function(p,v){var m;return p<this.head.data.length?(m=this.head.data.slice(0,p),this.head.data=this.head.data.slice(p)):m=p===this.head.data.length?this.shift():v?this._getString(p):this._getBuffer(p),m}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(p){var v=this.head,m=1,g=v.data;for(p-=g.length;v=v.next;){var x=v.data,y=p>x.length?x.length:p;if(y===x.length?g+=x:g+=x.slice(0,p),(p-=y)===0){y===x.length?(++m,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=x.slice(y));break}++m}return this.length-=m,g}},{key:"_getBuffer",value:function(p){var v=h.allocUnsafe(p),m=this.head,g=1;for(m.data.copy(v),p-=m.data.length;m=m.next;){var x=m.data,y=p>x.length?x.length:p;if(x.copy(v,v.length-p,0,y),(p-=y)===0){y===x.length?(++g,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=x.slice(y));break}++g}return this.length-=g,v}},{key:i,value:function(p,v){return a(this,function(m){for(var g=1;g<arguments.length;g++){var x=arguments[g]!=null?arguments[g]:{};g%2?o(Object(x),!0).forEach(function(y){s(m,y,x[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(x)):o(Object(x)).forEach(function(y){Object.defineProperty(m,y,Object.getOwnPropertyDescriptor(x,y))})}return m}({},v,{depth:0,customInspect:!1}))}}])&&u(c.prototype,f),d}()},{buffer:17,util:16}],63:[function(r,n,l){(function(o){(function(){function s(a,i){h(a,i),u(a)}function u(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function h(a,i){a.emit("error",i)}n.exports={destroy:function(a,i){var d=this,c=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return c||f?(i?i(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(h,this,a)):o.nextTick(h,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(p){!i&&p?d._writableState?d._writableState.errorEmitted?o.nextTick(u,d):(d._writableState.errorEmitted=!0,o.nextTick(s,d,p)):o.nextTick(s,d,p):i?(o.nextTick(u,d),i(p)):o.nextTick(u,d)}),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(a,i){var d=a._readableState,c=a._writableState;d&&d.autoDestroy||c&&c.autoDestroy?a.destroy(i):a.emit("error",i)}}}).call(this)}).call(this,r("_process"))},{_process:50}],64:[function(r,n,l){var o=r("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function s(){}n.exports=function u(h,a,i){if(typeof a=="function")return u(h,null,a);a||(a={}),i=function(k){var T=!1;return function(){if(!T){T=!0;for(var F=arguments.length,I=new Array(F),G=0;G<F;G++)I[G]=arguments[G];k.apply(this,I)}}}(i||s);var d=a.readable||a.readable!==!1&&h.readable,c=a.writable||a.writable!==!1&&h.writable,f=function(){h.writable||v()},p=h._writableState&&h._writableState.finished,v=function(){c=!1,p=!0,d||i.call(h)},m=h._readableState&&h._readableState.endEmitted,g=function(){d=!1,m=!0,c||i.call(h)},x=function(k){i.call(h,k)},y=function(){var k;return d&&!m?(h._readableState&&h._readableState.ended||(k=new o),i.call(h,k)):c&&!p?(h._writableState&&h._writableState.ended||(k=new o),i.call(h,k)):void 0},w=function(){h.req.on("finish",v)};return function(k){return k.setHeader&&typeof k.abort=="function"}(h)?(h.on("complete",v),h.on("abort",y),h.req?w():h.on("request",w)):c&&!h._writableState&&(h.on("end",f),h.on("close",f)),h.on("end",g),h.on("finish",v),a.error!==!1&&h.on("error",x),h.on("close",y),function(){h.removeListener("complete",v),h.removeListener("abort",y),h.removeListener("request",w),h.req&&h.req.removeListener("finish",v),h.removeListener("end",f),h.removeListener("close",f),h.removeListener("finish",v),h.removeListener("end",g),h.removeListener("error",x),h.removeListener("close",y)}}},{"../../../errors":55}],65:[function(r,n,l){n.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],66:[function(r,n,l){var o,s=r("../../../errors").codes,u=s.ERR_MISSING_ARGS,h=s.ERR_STREAM_DESTROYED;function a(c){if(c)throw c}function i(c){c()}function d(c,f){return c.pipe(f)}n.exports=function(){for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];var v,m=function(x){return x.length?typeof x[x.length-1]!="function"?a:x.pop():a}(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new u("streams");var g=f.map(function(x,y){var w=y<f.length-1;return function(k,T,F,I){I=function(E){var A=!1;return function(){A||(A=!0,E.apply(void 0,arguments))}}(I);var G=!1;k.on("close",function(){G=!0}),o===void 0&&(o=r("./end-of-stream")),o(k,{readable:T,writable:F},function(E){if(E)return I(E);G=!0,I()});var K=!1;return function(E){if(!G&&!K)return K=!0,function(A){return A.setHeader&&typeof A.abort=="function"}(k)?k.abort():typeof k.destroy=="function"?k.destroy():void I(E||new h("pipe"))}}(x,w,y>0,function(k){v||(v=k),k&&g.forEach(i),w||(g.forEach(i),m(v))})});return f.reduce(d)}},{"../../../errors":55,"./end-of-stream":64}],67:[function(r,n,l){var o=r("../../../errors").codes.ERR_INVALID_OPT_VALUE;n.exports={getHighWaterMark:function(s,u,h,a){var i=function(d,c,f){return d.highWaterMark!=null?d.highWaterMark:c?d[f]:null}(u,a,h);if(i!=null){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new o(a?h:"highWaterMark",i);return Math.floor(i)}return s.objectMode?16:16384}}},{"../../../errors":55}],68:[function(r,n,l){n.exports=r("events").EventEmitter},{events:22}],69:[function(r,n,l){(l=n.exports=r("./lib/_stream_readable.js")).Stream=l,l.Readable=l,l.Writable=r("./lib/_stream_writable.js"),l.Duplex=r("./lib/_stream_duplex.js"),l.Transform=r("./lib/_stream_transform.js"),l.PassThrough=r("./lib/_stream_passthrough.js"),l.finished=r("./lib/internal/streams/end-of-stream.js"),l.pipeline=r("./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(r,n,l){n.exports=function(){if(typeof arguments[0]!="function")throw new Error("callback needed");if(typeof arguments[1]!="number")throw new Error("interval needed");var o;if(arguments.length>0){o=new Array(arguments.length-2);for(var s=0;s<o.length;s++)o[s]=arguments[s+2]}return new function(u,h,a){var i=this;this._callback=u,this._args=a,this._interval=setInterval(u,h,this._args),this.reschedule=function(d){d||(d=i._interval),i._interval&&clearInterval(i._interval),i._interval=setInterval(i._callback,d,i._args)},this.clear=function(){i._interval&&(clearInterval(i._interval),i._interval=void 0)},this.destroy=function(){i._interval&&clearInterval(i._interval),i._callback=void 0,i._interval=void 0,i._args=void 0}}(arguments[0],arguments[1],o)}},{}],71:[function(r,n,l){n.exports=r("./index.js")()},{"./index.js":72}],72:[function(r,n,l){(function(o){(function(){function s(u){return u instanceof o?o.from(u):new u.constructor(u.buffer.slice(),u.byteOffset,u.length)}n.exports=function(u){return(u=u||{}).circles?function(a){var i=[],d=[];return a.proto?function f(p){if(typeof p!="object"||p===null)return p;if(p instanceof Date)return new Date(p);if(Array.isArray(p))return c(p,f);if(p instanceof Map)return new Map(c(Array.from(p),f));if(p instanceof Set)return new Set(c(Array.from(p),f));var v={};for(var m in i.push(p),d.push(v),p){var g=p[m];if(typeof g!="object"||g===null)v[m]=g;else if(g instanceof Date)v[m]=new Date(g);else if(g instanceof Map)v[m]=new Map(c(Array.from(g),f));else if(g instanceof Set)v[m]=new Set(c(Array.from(g),f));else if(ArrayBuffer.isView(g))v[m]=s(g);else{var x=i.indexOf(g);v[m]=x!==-1?d[x]:f(g)}}return i.pop(),d.pop(),v}:function f(p){if(typeof p!="object"||p===null)return p;if(p instanceof Date)return new Date(p);if(Array.isArray(p))return c(p,f);if(p instanceof Map)return new Map(c(Array.from(p),f));if(p instanceof Set)return new Set(c(Array.from(p),f));var v={};for(var m in i.push(p),d.push(v),p)if(Object.hasOwnProperty.call(p,m)!==!1){var g=p[m];if(typeof g!="object"||g===null)v[m]=g;else if(g instanceof Date)v[m]=new Date(g);else if(g instanceof Map)v[m]=new Map(c(Array.from(g),f));else if(g instanceof Set)v[m]=new Set(c(Array.from(g),f));else if(ArrayBuffer.isView(g))v[m]=s(g);else{var x=i.indexOf(g);v[m]=x!==-1?d[x]:f(g)}}return i.pop(),d.pop(),v};function c(f,p){for(var v=Object.keys(f),m=new Array(v.length),g=0;g<v.length;g++){var x=v[g],y=f[x];if(typeof y!="object"||y===null)m[x]=y;else if(y instanceof Date)m[x]=new Date(y);else if(ArrayBuffer.isView(y))m[x]=s(y);else{var w=i.indexOf(y);m[x]=w!==-1?d[w]:p(y)}}return m}}(u):u.proto?function a(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return h(i,a);if(i instanceof Map)return new Map(h(Array.from(i),a));if(i instanceof Set)return new Set(h(Array.from(i),a));var d={};for(var c in i){var f=i[c];typeof f!="object"||f===null?d[c]=f:f instanceof Date?d[c]=new Date(f):f instanceof Map?d[c]=new Map(h(Array.from(f),a)):f instanceof Set?d[c]=new Set(h(Array.from(f),a)):ArrayBuffer.isView(f)?d[c]=s(f):d[c]=a(f)}return d}:function a(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return h(i,a);if(i instanceof Map)return new Map(h(Array.from(i),a));if(i instanceof Set)return new Set(h(Array.from(i),a));var d={};for(var c in i)if(Object.hasOwnProperty.call(i,c)!==!1){var f=i[c];typeof f!="object"||f===null?d[c]=f:f instanceof Date?d[c]=new Date(f):f instanceof Map?d[c]=new Map(h(Array.from(f),a)):f instanceof Set?d[c]=new Set(h(Array.from(f),a)):ArrayBuffer.isView(f)?d[c]=s(f):d[c]=a(f)}return d};function h(a,i){for(var d=Object.keys(a),c=new Array(d.length),f=0;f<d.length;f++){var p=d[f],v=a[p];typeof v!="object"||v===null?c[p]=v:v instanceof Date?c[p]=new Date(v):ArrayBuffer.isView(v)?c[p]=s(v):c[p]=i(v)}return c}}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:17}],73:[function(r,n,l){var o=r("buffer"),s=o.Buffer;function u(a,i){for(var d in a)i[d]=a[d]}function h(a,i,d){return s(a,i,d)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?n.exports=o:(u(o,l),l.Buffer=h),h.prototype=Object.create(s.prototype),u(s,h),h.from=function(a,i,d){if(typeof a=="number")throw new TypeError("Argument must not be a number");return s(a,i,d)},h.alloc=function(a,i,d){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=s(a);return i!==void 0?typeof d=="string"?c.fill(i,d):c.fill(i):c.fill(0),c},h.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return s(a)},h.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(a)}},{buffer:17}],74:[function(r,n,l){n.exports=function(o){var s=o._readableState;return s?s.objectMode||typeof o._duplexState=="number"?o.read():o.read((u=s,u.buffer.length?u.buffer.head?u.buffer.head.data.length:u.buffer[0].length:u.length)):null;var u}},{}],75:[function(r,n,l){var o=r("safe-buffer").Buffer,s=o.isEncoding||function(m){switch((m=""+m)&&m.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 u(m){var g;switch(this.encoding=function(x){var y=function(w){if(!w)return"utf8";for(var k;;)switch(w){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 w;default:if(k)return;w=(""+w).toLowerCase(),k=!0}}(x);if(typeof y!="string"&&(o.isEncoding===s||!s(x)))throw new Error("Unknown encoding: "+x);return y||x}(m),this.encoding){case"utf16le":this.text=i,this.end=d,g=4;break;case"utf8":this.fillLast=a,g=4;break;case"base64":this.text=c,this.end=f,g=3;break;default:return this.write=p,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(g)}function h(m){return m<=127?0:m>>5==6?2:m>>4==14?3:m>>3==30?4:m>>6==2?-1:-2}function a(m){var g=this.lastTotal-this.lastNeed,x=function(y,w,k){if((192&w[0])!=128)return y.lastNeed=0,"�";if(y.lastNeed>1&&w.length>1){if((192&w[1])!=128)return y.lastNeed=1,"�";if(y.lastNeed>2&&w.length>2&&(192&w[2])!=128)return y.lastNeed=2,"�"}}(this,m);return x!==void 0?x:this.lastNeed<=m.length?(m.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(m.copy(this.lastChar,g,0,m.length),void(this.lastNeed-=m.length))}function i(m,g){if((m.length-g)%2==0){var x=m.toString("utf16le",g);if(x){var y=x.charCodeAt(x.length-1);if(y>=55296&&y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=m[m.length-1],m.toString("utf16le",g,m.length-1)}function d(m){var g=m&&m.length?this.write(m):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,x)}return g}function c(m,g){var x=(m.length-g)%3;return x===0?m.toString("base64",g):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=m[m.length-1]:(this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1]),m.toString("base64",g,m.length-x))}function f(m){var g=m&&m.length?this.write(m):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function p(m){return m.toString(this.encoding)}function v(m){return m&&m.length?this.write(m):""}l.StringDecoder=u,u.prototype.write=function(m){if(m.length===0)return"";var g,x;if(this.lastNeed){if((g=this.fillLast(m))===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<m.length?g?g+this.text(m,x):this.text(m,x):g||""},u.prototype.end=function(m){var g=m&&m.length?this.write(m):"";return this.lastNeed?g+"�":g},u.prototype.text=function(m,g){var x=function(w,k,T){var F=k.length-1;if(F<T)return 0;var I=h(k[F]);return I>=0?(I>0&&(w.lastNeed=I-1),I):--F<T||I===-2?0:(I=h(k[F]))>=0?(I>0&&(w.lastNeed=I-2),I):--F<T||I===-2?0:(I=h(k[F]))>=0?(I>0&&(I===2?I=0:w.lastNeed=I-3),I):0}(this,m,g);if(!this.lastNeed)return m.toString("utf8",g);this.lastTotal=x;var y=m.length-(x-this.lastNeed);return m.copy(this.lastChar,0,y),m.toString("utf8",g,y)},u.prototype.fillLast=function(m){if(this.lastNeed<=m.length)return m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,m.length),this.lastNeed-=m.length}},{"safe-buffer":73}],76:[function(r,n,l){var o=r("punycode"),s=r("./util");function u(){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}l.parse=k,l.resolve=function(T,F){return k(T,!1,!0).resolve(F)},l.resolveObject=function(T,F){return T?k(T,!1,!0).resolveObject(F):F},l.format=function(T){return s.isString(T)&&(T=k(T)),T instanceof u?T.format():u.prototype.format.call(T)},l.Url=u;var h=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
37
|
+
`," "]),c=["'"].concat(d),f=["%","/","?",";","#"].concat(c),p=["/","?","#"],v=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},x={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=r("querystring");function k(T,F,I){if(T&&s.isObject(T)&&T instanceof u)return T;var G=new u;return G.parse(T,F,I),G}u.prototype.parse=function(T,F,I){if(!s.isString(T))throw new TypeError("Parameter 'url' must be a string, not "+typeof T);var G=T.indexOf("?"),K=G!==-1&&G<T.indexOf("#")?"?":"#",E=T.split(K);E[0]=E[0].replace(/\\/g,"/");var A=T=E.join(K);if(A=A.trim(),!I&&T.split("#").length===1){var S=i.exec(A);if(S)return this.path=A,this.href=A,this.pathname=S[1],S[2]?(this.search=S[2],this.query=F?w.parse(this.search.substr(1)):this.search.substr(1)):F&&(this.search="",this.query={}),this}var D=h.exec(A);if(D){var P=(D=D[0]).toLowerCase();this.protocol=P,A=A.substr(D.length)}if(I||D||A.match(/^\/\/[^@\/]+@[^@\/]+/)){var j=A.substr(0,2)==="//";!j||D&&x[D]||(A=A.substr(2),this.slashes=!0)}if(!x[D]&&(j||D&&!y[D])){for(var Z,V,L=-1,H=0;H<p.length;H++)(U=A.indexOf(p[H]))!==-1&&(L===-1||U<L)&&(L=U);for((V=L===-1?A.lastIndexOf("@"):A.lastIndexOf("@",L))!==-1&&(Z=A.slice(0,V),A=A.slice(V+1),this.auth=decodeURIComponent(Z)),L=-1,H=0;H<f.length;H++){var U;(U=A.indexOf(f[H]))!==-1&&(L===-1||U<L)&&(L=U)}L===-1&&(L=A.length),this.host=A.slice(0,L),A=A.slice(L),this.parseHost(),this.hostname=this.hostname||"";var O=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!O)for(var W=this.hostname.split(/\./),$=(H=0,W.length);H<$;H++){var J=W[H];if(J&&!J.match(v)){for(var ie="",ae=0,oe=J.length;ae<oe;ae++)J.charCodeAt(ae)>127?ie+="x":ie+=J[ae];if(!ie.match(v)){var b=W.slice(0,H),_=W.slice(H+1),R=J.match(m);R&&(b.push(R[1]),_.unshift(R[2])),_.length&&(A="/"+_.join(".")+A),this.hostname=b.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=o.toASCII(this.hostname));var Q=this.port?":"+this.port:"",ee=this.hostname||"";this.host=ee+Q,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),A[0]!=="/"&&(A="/"+A))}if(!g[P])for(H=0,$=c.length;H<$;H++){var te=c[H];if(A.indexOf(te)!==-1){var se=encodeURIComponent(te);se===te&&(se=escape(te)),A=A.split(te).join(se)}}var q=A.indexOf("#");q!==-1&&(this.hash=A.substr(q),A=A.slice(0,q));var C=A.indexOf("?");if(C!==-1?(this.search=A.substr(C),this.query=A.substr(C+1),F&&(this.query=w.parse(this.query)),A=A.slice(0,C)):F&&(this.search="",this.query={}),A&&(this.pathname=A),y[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){Q=this.pathname||"";var B=this.search||"";this.path=Q+B}return this.href=this.format(),this},u.prototype.format=function(){var T=this.auth||"";T&&(T=(T=encodeURIComponent(T)).replace(/%3A/i,":"),T+="@");var F=this.protocol||"",I=this.pathname||"",G=this.hash||"",K=!1,E="";this.host?K=T+this.host:this.hostname&&(K=T+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(K+=":"+this.port)),this.query&&s.isObject(this.query)&&Object.keys(this.query).length&&(E=w.stringify(this.query));var A=this.search||E&&"?"+E||"";return F&&F.substr(-1)!==":"&&(F+=":"),this.slashes||(!F||y[F])&&K!==!1?(K="//"+(K||""),I&&I.charAt(0)!=="/"&&(I="/"+I)):K||(K=""),G&&G.charAt(0)!=="#"&&(G="#"+G),A&&A.charAt(0)!=="?"&&(A="?"+A),F+K+(I=I.replace(/[?#]/g,function(S){return encodeURIComponent(S)}))+(A=A.replace("#","%23"))+G},u.prototype.resolve=function(T){return this.resolveObject(k(T,!1,!0)).format()},u.prototype.resolveObject=function(T){if(s.isString(T)){var F=new u;F.parse(T,!1,!0),T=F}for(var I=new u,G=Object.keys(this),K=0;K<G.length;K++){var E=G[K];I[E]=this[E]}if(I.hash=T.hash,T.href==="")return I.href=I.format(),I;if(T.slashes&&!T.protocol){for(var A=Object.keys(T),S=0;S<A.length;S++){var D=A[S];D!=="protocol"&&(I[D]=T[D])}return y[I.protocol]&&I.hostname&&!I.pathname&&(I.path=I.pathname="/"),I.href=I.format(),I}if(T.protocol&&T.protocol!==I.protocol){if(!y[T.protocol]){for(var P=Object.keys(T),j=0;j<P.length;j++){var Z=P[j];I[Z]=T[Z]}return I.href=I.format(),I}if(I.protocol=T.protocol,T.host||x[T.protocol])I.pathname=T.pathname;else{for(var V=(T.pathname||"").split("/");V.length&&!(T.host=V.shift()););T.host||(T.host=""),T.hostname||(T.hostname=""),V[0]!==""&&V.unshift(""),V.length<2&&V.unshift(""),I.pathname=V.join("/")}if(I.search=T.search,I.query=T.query,I.host=T.host||"",I.auth=T.auth,I.hostname=T.hostname||T.host,I.port=T.port,I.pathname||I.search){var L=I.pathname||"",H=I.search||"";I.path=L+H}return I.slashes=I.slashes||T.slashes,I.href=I.format(),I}var U=I.pathname&&I.pathname.charAt(0)==="/",O=T.host||T.pathname&&T.pathname.charAt(0)==="/",W=O||U||I.host&&T.pathname,$=W,J=I.pathname&&I.pathname.split("/")||[],ie=(V=T.pathname&&T.pathname.split("/")||[],I.protocol&&!y[I.protocol]);if(ie&&(I.hostname="",I.port=null,I.host&&(J[0]===""?J[0]=I.host:J.unshift(I.host)),I.host="",T.protocol&&(T.hostname=null,T.port=null,T.host&&(V[0]===""?V[0]=T.host:V.unshift(T.host)),T.host=null),W=W&&(V[0]===""||J[0]==="")),O)I.host=T.host||T.host===""?T.host:I.host,I.hostname=T.hostname||T.hostname===""?T.hostname:I.hostname,I.search=T.search,I.query=T.query,J=V;else if(V.length)J||(J=[]),J.pop(),J=J.concat(V),I.search=T.search,I.query=T.query;else if(!s.isNullOrUndefined(T.search))return ie&&(I.hostname=I.host=J.shift(),(R=!!(I.host&&I.host.indexOf("@")>0)&&I.host.split("@"))&&(I.auth=R.shift(),I.host=I.hostname=R.shift())),I.search=T.search,I.query=T.query,s.isNull(I.pathname)&&s.isNull(I.search)||(I.path=(I.pathname?I.pathname:"")+(I.search?I.search:"")),I.href=I.format(),I;if(!J.length)return I.pathname=null,I.search?I.path="/"+I.search:I.path=null,I.href=I.format(),I;for(var ae=J.slice(-1)[0],oe=(I.host||T.host||J.length>1)&&(ae==="."||ae==="..")||ae==="",b=0,_=J.length;_>=0;_--)(ae=J[_])==="."?J.splice(_,1):ae===".."?(J.splice(_,1),b++):b&&(J.splice(_,1),b--);if(!W&&!$)for(;b--;b)J.unshift("..");!W||J[0]===""||J[0]&&J[0].charAt(0)==="/"||J.unshift(""),oe&&J.join("/").substr(-1)!=="/"&&J.push("");var R,Q=J[0]===""||J[0]&&J[0].charAt(0)==="/";return ie&&(I.hostname=I.host=Q?"":J.length?J.shift():"",(R=!!(I.host&&I.host.indexOf("@")>0)&&I.host.split("@"))&&(I.auth=R.shift(),I.host=I.hostname=R.shift())),(W=W||I.host&&J.length)&&!Q&&J.unshift(""),J.length?I.pathname=J.join("/"):(I.pathname=null,I.path=null),s.isNull(I.pathname)&&s.isNull(I.search)||(I.path=(I.pathname?I.pathname:"")+(I.search?I.search:"")),I.auth=T.auth||I.auth,I.slashes=I.slashes||T.slashes,I.href=I.format(),I},u.prototype.parseHost=function(){var T=this.host,F=a.exec(T);F&&((F=F[0])!==":"&&(this.port=F.substr(1)),T=T.substr(0,T.length-F.length)),T&&(this.hostname=T)}},{"./util":77,punycode:51,querystring:54}],77:[function(r,n,l){n.exports={isString:function(o){return typeof o=="string"},isObject:function(o){return typeof o=="object"&&o!==null},isNull:function(o){return o===null},isNullOrUndefined:function(o){return o==null}}},{}],78:[function(r,n,l){(function(o){(function(){function s(u){try{if(!o.localStorage)return!1}catch(a){return!1}var h=o.localStorage[u];return h!=null&&String(h).toLowerCase()==="true"}n.exports=function(u,h){if(s("noDeprecation"))return u;var a=!1;return function(){if(!a){if(s("throwDeprecation"))throw new Error(h);s("traceDeprecation")?console.trace(h):console.warn(h),a=!0}return u.apply(this,arguments)}}}).call(this)}).call(this,typeof xe!="undefined"?xe:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],79:[function(r,n,l){n.exports=function o(s,u){if(s&&u)return o(s)(u);if(typeof s!="function")throw new TypeError("need wrapper function");return Object.keys(s).forEach(function(a){h[a]=s[a]}),h;function h(){for(var a=new Array(arguments.length),i=0;i<a.length;i++)a[i]=arguments[i];var d=s.apply(this,a),c=a[a.length-1];return typeof d=="function"&&d!==c&&Object.keys(c).forEach(function(f){d[f]=c[f]}),d}}},{}],80:[function(r,n,l){n.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},{}],81:[function(r,n,l){n.exports=function(){for(var s={},u=0;u<arguments.length;u++){var h=arguments[u];for(var a in h)o.call(h,a)&&(s[a]=h[a])}return s};var o=Object.prototype.hasOwnProperty},{}],82:[function(r,n,l){n.exports=function(o){o.prototype[Symbol.iterator]=function*(){for(let s=this.head;s;s=s.next)yield s.value}}},{}],83:[function(r,n,l){function o(i){var d=this;if(d instanceof o||(d=new o),d.tail=null,d.head=null,d.length=0,i&&typeof i.forEach=="function")i.forEach(function(p){d.push(p)});else if(arguments.length>0)for(var c=0,f=arguments.length;c<f;c++)d.push(arguments[c]);return d}function s(i,d,c){var f=d===i.head?new a(c,null,d,i):new a(c,d,d.next,i);return f.next===null&&(i.tail=f),f.prev===null&&(i.head=f),i.length++,f}function u(i,d){i.tail=new a(d,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function h(i,d){i.head=new a(d,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function a(i,d,c,f){if(!(this instanceof a))return new a(i,d,c,f);this.list=f,this.value=i,d?(d.next=this,this.prev=d):this.prev=null,c?(c.prev=this,this.next=c):this.next=null}n.exports=o,o.Node=a,o.create=o,o.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var d=i.next,c=i.prev;return d&&(d.prev=c),c&&(c.next=d),i===this.head&&(this.head=d),i===this.tail&&(this.tail=c),i.list.length--,i.next=null,i.prev=null,i.list=null,d},o.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var d=this.head;i.list=this,i.next=d,d&&(d.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}},o.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var d=this.tail;i.list=this,i.prev=d,d&&(d.next=i),this.tail=i,this.head||(this.head=i),this.length++}},o.prototype.push=function(){for(var i=0,d=arguments.length;i<d;i++)u(this,arguments[i]);return this.length},o.prototype.unshift=function(){for(var i=0,d=arguments.length;i<d;i++)h(this,arguments[i]);return this.length},o.prototype.pop=function(){if(this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}},o.prototype.shift=function(){if(this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}},o.prototype.forEach=function(i,d){d=d||this;for(var c=this.head,f=0;c!==null;f++)i.call(d,c.value,f,this),c=c.next},o.prototype.forEachReverse=function(i,d){d=d||this;for(var c=this.tail,f=this.length-1;c!==null;f--)i.call(d,c.value,f,this),c=c.prev},o.prototype.get=function(i){for(var d=0,c=this.head;c!==null&&d<i;d++)c=c.next;if(d===i&&c!==null)return c.value},o.prototype.getReverse=function(i){for(var d=0,c=this.tail;c!==null&&d<i;d++)c=c.prev;if(d===i&&c!==null)return c.value},o.prototype.map=function(i,d){d=d||this;for(var c=new o,f=this.head;f!==null;)c.push(i.call(d,f.value,this)),f=f.next;return c},o.prototype.mapReverse=function(i,d){d=d||this;for(var c=new o,f=this.tail;f!==null;)c.push(i.call(d,f.value,this)),f=f.prev;return c},o.prototype.reduce=function(i,d){var c,f=this.head;if(arguments.length>1)c=d;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");f=this.head.next,c=this.head.value}for(var p=0;f!==null;p++)c=i(c,f.value,p),f=f.next;return c},o.prototype.reduceReverse=function(i,d){var c,f=this.tail;if(arguments.length>1)c=d;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");f=this.tail.prev,c=this.tail.value}for(var p=this.length-1;f!==null;p--)c=i(c,f.value,p),f=f.prev;return c},o.prototype.toArray=function(){for(var i=new Array(this.length),d=0,c=this.head;c!==null;d++)i[d]=c.value,c=c.next;return i},o.prototype.toArrayReverse=function(){for(var i=new Array(this.length),d=0,c=this.tail;c!==null;d++)i[d]=c.value,c=c.prev;return i},o.prototype.slice=function(i,d){(d=d||this.length)<0&&(d+=this.length),(i=i||0)<0&&(i+=this.length);var c=new o;if(d<i||d<0)return c;i<0&&(i=0),d>this.length&&(d=this.length);for(var f=0,p=this.head;p!==null&&f<i;f++)p=p.next;for(;p!==null&&f<d;f++,p=p.next)c.push(p.value);return c},o.prototype.sliceReverse=function(i,d){(d=d||this.length)<0&&(d+=this.length),(i=i||0)<0&&(i+=this.length);var c=new o;if(d<i||d<0)return c;i<0&&(i=0),d>this.length&&(d=this.length);for(var f=this.length,p=this.tail;p!==null&&f>d;f--)p=p.prev;for(;p!==null&&f>i;f--,p=p.prev)c.push(p.value);return c},o.prototype.splice=function(i,d,...c){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var f=0,p=this.head;p!==null&&f<i;f++)p=p.next;var v=[];for(f=0;p&&f<d;f++)v.push(p.value),p=this.removeNode(p);for(p===null&&(p=this.tail),p!==this.head&&p!==this.tail&&(p=p.prev),f=0;f<c.length;f++)p=s(this,p,c[f]);return v},o.prototype.reverse=function(){for(var i=this.head,d=this.tail,c=i;c!==null;c=c.prev){var f=c.prev;c.prev=c.next,c.next=f}return this.head=d,this.tail=i,this};try{r("./iterator.js")(o)}catch(i){}},{"./iterator.js":82}]},{},[12])(12)})})(Dv);function Rv(e,t){var s,u;let r=t.payload.topicName,n=t.payload.message,l=t.payload.notifyTime,o=`<div style="padding:0px 12px 0px 0px;width:300px;">
|
|
38
38
|
<div style="display:flex;height: 20px;justify-content: space-between">
|
|
39
39
|
<div style="color: #000000d9;
|
|
40
40
|
font-size: 14px;
|
|
41
|
-
font-weight: 700;">${r}</div><div style="color: #00000073;">${
|
|
41
|
+
font-weight: 700;">${r}</div><div style="color: #00000073;">${Ov(l)}</div>
|
|
42
42
|
</div>
|
|
43
43
|
<span>${n}</span>
|
|
44
|
-
</div>`;e.message({content:o,duration:0,closeBtn:!0,placement:"right",height:75}),(s=t.payload.detail)!=null&&s.alarmConfigId&&Xv(e,(u=t.payload.detail)==null?void 0:u.alarmConfigId)}globalThis.doWarning=Qv;function Yv(e){const t=new Date(e),r=t.getFullYear(),n=(t.getMonth()+1+"").padStart(2,"0"),l=(t.getDate()+"").padStart(2,"0"),o=(t.getHours()+"").padStart(2,"0"),s=(t.getMinutes()+"").padStart(2,"0"),u=(t.getSeconds()+"").padStart(2,"0");return r+"-"+n+"-"+l+" "+o+":"+s+":"+u}function Xv(e,t){return He(this,null,function*(){const r=yield fetch(`/api/alarm/config/${t}`,{headers:{"X-Access-Token":localStorage.getItem("X-Access-Token")||new URLSearchParams(location.search).get("X-Access-Token")||"","Content-Type":"application/json"},method:"GET"});if(r.ok){let n=yield r.json();n.result.media&&ec(e,n.result.media,n.result.playTimes)}})}function ec(e,t,r){if(e.store.globalAudio||(e.store.globalAudio=document.createElement("audio")),e.store.globalAudio.src=t,e.store.globalAudio.play(),r===-1)e.store.globalAudio.loop=!0;else{e.store.globalAudio.loop=!1;let n=0;e.store.globalAudio.onended=()=>{n++,n<r&&e.store.globalAudio.play()}}}globalThis.createAudio=ec;const Zv="original_meta2d";function Jv(){return localStorage.removeItem(Zv)}let kr={};const ey=e=>{const t=document.querySelectorAll("video");let r=null;if(t.forEach(l=>{l.getAttribute("src")===e.video&&(r=l)}),!r)return;r.setAttribute("muted","muted"),r.setAttribute("autoplay","autoplay"),r.setAttribute("loop","loop"),r.setAttribute("crossorigin",""),r.setAttribute("controls",""),r.style.display="none",r.parentElement.style.border="2px solid #ffc878";const n=new JessibucaPro({container:r.parentElement,background:"",hasControl:!1,controlAutoHide:!0,checkFirstIFrame:!0,debug:!1,decoder:"./wasm/decoder-pro.js",forceNoOffscreen:!0,hotKey:!1,hasAudio:!1,hasVideo:!0,hiddenAutoPause:!1,isFlv:!0,isResize:!1,isNotMute:!0,loadingIcon:!0,loadingText:"加载中...",networkDelayTimeoutReplay:!1,playbackForwardMaxRateDecodeIFrame:8,showBandwidth:!1,showPerformance:!1,syncAudioAndVideo:!0,supportDblclickFullscreen:!1,timeout:10,useMSE:!0,useWCS:!1,useSIMD:!0,useVideoRender:!0,useCanvasRender:!1,videoBuffer:.2,videoBufferDelay:1});return e.autoPlay&&e.streamUrl&&n.play(e.streamUrl),kr[e.id]=n,n},ty=()=>{Object.keys(kr).forEach(e=>{kr[e].destroy(),kr[e]=null}),kr={}},tc=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r},ry=Object.assign({name:"Meta2dEditor"},{__name:"index",props:{url:{type:String,default:""},data:{type:Object,default:()=>{}},local:{type:Boolean,default:!1},preview:{type:Boolean,default:!1}},emits:["loaded"],setup(e,{expose:t,emit:r}){const n=r,l=e,o=L.ref(null),s=L.shallowRef(),u=L.computed(()=>!!(l.data||l.url));L.watch(()=>[l.data,l.url],()=>{u.value&&h()});function h(){return He(this,null,function*(){try{if(yield L.nextTick(),!o.value){console.error("未找到meta2d元素!");return}let m=null;if(l.data?m=l.data:l.url&&(m=yield p()),!m||!m.data){console.log("图纸数据为空");return}const g=m.options||{background:"#eee",disableAnchor:!1};if(s.value&&(s.value.destroy(!0),s.value=null),!o.value){console.error("Meta2D 容器元素不可用");return}s.value=new Pe.Meta2d(o.value,he({},g)),g.visibleLevel&&s.value.scale(g.visibleLevel),a(),i(),yield d(m.data),s.value.render(),c(),setTimeout(()=>{window!=null&&window.meta2dTools&&(window==null||window.registerToolsNew())},1e3),n("loaded",s.value)}catch(m){console.error("初始化编辑器失败:",m)}})}function a(){if(!s.value)return;new Wv({}).initPlugin(s.value,"mindNode",{})}function i(){Pe.register(Lc.classPens()),Pe.register(ba.flowPens()),Pe.registerAnchors(ba.flowAnchors()),Pe.register(wa.sequencePens()),Pe.registerCanvasDraw(wa.sequencePensbyCtx()),Pe.register(_a.activityDiagram()),Pe.registerCanvasDraw(_a.activityDiagramByCtx()),Pe.registerCanvasDraw(Nc.formPens()),Pe.registerCanvasDraw(Uc.chartsPens()),Pe.register(hi.ftaPens()),Pe.registerAnchors(hi.ftaAnchors()),Pe.registerCanvasDraw(hi.ftaPensbyCtx())}function d(m){var g,x;if(s.value){if(typeof m.locked=="undefined"&&(m.locked=0),m.bkImage&&s.value.setBackgroundImage(m.bkImage),m.pens&&m.pens.length>0){const y=[];m.pens.forEach(T=>{T.name==="video"&&T.streamUrl?y.push(T):T.name==="image"&&T.image&&(T.image=Vv(T.image))}),y.length>0&&setTimeout(()=>{y.forEach(T=>{ey(T)})},500);const w=((x=(g=window==null?void 0:window.meta)==null?void 0:g.graph)==null?void 0:x.penCountThreshold)||2e3;m.pens.length>w&&m.scale&&m.pens.forEach(T=>{const I=T.visibleLevel;I!==void 0?(T.visible=m.scale>=I,T.visible||(T.disabled=!0,T.locked=Pe.LockState.Disable)):(T.visible=!0,T.disabled=!1,T.locked=Pe.LockState.None)})}s.value.open(m)}}function c(){s.value&&s.value.on("scale",f)}const f=On.debounce(m=>{var g,x,y,w,F,T;try{if(!s.value)return;Lo.emit("graph-scale",m);let I=s.value.store.data.pens;const D=((x=(g=window==null?void 0:window.meta)==null?void 0:g.graph)==null?void 0:x.penCountThreshold)||2e3,X=I.length>D;for(let K=0;K<I.length;K++){const E=I[K];if([Be.VIDEO_STREAM,Be.MP4].includes(E.penType)){if(((w=(y=sr[E.id])==null?void 0:y.children)==null?void 0:w.length)===3){let A=sr[E.id].children[0],C=sr[E.id].children[2];A.style.width=C.currentTime/C.duration*E.calculative.worldRect.width+"px"}else if(((T=(F=sr[E.id])==null?void 0:F.children)==null?void 0:T.length)===2){let A=sr[E.id].children[0],C=sr[E.id].children[1];A.style.width=C.currentTime/C.duration*E.calculative.worldRect.width+"px"}}if(X){const A=E.visibleLevel!==void 0?m>=E.visibleLevel:!0;s.value._setValue({id:E.id,visible:A,disabled:!A,locked:A?Pe.LockState.None:Pe.LockState.Disable})}}s.value.render()}catch(I){console.error("处理缩放失败:",I)}},500);function p(){return He(this,null,function*(){return l.url?(yield No.getGraphApi(l.url,{local:l.local}))||null:(ot.error("图纸路径为空!"),null)})}const v=()=>{s.value&&s.value.resize()};return L.onMounted(()=>{u.value&&h(),window.document.addEventListener("resize",v)}),L.onUnmounted(()=>{ty(),Jv(),s.value&&(l.preview?(sl.clearLineCross(),s.value.destroy(!0)):s.value.off("scale",f)),window.document.removeEventListener("resize",v)}),t({stage:s}),(m,g)=>(L.openBlock(),L.createElementBlock("div",{ref_key:"meta2dRef",ref:o,class:"meta2d-editor"},null,512))}}),ny=tc(ry,[["__scopeId","data-v-6212e767"]]),iy={class:"preview-container"},oy={key:0,class:"back-btn"},ay=Object.assign({name:"Meta2dPreview"},{__name:"index",props:{url:{type:String,default:""},gid:{type:String,default:""},data:{type:Object,default:null},local:{type:Boolean,default:!1},isInitData:{type:Boolean,default:!0},config:{type:Object,default:()=>({socketUrl:hs,stationIdKey:C0,userTokenKey:A0,messageDelay:200,debounceDelay:100,enableAutoFit:!0,enableWebSocket:!0,graphSocket:cs.GRAPH.SOCKET})},showMap:{type:Boolean,default:!1},isFactory:{type:Boolean,default:!1},apiInstance:{type:Object,default:()=>No},mittInstance:{type:Object,default:()=>Lo},customCallbacks:{type:Object,default:()=>({})},errorHandler:{type:Object,default:()=>({callback:null,showMessage:!0})}},emits:["error","loaded","custom-msg","socket-msg"],setup(e,{expose:t,emit:r}){const n=r,l=e;let o=L.ref(!1),s=L.ref(""),u=L.ref(!1);const h=L.ref(null),a=L.ref(""),i=L.ref(!1),d=L.computed(()=>{var B;return(B=h.value)==null?void 0:B.stage}),c=L.computed(()=>{var B;return(B=d.value)==null?void 0:B.store}),f=L.computed(()=>he({socketUrl:hs,stationIdKey:C0,userTokenKey:A0,messageDelay:200,debounceDelay:100,enableAutoFit:!0,fitPadding:10,enableWebSocket:!0,graphSocket:cs.GRAPH.SOCKET},l.config)),p=()=>l.apiInstance||No,v=()=>l.mittInstance||Lo,m=(B,U="")=>{const q={error:B,message:U,timestamp:new Date().toISOString()};n("error",q),l.errorHandler.callback?l.errorHandler.callback(q):l.errorHandler.showMessage&&ot&&ot.error(`${U}: ${B.message||B}`)},g=()=>{s.value&&(a.value=s.value,i.value=u.value)},x=B=>{var U,q,Z,$,N,V;try{if(!B)return;if((U=B==null?void 0:B.includes)!=null&&U.call(B,"token 必传"))return ot.warning(B);const M=typeof B=="string"?JSON.parse(B):B;if((M==null?void 0:M.data)==="服务错误"||(Z=(q=M==null?void 0:M.data)==null?void 0:q.includes)!=null&&Z.call(q,"token is expired"))return ot.warning(M.data);switch(n("socket-msg",M),M.action){case fs.ACPOINT.YCVALUE:case fs.ACPOINT.YXVALUE:if(($=M==null?void 0:M.data)!=null&&$.point_id){const O=d.value.find(M.data.point_id);O&&E(O,M.data)}break;default:if(((N=M.data)==null?void 0:N.length)>0){const O=setTimeout(()=>{clearTimeout(O),d.value&&M.data.forEach(H=>{const W=d.value.find(H.dataId||H.point_id);E(W,H)})},f.value.messageDelay);l.customCallbacks.onWebSocketMessage&&l.customCallbacks.onWebSocketMessage(M),(V=window.customSocketFn)==null||V.call(window,B)}break}return!0}catch(M){return m(M,"WebSocket消息处理"),!0}},y=B=>He(this,null,function*(){var U;try{if(B.params){const q=JSON.parse(B.params);switch(q.action){case ct.CHANGE_GRAPH:(q==null?void 0:q.data)!=="图纸id"?(s.value=a.value,u.value=i.value,o.value=q.isBack,(U=q==null?void 0:q.data)!=null&&U.startsWith("/")?(a.value=q==null?void 0:q.data,i.value=!0):(i.value=!1,F(q.data))):console.warn("切换图纸信息为空");break;case ct.NOTIFY_DIALOG:q.msg!=="通知内容"?Ov(he({message:q.msg},q)):console.warn("通知内容为空");break}}n("custom-msg",B),l.customCallbacks.onCustomMessage&&l.customCallbacks.onCustomMessage(B)}catch(q){m(q,"自定义消息处理")}}),w=B=>{var U,q,Z;try{n("loaded",B);const $=I(),N=f.value,V=_0.getSession(N.stationIdKey),M=_0.getSession(N.userTokenKey);N.enableWebSocket&&V&&M&&((q=(U=B.store)==null?void 0:U.data)!=null&&q.websocket?(Z=B.store.data.websocket)!=null&&Z.includes("station_id")||(B.store.data.websocket=`${B.store.data.websocket}?station_id=${V}`):(B.store.data.websocket=`${N.socketUrl}?station_id=${V}`,B.store.data.websocketProtocols=M,B.connectWebsocket())),(l.showMap||$.showMap==="true")&&B.showMap(),B.setRule({rule:!1}),B.setOptions({disableRuleLine:!0}),B.setGrid({grid:!1}),B.lock(Pe.LockState.DisableEdit),K().forEach(H=>{var W;(W=H==null?void 0:H.events)!=null&&W.length?D({id:H.id,locked:1},!1):D({id:H.id,locked:10},!1)}),B.render(),N.enableAutoFit&&B.fitView(!0,N.fitPadding),Object.values(ct).forEach(H=>{B.on(H,y)}),B&&(B.socketFn=x),l.customCallbacks.onStageLoaded&&l.customCallbacks.onStageLoaded(B),l.isInitData&&T(B)}catch($){m($,"图纸加载完成处理")}},F=B=>He(this,null,function*(){var U;try{if(l.url){a.value=l.url,i.value=l.local;return}const q=I();if(B=B||l.gid||q.id,q.local==="true"&&(i.value=!0),B){const Z=p();if(Z&&Z.getCommonApi){const $=yield Z.getCommonApi(l.isFactory?"graph":"floorplan",{guid:B});if((U=$.data)!=null&&U.length)a.value=$.data[0].path,l.customCallbacks.onGraphLoaded&&l.customCallbacks.onGraphLoaded(a.value);else{const N="未找到图纸!";m(new Error(N),"获取图纸数据")}}else m(new Error("API实例不可用"),"初始化图纸数据!")}else a.value=l.url,i.value=l.local}catch(q){m(q,"获取图纸数据失败")}}),T=B=>He(this,null,function*(){var U,q,Z;if(B){let $=[],N=[],V=[];const M=B.store.data.pens;for(let O=0;O<M.length;O++){const H=M[O];H.bindDataId&&(U=H.form)!=null&&U.length&&H.form.forEach(W=>{if(W.dataIds.dataId)switch(W.dataIds.dataType){case Ni.YC:$.push(_e(he({},W),{nodeName:W.dataIds.name,penId:H.id,penName:H.penName}));break;case Ni.YX:N.push(_e(he({},W),{nodeName:W.dataIds.name,penId:H.id,penName:H.penName}));break;case Ni.POINT:V.push(_e(he({},W),{nodeName:W.dataIds.name,penId:H.id,penName:H.penName}));break}})}if($.length){const O=p();if(O&&O.postCommonApi){const H=yield O.postCommonApi("queryrealtimepoint",{point_id:$.map(W=>{var ee;return(ee=W==null?void 0:W.dataIds)==null?void 0:ee.dataId}).join(",")});(q=H==null?void 0:H.data)!=null&&q.length&&H.data.forEach(W=>{const ee=B.find(W.guid);E(ee,_e(he({},W),{value:ds(W.value)?Number(W.value):W.value,value_disp:W.value_disp,alarm_value:W.alarm_value,point_id:W.guid}))})}}if(N.length){const O=p();if(O&&O.postCommonApi){const H=yield O.postCommonApi("queryrealtimepoint",{point_id:N.map(W=>{var ee;return(ee=W==null?void 0:W.dataIds)==null?void 0:ee.dataId}).join(",")});(Z=H==null?void 0:H.data)!=null&&Z.length&&H.data.forEach(W=>{const ee=B.find(W.guid);E(ee,_e(he({},W),{value:ds(W.value)?Number(W.value):W.value,value_disp:W.value_disp,alarm_value:W.alarm_value,point_id:W.guid}))})}}}}),I=()=>{var Z;const B={},U=((Z=window.location.href.split("?"))==null?void 0:Z[1])||"",q=new URLSearchParams(U);for(const[$,N]of q.entries())B[$]=N;return B},D=(B,U=!0)=>{if(d.value)return d.value.setValue(B,{render:U})},X=()=>d.value,K=()=>{var B,U;return((U=(B=c.value)==null?void 0:B.data)==null?void 0:U.pens)||[]},E=(()=>{let B=null;const U=new Map,q=new Map,Z=N=>{var M;if(!((M=N.children)!=null&&M.length))return[];const V=N.id||"";if(!V)return[];if(!q.has(V)&&c.value){const O=Pe.getAllChildren(N,c.value);q.set(V,O)}return q.get(V)||[]},$=()=>{if(U.size===0||!d.value||!c.value)return;const N=[],V=[],M=c.value.animates;U.forEach(({pen:O,dataItem:H,formKey:W})=>{switch(W){case"showChild":D({id:O.id,showChild:H.value},!1);break;case"text":D({id:O.id,text:H.value_disp||H.value},!1);break;case"light_plate":{const ee=H.value===-1||E0(H)?"#999999":Ju[H.value!==void 0?H.value:H.alarm_value],oe=H.value===-1||E0(H)?"#cccccc":Zu[H.value!==void 0?H.value:H.alarm_value];D({id:O.id,textColor:ee,background:oe},!1)}break;case"point_value":O.penType===Be.POINT_VALUE&&Z(O).forEach(oe=>{oe.name==="text"&&D({id:oe.id,text:H.value},!1)});break;case"online_state":{let ee=H.value?void 0:"contrast(0%)";D({id:O.id,filter:ee},!1),Z(O).forEach(ie=>{D({id:ie.id,filter:ee},!1)})}break;case"charged_state":{const ee=H.value===c1.OFFLINE?"contrast(0%)":void 0;ee!==O.filter&&(D({id:O.id,filter:ee},!1),Z(O).forEach(ie=>{D({id:ie.id,filter:ee},!1)}))}break;case"electric_direction":H.value===f1.STOP?M!=null&&M.has(O)&&V.push(O):!!H.value!==O.animateReverse&&(D({id:O.id,animateReverse:!!H.value},!1),M!=null&&M.has(O)||N.push(O));break;case"electric_size":{const ee=h1[H.value];ee!==void 0&&ee!==O.lineWidth&&D({id:O.id,lineWidth:ee},!1)}break;default:D({id:O.id,[W]:H.value},!1);break}}),V.length>0&&d.value.stopAnimate(V),N.length>0&&d.value.startAnimate(N),U.clear(),d.value.render()};return(N,V)=>{N!=null&&N.length&&(N.forEach(M=>{const O=M.form;O!=null&&O.length&&O.forEach(H=>{if(!(Array.isArray(H.dataIds)?H.dataIds:[H.dataIds]).some(ie=>(ie==null?void 0:ie.dataId)&&((ie==null?void 0:ie.dataId)===V.dataId||(ie==null?void 0:ie.dataId)===V.point_id)))return;const oe=`${M.id}-${H.key}`;U.set(oe,{pen:M,dataItem:V,formKey:H.key})})}),B&&clearTimeout(B),B=setTimeout(()=>{$(),B=null},f.value.debounceDelay))}})(),A=B=>{if(d.value){for(let U=0;U<B.length;U++){const q=B[U],Z=d.value.find(q.dataId);E(Z,q)}d.value.render(),l.customCallbacks.onBatchUpdate&&l.customCallbacks.onBatchUpdate(B)}},C=(B,U=!1)=>{if(!d.value)return;const q=K();for(let Z=0;Z<q.length;Z++){const $=q[Z];let N=!1;U?N=B===$.dataProp:N=B===5?!0:$.dataProp<=B,D({id:$.id,visible:N},!1)}d.value.fitView(),d.value.render(),l.customCallbacks.onLevelChange&&l.customCallbacks.onLevelChange(B,U)};return L.watch(()=>[l.url,l.isFactory,l.local,l.data,l.gid],()=>{F()}),L.watch(()=>l.showMap,B=>{d.value&&(B?d.value.showMap():d.value.hideMap())}),L.onMounted(()=>{const B=v();B&&B.on&&B.on(f.value.graphSocket,x),F()}),L.onUnmounted(()=>{const B=v();B&&B.off&&B.off(f.value.graphSocket,x)}),t({setValue:D,getStage:X,getAllPens:K,batchUpdatePen:A,handleLineCross:sl.handleLineCross,changeVisibleByLevel:C}),(B,U)=>(L.openBlock(),L.createElementBlock("div",iy,[L.createVNode(ny,{ref_key:"graphRef",ref:h,url:a.value,local:i.value,data:l.data,preview:"",onLoaded:w},null,8,["url","local","data"]),L.unref(o)?(L.openBlock(),L.createElementBlock("div",oy,[L.createVNode(L.unref(uv),{type:"primary",onClick:g},{default:L.withCtx(()=>[...U[0]||(U[0]=[L.createTextVNode("返回",-1)])]),_:1})])):L.createCommentVNode("",!0)]))}}),Lr=tc(ay,[["__scopeId","data-v-a761e754"]]);Lr.name||(Lr.name="SyGraph");const sy=e=>{e.component(Lr.name||"SyGraph",Lr)},ly={install:sy};exports.SyGraph=Lr;exports.default=ly;
|
|
44
|
+
</div>`;e.message({content:o,duration:0,closeBtn:!0,placement:"right",height:75}),(s=t.payload.detail)!=null&&s.alarmConfigId&&Pv(e,(u=t.payload.detail)==null?void 0:u.alarmConfigId)}globalThis.doWarning=Rv;function Ov(e){const t=new Date(e),r=t.getFullYear(),n=(t.getMonth()+1+"").padStart(2,"0"),l=(t.getDate()+"").padStart(2,"0"),o=(t.getHours()+"").padStart(2,"0"),s=(t.getMinutes()+"").padStart(2,"0"),u=(t.getSeconds()+"").padStart(2,"0");return r+"-"+n+"-"+l+" "+o+":"+s+":"+u}function Pv(e,t){return He(this,null,function*(){const r=yield fetch(`/api/alarm/config/${t}`,{headers:{"X-Access-Token":localStorage.getItem("X-Access-Token")||new URLSearchParams(location.search).get("X-Access-Token")||"","Content-Type":"application/json"},method:"GET"});if(r.ok){let n=yield r.json();n.result.media&&Lu(e,n.result.media,n.result.playTimes)}})}function Lu(e,t,r){if(e.store.globalAudio||(e.store.globalAudio=document.createElement("audio")),e.store.globalAudio.src=t,e.store.globalAudio.play(),r===-1)e.store.globalAudio.loop=!0;else{e.store.globalAudio.loop=!1;let n=0;e.store.globalAudio.onended=()=>{n++,n<r&&e.store.globalAudio.play()}}}globalThis.createAudio=Lu;const Mv="original_meta2d";function Nv(){return localStorage.removeItem(Mv)}let kr={};const Lv=e=>{const t=document.querySelectorAll("video");let r=null;if(t.forEach(l=>{l.getAttribute("src")===e.video&&(r=l)}),!r)return;r.setAttribute("muted","muted"),r.setAttribute("autoplay","autoplay"),r.setAttribute("loop","loop"),r.setAttribute("crossorigin",""),r.setAttribute("controls",""),r.style.display="none",r.parentElement.style.border="2px solid #ffc878";const n=new JessibucaPro({container:r.parentElement,background:"",hasControl:!1,controlAutoHide:!0,checkFirstIFrame:!0,debug:!1,decoder:"./wasm/decoder-pro.js",forceNoOffscreen:!0,hotKey:!1,hasAudio:!1,hasVideo:!0,hiddenAutoPause:!1,isFlv:!0,isResize:!1,isNotMute:!0,loadingIcon:!0,loadingText:"加载中...",networkDelayTimeoutReplay:!1,playbackForwardMaxRateDecodeIFrame:8,showBandwidth:!1,showPerformance:!1,syncAudioAndVideo:!0,supportDblclickFullscreen:!1,timeout:10,useMSE:!0,useWCS:!1,useSIMD:!0,useVideoRender:!0,useCanvasRender:!1,videoBuffer:.2,videoBufferDelay:1});return e.autoPlay&&e.streamUrl&&n.play(e.streamUrl),kr[e.id]=n,n},Uv=()=>{Object.keys(kr).forEach(e=>{kr[e].destroy(),kr[e]=null}),kr={}},Uu=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r},zv=Object.assign({name:"Meta2dEditor"},{__name:"index",props:{url:{type:String,default:""},data:{type:Object,default:()=>{}},local:{type:Boolean,default:!1},preview:{type:Boolean,default:!1},devConfig:{type:Object,default:()=>({isDev:!1,devServerUrl:"",devServerPort:8443})}},emits:["loaded"],setup(e,{expose:t,emit:r}){const n=r,l=e,o=N.ref(null),s=N.shallowRef(),u=N.computed(()=>!!(l.data||l.url));N.watch(()=>[l.data,l.url],()=>{u.value&&h()});function h(){return He(this,null,function*(){try{if(yield N.nextTick(),!o.value){console.error("未找到meta2d元素!");return}let m=null;if(l.data?m=l.data:l.url&&(m=yield p()),!m||!m.data){console.log("图纸数据为空");return}const g=m.options||{background:"#eee",disableAnchor:!1};if(s.value&&(s.value.destroy(!0),s.value=null),!o.value){console.error("Meta2D 容器元素不可用");return}s.value=new Pe.Meta2d(o.value,he({},g)),g.visibleLevel&&s.value.scale(g.visibleLevel),a(),i(),yield d(m.data),s.value.render(),c(),setTimeout(()=>{window.meta2dTools&&window.registerToolsNew()},1e3),n("loaded",s.value)}catch(m){console.error("初始化编辑器失败:",m)}})}function a(){if(!s.value)return;new Fv({}).initPlugin(s.value,"mindNode",{})}function i(){Pe.register(_c.classPens()),Pe.register(ba.flowPens()),Pe.registerAnchors(ba.flowAnchors()),Pe.register(wa.sequencePens()),Pe.registerCanvasDraw(wa.sequencePensbyCtx()),Pe.register(_a.activityDiagram()),Pe.registerCanvasDraw(_a.activityDiagramByCtx()),Pe.registerCanvasDraw(wc.formPens()),Pe.registerCanvasDraw(Ec.chartsPens()),Pe.register(hi.ftaPens()),Pe.registerAnchors(hi.ftaAnchors()),Pe.registerCanvasDraw(hi.ftaPensbyCtx())}function d(m){if(s.value){if(typeof m.locked=="undefined"&&(m.locked=0),m.bkImage&&s.value.setBackgroundImage(m.bkImage),m.pens&&m.pens.length>0){const g=[];m.pens.forEach(w=>{w.name==="video"&&w.streamUrl?g.push(w):w.name==="image"&&w.image&&(w.image=Tv(w.image,l.devConfig))}),g.length>0&&setTimeout(()=>{g.forEach(w=>{Lv(w)})},500);const x=window.meta.graph.penCountThreshold||2e3;m.pens.length>x&&m.scale&&m.pens.forEach(w=>{const k=w.visibleLevel;k!==void 0?(w.visible=m.scale>=k,w.visible||(w.disabled=!0,w.locked=Pe.LockState.Disable)):(w.visible=!0,w.disabled=!1,w.locked=Pe.LockState.None)})}s.value.open(m)}}function c(){s.value&&s.value.on("scale",f)}const f=On.debounce(m=>{var g,x,y,w;try{if(!s.value)return;Lo.emit("graph-scale",m);let k=s.value.store.data.pens;const T=window.meta.graph.penCountThreshold||2e3,F=k.length>T;for(let I=0;I<k.length;I++){const G=k[I];if([Se.VIDEO_STREAM,Se.MP4].includes(G.penType)){if(((x=(g=sr[G.id])==null?void 0:g.children)==null?void 0:x.length)===3){let K=sr[G.id].children[0],E=sr[G.id].children[2];K.style.width=E.currentTime/E.duration*G.calculative.worldRect.width+"px"}else if(((w=(y=sr[G.id])==null?void 0:y.children)==null?void 0:w.length)===2){let K=sr[G.id].children[0],E=sr[G.id].children[1];K.style.width=E.currentTime/E.duration*G.calculative.worldRect.width+"px"}}if(F){const K=G.visibleLevel!==void 0?m>=G.visibleLevel:!0;s.value._setValue({id:G.id,visible:K,disabled:!K,locked:K?Pe.LockState.None:Pe.LockState.Disable})}}s.value.render()}catch(k){console.error("处理缩放失败:",k)}},500);function p(){return He(this,null,function*(){return l.url?(yield No.getGraphApi(l.url,{local:l.local}))||null:(ot.error("图纸路径为空!"),null)})}const v=()=>{s.value&&s.value.resize()};return N.onMounted(()=>{u.value&&h(),window.document.addEventListener("resize",v)}),N.onUnmounted(()=>{Uv(),Nv(),s.value&&(l.preview?(V0.clearLineCross(),s.value.destroy(!0)):s.value.off("scale",f)),window.document.removeEventListener("resize",v)}),t({stage:s}),(m,g)=>(N.openBlock(),N.createElementBlock("div",{ref_key:"meta2dRef",ref:o,class:"meta2d-editor"},null,512))}}),qv=Uu(zv,[["__scopeId","data-v-0f2164ce"]]),jv={class:"preview-container"},Hv={key:0,class:"back-btn"},$v=Object.assign({name:"Meta2dPreview"},{__name:"index",props:{url:{type:String,default:""},gid:{type:String,default:""},data:{type:Object,default:null},local:{type:Boolean,default:!1},isInitData:{type:Boolean,default:!0},config:{type:Object,default:()=>({socketUrl:hs,stationIdKey:C0,userTokenKey:A0,messageDelay:200,debounceDelay:100,enableAutoFit:!0,enableWebSocket:!0,graphSocket:cs.GRAPH.SOCKET})},showMap:{type:Boolean,default:!1},isFactory:{type:Boolean,default:!1},apiInstance:{type:Object,default:()=>No},mittInstance:{type:Object,default:()=>Lo},customCallbacks:{type:Object,default:()=>({})},errorHandler:{type:Object,default:()=>({callback:null,showMessage:!0})},devConfig:{type:Object,default:()=>({isDev:!1,devServerUrl:"",devServerPort:8443})}},emits:["error","loaded","custom-msg","socket-msg"],setup(e,{expose:t,emit:r}){const n=r,l=e;let o=N.ref(!1),s=N.ref(""),u=N.ref(!1);const h=N.ref(null),a=N.ref(""),i=N.ref(!1),d=N.computed(()=>{var P;return(P=h.value)==null?void 0:P.stage}),c=N.computed(()=>{var P;return(P=d.value)==null?void 0:P.store}),f=N.computed(()=>he({socketUrl:hs,stationIdKey:C0,userTokenKey:A0,messageDelay:200,debounceDelay:100,enableAutoFit:!0,fitPadding:10,enableWebSocket:!0,graphSocket:cs.GRAPH.SOCKET},l.config)),p=()=>l.apiInstance||No,v=()=>l.mittInstance||Lo,m=(P,j="")=>{const Z={error:P,message:j,timestamp:new Date().toISOString()};n("error",Z),l.errorHandler.callback?l.errorHandler.callback(Z):l.errorHandler.showMessage&&ot&&ot.error(`${j}: ${P.message||P}`)},g=()=>{s.value&&(a.value=s.value,i.value=u.value)},x=P=>{var j,Z,V,L,H,U;try{if(!P)return;if((j=P==null?void 0:P.includes)!=null&&j.call(P,"token 必传"))return ot.warning(P);const O=typeof P=="string"?JSON.parse(P):P;if((O==null?void 0:O.data)==="服务错误"||(V=(Z=O==null?void 0:O.data)==null?void 0:Z.includes)!=null&&V.call(Z,"token is expired"))return ot.warning(O.data);switch(n("socket-msg",O),O.action){case fs.ACPOINT.YCVALUE:case fs.ACPOINT.YXVALUE:if((L=O==null?void 0:O.data)!=null&&L.point_id){const W=d.value.find(O.data.point_id);W&&A(W,O.data)}break;default:if(((H=O.data)==null?void 0:H.length)>0){const W=setTimeout(()=>{clearTimeout(W),d.value&&O.data.forEach($=>{const J=d.value.find($.dataId||$.point_id);A(J,$)})},f.value.messageDelay);l.customCallbacks.onWebSocketMessage&&l.customCallbacks.onWebSocketMessage(O),(U=window.customSocketFn)==null||U.call(window,P)}break}return!0}catch(O){return m(O,"WebSocket消息处理"),!0}},y=P=>He(this,null,function*(){var j;try{if(P.params){const Z=JSON.parse(P.params);switch(Z.action){case ct.CHANGE_GRAPH:(Z==null?void 0:Z.data)!=="图纸id"?(s.value=a.value,u.value=i.value,o.value=Z.isBack,(j=Z==null?void 0:Z.data)!=null&&j.startsWith("/")?(a.value=Z==null?void 0:Z.data,i.value=!0):(i.value=!1,k(Z.data))):console.warn("切换图纸信息为空");break;case ct.NOTIFY_DIALOG:Z.msg!=="通知内容"?gv(he({message:Z.msg},Z)):console.warn("通知内容为空");break}}n("custom-msg",P),l.customCallbacks.onCustomMessage&&l.customCallbacks.onCustomMessage(P)}catch(Z){m(Z,"自定义消息处理")}}),w=P=>{var j,Z,V;try{n("loaded",P);const L=F(),H=f.value,U=_0.getSession(H.stationIdKey),O=_0.getSession(H.userTokenKey);H.enableWebSocket&&U&&O&&((Z=(j=P.store)==null?void 0:j.data)!=null&&Z.websocket?((V=P.store.data.websocket)!=null&&V.includes("station_id")||(P.store.data.websocket=`${P.store.data.websocket}?station_id=${U}`),P.store.data.websocketProtocols=O,P.closeSocket(),P.connectSocket()):(P.store.data.websocket=`${H.socketUrl}?station_id=${U}`,P.store.data.websocketProtocols=O,P.connectWebsocket())),(l.showMap||L.showMap==="true")&&P.showMap(),P.setRule({rule:!1}),P.setOptions({disableRuleLine:!0}),P.setGrid({grid:!1}),P.lock(Pe.LockState.DisableEdit),K().forEach($=>{var J;(J=$==null?void 0:$.events)!=null&&J.length?I({id:$.id,locked:1},!1):I({id:$.id,locked:10},!1)}),P.render(),H.enableAutoFit&&P.fitView(!0,H.fitPadding),Object.values(ct).forEach($=>{P.on($,y)}),P&&(P.socketFn=x),l.customCallbacks.onStageLoaded&&l.customCallbacks.onStageLoaded(P),l.isInitData&&T(P)}catch(L){m(L,"图纸加载完成处理")}},k=P=>He(this,null,function*(){var j;try{if(l.url){a.value=l.url,i.value=l.local;return}const Z=F();if(P=P||l.gid||Z.id,Z.local==="true"&&(i.value=!0),P){const V=p();if(V&&V.getCommonApi){const L=yield V.getCommonApi(l.isFactory?"graph":"floorplan",{guid:P});if((j=L.data)!=null&&j.length)a.value=L.data[0].path,l.customCallbacks.onGraphLoaded&&l.customCallbacks.onGraphLoaded(a.value);else{const H="未找到图纸!";m(new Error(H),"获取图纸数据")}}else m(new Error("API实例不可用"),"初始化图纸数据!")}else a.value=l.url,i.value=l.local}catch(Z){m(Z,"获取图纸数据失败")}}),T=P=>He(this,null,function*(){var j,Z,V;if(P){let L=[],H=[],U=[];const O=P.store.data.pens;for(let W=0;W<O.length;W++){const $=O[W];$.bindDataId&&(j=$.form)!=null&&j.length&&$.form.forEach(J=>{if(J.dataIds.dataId)switch(J.dataIds.dataType){case Ni.YC:L.push(_e(he({},J),{nodeName:J.dataIds.name,penId:$.id,penName:$.penName}));break;case Ni.YX:H.push(_e(he({},J),{nodeName:J.dataIds.name,penId:$.id,penName:$.penName}));break;case Ni.POINT:U.push(_e(he({},J),{nodeName:J.dataIds.name,penId:$.id,penName:$.penName}));break}})}if(L.length){const W=p();if(W&&W.postCommonApi){const $=yield W.postCommonApi("queryrealtimepoint",{point_id:L.map(J=>{var ie;return(ie=J==null?void 0:J.dataIds)==null?void 0:ie.dataId}).join(",")});(Z=$==null?void 0:$.data)!=null&&Z.length&&$.data.forEach(J=>{const ie=P.find(J.guid);A(ie,_e(he({},J),{value:ds(J.value)?Number(J.value):J.value,value_disp:J.value_disp,alarm_value:J.alarm_value,point_id:J.guid}))})}}if(H.length){const W=p();if(W&&W.postCommonApi){const $=yield W.postCommonApi("queryrealtimepoint",{point_id:H.map(J=>{var ie;return(ie=J==null?void 0:J.dataIds)==null?void 0:ie.dataId}).join(",")});(V=$==null?void 0:$.data)!=null&&V.length&&$.data.forEach(J=>{const ie=P.find(J.guid);A(ie,_e(he({},J),{value:ds(J.value)?Number(J.value):J.value,value_disp:J.value_disp,alarm_value:J.alarm_value,point_id:J.guid}))})}}}}),F=()=>{var V;const P={},j=((V=window.location.href.split("?"))==null?void 0:V[1])||"",Z=new URLSearchParams(j);for(const[L,H]of Z.entries())P[L]=H;return P},I=(P,j=!0)=>{if(d.value)return d.value.setValue(P,{render:j})},G=()=>d.value,K=()=>{var P,j;return((j=(P=c.value)==null?void 0:P.data)==null?void 0:j.pens)||[]},E=()=>Se,A=(()=>{let P=null;const j=new Map,Z=new Map,V=H=>{var O;if(!((O=H.children)!=null&&O.length))return[];const U=H.id||"";if(!U)return[];if(!Z.has(U)&&c.value){const W=Pe.getAllChildren(H,c.value);Z.set(U,W)}return Z.get(U)||[]},L=()=>{if(j.size===0||!d.value||!c.value)return;const H=[],U=[],O=c.value.animates;j.forEach(({pen:W,dataItem:$,formKey:J})=>{switch(J){case"showChild":I({id:W.id,showChild:$.value},!1);break;case"text":I({id:W.id,text:$.value_disp||$.value},!1);break;case"light_plate":{const ie=$.value===-1||E0($)?"#999999":Nu[$.value!==void 0?$.value:$.alarm_value],ae=$.value===-1||E0($)?"#cccccc":Mu[$.value!==void 0?$.value:$.alarm_value];I({id:W.id,textColor:ie,background:ae},!1)}break;case"point_value":W.penType===Se.POINT_VALUE&&V(W).forEach(ae=>{ae.name==="text"&&I({id:ae.id,text:$.value},!1)});break;case"online_state":{let ie=$.value?void 0:"contrast(0%)";I({id:W.id,filter:ie},!1),V(W).forEach(oe=>{I({id:oe.id,filter:ie},!1)})}break;case"charged_state":{const ie=$.value===Gd.OFFLINE?"contrast(0%)":void 0;ie!==W.filter&&(I({id:W.id,filter:ie},!1),V(W).forEach(oe=>{I({id:oe.id,filter:ie},!1)}))}break;case"electric_direction":$.value===Qd.STOP?O!=null&&O.has(W)&&U.push(W):!!$.value!==W.animateReverse&&(I({id:W.id,animateReverse:!!$.value},!1),O!=null&&O.has(W)||H.push(W));break;case"electric_size":{const ie=Yd[$.value];ie!==void 0&&ie!==W.lineWidth&&I({id:W.id,lineWidth:ie},!1)}break;default:I({id:W.id,[J]:$.value},!1);break}}),U.length>0&&d.value.stopAnimate(U),H.length>0&&d.value.startAnimate(H),j.clear(),d.value.render()};return(H,U)=>{H!=null&&H.length&&(H.forEach(O=>{const W=O.form;W!=null&&W.length&&W.forEach($=>{if(!(Array.isArray($.dataIds)?$.dataIds:[$.dataIds]).some(oe=>(oe==null?void 0:oe.dataId)&&((oe==null?void 0:oe.dataId)===U.dataId||(oe==null?void 0:oe.dataId)===U.point_id)))return;const ae=`${O.id}-${$.key}`;j.set(ae,{pen:O,dataItem:U,formKey:$.key})})}),P&&clearTimeout(P),P=setTimeout(()=>{L(),P=null},f.value.debounceDelay))}})(),S=P=>{if(d.value){for(let j=0;j<P.length;j++){const Z=P[j],V=d.value.find(Z.dataId);A(V,Z)}d.value.render(),l.customCallbacks.onBatchUpdate&&l.customCallbacks.onBatchUpdate(P)}},D=(P,j=!1)=>{if(!d.value)return;const Z=K();for(let V=0;V<Z.length;V++){const L=Z[V];let H=!1;j?H=P===L.dataProp:H=P===5?!0:L.dataProp<=P,I({id:L.id,visible:H},!1)}d.value.fitView(),d.value.render(),l.customCallbacks.onLevelChange&&l.customCallbacks.onLevelChange(P,j)};return N.watch(()=>[l.url,l.isFactory,l.local,l.data,l.gid],()=>{k()}),N.watch(()=>l.showMap,P=>{d.value&&(P?d.value.showMap():d.value.hideMap())}),N.onMounted(()=>{const P=v();P&&P.on&&P.on(f.value.graphSocket,x),k()}),N.onUnmounted(()=>{const P=v();P&&P.off&&P.off(f.value.graphSocket,x)}),t({setValue:I,getStage:G,getAllPens:K,getCustomPenType:E,batchUpdatePen:S,handleLineCross:V0.handleLineCross,changeVisibleByLevel:D}),(P,j)=>(N.openBlock(),N.createElementBlock("div",jv,[N.createVNode(qv,{ref_key:"graphRef",ref:h,url:a.value,local:i.value,data:l.data,"dev-config":l.devConfig,preview:"",onLoaded:w},null,8,["url","local","data","dev-config"]),N.unref(o)?(N.openBlock(),N.createElementBlock("div",Hv,[N.createVNode(N.unref(K2),{type:"primary",onClick:g},{default:N.withCtx(()=>[...j[0]||(j[0]=[N.createTextVNode("返回",-1)])]),_:1})])):N.createCommentVNode("",!0)]))}}),Lr=Uu($v,[["__scopeId","data-v-f0fa9f5e"]]);Lr.name||(Lr.name="SyGraph");const Vv=e=>{e.component(Lr.name||"SyGraph",Lr)},Wv={install:Vv};exports.SyGraph=Lr;exports.default=Wv;
|