@syhr/sy-graph 1.0.0 → 1.0.1
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/README.md +186 -23
- package/lib/sy-graph.cjs +1 -1
- package/lib/{sy-graph.es.js → sy-graph.mjs} +1 -1
- package/lib/sy-graph.umd.js +13 -12
- package/package.json +29 -17
- /package/lib/{style.css → graph.css} +0 -0
package/lib/sy-graph.umd.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
(function(ae,re){typeof exports=="object"&&typeof module!="undefined"?re(exports,require("vue"),require("lodash-es"),require("element-plus"),require("@meta2d/utils"),require("@meta2d/core"),require("@meta2d/plugin-mind-core"),require("@meta2d/plugin-mind-collapse"),require("@meta2d/form-diagram"),require("@meta2d/class-diagram"),require("@meta2d/le5le-charts"),require("@meta2d/flow-diagram"),require("@meta2d/fta-diagram"),require("@meta2d/sequence-diagram"),require("@meta2d/activity-diagram")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","element-plus","@meta2d/utils","@meta2d/core","@meta2d/plugin-mind-core","@meta2d/plugin-mind-collapse","@meta2d/form-diagram","@meta2d/class-diagram","@meta2d/le5le-charts","@meta2d/flow-diagram","@meta2d/fta-diagram","@meta2d/sequence-diagram","@meta2d/activity-diagram"],re):(ae=typeof globalThis!="undefined"?globalThis:ae||self,re(ae.SyGraph={},ae.Vue,ae._,ae.ElementPlus,ae.Meta2dUtils,ae.Meta2dCore,ae.Meta2dPluginMindCore,ae.Meta2dPluginMindCollapse,ae.Meta2dFormDiagram,ae.Meta2dClassDiagram,ae.Meta2dLe5leCharts,ae.Meta2dFlowDiagram,ae.Meta2dFtaDiagram,ae.Meta2dSequenceDiagram,ae.Meta2dActivityDiagram))})(this,function(ae,re,me,we,ke,de,Ue,Ve,Ie,rt,_r,ar,sr,st,gi){"use strict";var dx=Object.defineProperty,px=Object.defineProperties;var vx=Object.getOwnPropertyDescriptors;var Ms=Object.getOwnPropertySymbols;var yx=Object.prototype.hasOwnProperty,mx=Object.prototype.propertyIsEnumerable;var or=(ae,re)=>(re=Symbol[ae])?re:Symbol.for("Symbol."+ae),gx=ae=>{throw TypeError(ae)};var vi=(ae,re,me)=>re in ae?dx(ae,re,{enumerable:!0,configurable:!0,writable:!0,value:me}):ae[re]=me,te=(ae,re)=>{for(var me in re||(re={}))yx.call(re,me)&&vi(ae,me,re[me]);if(Ms)for(var me of Ms(re))mx.call(re,me)&&vi(ae,me,re[me]);return ae},Le=(ae,re)=>px(ae,vx(re));var It=(ae,re,me)=>vi(ae,typeof re!="symbol"?re+"":re,me);var Qe=(ae,re,me)=>new Promise((we,ke)=>{var de=Ie=>{try{Ve(me.next(Ie))}catch(rt){ke(rt)}},Ue=Ie=>{try{Ve(me.throw(Ie))}catch(rt){ke(rt)}},Ve=Ie=>Ie.done?we(Ie.value):Promise.resolve(Ie.value).then(de,Ue);Ve((me=me.apply(ae,re)).next())}),Gt=function(ae,re){this[0]=ae,this[1]=re},yi=(ae,re,me)=>{var we=(Ue,Ve,Ie,rt)=>{try{var _r=me[Ue](Ve),ar=(Ve=_r.value)instanceof Gt,sr=_r.done;Promise.resolve(ar?Ve[0]:Ve).then(st=>ar?we(Ue==="return"?Ue:"next",Ve[1]?{done:st.done,value:st.value}:st,Ie,rt):Ie({value:st,done:sr})).catch(st=>we("throw",st,Ie,rt))}catch(st){rt(st)}},ke=Ue=>de[Ue]=Ve=>new Promise((Ie,rt)=>we(Ue,Ve,Ie,rt)),de={};return me=me.apply(ae,re),de[or("asyncIterator")]=()=>de,ke("next"),ke("throw"),ke("return"),de},mi=ae=>{var re=ae[or("asyncIterator")],me=!1,we,ke={};return re==null?(re=ae[or("iterator")](),we=de=>ke[de]=Ue=>re[de](Ue)):(re=re.call(ae),we=de=>ke[de]=Ue=>{if(me){if(me=!1,de==="throw")throw Ue;return Ue}return me=!0,{done:!1,value:new Gt(new Promise(Ve=>{var Ie=re[de](Ue);Ie instanceof Object||gx("Object expected"),Ve(Ie)}),1)}}),ke[or("iterator")]=()=>ke,we("next"),"throw"in re?we("throw"):ke.throw=de=>{throw de},"return"in re&&we("return"),ke},Ls=(ae,re,me)=>(re=ae[or("asyncIterator")])?re.call(ae):(ae=ae[or("iterator")](),re={},me=(we,ke)=>(ke=ae[we])&&(re[we]=de=>new Promise((Ue,Ve,Ie)=>(de=ke.call(ae,de),Ie=de.done,Promise.resolve(de.value).then(rt=>Ue({value:rt,done:Ie}),Ve)))),me("next"),me("return"),re);var gs,As,Es,Bs,ws,Cs,bs,Fs,Ds,_s,Ss,Ts;var le=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function A0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ns(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var Vt=TypeError;const Ai=Ns(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var E0=typeof Map=="function"&&Map.prototype,B0=Object.getOwnPropertyDescriptor&&E0?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Sr=E0&&B0&&typeof B0.get=="function"?B0.get:null,Ei=E0&&Map.prototype.forEach,w0=typeof Set=="function"&&Set.prototype,C0=Object.getOwnPropertyDescriptor&&w0?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Tr=w0&&C0&&typeof C0.get=="function"?C0.get:null,Bi=w0&&Set.prototype.forEach,Hs=typeof WeakMap=="function"&&WeakMap.prototype,fr=Hs?WeakMap.prototype.has:null,qs=typeof WeakSet=="function"&&WeakSet.prototype,cr=qs?WeakSet.prototype.has:null,$s=typeof WeakRef=="function"&&WeakRef.prototype,wi=$s?WeakRef.prototype.deref:null,zs=Boolean.prototype.valueOf,Ws=Object.prototype.toString,Gs=Function.prototype.toString,Vs=String.prototype.match,b0=String.prototype.slice,wt=String.prototype.replace,Ks=String.prototype.toUpperCase,Ci=String.prototype.toLowerCase,bi=RegExp.prototype.test,Fi=Array.prototype.concat,xt=Array.prototype.join,js=Array.prototype.slice,Di=Math.floor,F0=typeof BigInt=="function"?BigInt.prototype.valueOf:null,D0=Object.getOwnPropertySymbols,_0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Kt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ur=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Kt||!0)?Symbol.toStringTag:null,_i=Object.prototype.propertyIsEnumerable,Si=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Ti(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||bi.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Di(-t):Di(t);if(n!==t){var i=String(n),o=b0.call(e,i.length+1);return wt.call(i,r,"$&_")+"."+wt.call(wt.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return wt.call(e,r,"$&_")}var S0=Ai,Ii=S0.custom,Ri=Mi(Ii)?Ii:null,Oi={__proto__:null,double:'"',single:"'"},Xs={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Ir=function t(e,r,n,i){var o=r||{};if(Et(o,"quoteStyle")&&!Et(Oi,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Et(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 a=Et(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Et(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(Et(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Ui(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var p=String(e);return s?Ti(e,p):p}if(typeof e=="bigint"){var f=String(e)+"n";return s?Ti(e,f):f}var l=typeof o.depth=="undefined"?5:o.depth;if(typeof n=="undefined"&&(n=0),n>=l&&l>0&&typeof e=="object")return T0(e)?"[Array]":"[Object]";var v=df(o,n);if(typeof i=="undefined")i=[];else if(Li(i,e)>=0)return"[Circular]";function x(S,N,M){if(N&&(i=js.call(i),i.push(N)),M){var H={depth:o.depth};return Et(o,"quoteStyle")&&(H.quoteStyle=o.quoteStyle),t(S,H,n+1,i)}return t(S,o,n+1,i)}if(typeof e=="function"&&!Pi(e)){var A=of(e),y=Rr(e,x);return"[Function"+(A?": "+A:" (anonymous)")+"]"+(y.length>0?" { "+xt.call(y,", ")+" }":"")}if(Mi(e)){var m=Kt?wt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):_0.call(e);return typeof e=="object"&&!Kt?lr(m):m}if(lf(e)){for(var g="<"+Ci.call(String(e.nodeName)),D=e.attributes||[],C=0;C<D.length;C++)g+=" "+D[C].name+"="+ki(Ys(D[C].value),"double",o);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+Ci.call(String(e.nodeName))+">",g}if(T0(e)){if(e.length===0)return"[]";var B=Rr(e,x);return v&&!xf(B)?"["+R0(B,v)+"]":"[ "+xt.call(B,", ")+" ]"}if(Qs(e)){var b=Rr(e,x);return!("cause"in Error.prototype)&&"cause"in e&&!_i.call(e,"cause")?"{ ["+String(e)+"] "+xt.call(Fi.call("[cause]: "+x(e.cause),b),", ")+" }":b.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+xt.call(b,", ")+" }"}if(typeof e=="object"&&a){if(Ri&&typeof e[Ri]=="function"&&S0)return S0(e,{depth:l-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(af(e)){var _=[];return Ei&&Ei.call(e,function(S,N){_.push(x(N,e,!0)+" => "+x(S,e))}),Ni("Map",Sr.call(e),_,v)}if(cf(e)){var T=[];return Bi&&Bi.call(e,function(S){T.push(x(S,e))}),Ni("Set",Tr.call(e),T,v)}if(sf(e))return I0("WeakMap");if(uf(e))return I0("WeakSet");if(ff(e))return I0("WeakRef");if(ef(e))return lr(x(Number(e)));if(rf(e))return lr(x(F0.call(e)));if(tf(e))return lr(zs.call(e));if(Js(e))return lr(x(String(e)));if(typeof window!="undefined"&&e===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&e===globalThis||typeof le!="undefined"&&e===le)return"{ [object globalThis] }";if(!Zs(e)&&!Pi(e)){var k=Rr(e,x),q=Si?Si(e)===Object.prototype:e instanceof Object||e.constructor===Object,X=e instanceof Object?"":"null prototype",I=!q&&ur&&Object(e)===e&&ur in e?b0.call(Ct(e),8,-1):X?"Object":"",P=q||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",G=P+(I||X?"["+xt.call(Fi.call([],I||[],X||[]),": ")+"] ":"");return k.length===0?G+"{}":v?G+"{"+R0(k,v)+"}":G+"{ "+xt.call(k,", ")+" }"}return String(e)};function ki(t,e,r){var n=r.quoteStyle||e,i=Oi[n];return i+t+i}function Ys(t){return wt.call(String(t),/"/g,""")}function Rt(t){return!ur||!(typeof t=="object"&&(ur in t||typeof t[ur]!="undefined"))}function T0(t){return Ct(t)==="[object Array]"&&Rt(t)}function Zs(t){return Ct(t)==="[object Date]"&&Rt(t)}function Pi(t){return Ct(t)==="[object RegExp]"&&Rt(t)}function Qs(t){return Ct(t)==="[object Error]"&&Rt(t)}function Js(t){return Ct(t)==="[object String]"&&Rt(t)}function ef(t){return Ct(t)==="[object Number]"&&Rt(t)}function tf(t){return Ct(t)==="[object Boolean]"&&Rt(t)}function Mi(t){if(Kt)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!_0)return!1;try{return _0.call(t),!0}catch(e){}return!1}function rf(t){if(!t||typeof t!="object"||!F0)return!1;try{return F0.call(t),!0}catch(e){}return!1}var nf=Object.prototype.hasOwnProperty||function(t){return t in this};function Et(t,e){return nf.call(t,e)}function Ct(t){return Ws.call(t)}function of(t){if(t.name)return t.name;var e=Vs.call(Gs.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Li(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function af(t){if(!Sr||!t||typeof t!="object")return!1;try{Sr.call(t);try{Tr.call(t)}catch(e){return!0}return t instanceof Map}catch(e){}return!1}function sf(t){if(!fr||!t||typeof t!="object")return!1;try{fr.call(t,fr);try{cr.call(t,cr)}catch(e){return!0}return t instanceof WeakMap}catch(e){}return!1}function ff(t){if(!wi||!t||typeof t!="object")return!1;try{return wi.call(t),!0}catch(e){}return!1}function cf(t){if(!Tr||!t||typeof t!="object")return!1;try{Tr.call(t);try{Sr.call(t)}catch(e){return!0}return t instanceof Set}catch(e){}return!1}function uf(t){if(!cr||!t||typeof t!="object")return!1;try{cr.call(t,cr);try{fr.call(t,fr)}catch(e){return!0}return t instanceof WeakSet}catch(e){}return!1}function lf(t){return!t||typeof t!="object"?!1:typeof HTMLElement!="undefined"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Ui(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Ui(b0.call(t,0,e.maxStringLength),e)+n}var i=Xs[e.quoteStyle||"single"];i.lastIndex=0;var o=wt.call(wt.call(t,i,"\\$1"),/[\x00-\x1f]/g,hf);return ki(o,"single",e)}function hf(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Ks.call(e.toString(16))}function lr(t){return"Object("+t+")"}function I0(t){return t+" { ? }"}function Ni(t,e,r,n){var i=n?R0(r,n):xt.call(r,", ");return t+" ("+e+") {"+i+"}"}function xf(t){for(var e=0;e<t.length;e++)if(Li(t[e],`
|
|
2
|
-
|
|
1
|
+
(function(ae,re){typeof exports=="object"&&typeof module!="undefined"?re(exports,require("vue"),require("lodash-es"),require("element-plus"),require("@meta2d/utils"),require("@meta2d/core"),require("@meta2d/plugin-mind-core"),require("@meta2d/plugin-mind-collapse"),require("@meta2d/form-diagram"),require("@meta2d/class-diagram"),require("@meta2d/le5le-charts"),require("@meta2d/flow-diagram"),require("@meta2d/fta-diagram"),require("@meta2d/sequence-diagram"),require("@meta2d/activity-diagram")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","element-plus","@meta2d/utils","@meta2d/core","@meta2d/plugin-mind-core","@meta2d/plugin-mind-collapse","@meta2d/form-diagram","@meta2d/class-diagram","@meta2d/le5le-charts","@meta2d/flow-diagram","@meta2d/fta-diagram","@meta2d/sequence-diagram","@meta2d/activity-diagram"],re):(ae=typeof globalThis!="undefined"?globalThis:ae||self,re(ae.SyGraph={},ae.Vue,ae._,ae.ElementPlus,ae.Meta2dUtils,ae.Meta2dCore,ae.Meta2dPluginMindCore,ae.Meta2dPluginMindCollapse,ae.Meta2dFormDiagram,ae.Meta2dClassDiagram,ae.Meta2dLe5leCharts,ae.Meta2dFlowDiagram,ae.Meta2dFtaDiagram,ae.Meta2dSequenceDiagram,ae.Meta2dActivityDiagram))})(this,function(ae,re,me,Be,ke,de,Ue,Ve,Ie,rt,_r,ar,sr,st,gi){"use strict";var px=Object.defineProperty,vx=Object.defineProperties;var yx=Object.getOwnPropertyDescriptors;var Ls=Object.getOwnPropertySymbols;var mx=Object.prototype.hasOwnProperty,gx=Object.prototype.propertyIsEnumerable;var or=(ae,re)=>(re=Symbol[ae])?re:Symbol.for("Symbol."+ae),Ax=ae=>{throw TypeError(ae)};var vi=(ae,re,me)=>re in ae?px(ae,re,{enumerable:!0,configurable:!0,writable:!0,value:me}):ae[re]=me,te=(ae,re)=>{for(var me in re||(re={}))mx.call(re,me)&&vi(ae,me,re[me]);if(Ls)for(var me of Ls(re))gx.call(re,me)&&vi(ae,me,re[me]);return ae},Le=(ae,re)=>vx(ae,yx(re));var It=(ae,re,me)=>vi(ae,typeof re!="symbol"?re+"":re,me);var Qe=(ae,re,me)=>new Promise((Be,ke)=>{var de=Ie=>{try{Ve(me.next(Ie))}catch(rt){ke(rt)}},Ue=Ie=>{try{Ve(me.throw(Ie))}catch(rt){ke(rt)}},Ve=Ie=>Ie.done?Be(Ie.value):Promise.resolve(Ie.value).then(de,Ue);Ve((me=me.apply(ae,re)).next())}),Gt=function(ae,re){this[0]=ae,this[1]=re},yi=(ae,re,me)=>{var Be=(Ue,Ve,Ie,rt)=>{try{var _r=me[Ue](Ve),ar=(Ve=_r.value)instanceof Gt,sr=_r.done;Promise.resolve(ar?Ve[0]:Ve).then(st=>ar?Be(Ue==="return"?Ue:"next",Ve[1]?{done:st.done,value:st.value}:st,Ie,rt):Ie({value:st,done:sr})).catch(st=>Be("throw",st,Ie,rt))}catch(st){rt(st)}},ke=Ue=>de[Ue]=Ve=>new Promise((Ie,rt)=>Be(Ue,Ve,Ie,rt)),de={};return me=me.apply(ae,re),de[or("asyncIterator")]=()=>de,ke("next"),ke("throw"),ke("return"),de},mi=ae=>{var re=ae[or("asyncIterator")],me=!1,Be,ke={};return re==null?(re=ae[or("iterator")](),Be=de=>ke[de]=Ue=>re[de](Ue)):(re=re.call(ae),Be=de=>ke[de]=Ue=>{if(me){if(me=!1,de==="throw")throw Ue;return Ue}return me=!0,{done:!1,value:new Gt(new Promise(Ve=>{var Ie=re[de](Ue);Ie instanceof Object||Ax("Object expected"),Ve(Ie)}),1)}}),ke[or("iterator")]=()=>ke,Be("next"),"throw"in re?Be("throw"):ke.throw=de=>{throw de},"return"in re&&Be("return"),ke},Us=(ae,re,me)=>(re=ae[or("asyncIterator")])?re.call(ae):(ae=ae[or("iterator")](),re={},me=(Be,ke)=>(ke=ae[Be])&&(re[Be]=de=>new Promise((Ue,Ve,Ie)=>(de=ke.call(ae,de),Ie=de.done,Promise.resolve(de.value).then(rt=>Ue({value:rt,done:Ie}),Ve)))),me("next"),me("return"),re);var As,Es,ws,Bs,Cs,bs,Fs,Ds,_s,Ss,Ts,Is;var Ai=document.createElement("style");Ai.textContent=`.meta2d-editor[data-v-664781e2]{position:relative;width:100%;height:100%}.meta2d-editor[data-v-664781e2] .stage.value-map{position:absolute;top:1.04vw;right:.52vw;z-index:200}.meta2d-editor .toolbox[data-v-664781e2]{position:absolute;display:none;width:5.21vw;height:1.56vw;background:red;z-index:10000}.preview-container[data-v-c09e5d6b]{position:relative;width:100%;height:100%}.preview-container .back-btn[data-v-c09e5d6b]{position:absolute;bottom:.52vw;right:.52vw;z-index:1000}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(Ai);var le=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function A0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Hs(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var Vt=TypeError;const Ei=Hs(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var E0=typeof Map=="function"&&Map.prototype,w0=Object.getOwnPropertyDescriptor&&E0?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Sr=E0&&w0&&typeof w0.get=="function"?w0.get:null,wi=E0&&Map.prototype.forEach,B0=typeof Set=="function"&&Set.prototype,C0=Object.getOwnPropertyDescriptor&&B0?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Tr=B0&&C0&&typeof C0.get=="function"?C0.get:null,Bi=B0&&Set.prototype.forEach,qs=typeof WeakMap=="function"&&WeakMap.prototype,fr=qs?WeakMap.prototype.has:null,$s=typeof WeakSet=="function"&&WeakSet.prototype,cr=$s?WeakSet.prototype.has:null,zs=typeof WeakRef=="function"&&WeakRef.prototype,Ci=zs?WeakRef.prototype.deref:null,Ws=Boolean.prototype.valueOf,Gs=Object.prototype.toString,Vs=Function.prototype.toString,Ks=String.prototype.match,b0=String.prototype.slice,Bt=String.prototype.replace,js=String.prototype.toUpperCase,bi=String.prototype.toLowerCase,Fi=RegExp.prototype.test,Di=Array.prototype.concat,xt=Array.prototype.join,Xs=Array.prototype.slice,_i=Math.floor,F0=typeof BigInt=="function"?BigInt.prototype.valueOf:null,D0=Object.getOwnPropertySymbols,_0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Kt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ur=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Kt||!0)?Symbol.toStringTag:null,Si=Object.prototype.propertyIsEnumerable,Ti=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Ii(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Fi.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-_i(-t):_i(t);if(n!==t){var i=String(n),o=b0.call(e,i.length+1);return Bt.call(i,r,"$&_")+"."+Bt.call(Bt.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Bt.call(e,r,"$&_")}var S0=Ei,Ri=S0.custom,Oi=Li(Ri)?Ri:null,ki={__proto__:null,double:'"',single:"'"},Ys={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Ir=function t(e,r,n,i){var o=r||{};if(Et(o,"quoteStyle")&&!Et(ki,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Et(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 a=Et(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Et(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(Et(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Ni(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var p=String(e);return s?Ii(e,p):p}if(typeof e=="bigint"){var f=String(e)+"n";return s?Ii(e,f):f}var l=typeof o.depth=="undefined"?5:o.depth;if(typeof n=="undefined"&&(n=0),n>=l&&l>0&&typeof e=="object")return T0(e)?"[Array]":"[Object]";var v=pf(o,n);if(typeof i=="undefined")i=[];else if(Ui(i,e)>=0)return"[Circular]";function x(S,N,M){if(N&&(i=Xs.call(i),i.push(N)),M){var H={depth:o.depth};return Et(o,"quoteStyle")&&(H.quoteStyle=o.quoteStyle),t(S,H,n+1,i)}return t(S,o,n+1,i)}if(typeof e=="function"&&!Mi(e)){var A=af(e),y=Rr(e,x);return"[Function"+(A?": "+A:" (anonymous)")+"]"+(y.length>0?" { "+xt.call(y,", ")+" }":"")}if(Li(e)){var m=Kt?Bt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):_0.call(e);return typeof e=="object"&&!Kt?lr(m):m}if(hf(e)){for(var g="<"+bi.call(String(e.nodeName)),D=e.attributes||[],C=0;C<D.length;C++)g+=" "+D[C].name+"="+Pi(Zs(D[C].value),"double",o);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+bi.call(String(e.nodeName))+">",g}if(T0(e)){if(e.length===0)return"[]";var w=Rr(e,x);return v&&!df(w)?"["+R0(w,v)+"]":"[ "+xt.call(w,", ")+" ]"}if(Js(e)){var b=Rr(e,x);return!("cause"in Error.prototype)&&"cause"in e&&!Si.call(e,"cause")?"{ ["+String(e)+"] "+xt.call(Di.call("[cause]: "+x(e.cause),b),", ")+" }":b.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+xt.call(b,", ")+" }"}if(typeof e=="object"&&a){if(Oi&&typeof e[Oi]=="function"&&S0)return S0(e,{depth:l-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(sf(e)){var _=[];return wi&&wi.call(e,function(S,N){_.push(x(N,e,!0)+" => "+x(S,e))}),Hi("Map",Sr.call(e),_,v)}if(uf(e)){var T=[];return Bi&&Bi.call(e,function(S){T.push(x(S,e))}),Hi("Set",Tr.call(e),T,v)}if(ff(e))return I0("WeakMap");if(lf(e))return I0("WeakSet");if(cf(e))return I0("WeakRef");if(tf(e))return lr(x(Number(e)));if(nf(e))return lr(x(F0.call(e)));if(rf(e))return lr(Ws.call(e));if(ef(e))return lr(x(String(e)));if(typeof window!="undefined"&&e===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&e===globalThis||typeof le!="undefined"&&e===le)return"{ [object globalThis] }";if(!Qs(e)&&!Mi(e)){var k=Rr(e,x),q=Ti?Ti(e)===Object.prototype:e instanceof Object||e.constructor===Object,X=e instanceof Object?"":"null prototype",I=!q&&ur&&Object(e)===e&&ur in e?b0.call(Ct(e),8,-1):X?"Object":"",P=q||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",G=P+(I||X?"["+xt.call(Di.call([],I||[],X||[]),": ")+"] ":"");return k.length===0?G+"{}":v?G+"{"+R0(k,v)+"}":G+"{ "+xt.call(k,", ")+" }"}return String(e)};function Pi(t,e,r){var n=r.quoteStyle||e,i=ki[n];return i+t+i}function Zs(t){return Bt.call(String(t),/"/g,""")}function Rt(t){return!ur||!(typeof t=="object"&&(ur in t||typeof t[ur]!="undefined"))}function T0(t){return Ct(t)==="[object Array]"&&Rt(t)}function Qs(t){return Ct(t)==="[object Date]"&&Rt(t)}function Mi(t){return Ct(t)==="[object RegExp]"&&Rt(t)}function Js(t){return Ct(t)==="[object Error]"&&Rt(t)}function ef(t){return Ct(t)==="[object String]"&&Rt(t)}function tf(t){return Ct(t)==="[object Number]"&&Rt(t)}function rf(t){return Ct(t)==="[object Boolean]"&&Rt(t)}function Li(t){if(Kt)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!_0)return!1;try{return _0.call(t),!0}catch(e){}return!1}function nf(t){if(!t||typeof t!="object"||!F0)return!1;try{return F0.call(t),!0}catch(e){}return!1}var of=Object.prototype.hasOwnProperty||function(t){return t in this};function Et(t,e){return of.call(t,e)}function Ct(t){return Gs.call(t)}function af(t){if(t.name)return t.name;var e=Ks.call(Vs.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Ui(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function sf(t){if(!Sr||!t||typeof t!="object")return!1;try{Sr.call(t);try{Tr.call(t)}catch(e){return!0}return t instanceof Map}catch(e){}return!1}function ff(t){if(!fr||!t||typeof t!="object")return!1;try{fr.call(t,fr);try{cr.call(t,cr)}catch(e){return!0}return t instanceof WeakMap}catch(e){}return!1}function cf(t){if(!Ci||!t||typeof t!="object")return!1;try{return Ci.call(t),!0}catch(e){}return!1}function uf(t){if(!Tr||!t||typeof t!="object")return!1;try{Tr.call(t);try{Sr.call(t)}catch(e){return!0}return t instanceof Set}catch(e){}return!1}function lf(t){if(!cr||!t||typeof t!="object")return!1;try{cr.call(t,cr);try{fr.call(t,fr)}catch(e){return!0}return t instanceof WeakSet}catch(e){}return!1}function hf(t){return!t||typeof t!="object"?!1:typeof HTMLElement!="undefined"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Ni(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Ni(b0.call(t,0,e.maxStringLength),e)+n}var i=Ys[e.quoteStyle||"single"];i.lastIndex=0;var o=Bt.call(Bt.call(t,i,"\\$1"),/[\x00-\x1f]/g,xf);return Pi(o,"single",e)}function xf(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+js.call(e.toString(16))}function lr(t){return"Object("+t+")"}function I0(t){return t+" { ? }"}function Hi(t,e,r,n){var i=n?R0(r,n):xt.call(r,", ");return t+" ("+e+") {"+i+"}"}function df(t){for(var e=0;e<t.length;e++)if(Ui(t[e],`
|
|
3
|
+
`)>=0)return!1;return!0}function pf(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=xt.call(Array(t.indent+1)," ");else return null;return{base:r,prev:xt.call(Array(e+1),r)}}function R0(t,e){if(t.length===0)return"";var r=`
|
|
3
4
|
`+e.prev+e.base;return r+xt.call(t,","+r)+`
|
|
4
|
-
`+e.prev}function Rr(t,e){var r=T0(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=Et(t,i)?e(t[i],t):""}var o=typeof D0=="function"?D0(t):[],a;if(Kt){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var p in t)Et(t,p)&&(r&&String(Number(p))===p&&p<t.length||Kt&&a["$"+p]instanceof Symbol||(bi.call(/[^\w$]/,p)?n.push(e(p,t)+": "+e(t[p],t)):n.push(p+": "+e(t[p],t))));if(typeof D0=="function")for(var f=0;f<o.length;f++)_i.call(t,o[f])&&n.push("["+e(o[f])+"]: "+e(t[o[f]],t));return n}var pf=Ir,vf=Vt,Or=function(t,e,r){for(var n=t,i;(i=n.next)!=null;n=i)if(i.key===e)return n.next=i.next,r||(i.next=t.next,t.next=i),i},yf=function(t,e){if(t){var r=Or(t,e);return r&&r.value}},mf=function(t,e,r){var n=Or(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},gf=function(t,e){return t?!!Or(t,e):!1},Af=function(t,e){if(t)return Or(t,e,!0)},Ef=function(){var e,r={assert:function(n){if(!r.has(n))throw new vf("Side channel does not contain "+pf(n))},delete:function(n){var i=e&&e.next,o=Af(e,n);return o&&i&&i===o&&(e=void 0),!!o},get:function(n){return yf(e,n)},has:function(n){return gf(e,n)},set:function(n,i){e||(e={next:void 0}),mf(e,n,i)}};return r},Hi=Object,Bf=Error,wf=EvalError,Cf=RangeError,bf=ReferenceError,Ff=SyntaxError,Df=URIError,_f=Math.abs,Sf=Math.floor,Tf=Math.max,If=Math.min,Rf=Math.pow,Of=Math.round,kf=Number.isNaN||function(e){return e!==e},Pf=kf,Mf=function(e){return Pf(e)||e===0?e:e<0?-1:1},Lf=Object.getOwnPropertyDescriptor,kr=Lf;if(kr)try{kr([],"length")}catch(t){kr=null}var qi=kr,Pr=Object.defineProperty||!1;if(Pr)try{Pr({},"a",{value:1})}catch(t){Pr=!1}var Uf=Pr,O0,$i;function Nf(){return $i||($i=1,O0=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},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 i=42;e[r]=i;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}),O0}var k0,zi;function Hf(){if(zi)return k0;zi=1;var t=typeof Symbol!="undefined"&&Symbol,e=Nf();return k0=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},k0}var P0,Wi;function Gi(){return Wi||(Wi=1,P0=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),P0}var M0,Vi;function Ki(){if(Vi)return M0;Vi=1;var t=Hi;return M0=t.getPrototypeOf||null,M0}var L0,ji;function qf(){if(ji)return L0;ji=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(p,f){for(var l=[],v=0;v<p.length;v+=1)l[v]=p[v];for(var x=0;x<f.length;x+=1)l[x+p.length]=f[x];return l},o=function(p,f){for(var l=[],v=f,x=0;v<p.length;v+=1,x+=1)l[x]=p[v];return l},a=function(s,p){for(var f="",l=0;l<s.length;l+=1)f+=s[l],l+1<s.length&&(f+=p);return f};return L0=function(p){var f=this;if(typeof f!="function"||e.apply(f)!==n)throw new TypeError(t+f);for(var l=o(arguments,1),v,x=function(){if(this instanceof v){var D=f.apply(this,i(l,arguments));return Object(D)===D?D:this}return f.apply(p,i(l,arguments))},A=r(0,f.length-l.length),y=[],m=0;m<A;m++)y[m]="$"+m;if(v=Function("binder","return function ("+a(y,",")+"){ return binder.apply(this,arguments); }")(x),f.prototype){var g=function(){};g.prototype=f.prototype,v.prototype=new g,g.prototype=null}return v},L0}var U0,Xi;function Mr(){if(Xi)return U0;Xi=1;var t=qf();return U0=Function.prototype.bind||t,U0}var N0,Yi;function H0(){return Yi||(Yi=1,N0=Function.prototype.call),N0}var q0,Zi;function Qi(){return Zi||(Zi=1,q0=Function.prototype.apply),q0}var $f=typeof Reflect!="undefined"&&Reflect&&Reflect.apply,zf=Mr(),Wf=Qi(),Gf=H0(),Vf=$f,Kf=Vf||zf.call(Gf,Wf),jf=Mr(),Xf=Vt,Yf=H0(),Zf=Kf,Ji=function(e){if(e.length<1||typeof e[0]!="function")throw new Xf("a function is required");return Zf(jf,Yf,e)},$0,eo;function Qf(){if(eo)return $0;eo=1;var t=Ji,e=qi,r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&e&&e(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return $0=n&&typeof n.get=="function"?t([n.get]):typeof o=="function"?function(s){return o(s==null?s:i(s))}:!1,$0}var z0,to;function Jf(){if(to)return z0;to=1;var t=Gi(),e=Ki(),r=Qf();return z0=t?function(i){return t(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:r?function(i){return r(i)}:null,z0}var W0,ro;function ec(){if(ro)return W0;ro=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Mr();return W0=r.call(t,e),W0}var pe,tc=Hi,rc=Bf,nc=wf,ic=Cf,oc=bf,jt=Ff,Xt=Vt,ac=Df,sc=_f,fc=Sf,cc=Tf,uc=If,lc=Rf,hc=Of,xc=Mf,no=Function,G0=function(t){try{return no('"use strict"; return ('+t+").constructor;")()}catch(e){}},hr=qi,dc=Uf,V0=function(){throw new Xt},pc=hr?function(){try{return arguments.callee,V0}catch(t){try{return hr(arguments,"callee").get}catch(e){return V0}}}():V0,Yt=Hf()(),Ne=Jf(),vc=Ki(),yc=Gi(),io=Qi(),xr=H0(),Zt={},mc=typeof Uint8Array=="undefined"||!Ne?pe:Ne(Uint8Array),Ot={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":Yt&&Ne?Ne([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Zt,"%AsyncGenerator%":Zt,"%AsyncGeneratorFunction%":Zt,"%AsyncIteratorPrototype%":Zt,"%Atomics%":typeof Atomics=="undefined"?pe:Atomics,"%BigInt%":typeof BigInt=="undefined"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":rc,"%eval%":eval,"%EvalError%":nc,"%Float16Array%":typeof Float16Array=="undefined"?pe:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?pe:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?pe:FinalizationRegistry,"%Function%":no,"%GeneratorFunction%":Zt,"%Int8Array%":typeof Int8Array=="undefined"?pe:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?pe:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Yt&&Ne?Ne(Ne([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map=="undefined"?pe:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Yt||!Ne?pe:Ne(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":tc,"%Object.getOwnPropertyDescriptor%":hr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?pe:Promise,"%Proxy%":typeof Proxy=="undefined"?pe:Proxy,"%RangeError%":ic,"%ReferenceError%":oc,"%Reflect%":typeof Reflect=="undefined"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?pe:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Yt||!Ne?pe:Ne(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Yt&&Ne?Ne(""[Symbol.iterator]()):pe,"%Symbol%":Yt?Symbol:pe,"%SyntaxError%":jt,"%ThrowTypeError%":pc,"%TypedArray%":mc,"%TypeError%":Xt,"%Uint8Array%":typeof Uint8Array=="undefined"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?pe:Uint32Array,"%URIError%":ac,"%WeakMap%":typeof WeakMap=="undefined"?pe:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?pe:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?pe:WeakSet,"%Function.prototype.call%":xr,"%Function.prototype.apply%":io,"%Object.defineProperty%":dc,"%Object.getPrototypeOf%":vc,"%Math.abs%":sc,"%Math.floor%":fc,"%Math.max%":cc,"%Math.min%":uc,"%Math.pow%":lc,"%Math.round%":hc,"%Math.sign%":xc,"%Reflect.getPrototypeOf%":yc};if(Ne)try{null.error}catch(t){var gc=Ne(Ne(t));Ot["%Error.prototype%"]=gc}var Ac=function t(e){var r;if(e==="%AsyncFunction%")r=G0("async function () {}");else if(e==="%GeneratorFunction%")r=G0("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=G0("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&Ne&&(r=Ne(i.prototype))}return Ot[e]=r,r},oo={__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"]},dr=Mr(),Lr=ec(),Ec=dr.call(xr,Array.prototype.concat),Bc=dr.call(io,Array.prototype.splice),ao=dr.call(xr,String.prototype.replace),Ur=dr.call(xr,String.prototype.slice),wc=dr.call(xr,RegExp.prototype.exec),Cc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bc=/\\(\\)?/g,Fc=function(e){var r=Ur(e,0,1),n=Ur(e,-1);if(r==="%"&&n!=="%")throw new jt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new jt("invalid intrinsic syntax, expected opening `%`");var i=[];return ao(e,Cc,function(o,a,s,p){i[i.length]=s?ao(p,bc,"$1"):a||o}),i},Dc=function(e,r){var n=e,i;if(Lr(oo,n)&&(i=oo[n],n="%"+i[0]+"%"),Lr(Ot,n)){var o=Ot[n];if(o===Zt&&(o=Ac(n)),typeof o=="undefined"&&!r)throw new Xt("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new jt("intrinsic "+e+" does not exist!")},K0=function(e,r){if(typeof e!="string"||e.length===0)throw new Xt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Xt('"allowMissing" argument must be a boolean');if(wc(/^%?[^%]*%?$/,e)===null)throw new jt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Fc(e),i=n.length>0?n[0]:"",o=Dc("%"+i+"%",r),a=o.name,s=o.value,p=!1,f=o.alias;f&&(i=f[0],Bc(n,Ec([0,1],f)));for(var l=1,v=!0;l<n.length;l+=1){var x=n[l],A=Ur(x,0,1),y=Ur(x,-1);if((A==='"'||A==="'"||A==="`"||y==='"'||y==="'"||y==="`")&&A!==y)throw new jt("property names with quotes must have matching quotes");if((x==="constructor"||!v)&&(p=!0),i+="."+x,a="%"+i+"%",Lr(Ot,a))s=Ot[a];else if(s!=null){if(!(x in s)){if(!r)throw new Xt("base intrinsic for "+e+" exists, but the property is not available.");return}if(hr&&l+1>=n.length){var m=hr(s,x);v=!!m,v&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[x]}else v=Lr(s,x),s=s[x];v&&!p&&(Ot[a]=s)}}return s},so=K0,fo=Ji,_c=fo([so("%String.prototype.indexOf%")]),co=function(e,r){var n=so(e,!!r);return typeof n=="function"&&_c(e,".prototype.")>-1?fo([n]):n},Sc=K0,pr=co,Tc=Ir,Ic=Vt,uo=Sc("%Map%",!0),Rc=pr("Map.prototype.get",!0),Oc=pr("Map.prototype.set",!0),kc=pr("Map.prototype.has",!0),Pc=pr("Map.prototype.delete",!0),Mc=pr("Map.prototype.size",!0),lo=!!uo&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Ic("Side channel does not contain "+Tc(n))},delete:function(n){if(e){var i=Pc(e,n);return Mc(e)===0&&(e=void 0),i}return!1},get:function(n){if(e)return Rc(e,n)},has:function(n){return e?kc(e,n):!1},set:function(n,i){e||(e=new uo),Oc(e,n,i)}};return r},Lc=K0,Nr=co,Uc=Ir,Hr=lo,Nc=Vt,Qt=Lc("%WeakMap%",!0),Hc=Nr("WeakMap.prototype.get",!0),qc=Nr("WeakMap.prototype.set",!0),$c=Nr("WeakMap.prototype.has",!0),zc=Nr("WeakMap.prototype.delete",!0),Wc=Qt?function(){var e,r,n={assert:function(i){if(!n.has(i))throw new Nc("Side channel does not contain "+Uc(i))},delete:function(i){if(Qt&&i&&(typeof i=="object"||typeof i=="function")){if(e)return zc(e,i)}else if(Hr&&r)return r.delete(i);return!1},get:function(i){return Qt&&i&&(typeof i=="object"||typeof i=="function")&&e?Hc(e,i):r&&r.get(i)},has:function(i){return Qt&&i&&(typeof i=="object"||typeof i=="function")&&e?$c(e,i):!!r&&r.has(i)},set:function(i,o){Qt&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Qt),qc(e,i,o)):Hr&&(r||(r=Hr()),r.set(i,o))}};return n}:Hr,Gc=Vt,Vc=Ir,Kc=Ef,jc=lo,Xc=Wc,Yc=Xc||jc||Kc,Zc=function(){var e,r={assert:function(n){if(!r.has(n))throw new Gc("Side channel does not contain "+Vc(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,i){e||(e=Yc()),e.set(n,i)}};return r},Qc=String.prototype.replace,Jc=/%20/g,j0={RFC1738:"RFC1738",RFC3986:"RFC3986"},X0={default:j0.RFC3986,formatters:{RFC1738:function(t){return Qc.call(t,Jc,"+")},RFC3986:function(t){return String(t)}},RFC1738:j0.RFC1738,RFC3986:j0.RFC3986},eu=X0,Y0=Object.prototype.hasOwnProperty,kt=Array.isArray,dt=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),tu=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(kt(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]!="undefined"&&i.push(n[o]);r.obj[r.prop]=i}}},ho=function(e,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},i=0;i<e.length;++i)typeof e[i]!="undefined"&&(n[i]=e[i]);return n},ru=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(kt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Y0.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var i=e;return kt(e)&&!kt(r)&&(i=ho(e,n)),kt(e)&&kt(r)?(r.forEach(function(o,a){if(Y0.call(e,a)){var s=e[a];s&&typeof s=="object"&&o&&typeof o=="object"?e[a]=t(s,o,n):e.push(o)}else e[a]=o}),e):Object.keys(r).reduce(function(o,a){var s=r[a];return Y0.call(o,a)?o[a]=t(o[a],s,n):o[a]=s,o},i)},nu=function(e,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},e)},iu=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(i){return n}},Z0=1024,ou=function(e,r,n,i,o){if(e.length===0)return e;var a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(A){return"%26%23"+parseInt(A.slice(2),16)+"%3B"});for(var s="",p=0;p<a.length;p+=Z0){for(var f=a.length>=Z0?a.slice(p,p+Z0):a,l=[],v=0;v<f.length;++v){var x=f.charCodeAt(v);if(x===45||x===46||x===95||x===126||x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122||o===eu.RFC1738&&(x===40||x===41)){l[l.length]=f.charAt(v);continue}if(x<128){l[l.length]=dt[x];continue}if(x<2048){l[l.length]=dt[192|x>>6]+dt[128|x&63];continue}if(x<55296||x>=57344){l[l.length]=dt[224|x>>12]+dt[128|x>>6&63]+dt[128|x&63];continue}v+=1,x=65536+((x&1023)<<10|f.charCodeAt(v)&1023),l[l.length]=dt[240|x>>18]+dt[128|x>>12&63]+dt[128|x>>6&63]+dt[128|x&63]}s+=l.join("")}return s},au=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],a=o.obj[o.prop],s=Object.keys(a),p=0;p<s.length;++p){var f=s[p],l=a[f];typeof l=="object"&&l!==null&&n.indexOf(l)===-1&&(r.push({obj:a,prop:f}),n.push(l))}return tu(r),e},su=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},fu=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},cu=function(e,r){return[].concat(e,r)},uu=function(e,r){if(kt(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(r(e[i]));return n}return r(e)},xo={arrayToObject:ho,assign:nu,combine:cu,compact:au,decode:iu,encode:ou,isBuffer:fu,isRegExp:su,maybeMap:uu,merge:ru},po=Zc,qr=xo,vr=X0,lu=Object.prototype.hasOwnProperty,vo={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},pt=Array.isArray,hu=Array.prototype.push,yo=function(t,e){hu.apply(t,pt(e)?e:[e])},xu=Date.prototype.toISOString,mo=vr.default,Pe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:qr.encode,encodeValuesOnly:!1,filter:void 0,format:mo,formatter:vr.formatters[mo],indices:!1,serializeDate:function(e){return xu.call(e)},skipNulls:!1,strictNullHandling:!1},du=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Q0={},pu=function t(e,r,n,i,o,a,s,p,f,l,v,x,A,y,m,g,D,C){for(var B=e,b=C,_=0,T=!1;(b=b.get(Q0))!==void 0&&!T;){var k=b.get(e);if(_+=1,typeof k!="undefined"){if(k===_)throw new RangeError("Cyclic object value");T=!0}typeof b.get(Q0)=="undefined"&&(_=0)}if(typeof l=="function"?B=l(r,B):B instanceof Date?B=A(B):n==="comma"&&pt(B)&&(B=qr.maybeMap(B,function(J){return J instanceof Date?A(J):J})),B===null){if(a)return f&&!g?f(r,Pe.encoder,D,"key",y):r;B=""}if(du(B)||qr.isBuffer(B)){if(f){var q=g?r:f(r,Pe.encoder,D,"key",y);return[m(q)+"="+m(f(B,Pe.encoder,D,"value",y))]}return[m(r)+"="+m(String(B))]}var X=[];if(typeof B=="undefined")return X;var I;if(n==="comma"&&pt(B))g&&f&&(B=qr.maybeMap(B,f)),I=[{value:B.length>0?B.join(",")||null:void 0}];else if(pt(l))I=l;else{var P=Object.keys(B);I=v?P.sort(v):P}var G=p?String(r).replace(/\./g,"%2E"):String(r),S=i&&pt(B)&&B.length===1?G+"[]":G;if(o&&pt(B)&&B.length===0)return S+"[]";for(var N=0;N<I.length;++N){var M=I[N],H=typeof M=="object"&&M&&typeof M.value!="undefined"?M.value:B[M];if(!(s&&H===null)){var Y=x&&p?String(M).replace(/\./g,"%2E"):String(M),W=pt(B)?typeof n=="function"?n(S,Y):S:S+(x?"."+Y:"["+Y+"]");C.set(e,_);var ee=po();ee.set(Q0,C),yo(X,t(H,W,n,i,o,a,s,p,n==="comma"&&g&&pt(B)?null:f,l,v,x,A,y,m,g,D,ee))}}return X},vu=function(e){if(!e)return Pe;if(typeof e.allowEmptyArrays!="undefined"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys!="undefined"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder!="undefined"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||Pe.charset;if(typeof e.charset!="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=vr.default;if(typeof e.format!="undefined"){if(!lu.call(vr.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=vr.formatters[n],o=Pe.filter;(typeof e.filter=="function"||pt(e.filter))&&(o=e.filter);var a;if(e.arrayFormat in vo?a=e.arrayFormat:"indices"in e?a=e.indices?"indices":"repeat":a=Pe.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof e.allowDots=="undefined"?e.encodeDotInKeys===!0?!0:Pe.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Pe.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Pe.allowEmptyArrays,arrayFormat:a,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Pe.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter=="undefined"?Pe.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Pe.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:Pe.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:Pe.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Pe.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Pe.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Pe.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Pe.strictNullHandling}},yu=function(t,e){var r=t,n=vu(e),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):pt(n.filter)&&(o=n.filter,i=o);var a=[];if(typeof r!="object"||r===null)return"";var s=vo[n.arrayFormat],p=s==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var f=po(),l=0;l<i.length;++l){var v=i[l],x=r[v];n.skipNulls&&x===null||yo(a,pu(x,v,s,p,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,f))}var A=a.join(n.delimiter),y=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),A.length>0?y+A:""},Pt=xo,J0=Object.prototype.hasOwnProperty,go=Array.isArray,Te={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Pt.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},mu=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Ao=function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},gu="utf8=%26%2310003%3B",Au="utf8=%E2%9C%93",Eu=function(e,r){var n={__proto__:null},i=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=r.parameterLimit===1/0?void 0:r.parameterLimit,a=i.split(r.delimiter,r.throwOnLimitExceeded?o+1:o);if(r.throwOnLimitExceeded&&a.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(o===1?"":"s")+" allowed.");var s=-1,p,f=r.charset;if(r.charsetSentinel)for(p=0;p<a.length;++p)a[p].indexOf("utf8=")===0&&(a[p]===Au?f="utf-8":a[p]===gu&&(f="iso-8859-1"),s=p,p=a.length);for(p=0;p<a.length;++p)if(p!==s){var l=a[p],v=l.indexOf("]="),x=v===-1?l.indexOf("="):v+1,A,y;x===-1?(A=r.decoder(l,Te.decoder,f,"key"),y=r.strictNullHandling?null:""):(A=r.decoder(l.slice(0,x),Te.decoder,f,"key"),y=Pt.maybeMap(Ao(l.slice(x+1),r,go(n[A])?n[A].length:0),function(g){return r.decoder(g,Te.decoder,f,"value")})),y&&r.interpretNumericEntities&&f==="iso-8859-1"&&(y=mu(String(y))),l.indexOf("[]=")>-1&&(y=go(y)?[y]:y);var m=J0.call(n,A);m&&r.duplicates==="combine"?n[A]=Pt.combine(n[A],y):(!m||r.duplicates==="last")&&(n[A]=y)}return n},Bu=function(t,e,r,n){var i=0;if(t.length>0&&t[t.length-1]==="[]"){var o=t.slice(0,-1).join("");i=Array.isArray(e)&&e[o]?e[o].length:0}for(var a=n?e:Ao(e,r,i),s=t.length-1;s>=0;--s){var p,f=t[s];if(f==="[]"&&r.parseArrays)p=r.allowEmptyArrays&&(a===""||r.strictNullHandling&&a===null)?[]:Pt.combine([],a);else{p=r.plainObjects?{__proto__:null}:{};var l=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f,v=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,x=parseInt(v,10);!r.parseArrays&&v===""?p={0:a}:!isNaN(x)&&f!==v&&String(x)===v&&x>=0&&r.parseArrays&&x<=r.arrayLimit?(p=[],p[x]=a):v!=="__proto__"&&(p[v]=a)}a=p}return a},wu=function(e,r,n,i){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,p=n.depth>0&&a.exec(o),f=p?o.slice(0,p.index):o,l=[];if(f){if(!n.plainObjects&&J0.call(Object.prototype,f)&&!n.allowPrototypes)return;l.push(f)}for(var v=0;n.depth>0&&(p=s.exec(o))!==null&&v<n.depth;){if(v+=1,!n.plainObjects&&J0.call(Object.prototype,p[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(p[1])}if(p){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");l.push("["+o.slice(p.index)+"]")}return Bu(l,r,n,i)}},Cu=function(e){if(!e)return Te;if(typeof e.allowEmptyArrays!="undefined"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys!="undefined"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder!="undefined"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset!="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded!="undefined"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset=="undefined"?Te.charset:e.charset,n=typeof e.duplicates=="undefined"?Te.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof e.allowDots=="undefined"?e.decodeDotInKeys===!0?!0:Te.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Te.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Te.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Te.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Te.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Te.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Te.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Te.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Te.decoder,delimiter:typeof e.delimiter=="string"||Pt.isRegExp(e.delimiter)?e.delimiter:Te.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Te.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Te.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Te.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Te.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Te.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Te.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},bu=function(t,e){var r=Cu(e);if(t===""||t===null||typeof t=="undefined")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?Eu(t,r):t,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),a=0;a<o.length;++a){var s=o[a],p=wu(s,n[s],r,typeof t=="string");i=Pt.merge(i,p,r)}return r.allowSparse===!0?i:Pt.compact(i)},Fu=yu,Du=bu,_u=X0,Su={formats:_u,parse:Du,stringify:Fu};const Tu=A0(Su);function Eo(t,e){return function(){return t.apply(e,arguments)}}const{toString:Iu}=Object.prototype,{getPrototypeOf:en}=Object,{iterator:$r,toStringTag:Bo}=Symbol,zr=(t=>e=>{const r=Iu.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ft=t=>(t=t.toLowerCase(),e=>zr(e)===t),Wr=t=>e=>typeof e===t,{isArray:Jt}=Array,yr=Wr("undefined");function mr(t){return t!==null&&!yr(t)&&t.constructor!==null&&!yr(t.constructor)&&Je(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const wo=ft("ArrayBuffer");function Ru(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&wo(t.buffer),e}const Ou=Wr("string"),Je=Wr("function"),Co=Wr("number"),gr=t=>t!==null&&typeof t=="object",ku=t=>t===!0||t===!1,Gr=t=>{if(zr(t)!=="object")return!1;const e=en(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Bo in t)&&!($r in t)},Pu=t=>{if(!gr(t)||mr(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},Mu=ft("Date"),Lu=ft("File"),Uu=ft("Blob"),Nu=ft("FileList"),Hu=t=>gr(t)&&Je(t.pipe),qu=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Je(t.append)&&((e=zr(t))==="formdata"||e==="object"&&Je(t.toString)&&t.toString()==="[object FormData]"))},$u=ft("URLSearchParams"),[zu,Wu,Gu,Vu]=["ReadableStream","Request","Response","Headers"].map(ft),Ku=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ar(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t=="undefined")return;let n,i;if(typeof t!="object"&&(t=[t]),Jt(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(mr(t))return;const o=r?Object.getOwnPropertyNames(t):Object.keys(t),a=o.length;let s;for(n=0;n<a;n++)s=o[n],e.call(null,t[s],s,t)}}function bo(t,e){if(mr(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const Mt=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Fo=t=>!yr(t)&&t!==Mt;function tn(){const{caseless:t}=Fo(this)&&this||{},e={},r=(n,i)=>{const o=t&&bo(e,i)||i;Gr(e[o])&&Gr(n)?e[o]=tn(e[o],n):Gr(n)?e[o]=tn({},n):Jt(n)?e[o]=n.slice():e[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Ar(arguments[n],r);return e}const ju=(t,e,r,{allOwnKeys:n}={})=>(Ar(e,(i,o)=>{r&&Je(i)?t[o]=Eo(i,r):t[o]=i},{allOwnKeys:n}),t),Xu=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Yu=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Zu=(t,e,r,n)=>{let i,o,a;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)a=i[o],(!n||n(a,t,e))&&!s[a]&&(e[a]=t[a],s[a]=!0);t=r!==!1&&en(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Qu=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},Ju=t=>{if(!t)return null;if(Jt(t))return t;let e=t.length;if(!Co(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},el=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&en(Uint8Array)),tl=(t,e)=>{const n=(t&&t[$r]).call(t);let i;for(;(i=n.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},rl=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},nl=ft("HTMLFormElement"),il=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),Do=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),ol=ft("RegExp"),_o=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Ar(r,(i,o)=>{let a;(a=e(i,o,t))!==!1&&(n[o]=a||i)}),Object.defineProperties(t,n)},al=t=>{_o(t,(e,r)=>{if(Je(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(Je(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},sl=(t,e)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Jt(t)?n(t):n(String(t).split(e)),r},fl=()=>{},cl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function ul(t){return!!(t&&Je(t.append)&&t[Bo]==="FormData"&&t[$r])}const ll=t=>{const e=new Array(10),r=(n,i)=>{if(gr(n)){if(e.indexOf(n)>=0)return;if(mr(n))return n;if(!("toJSON"in n)){e[i]=n;const o=Jt(n)?[]:{};return Ar(n,(a,s)=>{const p=r(a,i+1);!yr(p)&&(o[s]=p)}),e[i]=void 0,o}}return n};return r(t,0)},hl=ft("AsyncFunction"),xl=t=>t&&(gr(t)||Je(t))&&Je(t.then)&&Je(t.catch),So=((t,e)=>t?setImmediate:e?((r,n)=>(Mt.addEventListener("message",({source:i,data:o})=>{i===Mt&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Mt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Je(Mt.postMessage)),dl=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Mt):typeof process!="undefined"&&process.nextTick||So,$={isArray:Jt,isArrayBuffer:wo,isBuffer:mr,isFormData:qu,isArrayBufferView:Ru,isString:Ou,isNumber:Co,isBoolean:ku,isObject:gr,isPlainObject:Gr,isEmptyObject:Pu,isReadableStream:zu,isRequest:Wu,isResponse:Gu,isHeaders:Vu,isUndefined:yr,isDate:Mu,isFile:Lu,isBlob:Uu,isRegExp:ol,isFunction:Je,isStream:Hu,isURLSearchParams:$u,isTypedArray:el,isFileList:Nu,forEach:Ar,merge:tn,extend:ju,trim:Ku,stripBOM:Xu,inherits:Yu,toFlatObject:Zu,kindOf:zr,kindOfTest:ft,endsWith:Qu,toArray:Ju,forEachEntry:tl,matchAll:rl,isHTMLForm:nl,hasOwnProperty:Do,hasOwnProp:Do,reduceDescriptors:_o,freezeMethods:al,toObjectSet:sl,toCamelCase:il,noop:fl,toFiniteNumber:cl,findKey:bo,global:Mt,isContextDefined:Fo,isSpecCompliantForm:ul,toJSONObject:ll,isAsyncFn:hl,isThenable:xl,setImmediate:So,asap:dl,isIterable:t=>t!=null&&Je(t[$r])};function he(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}$.inherits(he,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:$.toJSONObject(this.config),code:this.code,status:this.status}}});const To=he.prototype,Io={};["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(t=>{Io[t]={value:t}}),Object.defineProperties(he,Io),Object.defineProperty(To,"isAxiosError",{value:!0}),he.from=(t,e,r,n,i,o)=>{const a=Object.create(To);return $.toFlatObject(t,a,function(p){return p!==Error.prototype},s=>s!=="isAxiosError"),he.call(a,t.message,e,r,n,i),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const pl=null;function rn(t){return $.isPlainObject(t)||$.isArray(t)}function Ro(t){return $.endsWith(t,"[]")?t.slice(0,-2):t}function Oo(t,e,r){return t?t.concat(e).map(function(i,o){return i=Ro(i),!r&&o?"["+i+"]":i}).join(r?".":""):e}function vl(t){return $.isArray(t)&&!t.some(rn)}const yl=$.toFlatObject($,{},null,function(e){return/^is[A-Z]/.test(e)});function Vr(t,e,r){if(!$.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!$.isUndefined(g[m])});const n=r.metaTokens,i=r.visitor||l,o=r.dots,a=r.indexes,p=(r.Blob||typeof Blob!="undefined"&&Blob)&&$.isSpecCompliantForm(e);if(!$.isFunction(i))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if($.isDate(y))return y.toISOString();if($.isBoolean(y))return y.toString();if(!p&&$.isBlob(y))throw new he("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(y)||$.isTypedArray(y)?p&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function l(y,m,g){let D=y;if(y&&!g&&typeof y=="object"){if($.endsWith(m,"{}"))m=n?m:m.slice(0,-2),y=JSON.stringify(y);else if($.isArray(y)&&vl(y)||($.isFileList(y)||$.endsWith(m,"[]"))&&(D=$.toArray(y)))return m=Ro(m),D.forEach(function(B,b){!($.isUndefined(B)||B===null)&&e.append(a===!0?Oo([m],b,o):a===null?m:m+"[]",f(B))}),!1}return rn(y)?!0:(e.append(Oo(g,m,o),f(y)),!1)}const v=[],x=Object.assign(yl,{defaultVisitor:l,convertValue:f,isVisitable:rn});function A(y,m){if(!$.isUndefined(y)){if(v.indexOf(y)!==-1)throw Error("Circular reference detected in "+m.join("."));v.push(y),$.forEach(y,function(D,C){(!($.isUndefined(D)||D===null)&&i.call(e,D,$.isString(C)?C.trim():C,m,x))===!0&&A(D,m?m.concat(C):[C])}),v.pop()}}if(!$.isObject(t))throw new TypeError("data must be an object");return A(t),e}function ko(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function nn(t,e){this._pairs=[],t&&Vr(t,this,e)}const Po=nn.prototype;Po.append=function(e,r){this._pairs.push([e,r])},Po.toString=function(e){const r=e?function(n){return e.call(this,n,ko)}:ko;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function ml(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mo(t,e,r){if(!e)return t;const n=r&&r.encode||ml;$.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(e,r):o=$.isURLSearchParams(e)?e.toString():new nn(e,r).toString(n),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Lo{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Uo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gl={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams!="undefined"?URLSearchParams:nn,FormData:typeof FormData!="undefined"?FormData:null,Blob:typeof Blob!="undefined"?Blob:null},protocols:["http","https","file","blob","url","data"]},on=typeof window!="undefined"&&typeof document!="undefined",an=typeof navigator=="object"&&navigator||void 0,Al=on&&(!an||["ReactNative","NativeScript","NS"].indexOf(an.product)<0),El=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bl=on&&window.location.href||"http://localhost",je=te(te({},Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:on,hasStandardBrowserEnv:Al,hasStandardBrowserWebWorkerEnv:El,navigator:an,origin:Bl},Symbol.toStringTag,{value:"Module"}))),gl);function wl(t,e){return Vr(t,new je.classes.URLSearchParams,te({visitor:function(r,n,i,o){return je.isNode&&$.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Cl(t){return $.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function bl(t){const e={},r=Object.keys(t);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],e[o]=t[o];return e}function No(t){function e(r,n,i,o){let a=r[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),p=o>=r.length;return a=!a&&$.isArray(i)?i.length:a,p?($.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!s):((!i[a]||!$.isObject(i[a]))&&(i[a]=[]),e(r,n,i[a],o)&&$.isArray(i[a])&&(i[a]=bl(i[a])),!s)}if($.isFormData(t)&&$.isFunction(t.entries)){const r={};return $.forEachEntry(t,(n,i)=>{e(Cl(n),i,r,0)}),r}return null}function Fl(t,e,r){if($.isString(t))try{return(e||JSON.parse)(t),$.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Er={transitional:Uo,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=$.isObject(e);if(o&&$.isHTMLForm(e)&&(e=new FormData(e)),$.isFormData(e))return i?JSON.stringify(No(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e)||$.isReadableStream(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return wl(e,this.formSerializer).toString();if((s=$.isFileList(e))||n.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Vr(s?{"files[]":e}:e,p&&new p,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),Fl(e)):e}],transformResponse:[function(e){const r=this.transitional||Er.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if($.isResponse(e)||$.isReadableStream(e))return e;if(e&&$.isString(e)&&(n&&!this.responseType||i)){const a=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(s){if(a)throw s.name==="SyntaxError"?he.from(s,he.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:je.classes.FormData,Blob:je.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],t=>{Er.headers[t]={}});const Dl=$.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"]),_l=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
5
|
-
`).forEach(function(a){i=a.indexOf(":"),r=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!r||e[r]&&
|
|
6
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[Ho]=this[Ho]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Br(a);n[s]||(Rl(i,a),n[s]=!0)}return $.isArray(e)?e.forEach(o):o(e),this}};et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$.reduceDescriptors(et.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}}),$.freezeMethods(et);function fn(t,e){const r=this||Er,n=e||r,i=et.from(n.headers);let o=n.data;return $.forEach(t,function(s){o=s.call(r,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function qo(t){return!!(t&&t.__CANCEL__)}function er(t,e,r){he.call(this,t==null?"canceled":t,he.ERR_CANCELED,e,r),this.name="CanceledError"}$.inherits(er,he,{__CANCEL__:!0});function $o(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new he("Request failed with status code "+r.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Ol(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function kl(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,o=0,a;return e=e!==void 0?e:1e3,function(p){const f=Date.now(),l=n[o];a||(a=f),r[i]=p,n[i]=f;let v=o,x=0;for(;v!==i;)x+=r[v++],v=v%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),f-a<e)return;const A=l&&f-l;return A?Math.round(x*1e3/A):void 0}}function Pl(t,e){let r=0,n=1e3/e,i,o;const a=(f,l=Date.now())=>{r=l,i=null,o&&(clearTimeout(o),o=null),t(...f)};return[(...f)=>{const l=Date.now(),v=l-r;v>=n?a(f,l):(i=f,o||(o=setTimeout(()=>{o=null,a(i)},n-v)))},()=>i&&a(i)]}const jr=(t,e,r=3)=>{let n=0;const i=kl(50,250);return Pl(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,p=a-n,f=i(p),l=a<=s;n=a;const v={loaded:a,total:s,progress:s?a/s:void 0,bytes:p,rate:f||void 0,estimated:f&&s&&l?(s-a)/f:void 0,event:o,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(v)},r)},zo=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Wo=t=>(...e)=>$.asap(()=>t(...e)),Ml=je.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,je.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(je.origin),je.navigator&&/(msie|trident)/i.test(je.navigator.userAgent)):()=>!0,Ll=je.hasStandardBrowserEnv?{write(t,e,r,n,i,o){const a=[t+"="+encodeURIComponent(e)];$.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),$.isString(n)&&a.push("path="+n),$.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ul(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Nl(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Go(t,e,r){let n=!Ul(e);return t&&(n||r==!1)?Nl(t,e):e}const Vo=t=>t instanceof et?te({},t):t;function Lt(t,e){e=e||{};const r={};function n(f,l,v,x){return $.isPlainObject(f)&&$.isPlainObject(l)?$.merge.call({caseless:x},f,l):$.isPlainObject(l)?$.merge({},l):$.isArray(l)?l.slice():l}function i(f,l,v,x){if($.isUndefined(l)){if(!$.isUndefined(f))return n(void 0,f,v,x)}else return n(f,l,v,x)}function o(f,l){if(!$.isUndefined(l))return n(void 0,l)}function a(f,l){if($.isUndefined(l)){if(!$.isUndefined(f))return n(void 0,f)}else return n(void 0,l)}function s(f,l,v){if(v in e)return n(f,l);if(v in t)return n(void 0,f)}const p={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(f,l,v)=>i(Vo(f),Vo(l),v,!0)};return $.forEach(Object.keys(te(te({},t),e)),function(l){const v=p[l]||i,x=v(t[l],e[l],l);$.isUndefined(x)&&v!==s||(r[l]=x)}),r}const Ko=t=>{const e=Lt({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=e;e.headers=a=et.from(a),e.url=Mo(Go(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let p;if($.isFormData(r)){if(je.hasStandardBrowserEnv||je.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((p=a.getContentType())!==!1){const[f,...l]=p?p.split(";").map(v=>v.trim()).filter(Boolean):[];a.setContentType([f||"multipart/form-data",...l].join("; "))}}if(je.hasStandardBrowserEnv&&(n&&$.isFunction(n)&&(n=n(e)),n||n!==!1&&Ml(e.url))){const f=i&&o&&Ll.read(o);f&&a.set(i,f)}return e},Hl=typeof XMLHttpRequest!="undefined"&&function(t){return new Promise(function(r,n){const i=Ko(t);let o=i.data;const a=et.from(i.headers).normalize();let{responseType:s,onUploadProgress:p,onDownloadProgress:f}=i,l,v,x,A,y;function m(){A&&A(),y&&y(),i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function D(){if(!g)return;const B=et.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:B,config:t,request:g};$o(function(k){r(k),m()},function(k){n(k),m()},_),g=null}"onloadend"in g?g.onloadend=D:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(D)},g.onabort=function(){g&&(n(new he("Request aborted",he.ECONNABORTED,t,g)),g=null)},g.onerror=function(){n(new he("Network Error",he.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const _=i.transitional||Uo;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),n(new he(b,_.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,t,g)),g=null},o===void 0&&a.setContentType(null),"setRequestHeader"in g&&$.forEach(a.toJSON(),function(b,_){g.setRequestHeader(_,b)}),$.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),s&&s!=="json"&&(g.responseType=i.responseType),f&&([x,y]=jr(f,!0),g.addEventListener("progress",x)),p&&g.upload&&([v,A]=jr(p),g.upload.addEventListener("progress",v),g.upload.addEventListener("loadend",A)),(i.cancelToken||i.signal)&&(l=B=>{g&&(n(!B||B.type?new er(null,t,g):B),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const C=Ol(i.url);if(C&&je.protocols.indexOf(C)===-1){n(new he("Unsupported protocol "+C+":",he.ERR_BAD_REQUEST,t));return}g.send(o||null)})},ql=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const o=function(f){if(!i){i=!0,s();const l=f instanceof Error?f:this.reason;n.abort(l instanceof he?l:new er(l instanceof Error?l.message:l))}};let a=e&&setTimeout(()=>{a=null,o(new he(`timeout ${e} of ms exceeded`,he.ETIMEDOUT))},e);const s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),t=null)};t.forEach(f=>f.addEventListener("abort",o));const{signal:p}=n;return p.unsubscribe=()=>$.asap(s),p}},$l=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},zl=function(t,e){return yi(this,null,function*(){try{for(var r=Ls(Wl(t)),n,i,o;n=!(i=yield new Gt(r.next())).done;n=!1){const a=i.value;yield*mi($l(a,e))}}catch(i){o=[i]}finally{try{n&&(i=r.return)&&(yield new Gt(i.call(r)))}finally{if(o)throw o[0]}}})},Wl=function(t){return yi(this,null,function*(){if(t[Symbol.asyncIterator]){yield*mi(t);return}const e=t.getReader();try{for(;;){const{done:r,value:n}=yield new Gt(e.read());if(r)break;yield n}}finally{yield new Gt(e.cancel())}})},jo=(t,e,r,n)=>{const i=zl(t,e);let o=0,a,s=f=>{a||(a=!0,n&&n(f))};return new ReadableStream({pull(f){return Qe(this,null,function*(){try{const{done:l,value:v}=yield i.next();if(l){s(),f.close();return}let x=v.byteLength;if(r){let A=o+=x;r(A)}f.enqueue(new Uint8Array(v))}catch(l){throw s(l),l}})},cancel(f){return s(f),i.return()}},{highWaterMark:2})},Xr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Xo=Xr&&typeof ReadableStream=="function",Gl=Xr&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):t=>Qe(this,null,function*(){return new Uint8Array(yield new Response(t).arrayBuffer())})),Yo=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},Vl=Xo&&Yo(()=>{let t=!1;const e=new Request(je.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Zo=64*1024,cn=Xo&&Yo(()=>$.isReadableStream(new Response("").body)),Yr={stream:cn&&(t=>t.body)};Xr&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Yr[e]&&(Yr[e]=$.isFunction(t[e])?r=>r[e]():(r,n)=>{throw new he(`Response type '${e}' is not supported`,he.ERR_NOT_SUPPORT,n)})})})(new Response);const Kl=t=>Qe(this,null,function*(){if(t==null)return 0;if($.isBlob(t))return t.size;if($.isSpecCompliantForm(t))return(yield new Request(je.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if($.isArrayBufferView(t)||$.isArrayBuffer(t))return t.byteLength;if($.isURLSearchParams(t)&&(t=t+""),$.isString(t))return(yield Gl(t)).byteLength}),jl=(t,e)=>Qe(this,null,function*(){const r=$.toFiniteNumber(t.getContentLength());return r==null?Kl(e):r}),un={http:pl,xhr:Hl,fetch:Xr&&(t=>Qe(this,null,function*(){let{url:e,method:r,data:n,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:p,responseType:f,headers:l,withCredentials:v="same-origin",fetchOptions:x}=Ko(t);f=f?(f+"").toLowerCase():"text";let A=ql([i,o&&o.toAbortSignal()],a),y;const m=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let g;try{if(p&&Vl&&r!=="get"&&r!=="head"&&(g=yield jl(l,n))!==0){let _=new Request(e,{method:"POST",body:n,duplex:"half"}),T;if($.isFormData(n)&&(T=_.headers.get("content-type"))&&l.setContentType(T),_.body){const[k,q]=zo(g,jr(Wo(p)));n=jo(_.body,Zo,k,q)}}$.isString(v)||(v=v?"include":"omit");const D="credentials"in Request.prototype;y=new Request(e,Le(te({},x),{signal:A,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:D?v:void 0}));let C=yield fetch(y,x);const B=cn&&(f==="stream"||f==="response");if(cn&&(s||B&&m)){const _={};["status","statusText","headers"].forEach(X=>{_[X]=C[X]});const T=$.toFiniteNumber(C.headers.get("content-length")),[k,q]=s&&zo(T,jr(Wo(s),!0))||[];C=new Response(jo(C.body,Zo,k,()=>{q&&q(),m&&m()}),_)}f=f||"text";let b=yield Yr[$.findKey(Yr,f)||"text"](C,t);return!B&&m&&m(),yield new Promise((_,T)=>{$o(_,T,{data:b,headers:et.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:y})})}catch(D){throw m&&m(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new he("Network Error",he.ERR_NETWORK,t,y),{cause:D.cause||D}):he.from(D,D&&D.code,t,y)}}))};$.forEach(un,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(r){}Object.defineProperty(t,"adapterName",{value:e})}});const Qo=t=>`- ${t}`,Xl=t=>$.isFunction(t)||t===null||t===!1,Jo={getAdapter:t=>{t=$.isArray(t)?t:[t];const{length:e}=t;let r,n;const i={};for(let o=0;o<e;o++){r=t[o];let a;if(n=r,!Xl(r)&&(n=un[(a=String(r)).toLowerCase()],n===void 0))throw new he(`Unknown adapter '${a}'`);if(n)break;i[a||"#"+o]=n}if(!n){const o=Object.entries(i).map(([s,p])=>`adapter ${s} `+(p===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
|
|
7
|
-
`+o.map(
|
|
8
|
-
`):" "+
|
|
9
|
-
`+o):n.stack=o}catch(a){}}throw n}})}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Lt(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Qr.assertOptions(n,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),i!=null&&($.isFunction(i)?r.paramsSerializer={serialize:i}:Qr.assertOptions(i,{encode:vt.function,serialize:vt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Qr.assertOptions(r,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&&$.merge(o.common,o[r.method]);o&&$.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),r.headers=et.concat(a,o);const s=[];let p=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(p=p&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let l,v=0,x;if(!p){const y=[ea.bind(this),void 0];for(y.unshift(...s),y.push(...f),x=y.length,l=Promise.resolve(r);v<x;)l=l.then(y[v++],y[v++]);return l}x=s.length;let A=r;for(v=0;v<x;){const y=s[v++],m=s[v++];try{A=y(A)}catch(g){m.call(this,g);break}}try{l=ea.call(this,A)}catch(y){return Promise.reject(y)}for(v=0,x=f.length;v<x;)l=l.then(f[v++],f[v++]);return l}getUri(e){e=Lt(this.defaults,e);const r=Go(e.baseURL,e.url,e.allowAbsoluteUrls);return Mo(r,e.params,e.paramsSerializer)}};$.forEach(["delete","get","head","options"],function(e){Ut.prototype[e]=function(r,n){return this.request(Lt(n||{},{method:e,url:r,data:(n||{}).data}))}}),$.forEach(["post","put","patch"],function(e){function r(n){return function(o,a,s){return this.request(Lt(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Ut.prototype[e]=r(),Ut.prototype[e+"Form"]=r(!0)});let Zl=class Us{constructor(e){if(typeof e!="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(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{n.subscribe(s),o=s}).then(i);return a.cancel=function(){n.unsubscribe(o)},a},e(function(o,a,s){n.reason||(n.reason=new er(o,a,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new Us(function(i){e=i}),cancel:e}}};function Ql(t){return function(r){return t.apply(null,r)}}function Jl(t){return $.isObject(t)&&t.isAxiosError===!0}const hn={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(hn).forEach(([t,e])=>{hn[e]=t});function na(t){const e=new Ut(t),r=Eo(Ut.prototype.request,e);return $.extend(r,Ut.prototype,e,{allOwnKeys:!0}),$.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return na(Lt(t,i))},r}const Re=na(Er);Re.Axios=Ut,Re.CanceledError=er,Re.CancelToken=Zl,Re.isCancel=qo,Re.VERSION=ta,Re.toFormData=Vr,Re.AxiosError=he,Re.Cancel=Re.CanceledError,Re.all=function(e){return Promise.all(e)},Re.spread=Ql,Re.isAxiosError=Jl,Re.mergeConfig=Lt,Re.AxiosHeaders=et,Re.formToJSON=t=>No($.isHTMLForm(t)?new FormData(t):t),Re.getAdapter=Jo.getAdapter,Re.HttpStatusCode=hn,Re.default=Re;const{Axios:Sx,AxiosError:Tx,CanceledError:Ix,isCancel:Rx,CancelToken:Ox,VERSION:kx,all:Px,Cancel:Mx,isAxiosError:Lx,spread:Ux,toFormData:Nx,AxiosHeaders:Hx,HttpStatusCode:qx,formToJSON:$x,getAdapter:zx,mergeConfig:Wx}=Re,Ce={NORMAL:"NORMAL",TEXT:"TEXT",AUDIO:"AUDIO",MP4:"MP4",CAMERA:"CAMERA",VIDEO_STREAM:"VIDEO_STREAM",POINT_VALUE:"POINT_VALUE",LIGHT_PLATE:"LIGHT_PLATE",TABLE:"TABLE",SWITCH:"SWITCH",RADIO:"RADIO",SLIDER:"SLIDER",SELECT:"SELECT",CHECKBOX:"CHECKBOX",TIME:"TIME",BUTTON:"BUTTON",INPUT:"INPUT"},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"},eh={OFFLINE:0},Jr={Emit:7},th={STOP:2},rh={1:1,2:2,3:3,4:4,5:5},ia={GRAPH:{SOCKET:"GRAPH_SOCKET"}},nh="/",ih=location.protocol==="https:";(As=(gs=window.meta)==null?void 0:gs.app)!=null&&As.server_ip||location.origin;const oh=ih?"wss:":"ws:",ah=location.origin;(Bs=(Es=window==null?void 0:window.meta)==null?void 0:Es.graph)!=null&&Bs.savePath,(Cs=(ws=window==null?void 0:window.meta)==null?void 0:ws.graph)!=null&&Cs.templatePath;const oa=`${oh}//${location.host}/ws`,Oe=Re.create({baseURL:ah,timeout:window.REQUEST_TIMEOUT||3e4,withCredentials:!1,paramsSerializer:t=>Tu.stringify(t)});Oe.interceptors.request.use(t=>(t.headers["x-token"]="ewoglCJhbGcilDogpc3",t),t=>Promise.reject(t)),Oe.interceptors.response.use(t=>{const{data:e}=t;return Promise.resolve(e)},t=>Promise.reject(t));function sh(t,e={},r={}){return new Promise(n=>{Oe.get(t,te({params:e},r)).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function fh(t,e={},r={}){return new Promise(n=>{Oe.post(t,e,r).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function ch(t,e={},r={}){return Oe.get(t,te({params:e},r))}function uh(t,e={},r={}){return Oe.post(t,e,r)}function lh(t,e={}){return Oe.get(`/filehandle/${t}`,{params:e})}function hh(t,e={},r={}){return Oe.post(`/filehandle/${t}`,e,r)}function xh(t,e={}){return Oe.get(`/user/${t}`,{params:e})}function dh(t,e={},r={}){return Oe.post(`/user/${t}`,e,r)}function ph(t,e={}){return Oe.get(`${t}`,e.local?{params:e,baseURL:nh}:{params:e})}function vh(t,e={}){return Oe.get(`/media/${t}/`,{params:e})}function yh(t,e={},r={}){return Oe.post(`/media/${t}/`,e,r)}function mh(t,e={}){return Oe.get(`/common/${t}/`,{params:e})}function gh(t,e={},r={}){return Oe.post(`/common/${t}/`,e,r)}function Ah(t,e={}){return Oe.get(`/history/${t}`,{params:e})}function Eh(t,e={},r={}){return Oe.post(`/history/${t}`,e,r)}function Bh(t,e={}){return Oe.get(`/common/factory/${t}`,{params:e})}function wh(t,e={},r={}){return Oe.post(`/common/factory/${t}`,e,r)}function Ch(t,e={}){return Oe.get(`/factory/${t}`,{params:e})}function bh(t,e={},r={}){return Oe.post(`/factory/${t}`,e,r)}const xn={getApi:sh,postApi:fh,getFileApi:lh,postFileApi:hh,getBaseApi:ch,postBaseApi:uh,getUserApi:xh,postUserApi:dh,getGraphApi:ph,getMediaApi:vh,postMediaApi:yh,getCommonApi:mh,postCommonApi:gh,getHistoryApi:Ah,postHistoryApi:Eh,getFactoryApi:Ch,postFactoryApi:bh,getCommonFactoryApi:Bh,postCommonFactoryApi:wh};function Fh(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(i){i(r)}),(n=t.get("*"))&&n.slice().map(function(i){i(e,r)})}}}const dn=Fh();function aa(t){return Object.prototype.toString.call(t).slice(8,-1)}var Dh={exports:{}};function _h(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pn={exports:{}},sa;function ve(){return sa||(sa=1,function(t,e){(function(r,n){t.exports=n()})(le,function(){var r=r||function(n,i){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 le!="undefined"&&le.crypto&&(o=le.crypto),!o&&typeof _h=="function")try{o=Ai}catch(C){}var a=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(C){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(C){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function C(){}return function(B){var b;return C.prototype=B,b=new C,C.prototype=null,b}}(),p={},f=p.lib={},l=f.Base=function(){return{extend:function(C){var B=s(this);return C&&B.mixIn(C),(!B.hasOwnProperty("init")||this.init===B.init)&&(B.init=function(){B.$super.init.apply(this,arguments)}),B.init.prototype=B,B.$super=this,B},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var B in C)C.hasOwnProperty(B)&&(this[B]=C[B]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),v=f.WordArray=l.extend({init:function(C,B){C=this.words=C||[],B!=i?this.sigBytes=B:this.sigBytes=C.length*4},toString:function(C){return(C||A).stringify(this)},concat:function(C){var B=this.words,b=C.words,_=this.sigBytes,T=C.sigBytes;if(this.clamp(),_%4)for(var k=0;k<T;k++){var q=b[k>>>2]>>>24-k%4*8&255;B[_+k>>>2]|=q<<24-(_+k)%4*8}else for(var X=0;X<T;X+=4)B[_+X>>>2]=b[X>>>2];return this.sigBytes+=T,this},clamp:function(){var C=this.words,B=this.sigBytes;C[B>>>2]&=4294967295<<32-B%4*8,C.length=n.ceil(B/4)},clone:function(){var C=l.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var B=[],b=0;b<C;b+=4)B.push(a());return new v.init(B,C)}}),x=p.enc={},A=x.Hex={stringify:function(C){for(var B=C.words,b=C.sigBytes,_=[],T=0;T<b;T++){var k=B[T>>>2]>>>24-T%4*8&255;_.push((k>>>4).toString(16)),_.push((k&15).toString(16))}return _.join("")},parse:function(C){for(var B=C.length,b=[],_=0;_<B;_+=2)b[_>>>3]|=parseInt(C.substr(_,2),16)<<24-_%8*4;return new v.init(b,B/2)}},y=x.Latin1={stringify:function(C){for(var B=C.words,b=C.sigBytes,_=[],T=0;T<b;T++){var k=B[T>>>2]>>>24-T%4*8&255;_.push(String.fromCharCode(k))}return _.join("")},parse:function(C){for(var B=C.length,b=[],_=0;_<B;_++)b[_>>>2]|=(C.charCodeAt(_)&255)<<24-_%4*8;return new v.init(b,B)}},m=x.Utf8={stringify:function(C){try{return decodeURIComponent(escape(y.stringify(C)))}catch(B){throw new Error("Malformed UTF-8 data")}},parse:function(C){return y.parse(unescape(encodeURIComponent(C)))}},g=f.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new v.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=m.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var B,b=this._data,_=b.words,T=b.sigBytes,k=this.blockSize,q=k*4,X=T/q;C?X=n.ceil(X):X=n.max((X|0)-this._minBufferSize,0);var I=X*k,P=n.min(I*4,T);if(I){for(var G=0;G<I;G+=k)this._doProcessBlock(_,G);B=_.splice(0,I),b.sigBytes-=P}return new v.init(B,P)},clone:function(){var C=l.clone.call(this);return C._data=this._data.clone(),C},_minBufferSize:0});f.Hasher=g.extend({cfg:l.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(C){return this._append(C),this._process(),this},finalize:function(C){C&&this._append(C);var B=this._doFinalize();return B},blockSize:16,_createHelper:function(C){return function(B,b){return new C.init(b).finalize(B)}},_createHmacHelper:function(C){return function(B,b){return new D.HMAC.init(C,b).finalize(B)}}});var D=p.algo={};return p}(Math);return r})}(pn)),pn.exports}var vn={exports:{}},fa;function e0(){return fa||(fa=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(n){var i=r,o=i.lib,a=o.Base,s=o.WordArray,p=i.x64={};p.Word=a.extend({init:function(f,l){this.high=f,this.low=l}}),p.WordArray=a.extend({init:function(f,l){f=this.words=f||[],l!=n?this.sigBytes=l:this.sigBytes=f.length*8},toX32:function(){for(var f=this.words,l=f.length,v=[],x=0;x<l;x++){var A=f[x];v.push(A.high),v.push(A.low)}return s.create(v,this.sigBytes)},clone:function(){for(var f=a.clone.call(this),l=f.words=this.words.slice(0),v=l.length,x=0;x<v;x++)l[x]=l[x].clone();return f}})}(),r})}(vn)),vn.exports}var yn={exports:{}},ca;function Sh(){return ca||(ca=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,i=n.lib,o=i.WordArray,a=o.init,s=o.init=function(p){if(p instanceof ArrayBuffer&&(p=new Uint8Array(p)),(p instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&p instanceof Uint8ClampedArray||p instanceof Int16Array||p instanceof Uint16Array||p instanceof Int32Array||p instanceof Uint32Array||p instanceof Float32Array||p instanceof Float64Array)&&(p=new Uint8Array(p.buffer,p.byteOffset,p.byteLength)),p instanceof Uint8Array){for(var f=p.byteLength,l=[],v=0;v<f;v++)l[v>>>2]|=p[v]<<24-v%4*8;a.call(this,l,f)}else a.apply(this,arguments)};s.prototype=o}}(),r.lib.WordArray})}(yn)),yn.exports}var mn={exports:{}},ua;function Th(){return ua||(ua=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.enc;a.Utf16=a.Utf16BE={stringify:function(p){for(var f=p.words,l=p.sigBytes,v=[],x=0;x<l;x+=2){var A=f[x>>>2]>>>16-x%4*8&65535;v.push(String.fromCharCode(A))}return v.join("")},parse:function(p){for(var f=p.length,l=[],v=0;v<f;v++)l[v>>>1]|=p.charCodeAt(v)<<16-v%2*16;return o.create(l,f*2)}},a.Utf16LE={stringify:function(p){for(var f=p.words,l=p.sigBytes,v=[],x=0;x<l;x+=2){var A=s(f[x>>>2]>>>16-x%4*8&65535);v.push(String.fromCharCode(A))}return v.join("")},parse:function(p){for(var f=p.length,l=[],v=0;v<f;v++)l[v>>>1]|=s(p.charCodeAt(v)<<16-v%2*16);return o.create(l,f*2)}};function s(p){return p<<8&4278255360|p>>>8&16711935}}(),r.enc.Utf16})}(mn)),mn.exports}var gn={exports:{}},la;function Nt(){return la||(la=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.enc;a.Base64={stringify:function(p){var f=p.words,l=p.sigBytes,v=this._map;p.clamp();for(var x=[],A=0;A<l;A+=3)for(var y=f[A>>>2]>>>24-A%4*8&255,m=f[A+1>>>2]>>>24-(A+1)%4*8&255,g=f[A+2>>>2]>>>24-(A+2)%4*8&255,D=y<<16|m<<8|g,C=0;C<4&&A+C*.75<l;C++)x.push(v.charAt(D>>>6*(3-C)&63));var B=v.charAt(64);if(B)for(;x.length%4;)x.push(B);return x.join("")},parse:function(p){var f=p.length,l=this._map,v=this._reverseMap;if(!v){v=this._reverseMap=[];for(var x=0;x<l.length;x++)v[l.charCodeAt(x)]=x}var A=l.charAt(64);if(A){var y=p.indexOf(A);y!==-1&&(f=y)}return s(p,f,v)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(p,f,l){for(var v=[],x=0,A=0;A<f;A++)if(A%4){var y=l[p.charCodeAt(A-1)]<<A%4*2,m=l[p.charCodeAt(A)]>>>6-A%4*2,g=y|m;v[x>>>2]|=g<<24-x%4*8,x++}return o.create(v,x)}}(),r.enc.Base64})}(gn)),gn.exports}var An={exports:{}},ha;function Ih(){return ha||(ha=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.enc;a.Base64url={stringify:function(p,f){f===void 0&&(f=!0);var l=p.words,v=p.sigBytes,x=f?this._safe_map:this._map;p.clamp();for(var A=[],y=0;y<v;y+=3)for(var m=l[y>>>2]>>>24-y%4*8&255,g=l[y+1>>>2]>>>24-(y+1)%4*8&255,D=l[y+2>>>2]>>>24-(y+2)%4*8&255,C=m<<16|g<<8|D,B=0;B<4&&y+B*.75<v;B++)A.push(x.charAt(C>>>6*(3-B)&63));var b=x.charAt(64);if(b)for(;A.length%4;)A.push(b);return A.join("")},parse:function(p,f){f===void 0&&(f=!0);var l=p.length,v=f?this._safe_map:this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var A=0;A<v.length;A++)x[v.charCodeAt(A)]=A}var y=v.charAt(64);if(y){var m=p.indexOf(y);m!==-1&&(l=m)}return s(p,l,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(p,f,l){for(var v=[],x=0,A=0;A<f;A++)if(A%4){var y=l[p.charCodeAt(A-1)]<<A%4*2,m=l[p.charCodeAt(A)]>>>6-A%4*2,g=y|m;v[x>>>2]|=g<<24-x%4*8,x++}return o.create(v,x)}}(),r.enc.Base64url})}(An)),An.exports}var En={exports:{}},xa;function Ht(){return xa||(xa=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,p=i.algo,f=[];(function(){for(var m=0;m<64;m++)f[m]=n.abs(n.sin(m+1))*4294967296|0})();var l=p.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,g){for(var D=0;D<16;D++){var C=g+D,B=m[C];m[C]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var b=this._hash.words,_=m[g+0],T=m[g+1],k=m[g+2],q=m[g+3],X=m[g+4],I=m[g+5],P=m[g+6],G=m[g+7],S=m[g+8],N=m[g+9],M=m[g+10],H=m[g+11],Y=m[g+12],W=m[g+13],ee=m[g+14],J=m[g+15],O=b[0],U=b[1],V=b[2],z=b[3];O=v(O,U,V,z,_,7,f[0]),z=v(z,O,U,V,T,12,f[1]),V=v(V,z,O,U,k,17,f[2]),U=v(U,V,z,O,q,22,f[3]),O=v(O,U,V,z,X,7,f[4]),z=v(z,O,U,V,I,12,f[5]),V=v(V,z,O,U,P,17,f[6]),U=v(U,V,z,O,G,22,f[7]),O=v(O,U,V,z,S,7,f[8]),z=v(z,O,U,V,N,12,f[9]),V=v(V,z,O,U,M,17,f[10]),U=v(U,V,z,O,H,22,f[11]),O=v(O,U,V,z,Y,7,f[12]),z=v(z,O,U,V,W,12,f[13]),V=v(V,z,O,U,ee,17,f[14]),U=v(U,V,z,O,J,22,f[15]),O=x(O,U,V,z,T,5,f[16]),z=x(z,O,U,V,P,9,f[17]),V=x(V,z,O,U,H,14,f[18]),U=x(U,V,z,O,_,20,f[19]),O=x(O,U,V,z,I,5,f[20]),z=x(z,O,U,V,M,9,f[21]),V=x(V,z,O,U,J,14,f[22]),U=x(U,V,z,O,X,20,f[23]),O=x(O,U,V,z,N,5,f[24]),z=x(z,O,U,V,ee,9,f[25]),V=x(V,z,O,U,q,14,f[26]),U=x(U,V,z,O,S,20,f[27]),O=x(O,U,V,z,W,5,f[28]),z=x(z,O,U,V,k,9,f[29]),V=x(V,z,O,U,G,14,f[30]),U=x(U,V,z,O,Y,20,f[31]),O=A(O,U,V,z,I,4,f[32]),z=A(z,O,U,V,S,11,f[33]),V=A(V,z,O,U,H,16,f[34]),U=A(U,V,z,O,ee,23,f[35]),O=A(O,U,V,z,T,4,f[36]),z=A(z,O,U,V,X,11,f[37]),V=A(V,z,O,U,G,16,f[38]),U=A(U,V,z,O,M,23,f[39]),O=A(O,U,V,z,W,4,f[40]),z=A(z,O,U,V,_,11,f[41]),V=A(V,z,O,U,q,16,f[42]),U=A(U,V,z,O,P,23,f[43]),O=A(O,U,V,z,N,4,f[44]),z=A(z,O,U,V,Y,11,f[45]),V=A(V,z,O,U,J,16,f[46]),U=A(U,V,z,O,k,23,f[47]),O=y(O,U,V,z,_,6,f[48]),z=y(z,O,U,V,G,10,f[49]),V=y(V,z,O,U,ee,15,f[50]),U=y(U,V,z,O,I,21,f[51]),O=y(O,U,V,z,Y,6,f[52]),z=y(z,O,U,V,q,10,f[53]),V=y(V,z,O,U,M,15,f[54]),U=y(U,V,z,O,T,21,f[55]),O=y(O,U,V,z,S,6,f[56]),z=y(z,O,U,V,J,10,f[57]),V=y(V,z,O,U,P,15,f[58]),U=y(U,V,z,O,W,21,f[59]),O=y(O,U,V,z,X,6,f[60]),z=y(z,O,U,V,H,10,f[61]),V=y(V,z,O,U,k,15,f[62]),U=y(U,V,z,O,N,21,f[63]),b[0]=b[0]+O|0,b[1]=b[1]+U|0,b[2]=b[2]+V|0,b[3]=b[3]+z|0},_doFinalize:function(){var m=this._data,g=m.words,D=this._nDataBytes*8,C=m.sigBytes*8;g[C>>>5]|=128<<24-C%32;var B=n.floor(D/4294967296),b=D;g[(C+64>>>9<<4)+15]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,g[(C+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,m.sigBytes=(g.length+1)*4,this._process();for(var _=this._hash,T=_.words,k=0;k<4;k++){var q=T[k];T[k]=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360}return _},clone:function(){var m=s.clone.call(this);return m._hash=this._hash.clone(),m}});function v(m,g,D,C,B,b,_){var T=m+(g&D|~g&C)+B+_;return(T<<b|T>>>32-b)+g}function x(m,g,D,C,B,b,_){var T=m+(g&C|D&~C)+B+_;return(T<<b|T>>>32-b)+g}function A(m,g,D,C,B,b,_){var T=m+(g^D^C)+B+_;return(T<<b|T>>>32-b)+g}function y(m,g,D,C,B,b,_){var T=m+(D^(g|~C))+B+_;return(T<<b|T>>>32-b)+g}i.MD5=s._createHelper(l),i.HmacMD5=s._createHmacHelper(l)}(Math),r.MD5})}(En)),En.exports}var Bn={exports:{}},da;function pa(){return da||(da=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=i.Hasher,s=n.algo,p=[],f=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,v){for(var x=this._hash.words,A=x[0],y=x[1],m=x[2],g=x[3],D=x[4],C=0;C<80;C++){if(C<16)p[C]=l[v+C]|0;else{var B=p[C-3]^p[C-8]^p[C-14]^p[C-16];p[C]=B<<1|B>>>31}var b=(A<<5|A>>>27)+D+p[C];C<20?b+=(y&m|~y&g)+1518500249:C<40?b+=(y^m^g)+1859775393:C<60?b+=(y&m|y&g|m&g)-1894007588:b+=(y^m^g)-899497514,D=g,g=m,m=y<<30|y>>>2,y=A,A=b}x[0]=x[0]+A|0,x[1]=x[1]+y|0,x[2]=x[2]+m|0,x[3]=x[3]+g|0,x[4]=x[4]+D|0},_doFinalize:function(){var l=this._data,v=l.words,x=this._nDataBytes*8,A=l.sigBytes*8;return v[A>>>5]|=128<<24-A%32,v[(A+64>>>9<<4)+14]=Math.floor(x/4294967296),v[(A+64>>>9<<4)+15]=x,l.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var l=a.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=a._createHelper(f),n.HmacSHA1=a._createHmacHelper(f)}(),r.SHA1})}(Bn)),Bn.exports}var wn={exports:{}},va;function Cn(){return va||(va=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,p=i.algo,f=[],l=[];(function(){function A(D){for(var C=n.sqrt(D),B=2;B<=C;B++)if(!(D%B))return!1;return!0}function y(D){return(D-(D|0))*4294967296|0}for(var m=2,g=0;g<64;)A(m)&&(g<8&&(f[g]=y(n.pow(m,1/2))),l[g]=y(n.pow(m,1/3)),g++),m++})();var v=[],x=p.SHA256=s.extend({_doReset:function(){this._hash=new a.init(f.slice(0))},_doProcessBlock:function(A,y){for(var m=this._hash.words,g=m[0],D=m[1],C=m[2],B=m[3],b=m[4],_=m[5],T=m[6],k=m[7],q=0;q<64;q++){if(q<16)v[q]=A[y+q]|0;else{var X=v[q-15],I=(X<<25|X>>>7)^(X<<14|X>>>18)^X>>>3,P=v[q-2],G=(P<<15|P>>>17)^(P<<13|P>>>19)^P>>>10;v[q]=I+v[q-7]+G+v[q-16]}var S=b&_^~b&T,N=g&D^g&C^D&C,M=(g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22),H=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),Y=k+H+S+l[q]+v[q],W=M+N;k=T,T=_,_=b,b=B+Y|0,B=C,C=D,D=g,g=Y+W|0}m[0]=m[0]+g|0,m[1]=m[1]+D|0,m[2]=m[2]+C|0,m[3]=m[3]+B|0,m[4]=m[4]+b|0,m[5]=m[5]+_|0,m[6]=m[6]+T|0,m[7]=m[7]+k|0},_doFinalize:function(){var A=this._data,y=A.words,m=this._nDataBytes*8,g=A.sigBytes*8;return y[g>>>5]|=128<<24-g%32,y[(g+64>>>9<<4)+14]=n.floor(m/4294967296),y[(g+64>>>9<<4)+15]=m,A.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var A=s.clone.call(this);return A._hash=this._hash.clone(),A}});i.SHA256=s._createHelper(x),i.HmacSHA256=s._createHmacHelper(x)}(Math),r.SHA256})}(wn)),wn.exports}var bn={exports:{}},ya;function Rh(){return ya||(ya=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Cn())})(le,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.algo,s=a.SHA256,p=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var f=s._doFinalize.call(this);return f.sigBytes-=4,f}});n.SHA224=s._createHelper(p),n.HmacSHA224=s._createHmacHelper(p)}(),r.SHA224})}(bn)),bn.exports}var Fn={exports:{}},ma;function ga(){return ma||(ma=1,function(t,e){(function(r,n,i){t.exports=n(ve(),e0())})(le,function(r){return function(){var n=r,i=n.lib,o=i.Hasher,a=n.x64,s=a.Word,p=a.WordArray,f=n.algo;function l(){return s.create.apply(s,arguments)}var v=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],x=[];(function(){for(var y=0;y<80;y++)x[y]=l()})();var A=f.SHA512=o.extend({_doReset:function(){this._hash=new p.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(y,m){for(var g=this._hash.words,D=g[0],C=g[1],B=g[2],b=g[3],_=g[4],T=g[5],k=g[6],q=g[7],X=D.high,I=D.low,P=C.high,G=C.low,S=B.high,N=B.low,M=b.high,H=b.low,Y=_.high,W=_.low,ee=T.high,J=T.low,O=k.high,U=k.low,V=q.high,z=q.low,se=X,ce=I,be=P,fe=G,Se=S,Fe=N,Ke=M,ze=H,Ee=Y,Me=W,Dt=ee,w=J,c=O,u=U,F=V,L=z,K=0;K<80;K++){var Z,ue,ye=x[K];if(K<16)ue=ye.high=y[m+K*2]|0,Z=ye.low=y[m+K*2+1]|0;else{var Be=x[K-15],De=Be.high,Ae=Be.low,_t=(De>>>1|Ae<<31)^(De>>>8|Ae<<24)^De>>>7,qt=(Ae>>>1|De<<31)^(Ae>>>8|De<<24)^(Ae>>>7|De<<25),__$t__=x[K-2],St=__$t__.high,zt=__$t__.low,ri=(St>>>19|zt<<13)^(St<<3|zt>>>29)^St>>>6,ir=(zt>>>19|St<<13)^(zt<<3|St>>>29)^(zt>>>6|St<<26),c0=x[K-7],u0=c0.high,ni=c0.low,Fr=x[K-16],ii=Fr.high,l0=Fr.low;Z=qt+ni,ue=_t+u0+(Z>>>0<qt>>>0?1:0),Z=Z+ir,ue=ue+ri+(Z>>>0<ir>>>0?1:0),Z=Z+l0,ue=ue+ii+(Z>>>0<l0>>>0?1:0),ye.high=ue,ye.low=Z}var oi=Ee&Dt^~Ee&c,h0=Me&w^~Me&u,ai=se&be^se&Se^be&Se,si=ce&fe^ce&Fe^fe&Fe,fi=(se>>>28|ce<<4)^(se<<30|ce>>>2)^(se<<25|ce>>>7),x0=(ce>>>28|se<<4)^(ce<<30|se>>>2)^(ce<<25|se>>>7),ci=(Ee>>>14|Me<<18)^(Ee>>>18|Me<<14)^(Ee<<23|Me>>>9),ui=(Me>>>14|Ee<<18)^(Me>>>18|Ee<<14)^(Me<<23|Ee>>>9),d0=v[K],li=d0.high,p0=d0.low,Ye=L+ui,At=F+ci+(Ye>>>0<L>>>0?1:0),Ye=Ye+h0,At=At+oi+(Ye>>>0<h0>>>0?1:0),Ye=Ye+p0,At=At+li+(Ye>>>0<p0>>>0?1:0),Ye=Ye+Z,At=At+ue+(Ye>>>0<Z>>>0?1:0),v0=x0+si,hi=fi+ai+(v0>>>0<x0>>>0?1:0);F=c,L=u,c=Dt,u=w,Dt=Ee,w=Me,Me=ze+Ye|0,Ee=Ke+At+(Me>>>0<ze>>>0?1:0)|0,Ke=Se,ze=Fe,Se=be,Fe=fe,be=se,fe=ce,ce=Ye+v0|0,se=At+hi+(ce>>>0<Ye>>>0?1:0)|0}I=D.low=I+ce,D.high=X+se+(I>>>0<ce>>>0?1:0),G=C.low=G+fe,C.high=P+be+(G>>>0<fe>>>0?1:0),N=B.low=N+Fe,B.high=S+Se+(N>>>0<Fe>>>0?1:0),H=b.low=H+ze,b.high=M+Ke+(H>>>0<ze>>>0?1:0),W=_.low=W+Me,_.high=Y+Ee+(W>>>0<Me>>>0?1:0),J=T.low=J+w,T.high=ee+Dt+(J>>>0<w>>>0?1:0),U=k.low=U+u,k.high=O+c+(U>>>0<u>>>0?1:0),z=q.low=z+L,q.high=V+F+(z>>>0<L>>>0?1:0)},_doFinalize:function(){var y=this._data,m=y.words,g=this._nDataBytes*8,D=y.sigBytes*8;m[D>>>5]|=128<<24-D%32,m[(D+128>>>10<<5)+30]=Math.floor(g/4294967296),m[(D+128>>>10<<5)+31]=g,y.sigBytes=m.length*4,this._process();var C=this._hash.toX32();return C},clone:function(){var y=o.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});n.SHA512=o._createHelper(A),n.HmacSHA512=o._createHmacHelper(A)}(),r.SHA512})}(Fn)),Fn.exports}var Dn={exports:{}},Aa;function Oh(){return Aa||(Aa=1,function(t,e){(function(r,n,i){t.exports=n(ve(),e0(),ga())})(le,function(r){return function(){var n=r,i=n.x64,o=i.Word,a=i.WordArray,s=n.algo,p=s.SHA512,f=s.SHA384=p.extend({_doReset:function(){this._hash=new a.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 l=p._doFinalize.call(this);return l.sigBytes-=16,l}});n.SHA384=p._createHelper(f),n.HmacSHA384=p._createHmacHelper(f)}(),r.SHA384})}(Dn)),Dn.exports}var _n={exports:{}},Ea;function kh(){return Ea||(Ea=1,function(t,e){(function(r,n,i){t.exports=n(ve(),e0())})(le,function(r){return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,p=i.x64,f=p.Word,l=i.algo,v=[],x=[],A=[];(function(){for(var g=1,D=0,C=0;C<24;C++){v[g+5*D]=(C+1)*(C+2)/2%64;var B=D%5,b=(2*g+3*D)%5;g=B,D=b}for(var g=0;g<5;g++)for(var D=0;D<5;D++)x[g+5*D]=D+(2*g+3*D)%5*5;for(var _=1,T=0;T<24;T++){for(var k=0,q=0,X=0;X<7;X++){if(_&1){var I=(1<<X)-1;I<32?q^=1<<I:k^=1<<I-32}_&128?_=_<<1^113:_<<=1}A[T]=f.create(k,q)}})();var y=[];(function(){for(var g=0;g<25;g++)y[g]=f.create()})();var m=l.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var g=this._state=[],D=0;D<25;D++)g[D]=new f.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(g,D){for(var C=this._state,B=this.blockSize/2,b=0;b<B;b++){var _=g[D+2*b],T=g[D+2*b+1];_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var k=C[b];k.high^=T,k.low^=_}for(var q=0;q<24;q++){for(var X=0;X<5;X++){for(var I=0,P=0,G=0;G<5;G++){var k=C[X+5*G];I^=k.high,P^=k.low}var S=y[X];S.high=I,S.low=P}for(var X=0;X<5;X++)for(var N=y[(X+4)%5],M=y[(X+1)%5],H=M.high,Y=M.low,I=N.high^(H<<1|Y>>>31),P=N.low^(Y<<1|H>>>31),G=0;G<5;G++){var k=C[X+5*G];k.high^=I,k.low^=P}for(var W=1;W<25;W++){var I,P,k=C[W],ee=k.high,J=k.low,O=v[W];O<32?(I=ee<<O|J>>>32-O,P=J<<O|ee>>>32-O):(I=J<<O-32|ee>>>64-O,P=ee<<O-32|J>>>64-O);var U=y[x[W]];U.high=I,U.low=P}var V=y[0],z=C[0];V.high=z.high,V.low=z.low;for(var X=0;X<5;X++)for(var G=0;G<5;G++){var W=X+5*G,k=C[W],se=y[W],ce=y[(X+1)%5+5*G],be=y[(X+2)%5+5*G];k.high=se.high^~ce.high&be.high,k.low=se.low^~ce.low&be.low}var k=C[0],fe=A[q];k.high^=fe.high,k.low^=fe.low}},_doFinalize:function(){var g=this._data,D=g.words;this._nDataBytes*8;var C=g.sigBytes*8,B=this.blockSize*32;D[C>>>5]|=1<<24-C%32,D[(n.ceil((C+1)/B)*B>>>5)-1]|=128,g.sigBytes=D.length*4,this._process();for(var b=this._state,_=this.cfg.outputLength/8,T=_/8,k=[],q=0;q<T;q++){var X=b[q],I=X.high,P=X.low;I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,k.push(P),k.push(I)}return new a.init(k,_)},clone:function(){for(var g=s.clone.call(this),D=g._state=this._state.slice(0),C=0;C<25;C++)D[C]=D[C].clone();return g}});i.SHA3=s._createHelper(m),i.HmacSHA3=s._createHmacHelper(m)}(Math),r.SHA3})}(_n)),_n.exports}var Sn={exports:{}},Ba;function Ph(){return Ba||(Ba=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){/** @preserve
|
|
5
|
+
`+e.prev}function Rr(t,e){var r=T0(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=Et(t,i)?e(t[i],t):""}var o=typeof D0=="function"?D0(t):[],a;if(Kt){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var p in t)Et(t,p)&&(r&&String(Number(p))===p&&p<t.length||Kt&&a["$"+p]instanceof Symbol||(Fi.call(/[^\w$]/,p)?n.push(e(p,t)+": "+e(t[p],t)):n.push(p+": "+e(t[p],t))));if(typeof D0=="function")for(var f=0;f<o.length;f++)Si.call(t,o[f])&&n.push("["+e(o[f])+"]: "+e(t[o[f]],t));return n}var vf=Ir,yf=Vt,Or=function(t,e,r){for(var n=t,i;(i=n.next)!=null;n=i)if(i.key===e)return n.next=i.next,r||(i.next=t.next,t.next=i),i},mf=function(t,e){if(t){var r=Or(t,e);return r&&r.value}},gf=function(t,e,r){var n=Or(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Af=function(t,e){return t?!!Or(t,e):!1},Ef=function(t,e){if(t)return Or(t,e,!0)},wf=function(){var e,r={assert:function(n){if(!r.has(n))throw new yf("Side channel does not contain "+vf(n))},delete:function(n){var i=e&&e.next,o=Ef(e,n);return o&&i&&i===o&&(e=void 0),!!o},get:function(n){return mf(e,n)},has:function(n){return Af(e,n)},set:function(n,i){e||(e={next:void 0}),gf(e,n,i)}};return r},qi=Object,Bf=Error,Cf=EvalError,bf=RangeError,Ff=ReferenceError,Df=SyntaxError,_f=URIError,Sf=Math.abs,Tf=Math.floor,If=Math.max,Rf=Math.min,Of=Math.pow,kf=Math.round,Pf=Number.isNaN||function(e){return e!==e},Mf=Pf,Lf=function(e){return Mf(e)||e===0?e:e<0?-1:1},Uf=Object.getOwnPropertyDescriptor,kr=Uf;if(kr)try{kr([],"length")}catch(t){kr=null}var $i=kr,Pr=Object.defineProperty||!1;if(Pr)try{Pr({},"a",{value:1})}catch(t){Pr=!1}var Nf=Pr,O0,zi;function Hf(){return zi||(zi=1,O0=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},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 i=42;e[r]=i;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}),O0}var k0,Wi;function qf(){if(Wi)return k0;Wi=1;var t=typeof Symbol!="undefined"&&Symbol,e=Hf();return k0=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},k0}var P0,Gi;function Vi(){return Gi||(Gi=1,P0=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),P0}var M0,Ki;function ji(){if(Ki)return M0;Ki=1;var t=qi;return M0=t.getPrototypeOf||null,M0}var L0,Xi;function $f(){if(Xi)return L0;Xi=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(p,f){for(var l=[],v=0;v<p.length;v+=1)l[v]=p[v];for(var x=0;x<f.length;x+=1)l[x+p.length]=f[x];return l},o=function(p,f){for(var l=[],v=f,x=0;v<p.length;v+=1,x+=1)l[x]=p[v];return l},a=function(s,p){for(var f="",l=0;l<s.length;l+=1)f+=s[l],l+1<s.length&&(f+=p);return f};return L0=function(p){var f=this;if(typeof f!="function"||e.apply(f)!==n)throw new TypeError(t+f);for(var l=o(arguments,1),v,x=function(){if(this instanceof v){var D=f.apply(this,i(l,arguments));return Object(D)===D?D:this}return f.apply(p,i(l,arguments))},A=r(0,f.length-l.length),y=[],m=0;m<A;m++)y[m]="$"+m;if(v=Function("binder","return function ("+a(y,",")+"){ return binder.apply(this,arguments); }")(x),f.prototype){var g=function(){};g.prototype=f.prototype,v.prototype=new g,g.prototype=null}return v},L0}var U0,Yi;function Mr(){if(Yi)return U0;Yi=1;var t=$f();return U0=Function.prototype.bind||t,U0}var N0,Zi;function H0(){return Zi||(Zi=1,N0=Function.prototype.call),N0}var q0,Qi;function Ji(){return Qi||(Qi=1,q0=Function.prototype.apply),q0}var zf=typeof Reflect!="undefined"&&Reflect&&Reflect.apply,Wf=Mr(),Gf=Ji(),Vf=H0(),Kf=zf,jf=Kf||Wf.call(Vf,Gf),Xf=Mr(),Yf=Vt,Zf=H0(),Qf=jf,eo=function(e){if(e.length<1||typeof e[0]!="function")throw new Yf("a function is required");return Qf(Xf,Zf,e)},$0,to;function Jf(){if(to)return $0;to=1;var t=eo,e=$i,r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&e&&e(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return $0=n&&typeof n.get=="function"?t([n.get]):typeof o=="function"?function(s){return o(s==null?s:i(s))}:!1,$0}var z0,ro;function ec(){if(ro)return z0;ro=1;var t=Vi(),e=ji(),r=Jf();return z0=t?function(i){return t(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:r?function(i){return r(i)}:null,z0}var W0,no;function tc(){if(no)return W0;no=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Mr();return W0=r.call(t,e),W0}var pe,rc=qi,nc=Bf,ic=Cf,oc=bf,ac=Ff,jt=Df,Xt=Vt,sc=_f,fc=Sf,cc=Tf,uc=If,lc=Rf,hc=Of,xc=kf,dc=Lf,io=Function,G0=function(t){try{return io('"use strict"; return ('+t+").constructor;")()}catch(e){}},hr=$i,pc=Nf,V0=function(){throw new Xt},vc=hr?function(){try{return arguments.callee,V0}catch(t){try{return hr(arguments,"callee").get}catch(e){return V0}}}():V0,Yt=qf()(),Ne=ec(),yc=ji(),mc=Vi(),oo=Ji(),xr=H0(),Zt={},gc=typeof Uint8Array=="undefined"||!Ne?pe:Ne(Uint8Array),Ot={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":Yt&&Ne?Ne([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Zt,"%AsyncGenerator%":Zt,"%AsyncGeneratorFunction%":Zt,"%AsyncIteratorPrototype%":Zt,"%Atomics%":typeof Atomics=="undefined"?pe:Atomics,"%BigInt%":typeof BigInt=="undefined"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":nc,"%eval%":eval,"%EvalError%":ic,"%Float16Array%":typeof Float16Array=="undefined"?pe:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?pe:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?pe:FinalizationRegistry,"%Function%":io,"%GeneratorFunction%":Zt,"%Int8Array%":typeof Int8Array=="undefined"?pe:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?pe:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Yt&&Ne?Ne(Ne([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map=="undefined"?pe:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Yt||!Ne?pe:Ne(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":rc,"%Object.getOwnPropertyDescriptor%":hr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?pe:Promise,"%Proxy%":typeof Proxy=="undefined"?pe:Proxy,"%RangeError%":oc,"%ReferenceError%":ac,"%Reflect%":typeof Reflect=="undefined"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?pe:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Yt||!Ne?pe:Ne(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Yt&&Ne?Ne(""[Symbol.iterator]()):pe,"%Symbol%":Yt?Symbol:pe,"%SyntaxError%":jt,"%ThrowTypeError%":vc,"%TypedArray%":gc,"%TypeError%":Xt,"%Uint8Array%":typeof Uint8Array=="undefined"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?pe:Uint32Array,"%URIError%":sc,"%WeakMap%":typeof WeakMap=="undefined"?pe:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?pe:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?pe:WeakSet,"%Function.prototype.call%":xr,"%Function.prototype.apply%":oo,"%Object.defineProperty%":pc,"%Object.getPrototypeOf%":yc,"%Math.abs%":fc,"%Math.floor%":cc,"%Math.max%":uc,"%Math.min%":lc,"%Math.pow%":hc,"%Math.round%":xc,"%Math.sign%":dc,"%Reflect.getPrototypeOf%":mc};if(Ne)try{null.error}catch(t){var Ac=Ne(Ne(t));Ot["%Error.prototype%"]=Ac}var Ec=function t(e){var r;if(e==="%AsyncFunction%")r=G0("async function () {}");else if(e==="%GeneratorFunction%")r=G0("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=G0("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&Ne&&(r=Ne(i.prototype))}return Ot[e]=r,r},ao={__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"]},dr=Mr(),Lr=tc(),wc=dr.call(xr,Array.prototype.concat),Bc=dr.call(oo,Array.prototype.splice),so=dr.call(xr,String.prototype.replace),Ur=dr.call(xr,String.prototype.slice),Cc=dr.call(xr,RegExp.prototype.exec),bc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Fc=/\\(\\)?/g,Dc=function(e){var r=Ur(e,0,1),n=Ur(e,-1);if(r==="%"&&n!=="%")throw new jt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new jt("invalid intrinsic syntax, expected opening `%`");var i=[];return so(e,bc,function(o,a,s,p){i[i.length]=s?so(p,Fc,"$1"):a||o}),i},_c=function(e,r){var n=e,i;if(Lr(ao,n)&&(i=ao[n],n="%"+i[0]+"%"),Lr(Ot,n)){var o=Ot[n];if(o===Zt&&(o=Ec(n)),typeof o=="undefined"&&!r)throw new Xt("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new jt("intrinsic "+e+" does not exist!")},K0=function(e,r){if(typeof e!="string"||e.length===0)throw new Xt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Xt('"allowMissing" argument must be a boolean');if(Cc(/^%?[^%]*%?$/,e)===null)throw new jt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Dc(e),i=n.length>0?n[0]:"",o=_c("%"+i+"%",r),a=o.name,s=o.value,p=!1,f=o.alias;f&&(i=f[0],Bc(n,wc([0,1],f)));for(var l=1,v=!0;l<n.length;l+=1){var x=n[l],A=Ur(x,0,1),y=Ur(x,-1);if((A==='"'||A==="'"||A==="`"||y==='"'||y==="'"||y==="`")&&A!==y)throw new jt("property names with quotes must have matching quotes");if((x==="constructor"||!v)&&(p=!0),i+="."+x,a="%"+i+"%",Lr(Ot,a))s=Ot[a];else if(s!=null){if(!(x in s)){if(!r)throw new Xt("base intrinsic for "+e+" exists, but the property is not available.");return}if(hr&&l+1>=n.length){var m=hr(s,x);v=!!m,v&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[x]}else v=Lr(s,x),s=s[x];v&&!p&&(Ot[a]=s)}}return s},fo=K0,co=eo,Sc=co([fo("%String.prototype.indexOf%")]),uo=function(e,r){var n=fo(e,!!r);return typeof n=="function"&&Sc(e,".prototype.")>-1?co([n]):n},Tc=K0,pr=uo,Ic=Ir,Rc=Vt,lo=Tc("%Map%",!0),Oc=pr("Map.prototype.get",!0),kc=pr("Map.prototype.set",!0),Pc=pr("Map.prototype.has",!0),Mc=pr("Map.prototype.delete",!0),Lc=pr("Map.prototype.size",!0),ho=!!lo&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Rc("Side channel does not contain "+Ic(n))},delete:function(n){if(e){var i=Mc(e,n);return Lc(e)===0&&(e=void 0),i}return!1},get:function(n){if(e)return Oc(e,n)},has:function(n){return e?Pc(e,n):!1},set:function(n,i){e||(e=new lo),kc(e,n,i)}};return r},Uc=K0,Nr=uo,Nc=Ir,Hr=ho,Hc=Vt,Qt=Uc("%WeakMap%",!0),qc=Nr("WeakMap.prototype.get",!0),$c=Nr("WeakMap.prototype.set",!0),zc=Nr("WeakMap.prototype.has",!0),Wc=Nr("WeakMap.prototype.delete",!0),Gc=Qt?function(){var e,r,n={assert:function(i){if(!n.has(i))throw new Hc("Side channel does not contain "+Nc(i))},delete:function(i){if(Qt&&i&&(typeof i=="object"||typeof i=="function")){if(e)return Wc(e,i)}else if(Hr&&r)return r.delete(i);return!1},get:function(i){return Qt&&i&&(typeof i=="object"||typeof i=="function")&&e?qc(e,i):r&&r.get(i)},has:function(i){return Qt&&i&&(typeof i=="object"||typeof i=="function")&&e?zc(e,i):!!r&&r.has(i)},set:function(i,o){Qt&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Qt),$c(e,i,o)):Hr&&(r||(r=Hr()),r.set(i,o))}};return n}:Hr,Vc=Vt,Kc=Ir,jc=wf,Xc=ho,Yc=Gc,Zc=Yc||Xc||jc,Qc=function(){var e,r={assert:function(n){if(!r.has(n))throw new Vc("Side channel does not contain "+Kc(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,i){e||(e=Zc()),e.set(n,i)}};return r},Jc=String.prototype.replace,eu=/%20/g,j0={RFC1738:"RFC1738",RFC3986:"RFC3986"},X0={default:j0.RFC3986,formatters:{RFC1738:function(t){return Jc.call(t,eu,"+")},RFC3986:function(t){return String(t)}},RFC1738:j0.RFC1738,RFC3986:j0.RFC3986},tu=X0,Y0=Object.prototype.hasOwnProperty,kt=Array.isArray,dt=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),ru=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(kt(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]!="undefined"&&i.push(n[o]);r.obj[r.prop]=i}}},xo=function(e,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},i=0;i<e.length;++i)typeof e[i]!="undefined"&&(n[i]=e[i]);return n},nu=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(kt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Y0.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var i=e;return kt(e)&&!kt(r)&&(i=xo(e,n)),kt(e)&&kt(r)?(r.forEach(function(o,a){if(Y0.call(e,a)){var s=e[a];s&&typeof s=="object"&&o&&typeof o=="object"?e[a]=t(s,o,n):e.push(o)}else e[a]=o}),e):Object.keys(r).reduce(function(o,a){var s=r[a];return Y0.call(o,a)?o[a]=t(o[a],s,n):o[a]=s,o},i)},iu=function(e,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},e)},ou=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(i){return n}},Z0=1024,au=function(e,r,n,i,o){if(e.length===0)return e;var a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(A){return"%26%23"+parseInt(A.slice(2),16)+"%3B"});for(var s="",p=0;p<a.length;p+=Z0){for(var f=a.length>=Z0?a.slice(p,p+Z0):a,l=[],v=0;v<f.length;++v){var x=f.charCodeAt(v);if(x===45||x===46||x===95||x===126||x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122||o===tu.RFC1738&&(x===40||x===41)){l[l.length]=f.charAt(v);continue}if(x<128){l[l.length]=dt[x];continue}if(x<2048){l[l.length]=dt[192|x>>6]+dt[128|x&63];continue}if(x<55296||x>=57344){l[l.length]=dt[224|x>>12]+dt[128|x>>6&63]+dt[128|x&63];continue}v+=1,x=65536+((x&1023)<<10|f.charCodeAt(v)&1023),l[l.length]=dt[240|x>>18]+dt[128|x>>12&63]+dt[128|x>>6&63]+dt[128|x&63]}s+=l.join("")}return s},su=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],a=o.obj[o.prop],s=Object.keys(a),p=0;p<s.length;++p){var f=s[p],l=a[f];typeof l=="object"&&l!==null&&n.indexOf(l)===-1&&(r.push({obj:a,prop:f}),n.push(l))}return ru(r),e},fu=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},cu=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},uu=function(e,r){return[].concat(e,r)},lu=function(e,r){if(kt(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(r(e[i]));return n}return r(e)},po={arrayToObject:xo,assign:iu,combine:uu,compact:su,decode:ou,encode:au,isBuffer:cu,isRegExp:fu,maybeMap:lu,merge:nu},vo=Qc,qr=po,vr=X0,hu=Object.prototype.hasOwnProperty,yo={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},pt=Array.isArray,xu=Array.prototype.push,mo=function(t,e){xu.apply(t,pt(e)?e:[e])},du=Date.prototype.toISOString,go=vr.default,Pe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:qr.encode,encodeValuesOnly:!1,filter:void 0,format:go,formatter:vr.formatters[go],indices:!1,serializeDate:function(e){return du.call(e)},skipNulls:!1,strictNullHandling:!1},pu=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Q0={},vu=function t(e,r,n,i,o,a,s,p,f,l,v,x,A,y,m,g,D,C){for(var w=e,b=C,_=0,T=!1;(b=b.get(Q0))!==void 0&&!T;){var k=b.get(e);if(_+=1,typeof k!="undefined"){if(k===_)throw new RangeError("Cyclic object value");T=!0}typeof b.get(Q0)=="undefined"&&(_=0)}if(typeof l=="function"?w=l(r,w):w instanceof Date?w=A(w):n==="comma"&&pt(w)&&(w=qr.maybeMap(w,function(J){return J instanceof Date?A(J):J})),w===null){if(a)return f&&!g?f(r,Pe.encoder,D,"key",y):r;w=""}if(pu(w)||qr.isBuffer(w)){if(f){var q=g?r:f(r,Pe.encoder,D,"key",y);return[m(q)+"="+m(f(w,Pe.encoder,D,"value",y))]}return[m(r)+"="+m(String(w))]}var X=[];if(typeof w=="undefined")return X;var I;if(n==="comma"&&pt(w))g&&f&&(w=qr.maybeMap(w,f)),I=[{value:w.length>0?w.join(",")||null:void 0}];else if(pt(l))I=l;else{var P=Object.keys(w);I=v?P.sort(v):P}var G=p?String(r).replace(/\./g,"%2E"):String(r),S=i&&pt(w)&&w.length===1?G+"[]":G;if(o&&pt(w)&&w.length===0)return S+"[]";for(var N=0;N<I.length;++N){var M=I[N],H=typeof M=="object"&&M&&typeof M.value!="undefined"?M.value:w[M];if(!(s&&H===null)){var Y=x&&p?String(M).replace(/\./g,"%2E"):String(M),W=pt(w)?typeof n=="function"?n(S,Y):S:S+(x?"."+Y:"["+Y+"]");C.set(e,_);var ee=vo();ee.set(Q0,C),mo(X,t(H,W,n,i,o,a,s,p,n==="comma"&&g&&pt(w)?null:f,l,v,x,A,y,m,g,D,ee))}}return X},yu=function(e){if(!e)return Pe;if(typeof e.allowEmptyArrays!="undefined"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys!="undefined"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder!="undefined"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||Pe.charset;if(typeof e.charset!="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=vr.default;if(typeof e.format!="undefined"){if(!hu.call(vr.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=vr.formatters[n],o=Pe.filter;(typeof e.filter=="function"||pt(e.filter))&&(o=e.filter);var a;if(e.arrayFormat in yo?a=e.arrayFormat:"indices"in e?a=e.indices?"indices":"repeat":a=Pe.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof e.allowDots=="undefined"?e.encodeDotInKeys===!0?!0:Pe.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Pe.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Pe.allowEmptyArrays,arrayFormat:a,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Pe.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter=="undefined"?Pe.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Pe.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:Pe.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:Pe.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Pe.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Pe.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Pe.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Pe.strictNullHandling}},mu=function(t,e){var r=t,n=yu(e),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):pt(n.filter)&&(o=n.filter,i=o);var a=[];if(typeof r!="object"||r===null)return"";var s=yo[n.arrayFormat],p=s==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var f=vo(),l=0;l<i.length;++l){var v=i[l],x=r[v];n.skipNulls&&x===null||mo(a,vu(x,v,s,p,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,f))}var A=a.join(n.delimiter),y=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),A.length>0?y+A:""},Pt=po,J0=Object.prototype.hasOwnProperty,Ao=Array.isArray,Te={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Pt.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},gu=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Eo=function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},Au="utf8=%26%2310003%3B",Eu="utf8=%E2%9C%93",wu=function(e,r){var n={__proto__:null},i=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=r.parameterLimit===1/0?void 0:r.parameterLimit,a=i.split(r.delimiter,r.throwOnLimitExceeded?o+1:o);if(r.throwOnLimitExceeded&&a.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(o===1?"":"s")+" allowed.");var s=-1,p,f=r.charset;if(r.charsetSentinel)for(p=0;p<a.length;++p)a[p].indexOf("utf8=")===0&&(a[p]===Eu?f="utf-8":a[p]===Au&&(f="iso-8859-1"),s=p,p=a.length);for(p=0;p<a.length;++p)if(p!==s){var l=a[p],v=l.indexOf("]="),x=v===-1?l.indexOf("="):v+1,A,y;x===-1?(A=r.decoder(l,Te.decoder,f,"key"),y=r.strictNullHandling?null:""):(A=r.decoder(l.slice(0,x),Te.decoder,f,"key"),y=Pt.maybeMap(Eo(l.slice(x+1),r,Ao(n[A])?n[A].length:0),function(g){return r.decoder(g,Te.decoder,f,"value")})),y&&r.interpretNumericEntities&&f==="iso-8859-1"&&(y=gu(String(y))),l.indexOf("[]=")>-1&&(y=Ao(y)?[y]:y);var m=J0.call(n,A);m&&r.duplicates==="combine"?n[A]=Pt.combine(n[A],y):(!m||r.duplicates==="last")&&(n[A]=y)}return n},Bu=function(t,e,r,n){var i=0;if(t.length>0&&t[t.length-1]==="[]"){var o=t.slice(0,-1).join("");i=Array.isArray(e)&&e[o]?e[o].length:0}for(var a=n?e:Eo(e,r,i),s=t.length-1;s>=0;--s){var p,f=t[s];if(f==="[]"&&r.parseArrays)p=r.allowEmptyArrays&&(a===""||r.strictNullHandling&&a===null)?[]:Pt.combine([],a);else{p=r.plainObjects?{__proto__:null}:{};var l=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f,v=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,x=parseInt(v,10);!r.parseArrays&&v===""?p={0:a}:!isNaN(x)&&f!==v&&String(x)===v&&x>=0&&r.parseArrays&&x<=r.arrayLimit?(p=[],p[x]=a):v!=="__proto__"&&(p[v]=a)}a=p}return a},Cu=function(e,r,n,i){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,p=n.depth>0&&a.exec(o),f=p?o.slice(0,p.index):o,l=[];if(f){if(!n.plainObjects&&J0.call(Object.prototype,f)&&!n.allowPrototypes)return;l.push(f)}for(var v=0;n.depth>0&&(p=s.exec(o))!==null&&v<n.depth;){if(v+=1,!n.plainObjects&&J0.call(Object.prototype,p[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(p[1])}if(p){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");l.push("["+o.slice(p.index)+"]")}return Bu(l,r,n,i)}},bu=function(e){if(!e)return Te;if(typeof e.allowEmptyArrays!="undefined"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys!="undefined"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder!="undefined"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset!="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded!="undefined"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset=="undefined"?Te.charset:e.charset,n=typeof e.duplicates=="undefined"?Te.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof e.allowDots=="undefined"?e.decodeDotInKeys===!0?!0:Te.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Te.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Te.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Te.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Te.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Te.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Te.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Te.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Te.decoder,delimiter:typeof e.delimiter=="string"||Pt.isRegExp(e.delimiter)?e.delimiter:Te.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Te.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Te.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Te.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Te.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Te.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Te.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},Fu=function(t,e){var r=bu(e);if(t===""||t===null||typeof t=="undefined")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?wu(t,r):t,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),a=0;a<o.length;++a){var s=o[a],p=Cu(s,n[s],r,typeof t=="string");i=Pt.merge(i,p,r)}return r.allowSparse===!0?i:Pt.compact(i)},Du=mu,_u=Fu,Su=X0,Tu={formats:Su,parse:_u,stringify:Du};const Iu=A0(Tu);function wo(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ru}=Object.prototype,{getPrototypeOf:en}=Object,{iterator:$r,toStringTag:Bo}=Symbol,zr=(t=>e=>{const r=Ru.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ft=t=>(t=t.toLowerCase(),e=>zr(e)===t),Wr=t=>e=>typeof e===t,{isArray:Jt}=Array,yr=Wr("undefined");function mr(t){return t!==null&&!yr(t)&&t.constructor!==null&&!yr(t.constructor)&&Je(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Co=ft("ArrayBuffer");function Ou(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Co(t.buffer),e}const ku=Wr("string"),Je=Wr("function"),bo=Wr("number"),gr=t=>t!==null&&typeof t=="object",Pu=t=>t===!0||t===!1,Gr=t=>{if(zr(t)!=="object")return!1;const e=en(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Bo in t)&&!($r in t)},Mu=t=>{if(!gr(t)||mr(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},Lu=ft("Date"),Uu=ft("File"),Nu=ft("Blob"),Hu=ft("FileList"),qu=t=>gr(t)&&Je(t.pipe),$u=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Je(t.append)&&((e=zr(t))==="formdata"||e==="object"&&Je(t.toString)&&t.toString()==="[object FormData]"))},zu=ft("URLSearchParams"),[Wu,Gu,Vu,Ku]=["ReadableStream","Request","Response","Headers"].map(ft),ju=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ar(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t=="undefined")return;let n,i;if(typeof t!="object"&&(t=[t]),Jt(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(mr(t))return;const o=r?Object.getOwnPropertyNames(t):Object.keys(t),a=o.length;let s;for(n=0;n<a;n++)s=o[n],e.call(null,t[s],s,t)}}function Fo(t,e){if(mr(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const Mt=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Do=t=>!yr(t)&&t!==Mt;function tn(){const{caseless:t}=Do(this)&&this||{},e={},r=(n,i)=>{const o=t&&Fo(e,i)||i;Gr(e[o])&&Gr(n)?e[o]=tn(e[o],n):Gr(n)?e[o]=tn({},n):Jt(n)?e[o]=n.slice():e[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Ar(arguments[n],r);return e}const Xu=(t,e,r,{allOwnKeys:n}={})=>(Ar(e,(i,o)=>{r&&Je(i)?t[o]=wo(i,r):t[o]=i},{allOwnKeys:n}),t),Yu=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Zu=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Qu=(t,e,r,n)=>{let i,o,a;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)a=i[o],(!n||n(a,t,e))&&!s[a]&&(e[a]=t[a],s[a]=!0);t=r!==!1&&en(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Ju=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},el=t=>{if(!t)return null;if(Jt(t))return t;let e=t.length;if(!bo(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},tl=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&en(Uint8Array)),rl=(t,e)=>{const n=(t&&t[$r]).call(t);let i;for(;(i=n.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},nl=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},il=ft("HTMLFormElement"),ol=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),_o=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),al=ft("RegExp"),So=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Ar(r,(i,o)=>{let a;(a=e(i,o,t))!==!1&&(n[o]=a||i)}),Object.defineProperties(t,n)},sl=t=>{So(t,(e,r)=>{if(Je(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(Je(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},fl=(t,e)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Jt(t)?n(t):n(String(t).split(e)),r},cl=()=>{},ul=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function ll(t){return!!(t&&Je(t.append)&&t[Bo]==="FormData"&&t[$r])}const hl=t=>{const e=new Array(10),r=(n,i)=>{if(gr(n)){if(e.indexOf(n)>=0)return;if(mr(n))return n;if(!("toJSON"in n)){e[i]=n;const o=Jt(n)?[]:{};return Ar(n,(a,s)=>{const p=r(a,i+1);!yr(p)&&(o[s]=p)}),e[i]=void 0,o}}return n};return r(t,0)},xl=ft("AsyncFunction"),dl=t=>t&&(gr(t)||Je(t))&&Je(t.then)&&Je(t.catch),To=((t,e)=>t?setImmediate:e?((r,n)=>(Mt.addEventListener("message",({source:i,data:o})=>{i===Mt&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Mt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Je(Mt.postMessage)),pl=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Mt):typeof process!="undefined"&&process.nextTick||To,$={isArray:Jt,isArrayBuffer:Co,isBuffer:mr,isFormData:$u,isArrayBufferView:Ou,isString:ku,isNumber:bo,isBoolean:Pu,isObject:gr,isPlainObject:Gr,isEmptyObject:Mu,isReadableStream:Wu,isRequest:Gu,isResponse:Vu,isHeaders:Ku,isUndefined:yr,isDate:Lu,isFile:Uu,isBlob:Nu,isRegExp:al,isFunction:Je,isStream:qu,isURLSearchParams:zu,isTypedArray:tl,isFileList:Hu,forEach:Ar,merge:tn,extend:Xu,trim:ju,stripBOM:Yu,inherits:Zu,toFlatObject:Qu,kindOf:zr,kindOfTest:ft,endsWith:Ju,toArray:el,forEachEntry:rl,matchAll:nl,isHTMLForm:il,hasOwnProperty:_o,hasOwnProp:_o,reduceDescriptors:So,freezeMethods:sl,toObjectSet:fl,toCamelCase:ol,noop:cl,toFiniteNumber:ul,findKey:Fo,global:Mt,isContextDefined:Do,isSpecCompliantForm:ll,toJSONObject:hl,isAsyncFn:xl,isThenable:dl,setImmediate:To,asap:pl,isIterable:t=>t!=null&&Je(t[$r])};function he(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}$.inherits(he,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:$.toJSONObject(this.config),code:this.code,status:this.status}}});const Io=he.prototype,Ro={};["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(t=>{Ro[t]={value:t}}),Object.defineProperties(he,Ro),Object.defineProperty(Io,"isAxiosError",{value:!0}),he.from=(t,e,r,n,i,o)=>{const a=Object.create(Io);return $.toFlatObject(t,a,function(p){return p!==Error.prototype},s=>s!=="isAxiosError"),he.call(a,t.message,e,r,n,i),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const vl=null;function rn(t){return $.isPlainObject(t)||$.isArray(t)}function Oo(t){return $.endsWith(t,"[]")?t.slice(0,-2):t}function ko(t,e,r){return t?t.concat(e).map(function(i,o){return i=Oo(i),!r&&o?"["+i+"]":i}).join(r?".":""):e}function yl(t){return $.isArray(t)&&!t.some(rn)}const ml=$.toFlatObject($,{},null,function(e){return/^is[A-Z]/.test(e)});function Vr(t,e,r){if(!$.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!$.isUndefined(g[m])});const n=r.metaTokens,i=r.visitor||l,o=r.dots,a=r.indexes,p=(r.Blob||typeof Blob!="undefined"&&Blob)&&$.isSpecCompliantForm(e);if(!$.isFunction(i))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if($.isDate(y))return y.toISOString();if($.isBoolean(y))return y.toString();if(!p&&$.isBlob(y))throw new he("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(y)||$.isTypedArray(y)?p&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function l(y,m,g){let D=y;if(y&&!g&&typeof y=="object"){if($.endsWith(m,"{}"))m=n?m:m.slice(0,-2),y=JSON.stringify(y);else if($.isArray(y)&&yl(y)||($.isFileList(y)||$.endsWith(m,"[]"))&&(D=$.toArray(y)))return m=Oo(m),D.forEach(function(w,b){!($.isUndefined(w)||w===null)&&e.append(a===!0?ko([m],b,o):a===null?m:m+"[]",f(w))}),!1}return rn(y)?!0:(e.append(ko(g,m,o),f(y)),!1)}const v=[],x=Object.assign(ml,{defaultVisitor:l,convertValue:f,isVisitable:rn});function A(y,m){if(!$.isUndefined(y)){if(v.indexOf(y)!==-1)throw Error("Circular reference detected in "+m.join("."));v.push(y),$.forEach(y,function(D,C){(!($.isUndefined(D)||D===null)&&i.call(e,D,$.isString(C)?C.trim():C,m,x))===!0&&A(D,m?m.concat(C):[C])}),v.pop()}}if(!$.isObject(t))throw new TypeError("data must be an object");return A(t),e}function Po(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function nn(t,e){this._pairs=[],t&&Vr(t,this,e)}const Mo=nn.prototype;Mo.append=function(e,r){this._pairs.push([e,r])},Mo.toString=function(e){const r=e?function(n){return e.call(this,n,Po)}:Po;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function gl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Lo(t,e,r){if(!e)return t;const n=r&&r.encode||gl;$.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(e,r):o=$.isURLSearchParams(e)?e.toString():new nn(e,r).toString(n),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Uo{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$.forEach(this.handlers,function(n){n!==null&&e(n)})}}const No={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Al={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams!="undefined"?URLSearchParams:nn,FormData:typeof FormData!="undefined"?FormData:null,Blob:typeof Blob!="undefined"?Blob:null},protocols:["http","https","file","blob","url","data"]},on=typeof window!="undefined"&&typeof document!="undefined",an=typeof navigator=="object"&&navigator||void 0,El=on&&(!an||["ReactNative","NativeScript","NS"].indexOf(an.product)<0),wl=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bl=on&&window.location.href||"http://localhost",je=te(te({},Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:on,hasStandardBrowserEnv:El,hasStandardBrowserWebWorkerEnv:wl,navigator:an,origin:Bl},Symbol.toStringTag,{value:"Module"}))),Al);function Cl(t,e){return Vr(t,new je.classes.URLSearchParams,te({visitor:function(r,n,i,o){return je.isNode&&$.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function bl(t){return $.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Fl(t){const e={},r=Object.keys(t);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],e[o]=t[o];return e}function Ho(t){function e(r,n,i,o){let a=r[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),p=o>=r.length;return a=!a&&$.isArray(i)?i.length:a,p?($.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!s):((!i[a]||!$.isObject(i[a]))&&(i[a]=[]),e(r,n,i[a],o)&&$.isArray(i[a])&&(i[a]=Fl(i[a])),!s)}if($.isFormData(t)&&$.isFunction(t.entries)){const r={};return $.forEachEntry(t,(n,i)=>{e(bl(n),i,r,0)}),r}return null}function Dl(t,e,r){if($.isString(t))try{return(e||JSON.parse)(t),$.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Er={transitional:No,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=$.isObject(e);if(o&&$.isHTMLForm(e)&&(e=new FormData(e)),$.isFormData(e))return i?JSON.stringify(Ho(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e)||$.isReadableStream(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Cl(e,this.formSerializer).toString();if((s=$.isFileList(e))||n.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Vr(s?{"files[]":e}:e,p&&new p,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),Dl(e)):e}],transformResponse:[function(e){const r=this.transitional||Er.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if($.isResponse(e)||$.isReadableStream(e))return e;if(e&&$.isString(e)&&(n&&!this.responseType||i)){const a=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(s){if(a)throw s.name==="SyntaxError"?he.from(s,he.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:je.classes.FormData,Blob:je.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],t=>{Er.headers[t]={}});const _l=$.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"]),Sl=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
6
|
+
`).forEach(function(a){i=a.indexOf(":"),r=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!r||e[r]&&_l[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},qo=Symbol("internals");function wr(t){return t&&String(t).trim().toLowerCase()}function Kr(t){return t===!1||t==null?t:$.isArray(t)?t.map(Kr):String(t)}function Tl(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const Il=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function sn(t,e,r,n,i){if($.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!$.isString(e)){if($.isString(n))return e.indexOf(n)!==-1;if($.isRegExp(n))return n.test(e)}}function Rl(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function Ol(t,e){const r=$.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,o,a){return this[n].call(this,e,i,o,a)},configurable:!0})})}let et=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function o(s,p,f){const l=wr(p);if(!l)throw new Error("header name must be a non-empty string");const v=$.findKey(i,l);(!v||i[v]===void 0||f===!0||f===void 0&&i[v]!==!1)&&(i[v||p]=Kr(s))}const a=(s,p)=>$.forEach(s,(f,l)=>o(f,l,p));if($.isPlainObject(e)||e instanceof this.constructor)a(e,r);else if($.isString(e)&&(e=e.trim())&&!Il(e))a(Sl(e),r);else if($.isObject(e)&&$.isIterable(e)){let s={},p,f;for(const l of e){if(!$.isArray(l))throw TypeError("Object iterator must return a key-value pair");s[f=l[0]]=(p=s[f])?$.isArray(p)?[...p,l[1]]:[p,l[1]]:l[1]}a(s,r)}else e!=null&&o(r,e,n);return this}get(e,r){if(e=wr(e),e){const n=$.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return Tl(i);if($.isFunction(r))return r.call(this,i,n);if($.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=wr(e),e){const n=$.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||sn(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function o(a){if(a=wr(a),a){const s=$.findKey(n,a);s&&(!r||sn(n,n[s],s,r))&&(delete n[s],i=!0)}}return $.isArray(e)?e.forEach(o):o(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!e||sn(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const r=this,n={};return $.forEach(this,(i,o)=>{const a=$.findKey(n,o);if(a){r[a]=Kr(i),delete r[o];return}const s=e?Rl(o):String(o).trim();s!==o&&delete r[o],r[s]=Kr(i),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return $.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&$.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
|
|
7
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[qo]=this[qo]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=wr(a);n[s]||(Ol(i,a),n[s]=!0)}return $.isArray(e)?e.forEach(o):o(e),this}};et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$.reduceDescriptors(et.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}}),$.freezeMethods(et);function fn(t,e){const r=this||Er,n=e||r,i=et.from(n.headers);let o=n.data;return $.forEach(t,function(s){o=s.call(r,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function $o(t){return!!(t&&t.__CANCEL__)}function er(t,e,r){he.call(this,t==null?"canceled":t,he.ERR_CANCELED,e,r),this.name="CanceledError"}$.inherits(er,he,{__CANCEL__:!0});function zo(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new he("Request failed with status code "+r.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function kl(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Pl(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,o=0,a;return e=e!==void 0?e:1e3,function(p){const f=Date.now(),l=n[o];a||(a=f),r[i]=p,n[i]=f;let v=o,x=0;for(;v!==i;)x+=r[v++],v=v%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),f-a<e)return;const A=l&&f-l;return A?Math.round(x*1e3/A):void 0}}function Ml(t,e){let r=0,n=1e3/e,i,o;const a=(f,l=Date.now())=>{r=l,i=null,o&&(clearTimeout(o),o=null),t(...f)};return[(...f)=>{const l=Date.now(),v=l-r;v>=n?a(f,l):(i=f,o||(o=setTimeout(()=>{o=null,a(i)},n-v)))},()=>i&&a(i)]}const jr=(t,e,r=3)=>{let n=0;const i=Pl(50,250);return Ml(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,p=a-n,f=i(p),l=a<=s;n=a;const v={loaded:a,total:s,progress:s?a/s:void 0,bytes:p,rate:f||void 0,estimated:f&&s&&l?(s-a)/f:void 0,event:o,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(v)},r)},Wo=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Go=t=>(...e)=>$.asap(()=>t(...e)),Ll=je.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,je.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(je.origin),je.navigator&&/(msie|trident)/i.test(je.navigator.userAgent)):()=>!0,Ul=je.hasStandardBrowserEnv?{write(t,e,r,n,i,o){const a=[t+"="+encodeURIComponent(e)];$.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),$.isString(n)&&a.push("path="+n),$.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Nl(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Hl(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Vo(t,e,r){let n=!Nl(e);return t&&(n||r==!1)?Hl(t,e):e}const Ko=t=>t instanceof et?te({},t):t;function Lt(t,e){e=e||{};const r={};function n(f,l,v,x){return $.isPlainObject(f)&&$.isPlainObject(l)?$.merge.call({caseless:x},f,l):$.isPlainObject(l)?$.merge({},l):$.isArray(l)?l.slice():l}function i(f,l,v,x){if($.isUndefined(l)){if(!$.isUndefined(f))return n(void 0,f,v,x)}else return n(f,l,v,x)}function o(f,l){if(!$.isUndefined(l))return n(void 0,l)}function a(f,l){if($.isUndefined(l)){if(!$.isUndefined(f))return n(void 0,f)}else return n(void 0,l)}function s(f,l,v){if(v in e)return n(f,l);if(v in t)return n(void 0,f)}const p={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(f,l,v)=>i(Ko(f),Ko(l),v,!0)};return $.forEach(Object.keys(te(te({},t),e)),function(l){const v=p[l]||i,x=v(t[l],e[l],l);$.isUndefined(x)&&v!==s||(r[l]=x)}),r}const jo=t=>{const e=Lt({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=e;e.headers=a=et.from(a),e.url=Lo(Vo(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let p;if($.isFormData(r)){if(je.hasStandardBrowserEnv||je.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((p=a.getContentType())!==!1){const[f,...l]=p?p.split(";").map(v=>v.trim()).filter(Boolean):[];a.setContentType([f||"multipart/form-data",...l].join("; "))}}if(je.hasStandardBrowserEnv&&(n&&$.isFunction(n)&&(n=n(e)),n||n!==!1&&Ll(e.url))){const f=i&&o&&Ul.read(o);f&&a.set(i,f)}return e},ql=typeof XMLHttpRequest!="undefined"&&function(t){return new Promise(function(r,n){const i=jo(t);let o=i.data;const a=et.from(i.headers).normalize();let{responseType:s,onUploadProgress:p,onDownloadProgress:f}=i,l,v,x,A,y;function m(){A&&A(),y&&y(),i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function D(){if(!g)return;const w=et.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:w,config:t,request:g};zo(function(k){r(k),m()},function(k){n(k),m()},_),g=null}"onloadend"in g?g.onloadend=D:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(D)},g.onabort=function(){g&&(n(new he("Request aborted",he.ECONNABORTED,t,g)),g=null)},g.onerror=function(){n(new he("Network Error",he.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const _=i.transitional||No;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),n(new he(b,_.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,t,g)),g=null},o===void 0&&a.setContentType(null),"setRequestHeader"in g&&$.forEach(a.toJSON(),function(b,_){g.setRequestHeader(_,b)}),$.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),s&&s!=="json"&&(g.responseType=i.responseType),f&&([x,y]=jr(f,!0),g.addEventListener("progress",x)),p&&g.upload&&([v,A]=jr(p),g.upload.addEventListener("progress",v),g.upload.addEventListener("loadend",A)),(i.cancelToken||i.signal)&&(l=w=>{g&&(n(!w||w.type?new er(null,t,g):w),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const C=kl(i.url);if(C&&je.protocols.indexOf(C)===-1){n(new he("Unsupported protocol "+C+":",he.ERR_BAD_REQUEST,t));return}g.send(o||null)})},$l=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const o=function(f){if(!i){i=!0,s();const l=f instanceof Error?f:this.reason;n.abort(l instanceof he?l:new er(l instanceof Error?l.message:l))}};let a=e&&setTimeout(()=>{a=null,o(new he(`timeout ${e} of ms exceeded`,he.ETIMEDOUT))},e);const s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),t=null)};t.forEach(f=>f.addEventListener("abort",o));const{signal:p}=n;return p.unsubscribe=()=>$.asap(s),p}},zl=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},Wl=function(t,e){return yi(this,null,function*(){try{for(var r=Us(Gl(t)),n,i,o;n=!(i=yield new Gt(r.next())).done;n=!1){const a=i.value;yield*mi(zl(a,e))}}catch(i){o=[i]}finally{try{n&&(i=r.return)&&(yield new Gt(i.call(r)))}finally{if(o)throw o[0]}}})},Gl=function(t){return yi(this,null,function*(){if(t[Symbol.asyncIterator]){yield*mi(t);return}const e=t.getReader();try{for(;;){const{done:r,value:n}=yield new Gt(e.read());if(r)break;yield n}}finally{yield new Gt(e.cancel())}})},Xo=(t,e,r,n)=>{const i=Wl(t,e);let o=0,a,s=f=>{a||(a=!0,n&&n(f))};return new ReadableStream({pull(f){return Qe(this,null,function*(){try{const{done:l,value:v}=yield i.next();if(l){s(),f.close();return}let x=v.byteLength;if(r){let A=o+=x;r(A)}f.enqueue(new Uint8Array(v))}catch(l){throw s(l),l}})},cancel(f){return s(f),i.return()}},{highWaterMark:2})},Xr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Yo=Xr&&typeof ReadableStream=="function",Vl=Xr&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):t=>Qe(this,null,function*(){return new Uint8Array(yield new Response(t).arrayBuffer())})),Zo=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},Kl=Yo&&Zo(()=>{let t=!1;const e=new Request(je.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Qo=64*1024,cn=Yo&&Zo(()=>$.isReadableStream(new Response("").body)),Yr={stream:cn&&(t=>t.body)};Xr&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Yr[e]&&(Yr[e]=$.isFunction(t[e])?r=>r[e]():(r,n)=>{throw new he(`Response type '${e}' is not supported`,he.ERR_NOT_SUPPORT,n)})})})(new Response);const jl=t=>Qe(this,null,function*(){if(t==null)return 0;if($.isBlob(t))return t.size;if($.isSpecCompliantForm(t))return(yield new Request(je.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if($.isArrayBufferView(t)||$.isArrayBuffer(t))return t.byteLength;if($.isURLSearchParams(t)&&(t=t+""),$.isString(t))return(yield Vl(t)).byteLength}),Xl=(t,e)=>Qe(this,null,function*(){const r=$.toFiniteNumber(t.getContentLength());return r==null?jl(e):r}),un={http:vl,xhr:ql,fetch:Xr&&(t=>Qe(this,null,function*(){let{url:e,method:r,data:n,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:p,responseType:f,headers:l,withCredentials:v="same-origin",fetchOptions:x}=jo(t);f=f?(f+"").toLowerCase():"text";let A=$l([i,o&&o.toAbortSignal()],a),y;const m=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let g;try{if(p&&Kl&&r!=="get"&&r!=="head"&&(g=yield Xl(l,n))!==0){let _=new Request(e,{method:"POST",body:n,duplex:"half"}),T;if($.isFormData(n)&&(T=_.headers.get("content-type"))&&l.setContentType(T),_.body){const[k,q]=Wo(g,jr(Go(p)));n=Xo(_.body,Qo,k,q)}}$.isString(v)||(v=v?"include":"omit");const D="credentials"in Request.prototype;y=new Request(e,Le(te({},x),{signal:A,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:D?v:void 0}));let C=yield fetch(y,x);const w=cn&&(f==="stream"||f==="response");if(cn&&(s||w&&m)){const _={};["status","statusText","headers"].forEach(X=>{_[X]=C[X]});const T=$.toFiniteNumber(C.headers.get("content-length")),[k,q]=s&&Wo(T,jr(Go(s),!0))||[];C=new Response(Xo(C.body,Qo,k,()=>{q&&q(),m&&m()}),_)}f=f||"text";let b=yield Yr[$.findKey(Yr,f)||"text"](C,t);return!w&&m&&m(),yield new Promise((_,T)=>{zo(_,T,{data:b,headers:et.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:y})})}catch(D){throw m&&m(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new he("Network Error",he.ERR_NETWORK,t,y),{cause:D.cause||D}):he.from(D,D&&D.code,t,y)}}))};$.forEach(un,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(r){}Object.defineProperty(t,"adapterName",{value:e})}});const Jo=t=>`- ${t}`,Yl=t=>$.isFunction(t)||t===null||t===!1,ea={getAdapter:t=>{t=$.isArray(t)?t:[t];const{length:e}=t;let r,n;const i={};for(let o=0;o<e;o++){r=t[o];let a;if(n=r,!Yl(r)&&(n=un[(a=String(r)).toLowerCase()],n===void 0))throw new he(`Unknown adapter '${a}'`);if(n)break;i[a||"#"+o]=n}if(!n){const o=Object.entries(i).map(([s,p])=>`adapter ${s} `+(p===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
|
|
8
|
+
`+o.map(Jo).join(`
|
|
9
|
+
`):" "+Jo(o[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:un};function ln(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new er(null,t)}function ta(t){return ln(t),t.headers=et.from(t.headers),t.data=fn.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ea.getAdapter(t.adapter||Er.adapter)(t).then(function(n){return ln(t),n.data=fn.call(t,t.transformResponse,n),n.headers=et.from(n.headers),n},function(n){return $o(n)||(ln(t),n&&n.response&&(n.response.data=fn.call(t,t.transformResponse,n.response),n.response.headers=et.from(n.response.headers))),Promise.reject(n)})}const ra="1.11.0",Zr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Zr[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const na={};Zr.transitional=function(e,r,n){function i(o,a){return"[Axios v"+ra+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return(o,a,s)=>{if(e===!1)throw new he(i(a," has been removed"+(r?" in "+r:"")),he.ERR_DEPRECATED);return r&&!na[a]&&(na[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,s):!0}},Zr.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Zl(t,e,r){if(typeof t!="object")throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const o=n[i],a=e[o];if(a){const s=t[o],p=s===void 0||a(s,o,t);if(p!==!0)throw new he("option "+o+" must be "+p,he.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new he("Unknown option "+o,he.ERR_BAD_OPTION)}}const Qr={assertOptions:Zl,validators:Zr},vt=Qr.validators;let Ut=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Uo,response:new Uo}}request(e,r){return Qe(this,null,function*(){try{return yield this._request(e,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
10
|
+
`+o):n.stack=o}catch(a){}}throw n}})}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Lt(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Qr.assertOptions(n,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),i!=null&&($.isFunction(i)?r.paramsSerializer={serialize:i}:Qr.assertOptions(i,{encode:vt.function,serialize:vt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Qr.assertOptions(r,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&&$.merge(o.common,o[r.method]);o&&$.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),r.headers=et.concat(a,o);const s=[];let p=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(p=p&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let l,v=0,x;if(!p){const y=[ta.bind(this),void 0];for(y.unshift(...s),y.push(...f),x=y.length,l=Promise.resolve(r);v<x;)l=l.then(y[v++],y[v++]);return l}x=s.length;let A=r;for(v=0;v<x;){const y=s[v++],m=s[v++];try{A=y(A)}catch(g){m.call(this,g);break}}try{l=ta.call(this,A)}catch(y){return Promise.reject(y)}for(v=0,x=f.length;v<x;)l=l.then(f[v++],f[v++]);return l}getUri(e){e=Lt(this.defaults,e);const r=Vo(e.baseURL,e.url,e.allowAbsoluteUrls);return Lo(r,e.params,e.paramsSerializer)}};$.forEach(["delete","get","head","options"],function(e){Ut.prototype[e]=function(r,n){return this.request(Lt(n||{},{method:e,url:r,data:(n||{}).data}))}}),$.forEach(["post","put","patch"],function(e){function r(n){return function(o,a,s){return this.request(Lt(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Ut.prototype[e]=r(),Ut.prototype[e+"Form"]=r(!0)});let Ql=class Ns{constructor(e){if(typeof e!="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(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{n.subscribe(s),o=s}).then(i);return a.cancel=function(){n.unsubscribe(o)},a},e(function(o,a,s){n.reason||(n.reason=new er(o,a,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new Ns(function(i){e=i}),cancel:e}}};function Jl(t){return function(r){return t.apply(null,r)}}function eh(t){return $.isObject(t)&&t.isAxiosError===!0}const hn={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(hn).forEach(([t,e])=>{hn[e]=t});function ia(t){const e=new Ut(t),r=wo(Ut.prototype.request,e);return $.extend(r,Ut.prototype,e,{allOwnKeys:!0}),$.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return ia(Lt(t,i))},r}const Re=ia(Er);Re.Axios=Ut,Re.CanceledError=er,Re.CancelToken=Ql,Re.isCancel=$o,Re.VERSION=ra,Re.toFormData=Vr,Re.AxiosError=he,Re.Cancel=Re.CanceledError,Re.all=function(e){return Promise.all(e)},Re.spread=Jl,Re.isAxiosError=eh,Re.mergeConfig=Lt,Re.AxiosHeaders=et,Re.formToJSON=t=>Ho($.isHTMLForm(t)?new FormData(t):t),Re.getAdapter=ea.getAdapter,Re.HttpStatusCode=hn,Re.default=Re;const{Axios:Tx,AxiosError:Ix,CanceledError:Rx,isCancel:Ox,CancelToken:kx,VERSION:Px,all:Mx,Cancel:Lx,isAxiosError:Ux,spread:Nx,toFormData:Hx,AxiosHeaders:qx,HttpStatusCode:$x,formToJSON:zx,getAdapter:Wx,mergeConfig:Gx}=Re,Ce={NORMAL:"NORMAL",TEXT:"TEXT",AUDIO:"AUDIO",MP4:"MP4",CAMERA:"CAMERA",VIDEO_STREAM:"VIDEO_STREAM",POINT_VALUE:"POINT_VALUE",LIGHT_PLATE:"LIGHT_PLATE",TABLE:"TABLE",SWITCH:"SWITCH",RADIO:"RADIO",SLIDER:"SLIDER",SELECT:"SELECT",CHECKBOX:"CHECKBOX",TIME:"TIME",BUTTON:"BUTTON",INPUT:"INPUT"},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"},th={OFFLINE:0},Jr={Emit:7},rh={STOP:2},nh={1:1,2:2,3:3,4:4,5:5},oa={GRAPH:{SOCKET:"GRAPH_SOCKET"}},ih="/",oh=location.protocol==="https:";(Es=(As=window.meta)==null?void 0:As.app)!=null&&Es.server_ip||location.origin;const ah=oh?"wss:":"ws:",sh=location.origin;(Bs=(ws=window==null?void 0:window.meta)==null?void 0:ws.graph)!=null&&Bs.savePath,(bs=(Cs=window==null?void 0:window.meta)==null?void 0:Cs.graph)!=null&&bs.templatePath;const aa=`${ah}//${location.host}/ws`,Oe=Re.create({baseURL:sh,timeout:window.REQUEST_TIMEOUT||3e4,withCredentials:!1,paramsSerializer:t=>Iu.stringify(t)});Oe.interceptors.request.use(t=>(t.headers["x-token"]="ewoglCJhbGcilDogpc3",t),t=>Promise.reject(t)),Oe.interceptors.response.use(t=>{const{data:e}=t;return Promise.resolve(e)},t=>Promise.reject(t));function fh(t,e={},r={}){return new Promise(n=>{Oe.get(t,te({params:e},r)).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function ch(t,e={},r={}){return new Promise(n=>{Oe.post(t,e,r).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function uh(t,e={},r={}){return Oe.get(t,te({params:e},r))}function lh(t,e={},r={}){return Oe.post(t,e,r)}function hh(t,e={}){return Oe.get(`/filehandle/${t}`,{params:e})}function xh(t,e={},r={}){return Oe.post(`/filehandle/${t}`,e,r)}function dh(t,e={}){return Oe.get(`/user/${t}`,{params:e})}function ph(t,e={},r={}){return Oe.post(`/user/${t}`,e,r)}function vh(t,e={}){return Oe.get(`${t}`,e.local?{params:e,baseURL:ih}:{params:e})}function yh(t,e={}){return Oe.get(`/media/${t}/`,{params:e})}function mh(t,e={},r={}){return Oe.post(`/media/${t}/`,e,r)}function gh(t,e={}){return Oe.get(`/common/${t}/`,{params:e})}function Ah(t,e={},r={}){return Oe.post(`/common/${t}/`,e,r)}function Eh(t,e={}){return Oe.get(`/history/${t}`,{params:e})}function wh(t,e={},r={}){return Oe.post(`/history/${t}`,e,r)}function Bh(t,e={}){return Oe.get(`/common/factory/${t}`,{params:e})}function Ch(t,e={},r={}){return Oe.post(`/common/factory/${t}`,e,r)}function bh(t,e={}){return Oe.get(`/factory/${t}`,{params:e})}function Fh(t,e={},r={}){return Oe.post(`/factory/${t}`,e,r)}const xn={getApi:fh,postApi:ch,getFileApi:hh,postFileApi:xh,getBaseApi:uh,postBaseApi:lh,getUserApi:dh,postUserApi:ph,getGraphApi:vh,getMediaApi:yh,postMediaApi:mh,getCommonApi:gh,postCommonApi:Ah,getHistoryApi:Eh,postHistoryApi:wh,getFactoryApi:bh,postFactoryApi:Fh,getCommonFactoryApi:Bh,postCommonFactoryApi:Ch};function Dh(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(i){i(r)}),(n=t.get("*"))&&n.slice().map(function(i){i(e,r)})}}}const dn=Dh();function sa(t){return Object.prototype.toString.call(t).slice(8,-1)}var _h={exports:{}};function Sh(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pn={exports:{}},fa;function ve(){return fa||(fa=1,function(t,e){(function(r,n){t.exports=n()})(le,function(){var r=r||function(n,i){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 le!="undefined"&&le.crypto&&(o=le.crypto),!o&&typeof Sh=="function")try{o=Ei}catch(C){}var a=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(C){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(C){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function C(){}return function(w){var b;return C.prototype=w,b=new C,C.prototype=null,b}}(),p={},f=p.lib={},l=f.Base=function(){return{extend:function(C){var w=s(this);return C&&w.mixIn(C),(!w.hasOwnProperty("init")||this.init===w.init)&&(w.init=function(){w.$super.init.apply(this,arguments)}),w.init.prototype=w,w.$super=this,w},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var w in C)C.hasOwnProperty(w)&&(this[w]=C[w]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),v=f.WordArray=l.extend({init:function(C,w){C=this.words=C||[],w!=i?this.sigBytes=w:this.sigBytes=C.length*4},toString:function(C){return(C||A).stringify(this)},concat:function(C){var w=this.words,b=C.words,_=this.sigBytes,T=C.sigBytes;if(this.clamp(),_%4)for(var k=0;k<T;k++){var q=b[k>>>2]>>>24-k%4*8&255;w[_+k>>>2]|=q<<24-(_+k)%4*8}else for(var X=0;X<T;X+=4)w[_+X>>>2]=b[X>>>2];return this.sigBytes+=T,this},clamp:function(){var C=this.words,w=this.sigBytes;C[w>>>2]&=4294967295<<32-w%4*8,C.length=n.ceil(w/4)},clone:function(){var C=l.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var w=[],b=0;b<C;b+=4)w.push(a());return new v.init(w,C)}}),x=p.enc={},A=x.Hex={stringify:function(C){for(var w=C.words,b=C.sigBytes,_=[],T=0;T<b;T++){var k=w[T>>>2]>>>24-T%4*8&255;_.push((k>>>4).toString(16)),_.push((k&15).toString(16))}return _.join("")},parse:function(C){for(var w=C.length,b=[],_=0;_<w;_+=2)b[_>>>3]|=parseInt(C.substr(_,2),16)<<24-_%8*4;return new v.init(b,w/2)}},y=x.Latin1={stringify:function(C){for(var w=C.words,b=C.sigBytes,_=[],T=0;T<b;T++){var k=w[T>>>2]>>>24-T%4*8&255;_.push(String.fromCharCode(k))}return _.join("")},parse:function(C){for(var w=C.length,b=[],_=0;_<w;_++)b[_>>>2]|=(C.charCodeAt(_)&255)<<24-_%4*8;return new v.init(b,w)}},m=x.Utf8={stringify:function(C){try{return decodeURIComponent(escape(y.stringify(C)))}catch(w){throw new Error("Malformed UTF-8 data")}},parse:function(C){return y.parse(unescape(encodeURIComponent(C)))}},g=f.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new v.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=m.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var w,b=this._data,_=b.words,T=b.sigBytes,k=this.blockSize,q=k*4,X=T/q;C?X=n.ceil(X):X=n.max((X|0)-this._minBufferSize,0);var I=X*k,P=n.min(I*4,T);if(I){for(var G=0;G<I;G+=k)this._doProcessBlock(_,G);w=_.splice(0,I),b.sigBytes-=P}return new v.init(w,P)},clone:function(){var C=l.clone.call(this);return C._data=this._data.clone(),C},_minBufferSize:0});f.Hasher=g.extend({cfg:l.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(C){return this._append(C),this._process(),this},finalize:function(C){C&&this._append(C);var w=this._doFinalize();return w},blockSize:16,_createHelper:function(C){return function(w,b){return new C.init(b).finalize(w)}},_createHmacHelper:function(C){return function(w,b){return new D.HMAC.init(C,b).finalize(w)}}});var D=p.algo={};return p}(Math);return r})}(pn)),pn.exports}var vn={exports:{}},ca;function e0(){return ca||(ca=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(n){var i=r,o=i.lib,a=o.Base,s=o.WordArray,p=i.x64={};p.Word=a.extend({init:function(f,l){this.high=f,this.low=l}}),p.WordArray=a.extend({init:function(f,l){f=this.words=f||[],l!=n?this.sigBytes=l:this.sigBytes=f.length*8},toX32:function(){for(var f=this.words,l=f.length,v=[],x=0;x<l;x++){var A=f[x];v.push(A.high),v.push(A.low)}return s.create(v,this.sigBytes)},clone:function(){for(var f=a.clone.call(this),l=f.words=this.words.slice(0),v=l.length,x=0;x<v;x++)l[x]=l[x].clone();return f}})}(),r})}(vn)),vn.exports}var yn={exports:{}},ua;function Th(){return ua||(ua=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,i=n.lib,o=i.WordArray,a=o.init,s=o.init=function(p){if(p instanceof ArrayBuffer&&(p=new Uint8Array(p)),(p instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&p instanceof Uint8ClampedArray||p instanceof Int16Array||p instanceof Uint16Array||p instanceof Int32Array||p instanceof Uint32Array||p instanceof Float32Array||p instanceof Float64Array)&&(p=new Uint8Array(p.buffer,p.byteOffset,p.byteLength)),p instanceof Uint8Array){for(var f=p.byteLength,l=[],v=0;v<f;v++)l[v>>>2]|=p[v]<<24-v%4*8;a.call(this,l,f)}else a.apply(this,arguments)};s.prototype=o}}(),r.lib.WordArray})}(yn)),yn.exports}var mn={exports:{}},la;function Ih(){return la||(la=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.enc;a.Utf16=a.Utf16BE={stringify:function(p){for(var f=p.words,l=p.sigBytes,v=[],x=0;x<l;x+=2){var A=f[x>>>2]>>>16-x%4*8&65535;v.push(String.fromCharCode(A))}return v.join("")},parse:function(p){for(var f=p.length,l=[],v=0;v<f;v++)l[v>>>1]|=p.charCodeAt(v)<<16-v%2*16;return o.create(l,f*2)}},a.Utf16LE={stringify:function(p){for(var f=p.words,l=p.sigBytes,v=[],x=0;x<l;x+=2){var A=s(f[x>>>2]>>>16-x%4*8&65535);v.push(String.fromCharCode(A))}return v.join("")},parse:function(p){for(var f=p.length,l=[],v=0;v<f;v++)l[v>>>1]|=s(p.charCodeAt(v)<<16-v%2*16);return o.create(l,f*2)}};function s(p){return p<<8&4278255360|p>>>8&16711935}}(),r.enc.Utf16})}(mn)),mn.exports}var gn={exports:{}},ha;function Nt(){return ha||(ha=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.enc;a.Base64={stringify:function(p){var f=p.words,l=p.sigBytes,v=this._map;p.clamp();for(var x=[],A=0;A<l;A+=3)for(var y=f[A>>>2]>>>24-A%4*8&255,m=f[A+1>>>2]>>>24-(A+1)%4*8&255,g=f[A+2>>>2]>>>24-(A+2)%4*8&255,D=y<<16|m<<8|g,C=0;C<4&&A+C*.75<l;C++)x.push(v.charAt(D>>>6*(3-C)&63));var w=v.charAt(64);if(w)for(;x.length%4;)x.push(w);return x.join("")},parse:function(p){var f=p.length,l=this._map,v=this._reverseMap;if(!v){v=this._reverseMap=[];for(var x=0;x<l.length;x++)v[l.charCodeAt(x)]=x}var A=l.charAt(64);if(A){var y=p.indexOf(A);y!==-1&&(f=y)}return s(p,f,v)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(p,f,l){for(var v=[],x=0,A=0;A<f;A++)if(A%4){var y=l[p.charCodeAt(A-1)]<<A%4*2,m=l[p.charCodeAt(A)]>>>6-A%4*2,g=y|m;v[x>>>2]|=g<<24-x%4*8,x++}return o.create(v,x)}}(),r.enc.Base64})}(gn)),gn.exports}var An={exports:{}},xa;function Rh(){return xa||(xa=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.enc;a.Base64url={stringify:function(p,f){f===void 0&&(f=!0);var l=p.words,v=p.sigBytes,x=f?this._safe_map:this._map;p.clamp();for(var A=[],y=0;y<v;y+=3)for(var m=l[y>>>2]>>>24-y%4*8&255,g=l[y+1>>>2]>>>24-(y+1)%4*8&255,D=l[y+2>>>2]>>>24-(y+2)%4*8&255,C=m<<16|g<<8|D,w=0;w<4&&y+w*.75<v;w++)A.push(x.charAt(C>>>6*(3-w)&63));var b=x.charAt(64);if(b)for(;A.length%4;)A.push(b);return A.join("")},parse:function(p,f){f===void 0&&(f=!0);var l=p.length,v=f?this._safe_map:this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var A=0;A<v.length;A++)x[v.charCodeAt(A)]=A}var y=v.charAt(64);if(y){var m=p.indexOf(y);m!==-1&&(l=m)}return s(p,l,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(p,f,l){for(var v=[],x=0,A=0;A<f;A++)if(A%4){var y=l[p.charCodeAt(A-1)]<<A%4*2,m=l[p.charCodeAt(A)]>>>6-A%4*2,g=y|m;v[x>>>2]|=g<<24-x%4*8,x++}return o.create(v,x)}}(),r.enc.Base64url})}(An)),An.exports}var En={exports:{}},da;function Ht(){return da||(da=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,p=i.algo,f=[];(function(){for(var m=0;m<64;m++)f[m]=n.abs(n.sin(m+1))*4294967296|0})();var l=p.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,g){for(var D=0;D<16;D++){var C=g+D,w=m[C];m[C]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var b=this._hash.words,_=m[g+0],T=m[g+1],k=m[g+2],q=m[g+3],X=m[g+4],I=m[g+5],P=m[g+6],G=m[g+7],S=m[g+8],N=m[g+9],M=m[g+10],H=m[g+11],Y=m[g+12],W=m[g+13],ee=m[g+14],J=m[g+15],O=b[0],U=b[1],V=b[2],z=b[3];O=v(O,U,V,z,_,7,f[0]),z=v(z,O,U,V,T,12,f[1]),V=v(V,z,O,U,k,17,f[2]),U=v(U,V,z,O,q,22,f[3]),O=v(O,U,V,z,X,7,f[4]),z=v(z,O,U,V,I,12,f[5]),V=v(V,z,O,U,P,17,f[6]),U=v(U,V,z,O,G,22,f[7]),O=v(O,U,V,z,S,7,f[8]),z=v(z,O,U,V,N,12,f[9]),V=v(V,z,O,U,M,17,f[10]),U=v(U,V,z,O,H,22,f[11]),O=v(O,U,V,z,Y,7,f[12]),z=v(z,O,U,V,W,12,f[13]),V=v(V,z,O,U,ee,17,f[14]),U=v(U,V,z,O,J,22,f[15]),O=x(O,U,V,z,T,5,f[16]),z=x(z,O,U,V,P,9,f[17]),V=x(V,z,O,U,H,14,f[18]),U=x(U,V,z,O,_,20,f[19]),O=x(O,U,V,z,I,5,f[20]),z=x(z,O,U,V,M,9,f[21]),V=x(V,z,O,U,J,14,f[22]),U=x(U,V,z,O,X,20,f[23]),O=x(O,U,V,z,N,5,f[24]),z=x(z,O,U,V,ee,9,f[25]),V=x(V,z,O,U,q,14,f[26]),U=x(U,V,z,O,S,20,f[27]),O=x(O,U,V,z,W,5,f[28]),z=x(z,O,U,V,k,9,f[29]),V=x(V,z,O,U,G,14,f[30]),U=x(U,V,z,O,Y,20,f[31]),O=A(O,U,V,z,I,4,f[32]),z=A(z,O,U,V,S,11,f[33]),V=A(V,z,O,U,H,16,f[34]),U=A(U,V,z,O,ee,23,f[35]),O=A(O,U,V,z,T,4,f[36]),z=A(z,O,U,V,X,11,f[37]),V=A(V,z,O,U,G,16,f[38]),U=A(U,V,z,O,M,23,f[39]),O=A(O,U,V,z,W,4,f[40]),z=A(z,O,U,V,_,11,f[41]),V=A(V,z,O,U,q,16,f[42]),U=A(U,V,z,O,P,23,f[43]),O=A(O,U,V,z,N,4,f[44]),z=A(z,O,U,V,Y,11,f[45]),V=A(V,z,O,U,J,16,f[46]),U=A(U,V,z,O,k,23,f[47]),O=y(O,U,V,z,_,6,f[48]),z=y(z,O,U,V,G,10,f[49]),V=y(V,z,O,U,ee,15,f[50]),U=y(U,V,z,O,I,21,f[51]),O=y(O,U,V,z,Y,6,f[52]),z=y(z,O,U,V,q,10,f[53]),V=y(V,z,O,U,M,15,f[54]),U=y(U,V,z,O,T,21,f[55]),O=y(O,U,V,z,S,6,f[56]),z=y(z,O,U,V,J,10,f[57]),V=y(V,z,O,U,P,15,f[58]),U=y(U,V,z,O,W,21,f[59]),O=y(O,U,V,z,X,6,f[60]),z=y(z,O,U,V,H,10,f[61]),V=y(V,z,O,U,k,15,f[62]),U=y(U,V,z,O,N,21,f[63]),b[0]=b[0]+O|0,b[1]=b[1]+U|0,b[2]=b[2]+V|0,b[3]=b[3]+z|0},_doFinalize:function(){var m=this._data,g=m.words,D=this._nDataBytes*8,C=m.sigBytes*8;g[C>>>5]|=128<<24-C%32;var w=n.floor(D/4294967296),b=D;g[(C+64>>>9<<4)+15]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,g[(C+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,m.sigBytes=(g.length+1)*4,this._process();for(var _=this._hash,T=_.words,k=0;k<4;k++){var q=T[k];T[k]=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360}return _},clone:function(){var m=s.clone.call(this);return m._hash=this._hash.clone(),m}});function v(m,g,D,C,w,b,_){var T=m+(g&D|~g&C)+w+_;return(T<<b|T>>>32-b)+g}function x(m,g,D,C,w,b,_){var T=m+(g&C|D&~C)+w+_;return(T<<b|T>>>32-b)+g}function A(m,g,D,C,w,b,_){var T=m+(g^D^C)+w+_;return(T<<b|T>>>32-b)+g}function y(m,g,D,C,w,b,_){var T=m+(D^(g|~C))+w+_;return(T<<b|T>>>32-b)+g}i.MD5=s._createHelper(l),i.HmacMD5=s._createHmacHelper(l)}(Math),r.MD5})}(En)),En.exports}var wn={exports:{}},pa;function va(){return pa||(pa=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=i.Hasher,s=n.algo,p=[],f=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,v){for(var x=this._hash.words,A=x[0],y=x[1],m=x[2],g=x[3],D=x[4],C=0;C<80;C++){if(C<16)p[C]=l[v+C]|0;else{var w=p[C-3]^p[C-8]^p[C-14]^p[C-16];p[C]=w<<1|w>>>31}var b=(A<<5|A>>>27)+D+p[C];C<20?b+=(y&m|~y&g)+1518500249:C<40?b+=(y^m^g)+1859775393:C<60?b+=(y&m|y&g|m&g)-1894007588:b+=(y^m^g)-899497514,D=g,g=m,m=y<<30|y>>>2,y=A,A=b}x[0]=x[0]+A|0,x[1]=x[1]+y|0,x[2]=x[2]+m|0,x[3]=x[3]+g|0,x[4]=x[4]+D|0},_doFinalize:function(){var l=this._data,v=l.words,x=this._nDataBytes*8,A=l.sigBytes*8;return v[A>>>5]|=128<<24-A%32,v[(A+64>>>9<<4)+14]=Math.floor(x/4294967296),v[(A+64>>>9<<4)+15]=x,l.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var l=a.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=a._createHelper(f),n.HmacSHA1=a._createHmacHelper(f)}(),r.SHA1})}(wn)),wn.exports}var Bn={exports:{}},ya;function Cn(){return ya||(ya=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,p=i.algo,f=[],l=[];(function(){function A(D){for(var C=n.sqrt(D),w=2;w<=C;w++)if(!(D%w))return!1;return!0}function y(D){return(D-(D|0))*4294967296|0}for(var m=2,g=0;g<64;)A(m)&&(g<8&&(f[g]=y(n.pow(m,1/2))),l[g]=y(n.pow(m,1/3)),g++),m++})();var v=[],x=p.SHA256=s.extend({_doReset:function(){this._hash=new a.init(f.slice(0))},_doProcessBlock:function(A,y){for(var m=this._hash.words,g=m[0],D=m[1],C=m[2],w=m[3],b=m[4],_=m[5],T=m[6],k=m[7],q=0;q<64;q++){if(q<16)v[q]=A[y+q]|0;else{var X=v[q-15],I=(X<<25|X>>>7)^(X<<14|X>>>18)^X>>>3,P=v[q-2],G=(P<<15|P>>>17)^(P<<13|P>>>19)^P>>>10;v[q]=I+v[q-7]+G+v[q-16]}var S=b&_^~b&T,N=g&D^g&C^D&C,M=(g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22),H=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),Y=k+H+S+l[q]+v[q],W=M+N;k=T,T=_,_=b,b=w+Y|0,w=C,C=D,D=g,g=Y+W|0}m[0]=m[0]+g|0,m[1]=m[1]+D|0,m[2]=m[2]+C|0,m[3]=m[3]+w|0,m[4]=m[4]+b|0,m[5]=m[5]+_|0,m[6]=m[6]+T|0,m[7]=m[7]+k|0},_doFinalize:function(){var A=this._data,y=A.words,m=this._nDataBytes*8,g=A.sigBytes*8;return y[g>>>5]|=128<<24-g%32,y[(g+64>>>9<<4)+14]=n.floor(m/4294967296),y[(g+64>>>9<<4)+15]=m,A.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var A=s.clone.call(this);return A._hash=this._hash.clone(),A}});i.SHA256=s._createHelper(x),i.HmacSHA256=s._createHmacHelper(x)}(Math),r.SHA256})}(Bn)),Bn.exports}var bn={exports:{}},ma;function Oh(){return ma||(ma=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Cn())})(le,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.algo,s=a.SHA256,p=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var f=s._doFinalize.call(this);return f.sigBytes-=4,f}});n.SHA224=s._createHelper(p),n.HmacSHA224=s._createHmacHelper(p)}(),r.SHA224})}(bn)),bn.exports}var Fn={exports:{}},ga;function Aa(){return ga||(ga=1,function(t,e){(function(r,n,i){t.exports=n(ve(),e0())})(le,function(r){return function(){var n=r,i=n.lib,o=i.Hasher,a=n.x64,s=a.Word,p=a.WordArray,f=n.algo;function l(){return s.create.apply(s,arguments)}var v=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],x=[];(function(){for(var y=0;y<80;y++)x[y]=l()})();var A=f.SHA512=o.extend({_doReset:function(){this._hash=new p.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(y,m){for(var g=this._hash.words,D=g[0],C=g[1],w=g[2],b=g[3],_=g[4],T=g[5],k=g[6],q=g[7],X=D.high,I=D.low,P=C.high,G=C.low,S=w.high,N=w.low,M=b.high,H=b.low,Y=_.high,W=_.low,ee=T.high,J=T.low,O=k.high,U=k.low,V=q.high,z=q.low,se=X,ce=I,be=P,fe=G,Se=S,Fe=N,Ke=M,ze=H,Ee=Y,Me=W,Dt=ee,B=J,c=O,u=U,F=V,L=z,K=0;K<80;K++){var Z,ue,ye=x[K];if(K<16)ue=ye.high=y[m+K*2]|0,Z=ye.low=y[m+K*2+1]|0;else{var we=x[K-15],De=we.high,Ae=we.low,_t=(De>>>1|Ae<<31)^(De>>>8|Ae<<24)^De>>>7,qt=(Ae>>>1|De<<31)^(Ae>>>8|De<<24)^(Ae>>>7|De<<25),__$t__=x[K-2],St=__$t__.high,zt=__$t__.low,ri=(St>>>19|zt<<13)^(St<<3|zt>>>29)^St>>>6,ir=(zt>>>19|St<<13)^(zt<<3|St>>>29)^(zt>>>6|St<<26),c0=x[K-7],u0=c0.high,ni=c0.low,Fr=x[K-16],ii=Fr.high,l0=Fr.low;Z=qt+ni,ue=_t+u0+(Z>>>0<qt>>>0?1:0),Z=Z+ir,ue=ue+ri+(Z>>>0<ir>>>0?1:0),Z=Z+l0,ue=ue+ii+(Z>>>0<l0>>>0?1:0),ye.high=ue,ye.low=Z}var oi=Ee&Dt^~Ee&c,h0=Me&B^~Me&u,ai=se&be^se&Se^be&Se,si=ce&fe^ce&Fe^fe&Fe,fi=(se>>>28|ce<<4)^(se<<30|ce>>>2)^(se<<25|ce>>>7),x0=(ce>>>28|se<<4)^(ce<<30|se>>>2)^(ce<<25|se>>>7),ci=(Ee>>>14|Me<<18)^(Ee>>>18|Me<<14)^(Ee<<23|Me>>>9),ui=(Me>>>14|Ee<<18)^(Me>>>18|Ee<<14)^(Me<<23|Ee>>>9),d0=v[K],li=d0.high,p0=d0.low,Ye=L+ui,At=F+ci+(Ye>>>0<L>>>0?1:0),Ye=Ye+h0,At=At+oi+(Ye>>>0<h0>>>0?1:0),Ye=Ye+p0,At=At+li+(Ye>>>0<p0>>>0?1:0),Ye=Ye+Z,At=At+ue+(Ye>>>0<Z>>>0?1:0),v0=x0+si,hi=fi+ai+(v0>>>0<x0>>>0?1:0);F=c,L=u,c=Dt,u=B,Dt=Ee,B=Me,Me=ze+Ye|0,Ee=Ke+At+(Me>>>0<ze>>>0?1:0)|0,Ke=Se,ze=Fe,Se=be,Fe=fe,be=se,fe=ce,ce=Ye+v0|0,se=At+hi+(ce>>>0<Ye>>>0?1:0)|0}I=D.low=I+ce,D.high=X+se+(I>>>0<ce>>>0?1:0),G=C.low=G+fe,C.high=P+be+(G>>>0<fe>>>0?1:0),N=w.low=N+Fe,w.high=S+Se+(N>>>0<Fe>>>0?1:0),H=b.low=H+ze,b.high=M+Ke+(H>>>0<ze>>>0?1:0),W=_.low=W+Me,_.high=Y+Ee+(W>>>0<Me>>>0?1:0),J=T.low=J+B,T.high=ee+Dt+(J>>>0<B>>>0?1:0),U=k.low=U+u,k.high=O+c+(U>>>0<u>>>0?1:0),z=q.low=z+L,q.high=V+F+(z>>>0<L>>>0?1:0)},_doFinalize:function(){var y=this._data,m=y.words,g=this._nDataBytes*8,D=y.sigBytes*8;m[D>>>5]|=128<<24-D%32,m[(D+128>>>10<<5)+30]=Math.floor(g/4294967296),m[(D+128>>>10<<5)+31]=g,y.sigBytes=m.length*4,this._process();var C=this._hash.toX32();return C},clone:function(){var y=o.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});n.SHA512=o._createHelper(A),n.HmacSHA512=o._createHmacHelper(A)}(),r.SHA512})}(Fn)),Fn.exports}var Dn={exports:{}},Ea;function kh(){return Ea||(Ea=1,function(t,e){(function(r,n,i){t.exports=n(ve(),e0(),Aa())})(le,function(r){return function(){var n=r,i=n.x64,o=i.Word,a=i.WordArray,s=n.algo,p=s.SHA512,f=s.SHA384=p.extend({_doReset:function(){this._hash=new a.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 l=p._doFinalize.call(this);return l.sigBytes-=16,l}});n.SHA384=p._createHelper(f),n.HmacSHA384=p._createHmacHelper(f)}(),r.SHA384})}(Dn)),Dn.exports}var _n={exports:{}},wa;function Ph(){return wa||(wa=1,function(t,e){(function(r,n,i){t.exports=n(ve(),e0())})(le,function(r){return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,p=i.x64,f=p.Word,l=i.algo,v=[],x=[],A=[];(function(){for(var g=1,D=0,C=0;C<24;C++){v[g+5*D]=(C+1)*(C+2)/2%64;var w=D%5,b=(2*g+3*D)%5;g=w,D=b}for(var g=0;g<5;g++)for(var D=0;D<5;D++)x[g+5*D]=D+(2*g+3*D)%5*5;for(var _=1,T=0;T<24;T++){for(var k=0,q=0,X=0;X<7;X++){if(_&1){var I=(1<<X)-1;I<32?q^=1<<I:k^=1<<I-32}_&128?_=_<<1^113:_<<=1}A[T]=f.create(k,q)}})();var y=[];(function(){for(var g=0;g<25;g++)y[g]=f.create()})();var m=l.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var g=this._state=[],D=0;D<25;D++)g[D]=new f.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(g,D){for(var C=this._state,w=this.blockSize/2,b=0;b<w;b++){var _=g[D+2*b],T=g[D+2*b+1];_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var k=C[b];k.high^=T,k.low^=_}for(var q=0;q<24;q++){for(var X=0;X<5;X++){for(var I=0,P=0,G=0;G<5;G++){var k=C[X+5*G];I^=k.high,P^=k.low}var S=y[X];S.high=I,S.low=P}for(var X=0;X<5;X++)for(var N=y[(X+4)%5],M=y[(X+1)%5],H=M.high,Y=M.low,I=N.high^(H<<1|Y>>>31),P=N.low^(Y<<1|H>>>31),G=0;G<5;G++){var k=C[X+5*G];k.high^=I,k.low^=P}for(var W=1;W<25;W++){var I,P,k=C[W],ee=k.high,J=k.low,O=v[W];O<32?(I=ee<<O|J>>>32-O,P=J<<O|ee>>>32-O):(I=J<<O-32|ee>>>64-O,P=ee<<O-32|J>>>64-O);var U=y[x[W]];U.high=I,U.low=P}var V=y[0],z=C[0];V.high=z.high,V.low=z.low;for(var X=0;X<5;X++)for(var G=0;G<5;G++){var W=X+5*G,k=C[W],se=y[W],ce=y[(X+1)%5+5*G],be=y[(X+2)%5+5*G];k.high=se.high^~ce.high&be.high,k.low=se.low^~ce.low&be.low}var k=C[0],fe=A[q];k.high^=fe.high,k.low^=fe.low}},_doFinalize:function(){var g=this._data,D=g.words;this._nDataBytes*8;var C=g.sigBytes*8,w=this.blockSize*32;D[C>>>5]|=1<<24-C%32,D[(n.ceil((C+1)/w)*w>>>5)-1]|=128,g.sigBytes=D.length*4,this._process();for(var b=this._state,_=this.cfg.outputLength/8,T=_/8,k=[],q=0;q<T;q++){var X=b[q],I=X.high,P=X.low;I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,k.push(P),k.push(I)}return new a.init(k,_)},clone:function(){for(var g=s.clone.call(this),D=g._state=this._state.slice(0),C=0;C<25;C++)D[C]=D[C].clone();return g}});i.SHA3=s._createHelper(m),i.HmacSHA3=s._createHmacHelper(m)}(Math),r.SHA3})}(_n)),_n.exports}var Sn={exports:{}},Ba;function Mh(){return Ba||(Ba=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){/** @preserve
|
|
10
11
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
11
12
|
|
|
12
13
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -15,14 +16,14 @@
|
|
|
15
16
|
- 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.
|
|
16
17
|
|
|
17
18
|
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.
|
|
18
|
-
*/return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,p=i.algo,f=a.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]),l=a.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]),v=a.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]),x=a.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]),A=a.create([0,1518500249,1859775393,2400959708,2840853838]),y=a.create([1352829926,1548603684,1836072691,2053994217,0]),m=p.RIPEMD160=s.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,k){for(var q=0;q<16;q++){var X=k+q,I=T[X];T[X]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var P=this._hash.words,G=A.words,S=y.words,N=f.words,M=l.words,H=v.words,Y=x.words,W,ee,J,O,U,V,z,se,ce,be;V=W=P[0],z=ee=P[1],se=J=P[2],ce=O=P[3],be=U=P[4];for(var fe,q=0;q<80;q+=1)fe=W+T[k+N[q]]|0,q<16?fe+=g(ee,J,O)+G[0]:q<32?fe+=D(ee,J,O)+G[1]:q<48?fe+=C(ee,J,O)+G[2]:q<64?fe+=B(ee,J,O)+G[3]:fe+=b(ee,J,O)+G[4],fe=fe|0,fe=_(fe,H[q]),fe=fe+U|0,W=U,U=O,O=_(J,10),J=ee,ee=fe,fe=V+T[k+M[q]]|0,q<16?fe+=b(z,se,ce)+S[0]:q<32?fe+=B(z,se,ce)+S[1]:q<48?fe+=C(z,se,ce)+S[2]:q<64?fe+=D(z,se,ce)+S[3]:fe+=g(z,se,ce)+S[4],fe=fe|0,fe=_(fe,Y[q]),fe=fe+be|0,V=be,be=ce,ce=_(se,10),se=z,z=fe;fe=P[1]+J+ce|0,P[1]=P[2]+O+be|0,P[2]=P[3]+U+V|0,P[3]=P[4]+W+z|0,P[4]=P[0]+ee+se|0,P[0]=fe},_doFinalize:function(){var T=this._data,k=T.words,q=this._nDataBytes*8,X=T.sigBytes*8;k[X>>>5]|=128<<24-X%32,k[(X+64>>>9<<4)+14]=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360,T.sigBytes=(k.length+1)*4,this._process();for(var I=this._hash,P=I.words,G=0;G<5;G++){var S=P[G];P[G]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return I},clone:function(){var T=s.clone.call(this);return T._hash=this._hash.clone(),T}});function g(T,k,q){return T^k^q}function D(T,k,q){return T&k|~T&q}function C(T,k,q){return(T|~k)^q}function B(T,k,q){return T&q|k&~q}function b(T,k,q){return T^(k|~q)}function _(T,k){return T<<k|T>>>32-k}i.RIPEMD160=s._createHelper(m),i.HmacRIPEMD160=s._createHmacHelper(m)}(),r.RIPEMD160})}(Sn)),Sn.exports}var Tn={exports:{}},wa;function In(){return wa||(wa=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){(function(){var n=r,i=n.lib,o=i.Base,a=n.enc,s=a.Utf8,p=n.algo;p.HMAC=o.extend({init:function(f,l){f=this._hasher=new f.init,typeof l=="string"&&(l=s.parse(l));var v=f.blockSize,x=v*4;l.sigBytes>x&&(l=f.finalize(l)),l.clamp();for(var A=this._oKey=l.clone(),y=this._iKey=l.clone(),m=A.words,g=y.words,D=0;D<v;D++)m[D]^=1549556828,g[D]^=909522486;A.sigBytes=y.sigBytes=x,this.reset()},reset:function(){var f=this._hasher;f.reset(),f.update(this._iKey)},update:function(f){return this._hasher.update(f),this},finalize:function(f){var l=this._hasher,v=l.finalize(f);l.reset();var x=l.finalize(this._oKey.clone().concat(v));return x}})})()})}(Tn)),Tn.exports}var Rn={exports:{}},Ca;function Mh(){return Ca||(Ca=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Cn(),In())})(le,function(r){return function(){var n=r,i=n.lib,o=i.Base,a=i.WordArray,s=n.algo,p=s.SHA256,f=s.HMAC,l=s.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:p,iterations:25e4}),init:function(v){this.cfg=this.cfg.extend(v)},compute:function(v,x){for(var A=this.cfg,y=f.create(A.hasher,v),m=a.create(),g=a.create([1]),D=m.words,C=g.words,B=A.keySize,b=A.iterations;D.length<B;){var _=y.update(x).finalize(g);y.reset();for(var T=_.words,k=T.length,q=_,X=1;X<b;X++){q=y.finalize(q),y.reset();for(var I=q.words,P=0;P<k;P++)T[P]^=I[P]}m.concat(_),C[0]++}return m.sigBytes=B*4,m}});n.PBKDF2=function(v,x,A){return l.create(A).compute(v,x)}}(),r.PBKDF2})}(Rn)),Rn.exports}var On={exports:{}},ba;function bt(){return ba||(ba=1,function(t,e){(function(r,n,i){t.exports=n(ve(),pa(),In())})(le,function(r){return function(){var n=r,i=n.lib,o=i.Base,a=i.WordArray,s=n.algo,p=s.MD5,f=s.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:p,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,v){for(var x,A=this.cfg,y=A.hasher.create(),m=a.create(),g=m.words,D=A.keySize,C=A.iterations;g.length<D;){x&&y.update(x),x=y.update(l).finalize(v),y.reset();for(var B=1;B<C;B++)x=y.finalize(x),y.reset();m.concat(x)}return m.sigBytes=D*4,m}});n.EvpKDF=function(l,v,x){return f.create(x).compute(l,v)}}(),r.EvpKDF})}(On)),On.exports}var kn={exports:{}},Fa;function He(){return Fa||(Fa=1,function(t,e){(function(r,n,i){t.exports=n(ve(),bt())})(le,function(r){r.lib.Cipher||function(n){var i=r,o=i.lib,a=o.Base,s=o.WordArray,p=o.BufferedBlockAlgorithm,f=i.enc;f.Utf8;var l=f.Base64,v=i.algo,x=v.EvpKDF,A=o.Cipher=p.extend({cfg:a.extend(),createEncryptor:function(I,P){return this.create(this._ENC_XFORM_MODE,I,P)},createDecryptor:function(I,P){return this.create(this._DEC_XFORM_MODE,I,P)},init:function(I,P,G){this.cfg=this.cfg.extend(G),this._xformMode=I,this._key=P,this.reset()},reset:function(){p.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var P=this._doFinalize();return P},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function I(P){return typeof P=="string"?X:T}return function(P){return{encrypt:function(G,S,N){return I(S).encrypt(P,G,S,N)},decrypt:function(G,S,N){return I(S).decrypt(P,G,S,N)}}}}()});o.StreamCipher=A.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1});var y=i.mode={},m=o.BlockCipherMode=a.extend({createEncryptor:function(I,P){return this.Encryptor.create(I,P)},createDecryptor:function(I,P){return this.Decryptor.create(I,P)},init:function(I,P){this._cipher=I,this._iv=P}}),g=y.CBC=function(){var I=m.extend();I.Encryptor=I.extend({processBlock:function(G,S){var N=this._cipher,M=N.blockSize;P.call(this,G,S,M),N.encryptBlock(G,S),this._prevBlock=G.slice(S,S+M)}}),I.Decryptor=I.extend({processBlock:function(G,S){var N=this._cipher,M=N.blockSize,H=G.slice(S,S+M);N.decryptBlock(G,S),P.call(this,G,S,M),this._prevBlock=H}});function P(G,S,N){var M,H=this._iv;H?(M=H,this._iv=n):M=this._prevBlock;for(var Y=0;Y<N;Y++)G[S+Y]^=M[Y]}return I}(),D=i.pad={},C=D.Pkcs7={pad:function(I,P){for(var G=P*4,S=G-I.sigBytes%G,N=S<<24|S<<16|S<<8|S,M=[],H=0;H<S;H+=4)M.push(N);var Y=s.create(M,S);I.concat(Y)},unpad:function(I){var P=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=P}};o.BlockCipher=A.extend({cfg:A.cfg.extend({mode:g,padding:C}),reset:function(){var I;A.reset.call(this);var P=this.cfg,G=P.iv,S=P.mode;this._xformMode==this._ENC_XFORM_MODE?I=S.createEncryptor:(I=S.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,G&&G.words):(this._mode=I.call(S,this,G&&G.words),this._mode.__creator=I)},_doProcessBlock:function(I,P){this._mode.processBlock(I,P)},_doFinalize:function(){var I,P=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(P.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),P.unpad(I)),I},blockSize:128/32});var B=o.CipherParams=a.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),b=i.format={},_=b.OpenSSL={stringify:function(I){var P,G=I.ciphertext,S=I.salt;return S?P=s.create([1398893684,1701076831]).concat(S).concat(G):P=G,P.toString(l)},parse:function(I){var P,G=l.parse(I),S=G.words;return S[0]==1398893684&&S[1]==1701076831&&(P=s.create(S.slice(2,4)),S.splice(0,4),G.sigBytes-=16),B.create({ciphertext:G,salt:P})}},T=o.SerializableCipher=a.extend({cfg:a.extend({format:_}),encrypt:function(I,P,G,S){S=this.cfg.extend(S);var N=I.createEncryptor(G,S),M=N.finalize(P),H=N.cfg;return B.create({ciphertext:M,key:G,iv:H.iv,algorithm:I,mode:H.mode,padding:H.padding,blockSize:I.blockSize,formatter:S.format})},decrypt:function(I,P,G,S){S=this.cfg.extend(S),P=this._parse(P,S.format);var N=I.createDecryptor(G,S).finalize(P.ciphertext);return N},_parse:function(I,P){return typeof I=="string"?P.parse(I,this):I}}),k=i.kdf={},q=k.OpenSSL={execute:function(I,P,G,S,N){if(S||(S=s.random(64/8)),N)var M=x.create({keySize:P+G,hasher:N}).compute(I,S);else var M=x.create({keySize:P+G}).compute(I,S);var H=s.create(M.words.slice(P),G*4);return M.sigBytes=P*4,B.create({key:M,iv:H,salt:S})}},X=o.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:q}),encrypt:function(I,P,G,S){S=this.cfg.extend(S);var N=S.kdf.execute(G,I.keySize,I.ivSize,S.salt,S.hasher);S.iv=N.iv;var M=T.encrypt.call(this,I,P,N.key,S);return M.mixIn(N),M},decrypt:function(I,P,G,S){S=this.cfg.extend(S),P=this._parse(P,S.format);var N=S.kdf.execute(G,I.keySize,I.ivSize,P.salt,S.hasher);S.iv=N.iv;var M=T.decrypt.call(this,I,P,N.key,S);return M}})}()})}(kn)),kn.exports}var Pn={exports:{}},Da;function Lh(){return Da||(Da=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(o,a){var s=this._cipher,p=s.blockSize;i.call(this,o,a,p,s),this._prevBlock=o.slice(a,a+p)}}),n.Decryptor=n.extend({processBlock:function(o,a){var s=this._cipher,p=s.blockSize,f=o.slice(a,a+p);i.call(this,o,a,p,s),this._prevBlock=f}});function i(o,a,s,p){var f,l=this._iv;l?(f=l.slice(0),this._iv=void 0):f=this._prevBlock,p.encryptBlock(f,0);for(var v=0;v<s;v++)o[a+v]^=f[v]}return n}(),r.mode.CFB})}(Pn)),Pn.exports}var Mn={exports:{}},_a;function Uh(){return _a||(_a=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,a){var s=this._cipher,p=s.blockSize,f=this._iv,l=this._counter;f&&(l=this._counter=f.slice(0),this._iv=void 0);var v=l.slice(0);s.encryptBlock(v,0),l[p-1]=l[p-1]+1|0;for(var x=0;x<p;x++)o[a+x]^=v[x]}});return n.Decryptor=i,n}(),r.mode.CTR})}(Mn)),Mn.exports}var Ln={exports:{}},Sa;function Nh(){return Sa||(Sa=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){/** @preserve
|
|
19
|
+
*/return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,p=i.algo,f=a.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]),l=a.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]),v=a.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]),x=a.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]),A=a.create([0,1518500249,1859775393,2400959708,2840853838]),y=a.create([1352829926,1548603684,1836072691,2053994217,0]),m=p.RIPEMD160=s.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,k){for(var q=0;q<16;q++){var X=k+q,I=T[X];T[X]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var P=this._hash.words,G=A.words,S=y.words,N=f.words,M=l.words,H=v.words,Y=x.words,W,ee,J,O,U,V,z,se,ce,be;V=W=P[0],z=ee=P[1],se=J=P[2],ce=O=P[3],be=U=P[4];for(var fe,q=0;q<80;q+=1)fe=W+T[k+N[q]]|0,q<16?fe+=g(ee,J,O)+G[0]:q<32?fe+=D(ee,J,O)+G[1]:q<48?fe+=C(ee,J,O)+G[2]:q<64?fe+=w(ee,J,O)+G[3]:fe+=b(ee,J,O)+G[4],fe=fe|0,fe=_(fe,H[q]),fe=fe+U|0,W=U,U=O,O=_(J,10),J=ee,ee=fe,fe=V+T[k+M[q]]|0,q<16?fe+=b(z,se,ce)+S[0]:q<32?fe+=w(z,se,ce)+S[1]:q<48?fe+=C(z,se,ce)+S[2]:q<64?fe+=D(z,se,ce)+S[3]:fe+=g(z,se,ce)+S[4],fe=fe|0,fe=_(fe,Y[q]),fe=fe+be|0,V=be,be=ce,ce=_(se,10),se=z,z=fe;fe=P[1]+J+ce|0,P[1]=P[2]+O+be|0,P[2]=P[3]+U+V|0,P[3]=P[4]+W+z|0,P[4]=P[0]+ee+se|0,P[0]=fe},_doFinalize:function(){var T=this._data,k=T.words,q=this._nDataBytes*8,X=T.sigBytes*8;k[X>>>5]|=128<<24-X%32,k[(X+64>>>9<<4)+14]=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360,T.sigBytes=(k.length+1)*4,this._process();for(var I=this._hash,P=I.words,G=0;G<5;G++){var S=P[G];P[G]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return I},clone:function(){var T=s.clone.call(this);return T._hash=this._hash.clone(),T}});function g(T,k,q){return T^k^q}function D(T,k,q){return T&k|~T&q}function C(T,k,q){return(T|~k)^q}function w(T,k,q){return T&q|k&~q}function b(T,k,q){return T^(k|~q)}function _(T,k){return T<<k|T>>>32-k}i.RIPEMD160=s._createHelper(m),i.HmacRIPEMD160=s._createHmacHelper(m)}(),r.RIPEMD160})}(Sn)),Sn.exports}var Tn={exports:{}},Ca;function In(){return Ca||(Ca=1,function(t,e){(function(r,n){t.exports=n(ve())})(le,function(r){(function(){var n=r,i=n.lib,o=i.Base,a=n.enc,s=a.Utf8,p=n.algo;p.HMAC=o.extend({init:function(f,l){f=this._hasher=new f.init,typeof l=="string"&&(l=s.parse(l));var v=f.blockSize,x=v*4;l.sigBytes>x&&(l=f.finalize(l)),l.clamp();for(var A=this._oKey=l.clone(),y=this._iKey=l.clone(),m=A.words,g=y.words,D=0;D<v;D++)m[D]^=1549556828,g[D]^=909522486;A.sigBytes=y.sigBytes=x,this.reset()},reset:function(){var f=this._hasher;f.reset(),f.update(this._iKey)},update:function(f){return this._hasher.update(f),this},finalize:function(f){var l=this._hasher,v=l.finalize(f);l.reset();var x=l.finalize(this._oKey.clone().concat(v));return x}})})()})}(Tn)),Tn.exports}var Rn={exports:{}},ba;function Lh(){return ba||(ba=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Cn(),In())})(le,function(r){return function(){var n=r,i=n.lib,o=i.Base,a=i.WordArray,s=n.algo,p=s.SHA256,f=s.HMAC,l=s.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:p,iterations:25e4}),init:function(v){this.cfg=this.cfg.extend(v)},compute:function(v,x){for(var A=this.cfg,y=f.create(A.hasher,v),m=a.create(),g=a.create([1]),D=m.words,C=g.words,w=A.keySize,b=A.iterations;D.length<w;){var _=y.update(x).finalize(g);y.reset();for(var T=_.words,k=T.length,q=_,X=1;X<b;X++){q=y.finalize(q),y.reset();for(var I=q.words,P=0;P<k;P++)T[P]^=I[P]}m.concat(_),C[0]++}return m.sigBytes=w*4,m}});n.PBKDF2=function(v,x,A){return l.create(A).compute(v,x)}}(),r.PBKDF2})}(Rn)),Rn.exports}var On={exports:{}},Fa;function bt(){return Fa||(Fa=1,function(t,e){(function(r,n,i){t.exports=n(ve(),va(),In())})(le,function(r){return function(){var n=r,i=n.lib,o=i.Base,a=i.WordArray,s=n.algo,p=s.MD5,f=s.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:p,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,v){for(var x,A=this.cfg,y=A.hasher.create(),m=a.create(),g=m.words,D=A.keySize,C=A.iterations;g.length<D;){x&&y.update(x),x=y.update(l).finalize(v),y.reset();for(var w=1;w<C;w++)x=y.finalize(x),y.reset();m.concat(x)}return m.sigBytes=D*4,m}});n.EvpKDF=function(l,v,x){return f.create(x).compute(l,v)}}(),r.EvpKDF})}(On)),On.exports}var kn={exports:{}},Da;function He(){return Da||(Da=1,function(t,e){(function(r,n,i){t.exports=n(ve(),bt())})(le,function(r){r.lib.Cipher||function(n){var i=r,o=i.lib,a=o.Base,s=o.WordArray,p=o.BufferedBlockAlgorithm,f=i.enc;f.Utf8;var l=f.Base64,v=i.algo,x=v.EvpKDF,A=o.Cipher=p.extend({cfg:a.extend(),createEncryptor:function(I,P){return this.create(this._ENC_XFORM_MODE,I,P)},createDecryptor:function(I,P){return this.create(this._DEC_XFORM_MODE,I,P)},init:function(I,P,G){this.cfg=this.cfg.extend(G),this._xformMode=I,this._key=P,this.reset()},reset:function(){p.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var P=this._doFinalize();return P},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function I(P){return typeof P=="string"?X:T}return function(P){return{encrypt:function(G,S,N){return I(S).encrypt(P,G,S,N)},decrypt:function(G,S,N){return I(S).decrypt(P,G,S,N)}}}}()});o.StreamCipher=A.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1});var y=i.mode={},m=o.BlockCipherMode=a.extend({createEncryptor:function(I,P){return this.Encryptor.create(I,P)},createDecryptor:function(I,P){return this.Decryptor.create(I,P)},init:function(I,P){this._cipher=I,this._iv=P}}),g=y.CBC=function(){var I=m.extend();I.Encryptor=I.extend({processBlock:function(G,S){var N=this._cipher,M=N.blockSize;P.call(this,G,S,M),N.encryptBlock(G,S),this._prevBlock=G.slice(S,S+M)}}),I.Decryptor=I.extend({processBlock:function(G,S){var N=this._cipher,M=N.blockSize,H=G.slice(S,S+M);N.decryptBlock(G,S),P.call(this,G,S,M),this._prevBlock=H}});function P(G,S,N){var M,H=this._iv;H?(M=H,this._iv=n):M=this._prevBlock;for(var Y=0;Y<N;Y++)G[S+Y]^=M[Y]}return I}(),D=i.pad={},C=D.Pkcs7={pad:function(I,P){for(var G=P*4,S=G-I.sigBytes%G,N=S<<24|S<<16|S<<8|S,M=[],H=0;H<S;H+=4)M.push(N);var Y=s.create(M,S);I.concat(Y)},unpad:function(I){var P=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=P}};o.BlockCipher=A.extend({cfg:A.cfg.extend({mode:g,padding:C}),reset:function(){var I;A.reset.call(this);var P=this.cfg,G=P.iv,S=P.mode;this._xformMode==this._ENC_XFORM_MODE?I=S.createEncryptor:(I=S.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,G&&G.words):(this._mode=I.call(S,this,G&&G.words),this._mode.__creator=I)},_doProcessBlock:function(I,P){this._mode.processBlock(I,P)},_doFinalize:function(){var I,P=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(P.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),P.unpad(I)),I},blockSize:128/32});var w=o.CipherParams=a.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),b=i.format={},_=b.OpenSSL={stringify:function(I){var P,G=I.ciphertext,S=I.salt;return S?P=s.create([1398893684,1701076831]).concat(S).concat(G):P=G,P.toString(l)},parse:function(I){var P,G=l.parse(I),S=G.words;return S[0]==1398893684&&S[1]==1701076831&&(P=s.create(S.slice(2,4)),S.splice(0,4),G.sigBytes-=16),w.create({ciphertext:G,salt:P})}},T=o.SerializableCipher=a.extend({cfg:a.extend({format:_}),encrypt:function(I,P,G,S){S=this.cfg.extend(S);var N=I.createEncryptor(G,S),M=N.finalize(P),H=N.cfg;return w.create({ciphertext:M,key:G,iv:H.iv,algorithm:I,mode:H.mode,padding:H.padding,blockSize:I.blockSize,formatter:S.format})},decrypt:function(I,P,G,S){S=this.cfg.extend(S),P=this._parse(P,S.format);var N=I.createDecryptor(G,S).finalize(P.ciphertext);return N},_parse:function(I,P){return typeof I=="string"?P.parse(I,this):I}}),k=i.kdf={},q=k.OpenSSL={execute:function(I,P,G,S,N){if(S||(S=s.random(64/8)),N)var M=x.create({keySize:P+G,hasher:N}).compute(I,S);else var M=x.create({keySize:P+G}).compute(I,S);var H=s.create(M.words.slice(P),G*4);return M.sigBytes=P*4,w.create({key:M,iv:H,salt:S})}},X=o.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:q}),encrypt:function(I,P,G,S){S=this.cfg.extend(S);var N=S.kdf.execute(G,I.keySize,I.ivSize,S.salt,S.hasher);S.iv=N.iv;var M=T.encrypt.call(this,I,P,N.key,S);return M.mixIn(N),M},decrypt:function(I,P,G,S){S=this.cfg.extend(S),P=this._parse(P,S.format);var N=S.kdf.execute(G,I.keySize,I.ivSize,P.salt,S.hasher);S.iv=N.iv;var M=T.decrypt.call(this,I,P,N.key,S);return M}})}()})}(kn)),kn.exports}var Pn={exports:{}},_a;function Uh(){return _a||(_a=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(o,a){var s=this._cipher,p=s.blockSize;i.call(this,o,a,p,s),this._prevBlock=o.slice(a,a+p)}}),n.Decryptor=n.extend({processBlock:function(o,a){var s=this._cipher,p=s.blockSize,f=o.slice(a,a+p);i.call(this,o,a,p,s),this._prevBlock=f}});function i(o,a,s,p){var f,l=this._iv;l?(f=l.slice(0),this._iv=void 0):f=this._prevBlock,p.encryptBlock(f,0);for(var v=0;v<s;v++)o[a+v]^=f[v]}return n}(),r.mode.CFB})}(Pn)),Pn.exports}var Mn={exports:{}},Sa;function Nh(){return Sa||(Sa=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,a){var s=this._cipher,p=s.blockSize,f=this._iv,l=this._counter;f&&(l=this._counter=f.slice(0),this._iv=void 0);var v=l.slice(0);s.encryptBlock(v,0),l[p-1]=l[p-1]+1|0;for(var x=0;x<p;x++)o[a+x]^=v[x]}});return n.Decryptor=i,n}(),r.mode.CTR})}(Mn)),Mn.exports}var Ln={exports:{}},Ta;function Hh(){return Ta||(Ta=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){/** @preserve
|
|
19
20
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
20
21
|
* derived from CryptoJS.mode.CTR
|
|
21
22
|
* Jan Hruby jhruby.web@gmail.com
|
|
22
|
-
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function i(s){if((s>>24&255)===255){var p=s>>16&255,f=s>>8&255,l=s&255;p===255?(p=0,f===255?(f=0,l===255?l=0:++l):++f):++p,s=0,s+=p<<16,s+=f<<8,s+=l}else s+=1<<24;return s}function o(s){return(s[0]=i(s[0]))===0&&(s[1]=i(s[1])),s}var a=n.Encryptor=n.extend({processBlock:function(s,p){var f=this._cipher,l=f.blockSize,v=this._iv,x=this._counter;v&&(x=this._counter=v.slice(0),this._iv=void 0),o(x);var A=x.slice(0);f.encryptBlock(A,0);for(var y=0;y<l;y++)s[p+y]^=A[y]}});return n.Decryptor=a,n}(),r.mode.CTRGladman})}(Ln)),Ln.exports}var Un={exports:{}},Ta;function Hh(){return Ta||(Ta=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,a){var s=this._cipher,p=s.blockSize,f=this._iv,l=this._keystream;f&&(l=this._keystream=f.slice(0),this._iv=void 0),s.encryptBlock(l,0);for(var v=0;v<p;v++)o[a+v]^=l[v]}});return n.Decryptor=i,n}(),r.mode.OFB})}(Un)),Un.exports}var Nn={exports:{}},Ia;function qh(){return Ia||(Ia=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(i,o){this._cipher.encryptBlock(i,o)}}),n.Decryptor=n.extend({processBlock:function(i,o){this._cipher.decryptBlock(i,o)}}),n}(),r.mode.ECB})}(Nn)),Nn.exports}var Hn={exports:{}},Ra;function $h(){return Ra||(Ra=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.pad.AnsiX923={pad:function(n,i){var o=n.sigBytes,a=i*4,s=a-o%a,p=o+s-1;n.clamp(),n.words[p>>>2]|=s<<24-p%4*8,n.sigBytes+=s},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Ansix923})}(Hn)),Hn.exports}var qn={exports:{}},Oa;function zh(){return Oa||(Oa=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.pad.Iso10126={pad:function(n,i){var o=i*4,a=o-n.sigBytes%o;n.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Iso10126})}(qn)),qn.exports}var $n={exports:{}},ka;function Wh(){return ka||(ka=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.pad.Iso97971={pad:function(n,i){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,i)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}($n)),$n.exports}var zn={exports:{}},Pa;function Gh(){return Pa||(Pa=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.pad.ZeroPadding={pad:function(n,i){var o=i*4;n.clamp(),n.sigBytes+=o-(n.sigBytes%o||o)},unpad:function(n){for(var i=n.words,o=n.sigBytes-1,o=n.sigBytes-1;o>=0;o--)if(i[o>>>2]>>>24-o%4*8&255){n.sigBytes=o+1;break}}},r.pad.ZeroPadding})}(zn)),zn.exports}var Wn={exports:{}},Ma;function Vh(){return Ma||(Ma=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(Wn)),Wn.exports}var Gn={exports:{}},La;function Kh(){return La||(La=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return function(n){var i=r,o=i.lib,a=o.CipherParams,s=i.enc,p=s.Hex,f=i.format;f.Hex={stringify:function(l){return l.ciphertext.toString(p)},parse:function(l){var v=p.parse(l);return a.create({ciphertext:v})}}}(),r.format.Hex})}(Gn)),Gn.exports}var Vn={exports:{}},Ua;function jh(){return Ua||(Ua=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Nt(),Ht(),bt(),He())})(le,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,a=n.algo,s=[],p=[],f=[],l=[],v=[],x=[],A=[],y=[],m=[],g=[];(function(){for(var B=[],b=0;b<256;b++)b<128?B[b]=b<<1:B[b]=b<<1^283;for(var _=0,T=0,b=0;b<256;b++){var k=T^T<<1^T<<2^T<<3^T<<4;k=k>>>8^k&255^99,s[_]=k,p[k]=_;var q=B[_],X=B[q],I=B[X],P=B[k]*257^k*16843008;f[_]=P<<24|P>>>8,l[_]=P<<16|P>>>16,v[_]=P<<8|P>>>24,x[_]=P;var P=I*16843009^X*65537^q*257^_*16843008;A[k]=P<<24|P>>>8,y[k]=P<<16|P>>>16,m[k]=P<<8|P>>>24,g[k]=P,_?(_=q^B[B[B[I^q]]],T^=B[B[T]]):_=T=1}})();var D=[0,1,2,4,8,16,32,64,128,27,54],C=a.AES=o.extend({_doReset:function(){var B;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,_=b.words,T=b.sigBytes/4,k=this._nRounds=T+6,q=(k+1)*4,X=this._keySchedule=[],I=0;I<q;I++)I<T?X[I]=_[I]:(B=X[I-1],I%T?T>6&&I%T==4&&(B=s[B>>>24]<<24|s[B>>>16&255]<<16|s[B>>>8&255]<<8|s[B&255]):(B=B<<8|B>>>24,B=s[B>>>24]<<24|s[B>>>16&255]<<16|s[B>>>8&255]<<8|s[B&255],B^=D[I/T|0]<<24),X[I]=X[I-T]^B);for(var P=this._invKeySchedule=[],G=0;G<q;G++){var I=q-G;if(G%4)var B=X[I];else var B=X[I-4];G<4||I<=4?P[G]=B:P[G]=A[s[B>>>24]]^y[s[B>>>16&255]]^m[s[B>>>8&255]]^g[s[B&255]]}}},encryptBlock:function(B,b){this._doCryptBlock(B,b,this._keySchedule,f,l,v,x,s)},decryptBlock:function(B,b){var _=B[b+1];B[b+1]=B[b+3],B[b+3]=_,this._doCryptBlock(B,b,this._invKeySchedule,A,y,m,g,p);var _=B[b+1];B[b+1]=B[b+3],B[b+3]=_},_doCryptBlock:function(B,b,_,T,k,q,X,I){for(var P=this._nRounds,G=B[b]^_[0],S=B[b+1]^_[1],N=B[b+2]^_[2],M=B[b+3]^_[3],H=4,Y=1;Y<P;Y++){var W=T[G>>>24]^k[S>>>16&255]^q[N>>>8&255]^X[M&255]^_[H++],ee=T[S>>>24]^k[N>>>16&255]^q[M>>>8&255]^X[G&255]^_[H++],J=T[N>>>24]^k[M>>>16&255]^q[G>>>8&255]^X[S&255]^_[H++],O=T[M>>>24]^k[G>>>16&255]^q[S>>>8&255]^X[N&255]^_[H++];G=W,S=ee,N=J,M=O}var W=(I[G>>>24]<<24|I[S>>>16&255]<<16|I[N>>>8&255]<<8|I[M&255])^_[H++],ee=(I[S>>>24]<<24|I[N>>>16&255]<<16|I[M>>>8&255]<<8|I[G&255])^_[H++],J=(I[N>>>24]<<24|I[M>>>16&255]<<16|I[G>>>8&255]<<8|I[S&255])^_[H++],O=(I[M>>>24]<<24|I[G>>>16&255]<<16|I[S>>>8&255]<<8|I[N&255])^_[H++];B[b]=W,B[b+1]=ee,B[b+2]=J,B[b+3]=O},keySize:256/32});n.AES=o._createHelper(C)}(),r.AES})}(Vn)),Vn.exports}var Kn={exports:{}},Na;function Xh(){return Na||(Na=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Nt(),Ht(),bt(),He())})(le,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=i.BlockCipher,s=n.algo,p=[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],f=[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],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],v=[{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}],x=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],A=s.DES=a.extend({_doReset:function(){for(var D=this._key,C=D.words,B=[],b=0;b<56;b++){var _=p[b]-1;B[b]=C[_>>>5]>>>31-_%32&1}for(var T=this._subKeys=[],k=0;k<16;k++){for(var q=T[k]=[],X=l[k],b=0;b<24;b++)q[b/6|0]|=B[(f[b]-1+X)%28]<<31-b%6,q[4+(b/6|0)]|=B[28+(f[b+24]-1+X)%28]<<31-b%6;q[0]=q[0]<<1|q[0]>>>31;for(var b=1;b<7;b++)q[b]=q[b]>>>(b-1)*4+3;q[7]=q[7]<<5|q[7]>>>27}for(var I=this._invSubKeys=[],b=0;b<16;b++)I[b]=T[15-b]},encryptBlock:function(D,C){this._doCryptBlock(D,C,this._subKeys)},decryptBlock:function(D,C){this._doCryptBlock(D,C,this._invSubKeys)},_doCryptBlock:function(D,C,B){this._lBlock=D[C],this._rBlock=D[C+1],y.call(this,4,252645135),y.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),y.call(this,1,1431655765);for(var b=0;b<16;b++){for(var _=B[b],T=this._lBlock,k=this._rBlock,q=0,X=0;X<8;X++)q|=v[X][((k^_[X])&x[X])>>>0];this._lBlock=k,this._rBlock=T^q}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,y.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),D[C]=this._lBlock,D[C+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(D,C){var B=(this._lBlock>>>D^this._rBlock)&C;this._rBlock^=B,this._lBlock^=B<<D}function m(D,C){var B=(this._rBlock>>>D^this._lBlock)&C;this._lBlock^=B,this._rBlock^=B<<D}n.DES=a._createHelper(A);var g=s.TripleDES=a.extend({_doReset:function(){var D=this._key,C=D.words;if(C.length!==2&&C.length!==4&&C.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var B=C.slice(0,2),b=C.length<4?C.slice(0,2):C.slice(2,4),_=C.length<6?C.slice(0,2):C.slice(4,6);this._des1=A.createEncryptor(o.create(B)),this._des2=A.createEncryptor(o.create(b)),this._des3=A.createEncryptor(o.create(_))},encryptBlock:function(D,C){this._des1.encryptBlock(D,C),this._des2.decryptBlock(D,C),this._des3.encryptBlock(D,C)},decryptBlock:function(D,C){this._des3.decryptBlock(D,C),this._des2.encryptBlock(D,C),this._des1.decryptBlock(D,C)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=a._createHelper(g)}(),r.TripleDES})}(Kn)),Kn.exports}var jn={exports:{}},Ha;function Yh(){return Ha||(Ha=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Nt(),Ht(),bt(),He())})(le,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,a=n.algo,s=a.RC4=o.extend({_doReset:function(){for(var l=this._key,v=l.words,x=l.sigBytes,A=this._S=[],y=0;y<256;y++)A[y]=y;for(var y=0,m=0;y<256;y++){var g=y%x,D=v[g>>>2]>>>24-g%4*8&255;m=(m+A[y]+D)%256;var C=A[y];A[y]=A[m],A[m]=C}this._i=this._j=0},_doProcessBlock:function(l,v){l[v]^=p.call(this)},keySize:256/32,ivSize:0});function p(){for(var l=this._S,v=this._i,x=this._j,A=0,y=0;y<4;y++){v=(v+1)%256,x=(x+l[v])%256;var m=l[v];l[v]=l[x],l[x]=m,A|=l[(l[v]+l[x])%256]<<24-y*8}return this._i=v,this._j=x,A}n.RC4=o._createHelper(s);var f=a.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var l=this.cfg.drop;l>0;l--)p.call(this)}});n.RC4Drop=o._createHelper(f)}(),r.RC4})}(jn)),jn.exports}var Xn={exports:{}},qa;function Zh(){return qa||(qa=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Nt(),Ht(),bt(),He())})(le,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,a=n.algo,s=[],p=[],f=[],l=a.Rabbit=o.extend({_doReset:function(){for(var x=this._key.words,A=this.cfg.iv,y=0;y<4;y++)x[y]=(x[y]<<8|x[y]>>>24)&16711935|(x[y]<<24|x[y]>>>8)&4278255360;var m=this._X=[x[0],x[3]<<16|x[2]>>>16,x[1],x[0]<<16|x[3]>>>16,x[2],x[1]<<16|x[0]>>>16,x[3],x[2]<<16|x[1]>>>16],g=this._C=[x[2]<<16|x[2]>>>16,x[0]&4294901760|x[1]&65535,x[3]<<16|x[3]>>>16,x[1]&4294901760|x[2]&65535,x[0]<<16|x[0]>>>16,x[2]&4294901760|x[3]&65535,x[1]<<16|x[1]>>>16,x[3]&4294901760|x[0]&65535];this._b=0;for(var y=0;y<4;y++)v.call(this);for(var y=0;y<8;y++)g[y]^=m[y+4&7];if(A){var D=A.words,C=D[0],B=D[1],b=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,_=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,T=b>>>16|_&4294901760,k=_<<16|b&65535;g[0]^=b,g[1]^=T,g[2]^=_,g[3]^=k,g[4]^=b,g[5]^=T,g[6]^=_,g[7]^=k;for(var y=0;y<4;y++)v.call(this)}},_doProcessBlock:function(x,A){var y=this._X;v.call(this),s[0]=y[0]^y[5]>>>16^y[3]<<16,s[1]=y[2]^y[7]>>>16^y[5]<<16,s[2]=y[4]^y[1]>>>16^y[7]<<16,s[3]=y[6]^y[3]>>>16^y[1]<<16;for(var m=0;m<4;m++)s[m]=(s[m]<<8|s[m]>>>24)&16711935|(s[m]<<24|s[m]>>>8)&4278255360,x[A+m]^=s[m]},blockSize:128/32,ivSize:64/32});function v(){for(var x=this._X,A=this._C,y=0;y<8;y++)p[y]=A[y];A[0]=A[0]+1295307597+this._b|0,A[1]=A[1]+3545052371+(A[0]>>>0<p[0]>>>0?1:0)|0,A[2]=A[2]+886263092+(A[1]>>>0<p[1]>>>0?1:0)|0,A[3]=A[3]+1295307597+(A[2]>>>0<p[2]>>>0?1:0)|0,A[4]=A[4]+3545052371+(A[3]>>>0<p[3]>>>0?1:0)|0,A[5]=A[5]+886263092+(A[4]>>>0<p[4]>>>0?1:0)|0,A[6]=A[6]+1295307597+(A[5]>>>0<p[5]>>>0?1:0)|0,A[7]=A[7]+3545052371+(A[6]>>>0<p[6]>>>0?1:0)|0,this._b=A[7]>>>0<p[7]>>>0?1:0;for(var y=0;y<8;y++){var m=x[y]+A[y],g=m&65535,D=m>>>16,C=((g*g>>>17)+g*D>>>15)+D*D,B=((m&4294901760)*m|0)+((m&65535)*m|0);f[y]=C^B}x[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,x[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,x[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,x[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,x[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,x[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,x[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,x[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}n.Rabbit=o._createHelper(l)}(),r.Rabbit})}(Xn)),Xn.exports}var Yn={exports:{}},$a;function Qh(){return $a||($a=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Nt(),Ht(),bt(),He())})(le,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,a=n.algo,s=[],p=[],f=[],l=a.RabbitLegacy=o.extend({_doReset:function(){var x=this._key.words,A=this.cfg.iv,y=this._X=[x[0],x[3]<<16|x[2]>>>16,x[1],x[0]<<16|x[3]>>>16,x[2],x[1]<<16|x[0]>>>16,x[3],x[2]<<16|x[1]>>>16],m=this._C=[x[2]<<16|x[2]>>>16,x[0]&4294901760|x[1]&65535,x[3]<<16|x[3]>>>16,x[1]&4294901760|x[2]&65535,x[0]<<16|x[0]>>>16,x[2]&4294901760|x[3]&65535,x[1]<<16|x[1]>>>16,x[3]&4294901760|x[0]&65535];this._b=0;for(var g=0;g<4;g++)v.call(this);for(var g=0;g<8;g++)m[g]^=y[g+4&7];if(A){var D=A.words,C=D[0],B=D[1],b=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,_=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,T=b>>>16|_&4294901760,k=_<<16|b&65535;m[0]^=b,m[1]^=T,m[2]^=_,m[3]^=k,m[4]^=b,m[5]^=T,m[6]^=_,m[7]^=k;for(var g=0;g<4;g++)v.call(this)}},_doProcessBlock:function(x,A){var y=this._X;v.call(this),s[0]=y[0]^y[5]>>>16^y[3]<<16,s[1]=y[2]^y[7]>>>16^y[5]<<16,s[2]=y[4]^y[1]>>>16^y[7]<<16,s[3]=y[6]^y[3]>>>16^y[1]<<16;for(var m=0;m<4;m++)s[m]=(s[m]<<8|s[m]>>>24)&16711935|(s[m]<<24|s[m]>>>8)&4278255360,x[A+m]^=s[m]},blockSize:128/32,ivSize:64/32});function v(){for(var x=this._X,A=this._C,y=0;y<8;y++)p[y]=A[y];A[0]=A[0]+1295307597+this._b|0,A[1]=A[1]+3545052371+(A[0]>>>0<p[0]>>>0?1:0)|0,A[2]=A[2]+886263092+(A[1]>>>0<p[1]>>>0?1:0)|0,A[3]=A[3]+1295307597+(A[2]>>>0<p[2]>>>0?1:0)|0,A[4]=A[4]+3545052371+(A[3]>>>0<p[3]>>>0?1:0)|0,A[5]=A[5]+886263092+(A[4]>>>0<p[4]>>>0?1:0)|0,A[6]=A[6]+1295307597+(A[5]>>>0<p[5]>>>0?1:0)|0,A[7]=A[7]+3545052371+(A[6]>>>0<p[6]>>>0?1:0)|0,this._b=A[7]>>>0<p[7]>>>0?1:0;for(var y=0;y<8;y++){var m=x[y]+A[y],g=m&65535,D=m>>>16,C=((g*g>>>17)+g*D>>>15)+D*D,B=((m&4294901760)*m|0)+((m&65535)*m|0);f[y]=C^B}x[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,x[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,x[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,x[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,x[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,x[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,x[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,x[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}n.RabbitLegacy=o._createHelper(l)}(),r.RabbitLegacy})}(Yn)),Yn.exports}var Zn={exports:{}},za;function Jh(){return za||(za=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Nt(),Ht(),bt(),He())})(le,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,a=n.algo;const s=16,p=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],f=[[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 l={pbox:[],sbox:[]};function v(g,D){let C=D>>24&255,B=D>>16&255,b=D>>8&255,_=D&255,T=g.sbox[0][C]+g.sbox[1][B];return T=T^g.sbox[2][b],T=T+g.sbox[3][_],T}function x(g,D,C){let B=D,b=C,_;for(let T=0;T<s;++T)B=B^g.pbox[T],b=v(g,B)^b,_=B,B=b,b=_;return _=B,B=b,b=_,b=b^g.pbox[s],B=B^g.pbox[s+1],{left:B,right:b}}function A(g,D,C){let B=D,b=C,_;for(let T=s+1;T>1;--T)B=B^g.pbox[T],b=v(g,B)^b,_=B,B=b,b=_;return _=B,B=b,b=_,b=b^g.pbox[1],B=B^g.pbox[0],{left:B,right:b}}function y(g,D,C){for(let k=0;k<4;k++){g.sbox[k]=[];for(let q=0;q<256;q++)g.sbox[k][q]=f[k][q]}let B=0;for(let k=0;k<s+2;k++)g.pbox[k]=p[k]^D[B],B++,B>=C&&(B=0);let b=0,_=0,T=0;for(let k=0;k<s+2;k+=2)T=x(g,b,_),b=T.left,_=T.right,g.pbox[k]=b,g.pbox[k+1]=_;for(let k=0;k<4;k++)for(let q=0;q<256;q+=2)T=x(g,b,_),b=T.left,_=T.right,g.sbox[k][q]=b,g.sbox[k][q+1]=_;return!0}var m=a.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var g=this._keyPriorReset=this._key,D=g.words,C=g.sigBytes/4;y(l,D,C)}},encryptBlock:function(g,D){var C=x(l,g[D],g[D+1]);g[D]=C.left,g[D+1]=C.right},decryptBlock:function(g,D){var C=A(l,g[D],g[D+1]);g[D]=C.left,g[D+1]=C.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=o._createHelper(m)}(),r.Blowfish})}(Zn)),Zn.exports}(function(t,e){(function(r,n,i){t.exports=n(ve(),e0(),Sh(),Th(),Nt(),Ih(),Ht(),pa(),Cn(),Rh(),ga(),Oh(),kh(),Ph(),In(),Mh(),bt(),He(),Lh(),Uh(),Nh(),Hh(),qh(),$h(),zh(),Wh(),Gh(),Vh(),Kh(),jh(),Xh(),Yh(),Zh(),Qh(),Jh())})(le,function(r){return r})})(Dh);var xe={},t0={};t0.byteLength=r1,t0.toByteArray=i1,t0.fromByteArray=s1;for(var yt=[],ot=[],e1=typeof Uint8Array!="undefined"?Uint8Array:Array,Qn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tr=0,t1=Qn.length;tr<t1;++tr)yt[tr]=Qn[tr],ot[Qn.charCodeAt(tr)]=tr;ot[45]=62,ot[95]=63;function Wa(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function r1(t){var e=Wa(t),r=e[0],n=e[1];return(r+n)*3/4-n}function n1(t,e,r){return(e+r)*3/4-r}function i1(t){var e,r=Wa(t),n=r[0],i=r[1],o=new e1(n1(t,n,i)),a=0,s=i>0?n-4:n,p;for(p=0;p<s;p+=4)e=ot[t.charCodeAt(p)]<<18|ot[t.charCodeAt(p+1)]<<12|ot[t.charCodeAt(p+2)]<<6|ot[t.charCodeAt(p+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=ot[t.charCodeAt(p)]<<2|ot[t.charCodeAt(p+1)]>>4,o[a++]=e&255),i===1&&(e=ot[t.charCodeAt(p)]<<10|ot[t.charCodeAt(p+1)]<<4|ot[t.charCodeAt(p+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function o1(t){return yt[t>>18&63]+yt[t>>12&63]+yt[t>>6&63]+yt[t&63]}function a1(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(o1(n));return i.join("")}function s1(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,s=r-n;a<s;a+=o)i.push(a1(t,a,a+o>s?s:a+o));return n===1?(e=t[r-1],i.push(yt[e>>2]+yt[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(yt[e>>10]+yt[e>>4&63]+yt[e<<2&63]+"=")),i.join("")}var Jn={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Jn.read=function(t,e,r,n,i){var o,a,s=i*8-n-1,p=(1<<s)-1,f=p>>1,l=-7,v=r?i-1:0,x=r?-1:1,A=t[e+v];for(v+=x,o=A&(1<<-l)-1,A>>=-l,l+=s;l>0;o=o*256+t[e+v],v+=x,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=a*256+t[e+v],v+=x,l-=8);if(o===0)o=1-f;else{if(o===p)return a?NaN:(A?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-f}return(A?-1:1)*a*Math.pow(2,o-n)},Jn.write=function(t,e,r,n,i,o){var a,s,p,f=o*8-i-1,l=(1<<f)-1,v=l>>1,x=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=n?0:o-1,y=n?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+v>=1?e+=x/p:e+=x*Math.pow(2,1-v),e*p>=2&&(a++,p/=2),a+v>=l?(s=0,a=l):a+v>=1?(s=(e*p-1)*Math.pow(2,i),a=a+v):(s=e*Math.pow(2,v-1)*Math.pow(2,i),a=0));i>=8;t[r+A]=s&255,A+=y,s/=256,i-=8);for(a=a<<i|s,f+=i;f>0;t[r+A]=a&255,A+=y,a/=256,f-=8);t[r+A-y]|=m*128};/*!
|
|
23
|
+
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function i(s){if((s>>24&255)===255){var p=s>>16&255,f=s>>8&255,l=s&255;p===255?(p=0,f===255?(f=0,l===255?l=0:++l):++f):++p,s=0,s+=p<<16,s+=f<<8,s+=l}else s+=1<<24;return s}function o(s){return(s[0]=i(s[0]))===0&&(s[1]=i(s[1])),s}var a=n.Encryptor=n.extend({processBlock:function(s,p){var f=this._cipher,l=f.blockSize,v=this._iv,x=this._counter;v&&(x=this._counter=v.slice(0),this._iv=void 0),o(x);var A=x.slice(0);f.encryptBlock(A,0);for(var y=0;y<l;y++)s[p+y]^=A[y]}});return n.Decryptor=a,n}(),r.mode.CTRGladman})}(Ln)),Ln.exports}var Un={exports:{}},Ia;function qh(){return Ia||(Ia=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,a){var s=this._cipher,p=s.blockSize,f=this._iv,l=this._keystream;f&&(l=this._keystream=f.slice(0),this._iv=void 0),s.encryptBlock(l,0);for(var v=0;v<p;v++)o[a+v]^=l[v]}});return n.Decryptor=i,n}(),r.mode.OFB})}(Un)),Un.exports}var Nn={exports:{}},Ra;function $h(){return Ra||(Ra=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(i,o){this._cipher.encryptBlock(i,o)}}),n.Decryptor=n.extend({processBlock:function(i,o){this._cipher.decryptBlock(i,o)}}),n}(),r.mode.ECB})}(Nn)),Nn.exports}var Hn={exports:{}},Oa;function zh(){return Oa||(Oa=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.pad.AnsiX923={pad:function(n,i){var o=n.sigBytes,a=i*4,s=a-o%a,p=o+s-1;n.clamp(),n.words[p>>>2]|=s<<24-p%4*8,n.sigBytes+=s},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Ansix923})}(Hn)),Hn.exports}var qn={exports:{}},ka;function Wh(){return ka||(ka=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.pad.Iso10126={pad:function(n,i){var o=i*4,a=o-n.sigBytes%o;n.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Iso10126})}(qn)),qn.exports}var $n={exports:{}},Pa;function Gh(){return Pa||(Pa=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.pad.Iso97971={pad:function(n,i){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,i)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}($n)),$n.exports}var zn={exports:{}},Ma;function Vh(){return Ma||(Ma=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.pad.ZeroPadding={pad:function(n,i){var o=i*4;n.clamp(),n.sigBytes+=o-(n.sigBytes%o||o)},unpad:function(n){for(var i=n.words,o=n.sigBytes-1,o=n.sigBytes-1;o>=0;o--)if(i[o>>>2]>>>24-o%4*8&255){n.sigBytes=o+1;break}}},r.pad.ZeroPadding})}(zn)),zn.exports}var Wn={exports:{}},La;function Kh(){return La||(La=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(Wn)),Wn.exports}var Gn={exports:{}},Ua;function jh(){return Ua||(Ua=1,function(t,e){(function(r,n,i){t.exports=n(ve(),He())})(le,function(r){return function(n){var i=r,o=i.lib,a=o.CipherParams,s=i.enc,p=s.Hex,f=i.format;f.Hex={stringify:function(l){return l.ciphertext.toString(p)},parse:function(l){var v=p.parse(l);return a.create({ciphertext:v})}}}(),r.format.Hex})}(Gn)),Gn.exports}var Vn={exports:{}},Na;function Xh(){return Na||(Na=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Nt(),Ht(),bt(),He())})(le,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,a=n.algo,s=[],p=[],f=[],l=[],v=[],x=[],A=[],y=[],m=[],g=[];(function(){for(var w=[],b=0;b<256;b++)b<128?w[b]=b<<1:w[b]=b<<1^283;for(var _=0,T=0,b=0;b<256;b++){var k=T^T<<1^T<<2^T<<3^T<<4;k=k>>>8^k&255^99,s[_]=k,p[k]=_;var q=w[_],X=w[q],I=w[X],P=w[k]*257^k*16843008;f[_]=P<<24|P>>>8,l[_]=P<<16|P>>>16,v[_]=P<<8|P>>>24,x[_]=P;var P=I*16843009^X*65537^q*257^_*16843008;A[k]=P<<24|P>>>8,y[k]=P<<16|P>>>16,m[k]=P<<8|P>>>24,g[k]=P,_?(_=q^w[w[w[I^q]]],T^=w[w[T]]):_=T=1}})();var D=[0,1,2,4,8,16,32,64,128,27,54],C=a.AES=o.extend({_doReset:function(){var w;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,_=b.words,T=b.sigBytes/4,k=this._nRounds=T+6,q=(k+1)*4,X=this._keySchedule=[],I=0;I<q;I++)I<T?X[I]=_[I]:(w=X[I-1],I%T?T>6&&I%T==4&&(w=s[w>>>24]<<24|s[w>>>16&255]<<16|s[w>>>8&255]<<8|s[w&255]):(w=w<<8|w>>>24,w=s[w>>>24]<<24|s[w>>>16&255]<<16|s[w>>>8&255]<<8|s[w&255],w^=D[I/T|0]<<24),X[I]=X[I-T]^w);for(var P=this._invKeySchedule=[],G=0;G<q;G++){var I=q-G;if(G%4)var w=X[I];else var w=X[I-4];G<4||I<=4?P[G]=w:P[G]=A[s[w>>>24]]^y[s[w>>>16&255]]^m[s[w>>>8&255]]^g[s[w&255]]}}},encryptBlock:function(w,b){this._doCryptBlock(w,b,this._keySchedule,f,l,v,x,s)},decryptBlock:function(w,b){var _=w[b+1];w[b+1]=w[b+3],w[b+3]=_,this._doCryptBlock(w,b,this._invKeySchedule,A,y,m,g,p);var _=w[b+1];w[b+1]=w[b+3],w[b+3]=_},_doCryptBlock:function(w,b,_,T,k,q,X,I){for(var P=this._nRounds,G=w[b]^_[0],S=w[b+1]^_[1],N=w[b+2]^_[2],M=w[b+3]^_[3],H=4,Y=1;Y<P;Y++){var W=T[G>>>24]^k[S>>>16&255]^q[N>>>8&255]^X[M&255]^_[H++],ee=T[S>>>24]^k[N>>>16&255]^q[M>>>8&255]^X[G&255]^_[H++],J=T[N>>>24]^k[M>>>16&255]^q[G>>>8&255]^X[S&255]^_[H++],O=T[M>>>24]^k[G>>>16&255]^q[S>>>8&255]^X[N&255]^_[H++];G=W,S=ee,N=J,M=O}var W=(I[G>>>24]<<24|I[S>>>16&255]<<16|I[N>>>8&255]<<8|I[M&255])^_[H++],ee=(I[S>>>24]<<24|I[N>>>16&255]<<16|I[M>>>8&255]<<8|I[G&255])^_[H++],J=(I[N>>>24]<<24|I[M>>>16&255]<<16|I[G>>>8&255]<<8|I[S&255])^_[H++],O=(I[M>>>24]<<24|I[G>>>16&255]<<16|I[S>>>8&255]<<8|I[N&255])^_[H++];w[b]=W,w[b+1]=ee,w[b+2]=J,w[b+3]=O},keySize:256/32});n.AES=o._createHelper(C)}(),r.AES})}(Vn)),Vn.exports}var Kn={exports:{}},Ha;function Yh(){return Ha||(Ha=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Nt(),Ht(),bt(),He())})(le,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=i.BlockCipher,s=n.algo,p=[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],f=[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],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],v=[{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}],x=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],A=s.DES=a.extend({_doReset:function(){for(var D=this._key,C=D.words,w=[],b=0;b<56;b++){var _=p[b]-1;w[b]=C[_>>>5]>>>31-_%32&1}for(var T=this._subKeys=[],k=0;k<16;k++){for(var q=T[k]=[],X=l[k],b=0;b<24;b++)q[b/6|0]|=w[(f[b]-1+X)%28]<<31-b%6,q[4+(b/6|0)]|=w[28+(f[b+24]-1+X)%28]<<31-b%6;q[0]=q[0]<<1|q[0]>>>31;for(var b=1;b<7;b++)q[b]=q[b]>>>(b-1)*4+3;q[7]=q[7]<<5|q[7]>>>27}for(var I=this._invSubKeys=[],b=0;b<16;b++)I[b]=T[15-b]},encryptBlock:function(D,C){this._doCryptBlock(D,C,this._subKeys)},decryptBlock:function(D,C){this._doCryptBlock(D,C,this._invSubKeys)},_doCryptBlock:function(D,C,w){this._lBlock=D[C],this._rBlock=D[C+1],y.call(this,4,252645135),y.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),y.call(this,1,1431655765);for(var b=0;b<16;b++){for(var _=w[b],T=this._lBlock,k=this._rBlock,q=0,X=0;X<8;X++)q|=v[X][((k^_[X])&x[X])>>>0];this._lBlock=k,this._rBlock=T^q}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,y.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),D[C]=this._lBlock,D[C+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(D,C){var w=(this._lBlock>>>D^this._rBlock)&C;this._rBlock^=w,this._lBlock^=w<<D}function m(D,C){var w=(this._rBlock>>>D^this._lBlock)&C;this._lBlock^=w,this._rBlock^=w<<D}n.DES=a._createHelper(A);var g=s.TripleDES=a.extend({_doReset:function(){var D=this._key,C=D.words;if(C.length!==2&&C.length!==4&&C.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var w=C.slice(0,2),b=C.length<4?C.slice(0,2):C.slice(2,4),_=C.length<6?C.slice(0,2):C.slice(4,6);this._des1=A.createEncryptor(o.create(w)),this._des2=A.createEncryptor(o.create(b)),this._des3=A.createEncryptor(o.create(_))},encryptBlock:function(D,C){this._des1.encryptBlock(D,C),this._des2.decryptBlock(D,C),this._des3.encryptBlock(D,C)},decryptBlock:function(D,C){this._des3.decryptBlock(D,C),this._des2.encryptBlock(D,C),this._des1.decryptBlock(D,C)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=a._createHelper(g)}(),r.TripleDES})}(Kn)),Kn.exports}var jn={exports:{}},qa;function Zh(){return qa||(qa=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Nt(),Ht(),bt(),He())})(le,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,a=n.algo,s=a.RC4=o.extend({_doReset:function(){for(var l=this._key,v=l.words,x=l.sigBytes,A=this._S=[],y=0;y<256;y++)A[y]=y;for(var y=0,m=0;y<256;y++){var g=y%x,D=v[g>>>2]>>>24-g%4*8&255;m=(m+A[y]+D)%256;var C=A[y];A[y]=A[m],A[m]=C}this._i=this._j=0},_doProcessBlock:function(l,v){l[v]^=p.call(this)},keySize:256/32,ivSize:0});function p(){for(var l=this._S,v=this._i,x=this._j,A=0,y=0;y<4;y++){v=(v+1)%256,x=(x+l[v])%256;var m=l[v];l[v]=l[x],l[x]=m,A|=l[(l[v]+l[x])%256]<<24-y*8}return this._i=v,this._j=x,A}n.RC4=o._createHelper(s);var f=a.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var l=this.cfg.drop;l>0;l--)p.call(this)}});n.RC4Drop=o._createHelper(f)}(),r.RC4})}(jn)),jn.exports}var Xn={exports:{}},$a;function Qh(){return $a||($a=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Nt(),Ht(),bt(),He())})(le,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,a=n.algo,s=[],p=[],f=[],l=a.Rabbit=o.extend({_doReset:function(){for(var x=this._key.words,A=this.cfg.iv,y=0;y<4;y++)x[y]=(x[y]<<8|x[y]>>>24)&16711935|(x[y]<<24|x[y]>>>8)&4278255360;var m=this._X=[x[0],x[3]<<16|x[2]>>>16,x[1],x[0]<<16|x[3]>>>16,x[2],x[1]<<16|x[0]>>>16,x[3],x[2]<<16|x[1]>>>16],g=this._C=[x[2]<<16|x[2]>>>16,x[0]&4294901760|x[1]&65535,x[3]<<16|x[3]>>>16,x[1]&4294901760|x[2]&65535,x[0]<<16|x[0]>>>16,x[2]&4294901760|x[3]&65535,x[1]<<16|x[1]>>>16,x[3]&4294901760|x[0]&65535];this._b=0;for(var y=0;y<4;y++)v.call(this);for(var y=0;y<8;y++)g[y]^=m[y+4&7];if(A){var D=A.words,C=D[0],w=D[1],b=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,_=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,T=b>>>16|_&4294901760,k=_<<16|b&65535;g[0]^=b,g[1]^=T,g[2]^=_,g[3]^=k,g[4]^=b,g[5]^=T,g[6]^=_,g[7]^=k;for(var y=0;y<4;y++)v.call(this)}},_doProcessBlock:function(x,A){var y=this._X;v.call(this),s[0]=y[0]^y[5]>>>16^y[3]<<16,s[1]=y[2]^y[7]>>>16^y[5]<<16,s[2]=y[4]^y[1]>>>16^y[7]<<16,s[3]=y[6]^y[3]>>>16^y[1]<<16;for(var m=0;m<4;m++)s[m]=(s[m]<<8|s[m]>>>24)&16711935|(s[m]<<24|s[m]>>>8)&4278255360,x[A+m]^=s[m]},blockSize:128/32,ivSize:64/32});function v(){for(var x=this._X,A=this._C,y=0;y<8;y++)p[y]=A[y];A[0]=A[0]+1295307597+this._b|0,A[1]=A[1]+3545052371+(A[0]>>>0<p[0]>>>0?1:0)|0,A[2]=A[2]+886263092+(A[1]>>>0<p[1]>>>0?1:0)|0,A[3]=A[3]+1295307597+(A[2]>>>0<p[2]>>>0?1:0)|0,A[4]=A[4]+3545052371+(A[3]>>>0<p[3]>>>0?1:0)|0,A[5]=A[5]+886263092+(A[4]>>>0<p[4]>>>0?1:0)|0,A[6]=A[6]+1295307597+(A[5]>>>0<p[5]>>>0?1:0)|0,A[7]=A[7]+3545052371+(A[6]>>>0<p[6]>>>0?1:0)|0,this._b=A[7]>>>0<p[7]>>>0?1:0;for(var y=0;y<8;y++){var m=x[y]+A[y],g=m&65535,D=m>>>16,C=((g*g>>>17)+g*D>>>15)+D*D,w=((m&4294901760)*m|0)+((m&65535)*m|0);f[y]=C^w}x[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,x[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,x[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,x[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,x[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,x[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,x[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,x[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}n.Rabbit=o._createHelper(l)}(),r.Rabbit})}(Xn)),Xn.exports}var Yn={exports:{}},za;function Jh(){return za||(za=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Nt(),Ht(),bt(),He())})(le,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,a=n.algo,s=[],p=[],f=[],l=a.RabbitLegacy=o.extend({_doReset:function(){var x=this._key.words,A=this.cfg.iv,y=this._X=[x[0],x[3]<<16|x[2]>>>16,x[1],x[0]<<16|x[3]>>>16,x[2],x[1]<<16|x[0]>>>16,x[3],x[2]<<16|x[1]>>>16],m=this._C=[x[2]<<16|x[2]>>>16,x[0]&4294901760|x[1]&65535,x[3]<<16|x[3]>>>16,x[1]&4294901760|x[2]&65535,x[0]<<16|x[0]>>>16,x[2]&4294901760|x[3]&65535,x[1]<<16|x[1]>>>16,x[3]&4294901760|x[0]&65535];this._b=0;for(var g=0;g<4;g++)v.call(this);for(var g=0;g<8;g++)m[g]^=y[g+4&7];if(A){var D=A.words,C=D[0],w=D[1],b=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,_=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,T=b>>>16|_&4294901760,k=_<<16|b&65535;m[0]^=b,m[1]^=T,m[2]^=_,m[3]^=k,m[4]^=b,m[5]^=T,m[6]^=_,m[7]^=k;for(var g=0;g<4;g++)v.call(this)}},_doProcessBlock:function(x,A){var y=this._X;v.call(this),s[0]=y[0]^y[5]>>>16^y[3]<<16,s[1]=y[2]^y[7]>>>16^y[5]<<16,s[2]=y[4]^y[1]>>>16^y[7]<<16,s[3]=y[6]^y[3]>>>16^y[1]<<16;for(var m=0;m<4;m++)s[m]=(s[m]<<8|s[m]>>>24)&16711935|(s[m]<<24|s[m]>>>8)&4278255360,x[A+m]^=s[m]},blockSize:128/32,ivSize:64/32});function v(){for(var x=this._X,A=this._C,y=0;y<8;y++)p[y]=A[y];A[0]=A[0]+1295307597+this._b|0,A[1]=A[1]+3545052371+(A[0]>>>0<p[0]>>>0?1:0)|0,A[2]=A[2]+886263092+(A[1]>>>0<p[1]>>>0?1:0)|0,A[3]=A[3]+1295307597+(A[2]>>>0<p[2]>>>0?1:0)|0,A[4]=A[4]+3545052371+(A[3]>>>0<p[3]>>>0?1:0)|0,A[5]=A[5]+886263092+(A[4]>>>0<p[4]>>>0?1:0)|0,A[6]=A[6]+1295307597+(A[5]>>>0<p[5]>>>0?1:0)|0,A[7]=A[7]+3545052371+(A[6]>>>0<p[6]>>>0?1:0)|0,this._b=A[7]>>>0<p[7]>>>0?1:0;for(var y=0;y<8;y++){var m=x[y]+A[y],g=m&65535,D=m>>>16,C=((g*g>>>17)+g*D>>>15)+D*D,w=((m&4294901760)*m|0)+((m&65535)*m|0);f[y]=C^w}x[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,x[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,x[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,x[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,x[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,x[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,x[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,x[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}n.RabbitLegacy=o._createHelper(l)}(),r.RabbitLegacy})}(Yn)),Yn.exports}var Zn={exports:{}},Wa;function e1(){return Wa||(Wa=1,function(t,e){(function(r,n,i){t.exports=n(ve(),Nt(),Ht(),bt(),He())})(le,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,a=n.algo;const s=16,p=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],f=[[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 l={pbox:[],sbox:[]};function v(g,D){let C=D>>24&255,w=D>>16&255,b=D>>8&255,_=D&255,T=g.sbox[0][C]+g.sbox[1][w];return T=T^g.sbox[2][b],T=T+g.sbox[3][_],T}function x(g,D,C){let w=D,b=C,_;for(let T=0;T<s;++T)w=w^g.pbox[T],b=v(g,w)^b,_=w,w=b,b=_;return _=w,w=b,b=_,b=b^g.pbox[s],w=w^g.pbox[s+1],{left:w,right:b}}function A(g,D,C){let w=D,b=C,_;for(let T=s+1;T>1;--T)w=w^g.pbox[T],b=v(g,w)^b,_=w,w=b,b=_;return _=w,w=b,b=_,b=b^g.pbox[1],w=w^g.pbox[0],{left:w,right:b}}function y(g,D,C){for(let k=0;k<4;k++){g.sbox[k]=[];for(let q=0;q<256;q++)g.sbox[k][q]=f[k][q]}let w=0;for(let k=0;k<s+2;k++)g.pbox[k]=p[k]^D[w],w++,w>=C&&(w=0);let b=0,_=0,T=0;for(let k=0;k<s+2;k+=2)T=x(g,b,_),b=T.left,_=T.right,g.pbox[k]=b,g.pbox[k+1]=_;for(let k=0;k<4;k++)for(let q=0;q<256;q+=2)T=x(g,b,_),b=T.left,_=T.right,g.sbox[k][q]=b,g.sbox[k][q+1]=_;return!0}var m=a.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var g=this._keyPriorReset=this._key,D=g.words,C=g.sigBytes/4;y(l,D,C)}},encryptBlock:function(g,D){var C=x(l,g[D],g[D+1]);g[D]=C.left,g[D+1]=C.right},decryptBlock:function(g,D){var C=A(l,g[D],g[D+1]);g[D]=C.left,g[D+1]=C.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=o._createHelper(m)}(),r.Blowfish})}(Zn)),Zn.exports}(function(t,e){(function(r,n,i){t.exports=n(ve(),e0(),Th(),Ih(),Nt(),Rh(),Ht(),va(),Cn(),Oh(),Aa(),kh(),Ph(),Mh(),In(),Lh(),bt(),He(),Uh(),Nh(),Hh(),qh(),$h(),zh(),Wh(),Gh(),Vh(),Kh(),jh(),Xh(),Yh(),Zh(),Qh(),Jh(),e1())})(le,function(r){return r})})(_h);var xe={},t0={};t0.byteLength=n1,t0.toByteArray=o1,t0.fromByteArray=f1;for(var yt=[],ot=[],t1=typeof Uint8Array!="undefined"?Uint8Array:Array,Qn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tr=0,r1=Qn.length;tr<r1;++tr)yt[tr]=Qn[tr],ot[Qn.charCodeAt(tr)]=tr;ot[45]=62,ot[95]=63;function Ga(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function n1(t){var e=Ga(t),r=e[0],n=e[1];return(r+n)*3/4-n}function i1(t,e,r){return(e+r)*3/4-r}function o1(t){var e,r=Ga(t),n=r[0],i=r[1],o=new t1(i1(t,n,i)),a=0,s=i>0?n-4:n,p;for(p=0;p<s;p+=4)e=ot[t.charCodeAt(p)]<<18|ot[t.charCodeAt(p+1)]<<12|ot[t.charCodeAt(p+2)]<<6|ot[t.charCodeAt(p+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=ot[t.charCodeAt(p)]<<2|ot[t.charCodeAt(p+1)]>>4,o[a++]=e&255),i===1&&(e=ot[t.charCodeAt(p)]<<10|ot[t.charCodeAt(p+1)]<<4|ot[t.charCodeAt(p+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function a1(t){return yt[t>>18&63]+yt[t>>12&63]+yt[t>>6&63]+yt[t&63]}function s1(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(a1(n));return i.join("")}function f1(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,s=r-n;a<s;a+=o)i.push(s1(t,a,a+o>s?s:a+o));return n===1?(e=t[r-1],i.push(yt[e>>2]+yt[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(yt[e>>10]+yt[e>>4&63]+yt[e<<2&63]+"=")),i.join("")}var Jn={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Jn.read=function(t,e,r,n,i){var o,a,s=i*8-n-1,p=(1<<s)-1,f=p>>1,l=-7,v=r?i-1:0,x=r?-1:1,A=t[e+v];for(v+=x,o=A&(1<<-l)-1,A>>=-l,l+=s;l>0;o=o*256+t[e+v],v+=x,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=a*256+t[e+v],v+=x,l-=8);if(o===0)o=1-f;else{if(o===p)return a?NaN:(A?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-f}return(A?-1:1)*a*Math.pow(2,o-n)},Jn.write=function(t,e,r,n,i,o){var a,s,p,f=o*8-i-1,l=(1<<f)-1,v=l>>1,x=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=n?0:o-1,y=n?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+v>=1?e+=x/p:e+=x*Math.pow(2,1-v),e*p>=2&&(a++,p/=2),a+v>=l?(s=0,a=l):a+v>=1?(s=(e*p-1)*Math.pow(2,i),a=a+v):(s=e*Math.pow(2,v-1)*Math.pow(2,i),a=0));i>=8;t[r+A]=s&255,A+=y,s/=256,i-=8);for(a=a<<i|s,f+=i;f>0;t[r+A]=a&255,A+=y,a/=256,f-=8);t[r+A-y]|=m*128};/*!
|
|
23
24
|
* The buffer module from node.js, for the browser.
|
|
24
25
|
*
|
|
25
26
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
26
27
|
* @license MIT
|
|
27
|
-
*/(function(t){var e=t0,r=Jn,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=C,t.INSPECT_MAX_BYTES=50;var i=2147483647;t.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!s.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 w=new Uint8Array(1),c={foo:function(){return 42}};return Object.setPrototypeOf(c,Uint8Array.prototype),Object.setPrototypeOf(w,c),w.foo()===42}catch(u){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(w){if(w>i)throw new RangeError('The value "'+w+'" is invalid for option "size"');var c=new Uint8Array(w);return Object.setPrototypeOf(c,s.prototype),c}function s(w,c,u){if(typeof w=="number"){if(typeof c=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(w)}return p(w,c,u)}s.poolSize=8192;function p(w,c,u){if(typeof w=="string")return x(w,c);if(ArrayBuffer.isView(w))return y(w);if(w==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w);if(Ee(w,ArrayBuffer)||w&&Ee(w.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ee(w,SharedArrayBuffer)||w&&Ee(w.buffer,SharedArrayBuffer)))return m(w,c,u);if(typeof w=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var F=w.valueOf&&w.valueOf();if(F!=null&&F!==w)return s.from(F,c,u);var L=g(w);if(L)return L;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof w[Symbol.toPrimitive]=="function")return s.from(w[Symbol.toPrimitive]("string"),c,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w)}s.from=function(w,c,u){return p(w,c,u)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function f(w){if(typeof w!="number")throw new TypeError('"size" argument must be of type number');if(w<0)throw new RangeError('The value "'+w+'" is invalid for option "size"')}function l(w,c,u){return f(w),w<=0?a(w):c!==void 0?typeof u=="string"?a(w).fill(c,u):a(w).fill(c):a(w)}s.alloc=function(w,c,u){return l(w,c,u)};function v(w){return f(w),a(w<0?0:D(w)|0)}s.allocUnsafe=function(w){return v(w)},s.allocUnsafeSlow=function(w){return v(w)};function x(w,c){if((typeof c!="string"||c==="")&&(c="utf8"),!s.isEncoding(c))throw new TypeError("Unknown encoding: "+c);var u=B(w,c)|0,F=a(u),L=F.write(w,c);return L!==u&&(F=F.slice(0,L)),F}function A(w){for(var c=w.length<0?0:D(w.length)|0,u=a(c),F=0;F<c;F+=1)u[F]=w[F]&255;return u}function y(w){if(Ee(w,Uint8Array)){var c=new Uint8Array(w);return m(c.buffer,c.byteOffset,c.byteLength)}return A(w)}function m(w,c,u){if(c<0||w.byteLength<c)throw new RangeError('"offset" is outside of buffer bounds');if(w.byteLength<c+(u||0))throw new RangeError('"length" is outside of buffer bounds');var F;return c===void 0&&u===void 0?F=new Uint8Array(w):u===void 0?F=new Uint8Array(w,c):F=new Uint8Array(w,c,u),Object.setPrototypeOf(F,s.prototype),F}function g(w){if(s.isBuffer(w)){var c=D(w.length)|0,u=a(c);return u.length===0||w.copy(u,0,0,c),u}if(w.length!==void 0)return typeof w.length!="number"||Me(w.length)?a(0):A(w);if(w.type==="Buffer"&&Array.isArray(w.data))return A(w.data)}function D(w){if(w>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return w|0}function C(w){return+w!=w&&(w=0),s.alloc(+w)}s.isBuffer=function(c){return c!=null&&c._isBuffer===!0&&c!==s.prototype},s.compare=function(c,u){if(Ee(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),Ee(u,Uint8Array)&&(u=s.from(u,u.offset,u.byteLength)),!s.isBuffer(c)||!s.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(c===u)return 0;for(var F=c.length,L=u.length,K=0,Z=Math.min(F,L);K<Z;++K)if(c[K]!==u[K]){F=c[K],L=u[K];break}return F<L?-1:L<F?1:0},s.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}},s.concat=function(c,u){if(!Array.isArray(c))throw new TypeError('"list" argument must be an Array of Buffers');if(c.length===0)return s.alloc(0);var F;if(u===void 0)for(u=0,F=0;F<c.length;++F)u+=c[F].length;var L=s.allocUnsafe(u),K=0;for(F=0;F<c.length;++F){var Z=c[F];if(Ee(Z,Uint8Array))K+Z.length>L.length?s.from(Z).copy(L,K):Uint8Array.prototype.set.call(L,Z,K);else if(s.isBuffer(Z))Z.copy(L,K);else throw new TypeError('"list" argument must be an Array of Buffers');K+=Z.length}return L};function B(w,c){if(s.isBuffer(w))return w.length;if(ArrayBuffer.isView(w)||Ee(w,ArrayBuffer))return w.byteLength;if(typeof w!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof w);var u=w.length,F=arguments.length>2&&arguments[2]===!0;if(!F&&u===0)return 0;for(var L=!1;;)switch(c){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return fe(w).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return Ke(w).length;default:if(L)return F?-1:fe(w).length;c=(""+c).toLowerCase(),L=!0}}s.byteLength=B;function b(w,c,u){var F=!1;if((c===void 0||c<0)&&(c=0),c>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,c>>>=0,u<=c))return"";for(w||(w="utf8");;)switch(w){case"hex":return ee(this,c,u);case"utf8":case"utf-8":return N(this,c,u);case"ascii":return Y(this,c,u);case"latin1":case"binary":return W(this,c,u);case"base64":return S(this,c,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,c,u);default:if(F)throw new TypeError("Unknown encoding: "+w);w=(w+"").toLowerCase(),F=!0}}s.prototype._isBuffer=!0;function _(w,c,u){var F=w[c];w[c]=w[u],w[u]=F}s.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 u=0;u<c;u+=2)_(this,u,u+1);return this},s.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 u=0;u<c;u+=4)_(this,u,u+3),_(this,u+1,u+2);return this},s.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 u=0;u<c;u+=8)_(this,u,u+7),_(this,u+1,u+6),_(this,u+2,u+5),_(this,u+3,u+4);return this},s.prototype.toString=function(){var c=this.length;return c===0?"":arguments.length===0?N(this,0,c):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(c){if(!s.isBuffer(c))throw new TypeError("Argument must be a Buffer");return this===c?!0:s.compare(this,c)===0},s.prototype.inspect=function(){var c="",u=t.INSPECT_MAX_BYTES;return c=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(c+=" ... "),"<Buffer "+c+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(c,u,F,L,K){if(Ee(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),!s.isBuffer(c))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof c);if(u===void 0&&(u=0),F===void 0&&(F=c?c.length:0),L===void 0&&(L=0),K===void 0&&(K=this.length),u<0||F>c.length||L<0||K>this.length)throw new RangeError("out of range index");if(L>=K&&u>=F)return 0;if(L>=K)return-1;if(u>=F)return 1;if(u>>>=0,F>>>=0,L>>>=0,K>>>=0,this===c)return 0;for(var Z=K-L,ue=F-u,ye=Math.min(Z,ue),Be=this.slice(L,K),De=c.slice(u,F),Ae=0;Ae<ye;++Ae)if(Be[Ae]!==De[Ae]){Z=Be[Ae],ue=De[Ae];break}return Z<ue?-1:ue<Z?1:0};function T(w,c,u,F,L){if(w.length===0)return-1;if(typeof u=="string"?(F=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,Me(u)&&(u=L?0:w.length-1),u<0&&(u=w.length+u),u>=w.length){if(L)return-1;u=w.length-1}else if(u<0)if(L)u=0;else return-1;if(typeof c=="string"&&(c=s.from(c,F)),s.isBuffer(c))return c.length===0?-1:k(w,c,u,F,L);if(typeof c=="number")return c=c&255,typeof Uint8Array.prototype.indexOf=="function"?L?Uint8Array.prototype.indexOf.call(w,c,u):Uint8Array.prototype.lastIndexOf.call(w,c,u):k(w,[c],u,F,L);throw new TypeError("val must be string, number or Buffer")}function k(w,c,u,F,L){var K=1,Z=w.length,ue=c.length;if(F!==void 0&&(F=String(F).toLowerCase(),F==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(w.length<2||c.length<2)return-1;K=2,Z/=2,ue/=2,u/=2}function ye(qt,__$t__){return K===1?qt[__$t__]:qt.readUInt16BE(__$t__*K)}var Be;if(L){var De=-1;for(Be=u;Be<Z;Be++)if(ye(w,Be)===ye(c,De===-1?0:Be-De)){if(De===-1&&(De=Be),Be-De+1===ue)return De*K}else De!==-1&&(Be-=Be-De),De=-1}else for(u+ue>Z&&(u=Z-ue),Be=u;Be>=0;Be--){for(var Ae=!0,_t=0;_t<ue;_t++)if(ye(w,Be+_t)!==ye(c,_t)){Ae=!1;break}if(Ae)return Be}return-1}s.prototype.includes=function(c,u,F){return this.indexOf(c,u,F)!==-1},s.prototype.indexOf=function(c,u,F){return T(this,c,u,F,!0)},s.prototype.lastIndexOf=function(c,u,F){return T(this,c,u,F,!1)};function q(w,c,u,F){u=Number(u)||0;var L=w.length-u;F?(F=Number(F),F>L&&(F=L)):F=L;var K=c.length;F>K/2&&(F=K/2);for(var Z=0;Z<F;++Z){var ue=parseInt(c.substr(Z*2,2),16);if(Me(ue))return Z;w[u+Z]=ue}return Z}function X(w,c,u,F){return ze(fe(c,w.length-u),w,u,F)}function I(w,c,u,F){return ze(Se(c),w,u,F)}function P(w,c,u,F){return ze(Ke(c),w,u,F)}function G(w,c,u,F){return ze(Fe(c,w.length-u),w,u,F)}s.prototype.write=function(c,u,F,L){if(u===void 0)L="utf8",F=this.length,u=0;else if(F===void 0&&typeof u=="string")L=u,F=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(F)?(F=F>>>0,L===void 0&&(L="utf8")):(L=F,F=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var K=this.length-u;if((F===void 0||F>K)&&(F=K),c.length>0&&(F<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");for(var Z=!1;;)switch(L){case"hex":return q(this,c,u,F);case"utf8":case"utf-8":return X(this,c,u,F);case"ascii":case"latin1":case"binary":return I(this,c,u,F);case"base64":return P(this,c,u,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,c,u,F);default:if(Z)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),Z=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(w,c,u){return c===0&&u===w.length?e.fromByteArray(w):e.fromByteArray(w.slice(c,u))}function N(w,c,u){u=Math.min(w.length,u);for(var F=[],L=c;L<u;){var K=w[L],Z=null,ue=K>239?4:K>223?3:K>191?2:1;if(L+ue<=u){var ye,Be,De,Ae;switch(ue){case 1:K<128&&(Z=K);break;case 2:ye=w[L+1],(ye&192)===128&&(Ae=(K&31)<<6|ye&63,Ae>127&&(Z=Ae));break;case 3:ye=w[L+1],Be=w[L+2],(ye&192)===128&&(Be&192)===128&&(Ae=(K&15)<<12|(ye&63)<<6|Be&63,Ae>2047&&(Ae<55296||Ae>57343)&&(Z=Ae));break;case 4:ye=w[L+1],Be=w[L+2],De=w[L+3],(ye&192)===128&&(Be&192)===128&&(De&192)===128&&(Ae=(K&15)<<18|(ye&63)<<12|(Be&63)<<6|De&63,Ae>65535&&Ae<1114112&&(Z=Ae))}}Z===null?(Z=65533,ue=1):Z>65535&&(Z-=65536,F.push(Z>>>10&1023|55296),Z=56320|Z&1023),F.push(Z),L+=ue}return H(F)}var M=4096;function H(w){var c=w.length;if(c<=M)return String.fromCharCode.apply(String,w);for(var u="",F=0;F<c;)u+=String.fromCharCode.apply(String,w.slice(F,F+=M));return u}function Y(w,c,u){var F="";u=Math.min(w.length,u);for(var L=c;L<u;++L)F+=String.fromCharCode(w[L]&127);return F}function W(w,c,u){var F="";u=Math.min(w.length,u);for(var L=c;L<u;++L)F+=String.fromCharCode(w[L]);return F}function ee(w,c,u){var F=w.length;(!c||c<0)&&(c=0),(!u||u<0||u>F)&&(u=F);for(var L="",K=c;K<u;++K)L+=Dt[w[K]];return L}function J(w,c,u){for(var F=w.slice(c,u),L="",K=0;K<F.length-1;K+=2)L+=String.fromCharCode(F[K]+F[K+1]*256);return L}s.prototype.slice=function(c,u){var F=this.length;c=~~c,u=u===void 0?F:~~u,c<0?(c+=F,c<0&&(c=0)):c>F&&(c=F),u<0?(u+=F,u<0&&(u=0)):u>F&&(u=F),u<c&&(u=c);var L=this.subarray(c,u);return Object.setPrototypeOf(L,s.prototype),L};function O(w,c,u){if(w%1!==0||w<0)throw new RangeError("offset is not uint");if(w+c>u)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(c,u,F){c=c>>>0,u=u>>>0,F||O(c,u,this.length);for(var L=this[c],K=1,Z=0;++Z<u&&(K*=256);)L+=this[c+Z]*K;return L},s.prototype.readUintBE=s.prototype.readUIntBE=function(c,u,F){c=c>>>0,u=u>>>0,F||O(c,u,this.length);for(var L=this[c+--u],K=1;u>0&&(K*=256);)L+=this[c+--u]*K;return L},s.prototype.readUint8=s.prototype.readUInt8=function(c,u){return c=c>>>0,u||O(c,1,this.length),this[c]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(c,u){return c=c>>>0,u||O(c,2,this.length),this[c]|this[c+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(c,u){return c=c>>>0,u||O(c,2,this.length),this[c]<<8|this[c+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(c,u){return c=c>>>0,u||O(c,4,this.length),(this[c]|this[c+1]<<8|this[c+2]<<16)+this[c+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(c,u){return c=c>>>0,u||O(c,4,this.length),this[c]*16777216+(this[c+1]<<16|this[c+2]<<8|this[c+3])},s.prototype.readIntLE=function(c,u,F){c=c>>>0,u=u>>>0,F||O(c,u,this.length);for(var L=this[c],K=1,Z=0;++Z<u&&(K*=256);)L+=this[c+Z]*K;return K*=128,L>=K&&(L-=Math.pow(2,8*u)),L},s.prototype.readIntBE=function(c,u,F){c=c>>>0,u=u>>>0,F||O(c,u,this.length);for(var L=u,K=1,Z=this[c+--L];L>0&&(K*=256);)Z+=this[c+--L]*K;return K*=128,Z>=K&&(Z-=Math.pow(2,8*u)),Z},s.prototype.readInt8=function(c,u){return c=c>>>0,u||O(c,1,this.length),this[c]&128?(255-this[c]+1)*-1:this[c]},s.prototype.readInt16LE=function(c,u){c=c>>>0,u||O(c,2,this.length);var F=this[c]|this[c+1]<<8;return F&32768?F|4294901760:F},s.prototype.readInt16BE=function(c,u){c=c>>>0,u||O(c,2,this.length);var F=this[c+1]|this[c]<<8;return F&32768?F|4294901760:F},s.prototype.readInt32LE=function(c,u){return c=c>>>0,u||O(c,4,this.length),this[c]|this[c+1]<<8|this[c+2]<<16|this[c+3]<<24},s.prototype.readInt32BE=function(c,u){return c=c>>>0,u||O(c,4,this.length),this[c]<<24|this[c+1]<<16|this[c+2]<<8|this[c+3]},s.prototype.readFloatLE=function(c,u){return c=c>>>0,u||O(c,4,this.length),r.read(this,c,!0,23,4)},s.prototype.readFloatBE=function(c,u){return c=c>>>0,u||O(c,4,this.length),r.read(this,c,!1,23,4)},s.prototype.readDoubleLE=function(c,u){return c=c>>>0,u||O(c,8,this.length),r.read(this,c,!0,52,8)},s.prototype.readDoubleBE=function(c,u){return c=c>>>0,u||O(c,8,this.length),r.read(this,c,!1,52,8)};function U(w,c,u,F,L,K){if(!s.isBuffer(w))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>L||c<K)throw new RangeError('"value" argument is out of bounds');if(u+F>w.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(c,u,F,L){if(c=+c,u=u>>>0,F=F>>>0,!L){var K=Math.pow(2,8*F)-1;U(this,c,u,F,K,0)}var Z=1,ue=0;for(this[u]=c&255;++ue<F&&(Z*=256);)this[u+ue]=c/Z&255;return u+F},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(c,u,F,L){if(c=+c,u=u>>>0,F=F>>>0,!L){var K=Math.pow(2,8*F)-1;U(this,c,u,F,K,0)}var Z=F-1,ue=1;for(this[u+Z]=c&255;--Z>=0&&(ue*=256);)this[u+Z]=c/ue&255;return u+F},s.prototype.writeUint8=s.prototype.writeUInt8=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,1,255,0),this[u]=c&255,u+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,2,65535,0),this[u]=c&255,this[u+1]=c>>>8,u+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,2,65535,0),this[u]=c>>>8,this[u+1]=c&255,u+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,4,4294967295,0),this[u+3]=c>>>24,this[u+2]=c>>>16,this[u+1]=c>>>8,this[u]=c&255,u+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,4,4294967295,0),this[u]=c>>>24,this[u+1]=c>>>16,this[u+2]=c>>>8,this[u+3]=c&255,u+4},s.prototype.writeIntLE=function(c,u,F,L){if(c=+c,u=u>>>0,!L){var K=Math.pow(2,8*F-1);U(this,c,u,F,K-1,-K)}var Z=0,ue=1,ye=0;for(this[u]=c&255;++Z<F&&(ue*=256);)c<0&&ye===0&&this[u+Z-1]!==0&&(ye=1),this[u+Z]=(c/ue>>0)-ye&255;return u+F},s.prototype.writeIntBE=function(c,u,F,L){if(c=+c,u=u>>>0,!L){var K=Math.pow(2,8*F-1);U(this,c,u,F,K-1,-K)}var Z=F-1,ue=1,ye=0;for(this[u+Z]=c&255;--Z>=0&&(ue*=256);)c<0&&ye===0&&this[u+Z+1]!==0&&(ye=1),this[u+Z]=(c/ue>>0)-ye&255;return u+F},s.prototype.writeInt8=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,1,127,-128),c<0&&(c=255+c+1),this[u]=c&255,u+1},s.prototype.writeInt16LE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,2,32767,-32768),this[u]=c&255,this[u+1]=c>>>8,u+2},s.prototype.writeInt16BE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,2,32767,-32768),this[u]=c>>>8,this[u+1]=c&255,u+2},s.prototype.writeInt32LE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,4,2147483647,-2147483648),this[u]=c&255,this[u+1]=c>>>8,this[u+2]=c>>>16,this[u+3]=c>>>24,u+4},s.prototype.writeInt32BE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,4,2147483647,-2147483648),c<0&&(c=4294967295+c+1),this[u]=c>>>24,this[u+1]=c>>>16,this[u+2]=c>>>8,this[u+3]=c&255,u+4};function V(w,c,u,F,L,K){if(u+F>w.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function z(w,c,u,F,L){return c=+c,u=u>>>0,L||V(w,c,u,4),r.write(w,c,u,F,23,4),u+4}s.prototype.writeFloatLE=function(c,u,F){return z(this,c,u,!0,F)},s.prototype.writeFloatBE=function(c,u,F){return z(this,c,u,!1,F)};function se(w,c,u,F,L){return c=+c,u=u>>>0,L||V(w,c,u,8),r.write(w,c,u,F,52,8),u+8}s.prototype.writeDoubleLE=function(c,u,F){return se(this,c,u,!0,F)},s.prototype.writeDoubleBE=function(c,u,F){return se(this,c,u,!1,F)},s.prototype.copy=function(c,u,F,L){if(!s.isBuffer(c))throw new TypeError("argument should be a Buffer");if(F||(F=0),!L&&L!==0&&(L=this.length),u>=c.length&&(u=c.length),u||(u=0),L>0&&L<F&&(L=F),L===F||c.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),c.length-u<L-F&&(L=c.length-u+F);var K=L-F;return this===c&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,F,L):Uint8Array.prototype.set.call(c,this.subarray(F,L),u),K},s.prototype.fill=function(c,u,F,L){if(typeof c=="string"){if(typeof u=="string"?(L=u,u=0,F=this.length):typeof F=="string"&&(L=F,F=this.length),L!==void 0&&typeof L!="string")throw new TypeError("encoding must be a string");if(typeof L=="string"&&!s.isEncoding(L))throw new TypeError("Unknown encoding: "+L);if(c.length===1){var K=c.charCodeAt(0);(L==="utf8"&&K<128||L==="latin1")&&(c=K)}}else typeof c=="number"?c=c&255:typeof c=="boolean"&&(c=Number(c));if(u<0||this.length<u||this.length<F)throw new RangeError("Out of range index");if(F<=u)return this;u=u>>>0,F=F===void 0?this.length:F>>>0,c||(c=0);var Z;if(typeof c=="number")for(Z=u;Z<F;++Z)this[Z]=c;else{var ue=s.isBuffer(c)?c:s.from(c,L),ye=ue.length;if(ye===0)throw new TypeError('The value "'+c+'" is invalid for argument "value"');for(Z=0;Z<F-u;++Z)this[Z+u]=ue[Z%ye]}return this};var ce=/[^+/0-9A-Za-z-_]/g;function be(w){if(w=w.split("=")[0],w=w.trim().replace(ce,""),w.length<2)return"";for(;w.length%4!==0;)w=w+"=";return w}function fe(w,c){c=c||1/0;for(var u,F=w.length,L=null,K=[],Z=0;Z<F;++Z){if(u=w.charCodeAt(Z),u>55295&&u<57344){if(!L){if(u>56319){(c-=3)>-1&&K.push(239,191,189);continue}else if(Z+1===F){(c-=3)>-1&&K.push(239,191,189);continue}L=u;continue}if(u<56320){(c-=3)>-1&&K.push(239,191,189),L=u;continue}u=(L-55296<<10|u-56320)+65536}else L&&(c-=3)>-1&&K.push(239,191,189);if(L=null,u<128){if((c-=1)<0)break;K.push(u)}else if(u<2048){if((c-=2)<0)break;K.push(u>>6|192,u&63|128)}else if(u<65536){if((c-=3)<0)break;K.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((c-=4)<0)break;K.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return K}function Se(w){for(var c=[],u=0;u<w.length;++u)c.push(w.charCodeAt(u)&255);return c}function Fe(w,c){for(var u,F,L,K=[],Z=0;Z<w.length&&!((c-=2)<0);++Z)u=w.charCodeAt(Z),F=u>>8,L=u%256,K.push(L),K.push(F);return K}function Ke(w){return e.toByteArray(be(w))}function ze(w,c,u,F){for(var L=0;L<F&&!(L+u>=c.length||L>=w.length);++L)c[L+u]=w[L];return L}function Ee(w,c){return w instanceof c||w!=null&&w.constructor!=null&&w.constructor.name!=null&&w.constructor.name===c.name}function Me(w){return w!==w}var Dt=function(){for(var w="0123456789abcdef",c=new Array(256),u=0;u<16;++u)for(var F=u*16,L=0;L<16;++L)c[F+L]=w[u]+w[L];return c}()})(xe);var f1=xe.Buffer,c1=function(t){if(t instanceof Uint8Array){if(t.byteOffset===0&&t.byteLength===t.buffer.byteLength)return t.buffer;if(typeof t.buffer.slice=="function")return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(f1.isBuffer(t)){for(var e=new Uint8Array(t.length),r=t.length,n=0;n<r;n++)e[n]=t[n];return e.buffer}else throw new Error("Argument must be a Buffer")};const wr=A0(c1);var Ga={exports:{}};(function(t,e){(function(){var r,n=0xdeadbeefcafe,i=(n&16777215)==15715070;function o(h,d,E){h!=null&&(typeof h=="number"?this.fromNumber(h,d,E):d==null&&typeof h!="string"?this.fromString(h,256):this.fromString(h,d))}function a(){return new o(null)}function s(h,d,E,R,j,Q){for(;--Q>=0;){var ne=d*this[h++]+E[R]+j;j=Math.floor(ne/67108864),E[R++]=ne&67108863}return j}function p(h,d,E,R,j,Q){for(var ne=d&32767,ie=d>>15;--Q>=0;){var _e=this[h]&32767,Ge=this[h++]>>15,at=ie*_e+Ge*ne;_e=ne*_e+((at&32767)<<15)+E[R]+(j&1073741823),j=(_e>>>30)+(at>>>15)+ie*Ge+(j>>>30),E[R++]=_e&1073741823}return j}function f(h,d,E,R,j,Q){for(var ne=d&16383,ie=d>>14;--Q>=0;){var _e=this[h]&16383,Ge=this[h++]>>14,at=ie*_e+Ge*ne;_e=ne*_e+((at&16383)<<14)+E[R]+j,j=(_e>>28)+(at>>14)+ie*Ge,E[R++]=_e&268435455}return j}var l=typeof navigator!="undefined";l&&i&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=p,r=30):l&&i&&navigator.appName!="Netscape"?(o.prototype.am=s,r=26):(o.prototype.am=f,r=28),o.prototype.DB=r,o.prototype.DM=(1<<r)-1,o.prototype.DV=1<<r;var v=52;o.prototype.FV=Math.pow(2,v),o.prototype.F1=v-r,o.prototype.F2=2*r-v;var x="0123456789abcdefghijklmnopqrstuvwxyz",A=new Array,y,m;for(y=48,m=0;m<=9;++m)A[y++]=m;for(y=97,m=10;m<36;++m)A[y++]=m;for(y=65,m=10;m<36;++m)A[y++]=m;function g(h){return x.charAt(h)}function D(h,d){var E=A[h.charCodeAt(d)];return E==null?-1:E}function C(h){for(var d=this.t-1;d>=0;--d)h[d]=this[d];h.t=this.t,h.s=this.s}function B(h){this.t=1,this.s=h<0?-1:0,h>0?this[0]=h:h<-1?this[0]=h+this.DV:this.t=0}function b(h){var d=a();return d.fromInt(h),d}function _(h,d){var E;if(d==16)E=4;else if(d==8)E=3;else if(d==256)E=8;else if(d==2)E=1;else if(d==32)E=5;else if(d==4)E=2;else{this.fromRadix(h,d);return}this.t=0,this.s=0;for(var R=h.length,j=!1,Q=0;--R>=0;){var ne=E==8?h[R]&255:D(h,R);if(ne<0){h.charAt(R)=="-"&&(j=!0);continue}j=!1,Q==0?this[this.t++]=ne:Q+E>this.DB?(this[this.t-1]|=(ne&(1<<this.DB-Q)-1)<<Q,this[this.t++]=ne>>this.DB-Q):this[this.t-1]|=ne<<Q,Q+=E,Q>=this.DB&&(Q-=this.DB)}E==8&&h[0]&128&&(this.s=-1,Q>0&&(this[this.t-1]|=(1<<this.DB-Q)-1<<Q)),this.clamp(),j&&o.ZERO.subTo(this,this)}function T(){for(var h=this.s&this.DM;this.t>0&&this[this.t-1]==h;)--this.t}function k(h){if(this.s<0)return"-"+this.negate().toString(h);var d;if(h==16)d=4;else if(h==8)d=3;else if(h==2)d=1;else if(h==32)d=5;else if(h==4)d=2;else return this.toRadix(h);var E=(1<<d)-1,R,j=!1,Q="",ne=this.t,ie=this.DB-ne*this.DB%d;if(ne-- >0)for(ie<this.DB&&(R=this[ne]>>ie)>0&&(j=!0,Q=g(R));ne>=0;)ie<d?(R=(this[ne]&(1<<ie)-1)<<d-ie,R|=this[--ne]>>(ie+=this.DB-d)):(R=this[ne]>>(ie-=d)&E,ie<=0&&(ie+=this.DB,--ne)),R>0&&(j=!0),j&&(Q+=g(R));return j?Q:"0"}function q(){var h=a();return o.ZERO.subTo(this,h),h}function X(){return this.s<0?this.negate():this}function I(h){var d=this.s-h.s;if(d!=0)return d;var E=this.t;if(d=E-h.t,d!=0)return this.s<0?-d:d;for(;--E>=0;)if((d=this[E]-h[E])!=0)return d;return 0}function P(h){var d=1,E;return(E=h>>>16)!=0&&(h=E,d+=16),(E=h>>8)!=0&&(h=E,d+=8),(E=h>>4)!=0&&(h=E,d+=4),(E=h>>2)!=0&&(h=E,d+=2),(E=h>>1)!=0&&(h=E,d+=1),d}function G(){return this.t<=0?0:this.DB*(this.t-1)+P(this[this.t-1]^this.s&this.DM)}function S(h,d){var E;for(E=this.t-1;E>=0;--E)d[E+h]=this[E];for(E=h-1;E>=0;--E)d[E]=0;d.t=this.t+h,d.s=this.s}function N(h,d){for(var E=h;E<this.t;++E)d[E-h]=this[E];d.t=Math.max(this.t-h,0),d.s=this.s}function M(h,d){var E=h%this.DB,R=this.DB-E,j=(1<<R)-1,Q=Math.floor(h/this.DB),ne=this.s<<E&this.DM,ie;for(ie=this.t-1;ie>=0;--ie)d[ie+Q+1]=this[ie]>>R|ne,ne=(this[ie]&j)<<E;for(ie=Q-1;ie>=0;--ie)d[ie]=0;d[Q]=ne,d.t=this.t+Q+1,d.s=this.s,d.clamp()}function H(h,d){d.s=this.s;var E=Math.floor(h/this.DB);if(E>=this.t){d.t=0;return}var R=h%this.DB,j=this.DB-R,Q=(1<<R)-1;d[0]=this[E]>>R;for(var ne=E+1;ne<this.t;++ne)d[ne-E-1]|=(this[ne]&Q)<<j,d[ne-E]=this[ne]>>R;R>0&&(d[this.t-E-1]|=(this.s&Q)<<j),d.t=this.t-E,d.clamp()}function Y(h,d){for(var E=0,R=0,j=Math.min(h.t,this.t);E<j;)R+=this[E]-h[E],d[E++]=R&this.DM,R>>=this.DB;if(h.t<this.t){for(R-=h.s;E<this.t;)R+=this[E],d[E++]=R&this.DM,R>>=this.DB;R+=this.s}else{for(R+=this.s;E<h.t;)R-=h[E],d[E++]=R&this.DM,R>>=this.DB;R-=h.s}d.s=R<0?-1:0,R<-1?d[E++]=this.DV+R:R>0&&(d[E++]=R),d.t=E,d.clamp()}function W(h,d){var E=this.abs(),R=h.abs(),j=E.t;for(d.t=j+R.t;--j>=0;)d[j]=0;for(j=0;j<R.t;++j)d[j+E.t]=E.am(0,R[j],d,j,0,E.t);d.s=0,d.clamp(),this.s!=h.s&&o.ZERO.subTo(d,d)}function ee(h){for(var d=this.abs(),E=h.t=2*d.t;--E>=0;)h[E]=0;for(E=0;E<d.t-1;++E){var R=d.am(E,d[E],h,2*E,0,1);(h[E+d.t]+=d.am(E+1,2*d[E],h,2*E+1,R,d.t-E-1))>=d.DV&&(h[E+d.t]-=d.DV,h[E+d.t+1]=1)}h.t>0&&(h[h.t-1]+=d.am(E,d[E],h,2*E,0,1)),h.s=0,h.clamp()}function J(h,d,E){var R=h.abs();if(!(R.t<=0)){var j=this.abs();if(j.t<R.t){d!=null&&d.fromInt(0),E!=null&&this.copyTo(E);return}E==null&&(E=a());var Q=a(),ne=this.s,ie=h.s,_e=this.DB-P(R[R.t-1]);_e>0?(R.lShiftTo(_e,Q),j.lShiftTo(_e,E)):(R.copyTo(Q),j.copyTo(E));var Ge=Q.t,at=Q[Ge-1];if(at!=0){var it=at*(1<<this.F1)+(Ge>1?Q[Ge-2]>>this.F2:0),Bt=this.FV/it,m0=(1<<this.F1)/it,lt=1<<this.F2,ht=E.t,g0=ht-Ge,Tt=d==null?a():d;for(Q.dlShiftTo(g0,Tt),E.compareTo(Tt)>=0&&(E[E.t++]=1,E.subTo(Tt,E)),o.ONE.dlShiftTo(Ge,Tt),Tt.subTo(Q,Q);Q.t<Ge;)Q[Q.t++]=0;for(;--g0>=0;){var pi=E[--ht]==at?this.DM:Math.floor(E[ht]*Bt+(E[ht-1]+lt)*m0);if((E[ht]+=Q.am(0,pi,E,g0,0,Ge))<pi)for(Q.dlShiftTo(g0,Tt),E.subTo(Tt,E);E[ht]<--pi;)E.subTo(Tt,E)}d!=null&&(E.drShiftTo(Ge,d),ne!=ie&&o.ZERO.subTo(d,d)),E.t=Ge,E.clamp(),_e>0&&E.rShiftTo(_e,E),ne<0&&o.ZERO.subTo(E,E)}}}function O(h){var d=a();return this.abs().divRemTo(h,null,d),this.s<0&&d.compareTo(o.ZERO)>0&&h.subTo(d,d),d}function U(h){this.m=h}function V(h){return h.s<0||h.compareTo(this.m)>=0?h.mod(this.m):h}function z(h){return h}function se(h){h.divRemTo(this.m,null,h)}function ce(h,d,E){h.multiplyTo(d,E),this.reduce(E)}function be(h,d){h.squareTo(d),this.reduce(d)}U.prototype.convert=V,U.prototype.revert=z,U.prototype.reduce=se,U.prototype.mulTo=ce,U.prototype.sqrTo=be;function fe(){if(this.t<1)return 0;var h=this[0];if(!(h&1))return 0;var d=h&3;return d=d*(2-(h&15)*d)&15,d=d*(2-(h&255)*d)&255,d=d*(2-((h&65535)*d&65535))&65535,d=d*(2-h*d%this.DV)%this.DV,d>0?this.DV-d:-d}function Se(h){this.m=h,this.mp=h.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<h.DB-15)-1,this.mt2=2*h.t}function Fe(h){var d=a();return h.abs().dlShiftTo(this.m.t,d),d.divRemTo(this.m,null,d),h.s<0&&d.compareTo(o.ZERO)>0&&this.m.subTo(d,d),d}function Ke(h){var d=a();return h.copyTo(d),this.reduce(d),d}function ze(h){for(;h.t<=this.mt2;)h[h.t++]=0;for(var d=0;d<this.m.t;++d){var E=h[d]&32767,R=E*this.mpl+((E*this.mph+(h[d]>>15)*this.mpl&this.um)<<15)&h.DM;for(E=d+this.m.t,h[E]+=this.m.am(0,R,h,d,0,this.m.t);h[E]>=h.DV;)h[E]-=h.DV,h[++E]++}h.clamp(),h.drShiftTo(this.m.t,h),h.compareTo(this.m)>=0&&h.subTo(this.m,h)}function Ee(h,d){h.squareTo(d),this.reduce(d)}function Me(h,d,E){h.multiplyTo(d,E),this.reduce(E)}Se.prototype.convert=Fe,Se.prototype.revert=Ke,Se.prototype.reduce=ze,Se.prototype.mulTo=Me,Se.prototype.sqrTo=Ee;function Dt(){return(this.t>0?this[0]&1:this.s)==0}function w(h,d){if(h>4294967295||h<1)return o.ONE;var E=a(),R=a(),j=d.convert(this),Q=P(h)-1;for(j.copyTo(E);--Q>=0;)if(d.sqrTo(E,R),(h&1<<Q)>0)d.mulTo(R,j,E);else{var ne=E;E=R,R=ne}return d.revert(E)}function c(h,d){var E;return h<256||d.isEven()?E=new U(d):E=new Se(d),this.exp(h,E)}o.prototype.copyTo=C,o.prototype.fromInt=B,o.prototype.fromString=_,o.prototype.clamp=T,o.prototype.dlShiftTo=S,o.prototype.drShiftTo=N,o.prototype.lShiftTo=M,o.prototype.rShiftTo=H,o.prototype.subTo=Y,o.prototype.multiplyTo=W,o.prototype.squareTo=ee,o.prototype.divRemTo=J,o.prototype.invDigit=fe,o.prototype.isEven=Dt,o.prototype.exp=w,o.prototype.toString=k,o.prototype.negate=q,o.prototype.abs=X,o.prototype.compareTo=I,o.prototype.bitLength=G,o.prototype.mod=O,o.prototype.modPowInt=c,o.ZERO=b(0),o.ONE=b(1);function u(){var h=a();return this.copyTo(h),h}function F(){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 L(){return this.t==0?this.s:this[0]<<24>>24}function K(){return this.t==0?this.s:this[0]<<16>>16}function Z(h){return Math.floor(Math.LN2*this.DB/Math.log(h))}function ue(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function ye(h){if(h==null&&(h=10),this.signum()==0||h<2||h>36)return"0";var d=this.chunkSize(h),E=Math.pow(h,d),R=b(E),j=a(),Q=a(),ne="";for(this.divRemTo(R,j,Q);j.signum()>0;)ne=(E+Q.intValue()).toString(h).substr(1)+ne,j.divRemTo(R,j,Q);return Q.intValue().toString(h)+ne}function Be(h,d){this.fromInt(0),d==null&&(d=10);for(var E=this.chunkSize(d),R=Math.pow(d,E),j=!1,Q=0,ne=0,ie=0;ie<h.length;++ie){var _e=D(h,ie);if(_e<0){h.charAt(ie)=="-"&&this.signum()==0&&(j=!0);continue}ne=d*ne+_e,++Q>=E&&(this.dMultiply(R),this.dAddOffset(ne,0),Q=0,ne=0)}Q>0&&(this.dMultiply(Math.pow(d,Q)),this.dAddOffset(ne,0)),j&&o.ZERO.subTo(this,this)}function De(h,d,E){if(typeof d=="number")if(h<2)this.fromInt(1);else for(this.fromNumber(h,E),this.testBit(h-1)||this.bitwiseTo(o.ONE.shiftLeft(h-1),ir,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(d);)this.dAddOffset(2,0),this.bitLength()>h&&this.subTo(o.ONE.shiftLeft(h-1),this);else{var R=new Array,j=h&7;R.length=(h>>3)+1,d.nextBytes(R),j>0?R[0]&=(1<<j)-1:R[0]=0,this.fromString(R,256)}}function Ae(){var h=this.t,d=new Array;d[0]=this.s;var E=this.DB-h*this.DB%8,R,j=0;if(h-- >0)for(E<this.DB&&(R=this[h]>>E)!=(this.s&this.DM)>>E&&(d[j++]=R|this.s<<this.DB-E);h>=0;)E<8?(R=(this[h]&(1<<E)-1)<<8-E,R|=this[--h]>>(E+=this.DB-8)):(R=this[h]>>(E-=8)&255,E<=0&&(E+=this.DB,--h)),R&128&&(R|=-256),j==0&&(this.s&128)!=(R&128)&&++j,(j>0||R!=this.s)&&(d[j++]=R);return d}function _t(h){return this.compareTo(h)==0}function qt(h){return this.compareTo(h)<0?this:h}function __$t__(h){return this.compareTo(h)>0?this:h}function St(h,d,E){var R,j,Q=Math.min(h.t,this.t);for(R=0;R<Q;++R)E[R]=d(this[R],h[R]);if(h.t<this.t){for(j=h.s&this.DM,R=Q;R<this.t;++R)E[R]=d(this[R],j);E.t=this.t}else{for(j=this.s&this.DM,R=Q;R<h.t;++R)E[R]=d(j,h[R]);E.t=h.t}E.s=d(this.s,h.s),E.clamp()}function zt(h,d){return h&d}function ri(h){var d=a();return this.bitwiseTo(h,zt,d),d}function ir(h,d){return h|d}function c0(h){var d=a();return this.bitwiseTo(h,ir,d),d}function u0(h,d){return h^d}function ni(h){var d=a();return this.bitwiseTo(h,u0,d),d}function Fr(h,d){return h&~d}function ii(h){var d=a();return this.bitwiseTo(h,Fr,d),d}function l0(){for(var h=a(),d=0;d<this.t;++d)h[d]=this.DM&~this[d];return h.t=this.t,h.s=~this.s,h}function oi(h){var d=a();return h<0?this.rShiftTo(-h,d):this.lShiftTo(h,d),d}function h0(h){var d=a();return h<0?this.lShiftTo(-h,d):this.rShiftTo(h,d),d}function ai(h){if(h==0)return-1;var d=0;return h&65535||(h>>=16,d+=16),h&255||(h>>=8,d+=8),h&15||(h>>=4,d+=4),h&3||(h>>=2,d+=2),h&1||++d,d}function si(){for(var h=0;h<this.t;++h)if(this[h]!=0)return h*this.DB+ai(this[h]);return this.s<0?this.t*this.DB:-1}function fi(h){for(var d=0;h!=0;)h&=h-1,++d;return d}function x0(){for(var h=0,d=this.s&this.DM,E=0;E<this.t;++E)h+=fi(this[E]^d);return h}function ci(h){var d=Math.floor(h/this.DB);return d>=this.t?this.s!=0:(this[d]&1<<h%this.DB)!=0}function ui(h,d){var E=o.ONE.shiftLeft(h);return this.bitwiseTo(E,d,E),E}function d0(h){return this.changeBit(h,ir)}function li(h){return this.changeBit(h,Fr)}function p0(h){return this.changeBit(h,u0)}function Ye(h,d){for(var E=0,R=0,j=Math.min(h.t,this.t);E<j;)R+=this[E]+h[E],d[E++]=R&this.DM,R>>=this.DB;if(h.t<this.t){for(R+=h.s;E<this.t;)R+=this[E],d[E++]=R&this.DM,R>>=this.DB;R+=this.s}else{for(R+=this.s;E<h.t;)R+=h[E],d[E++]=R&this.DM,R>>=this.DB;R+=h.s}d.s=R<0?-1:0,R>0?d[E++]=R:R<-1&&(d[E++]=this.DV+R),d.t=E,d.clamp()}function At(h){var d=a();return this.addTo(h,d),d}function v0(h){var d=a();return this.subTo(h,d),d}function hi(h){var d=a();return this.multiplyTo(h,d),d}function N1(){var h=a();return this.squareTo(h),h}function H1(h){var d=a();return this.divRemTo(h,d,null),d}function q1(h){var d=a();return this.divRemTo(h,null,d),d}function $1(h){var d=a(),E=a();return this.divRemTo(h,d,E),new Array(d,E)}function z1(h){this[this.t]=this.am(0,h-1,this,0,0,this.t),++this.t,this.clamp()}function W1(h,d){if(h!=0){for(;this.t<=d;)this[this.t++]=0;for(this[d]+=h;this[d]>=this.DV;)this[d]-=this.DV,++d>=this.t&&(this[this.t++]=0),++this[d]}}function Dr(){}function Is(h){return h}function G1(h,d,E){h.multiplyTo(d,E)}function V1(h,d){h.squareTo(d)}Dr.prototype.convert=Is,Dr.prototype.revert=Is,Dr.prototype.mulTo=G1,Dr.prototype.sqrTo=V1;function K1(h){return this.exp(h,new Dr)}function j1(h,d,E){var R=Math.min(this.t+h.t,d);for(E.s=0,E.t=R;R>0;)E[--R]=0;var j;for(j=E.t-this.t;R<j;++R)E[R+this.t]=this.am(0,h[R],E,R,0,this.t);for(j=Math.min(h.t,d);R<j;++R)this.am(0,h[R],E,R,0,d-R);E.clamp()}function X1(h,d,E){--d;var R=E.t=this.t+h.t-d;for(E.s=0;--R>=0;)E[R]=0;for(R=Math.max(d-this.t,0);R<h.t;++R)E[this.t+R-d]=this.am(d-R,h[R],E,0,0,this.t+R-d);E.clamp(),E.drShiftTo(1,E)}function Wt(h){this.r2=a(),this.q3=a(),o.ONE.dlShiftTo(2*h.t,this.r2),this.mu=this.r2.divide(h),this.m=h}function Y1(h){if(h.s<0||h.t>2*this.m.t)return h.mod(this.m);if(h.compareTo(this.m)<0)return h;var d=a();return h.copyTo(d),this.reduce(d),d}function Z1(h){return h}function Q1(h){for(h.drShiftTo(this.m.t-1,this.r2),h.t>this.m.t+1&&(h.t=this.m.t+1,h.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);h.compareTo(this.r2)<0;)h.dAddOffset(1,this.m.t+1);for(h.subTo(this.r2,h);h.compareTo(this.m)>=0;)h.subTo(this.m,h)}function J1(h,d){h.squareTo(d),this.reduce(d)}function ex(h,d,E){h.multiplyTo(d,E),this.reduce(E)}Wt.prototype.convert=Y1,Wt.prototype.revert=Z1,Wt.prototype.reduce=Q1,Wt.prototype.mulTo=ex,Wt.prototype.sqrTo=J1;function tx(h,d){var E=h.bitLength(),R,j=b(1),Q;if(E<=0)return j;E<18?R=1:E<48?R=3:E<144?R=4:E<768?R=5:R=6,E<8?Q=new U(d):d.isEven()?Q=new Wt(d):Q=new Se(d);var ne=new Array,ie=3,_e=R-1,Ge=(1<<R)-1;if(ne[1]=Q.convert(this),R>1){var at=a();for(Q.sqrTo(ne[1],at);ie<=Ge;)ne[ie]=a(),Q.mulTo(at,ne[ie-2],ne[ie]),ie+=2}var it=h.t-1,Bt,m0=!0,lt=a(),ht;for(E=P(h[it])-1;it>=0;){for(E>=_e?Bt=h[it]>>E-_e&Ge:(Bt=(h[it]&(1<<E+1)-1)<<_e-E,it>0&&(Bt|=h[it-1]>>this.DB+E-_e)),ie=R;!(Bt&1);)Bt>>=1,--ie;if((E-=ie)<0&&(E+=this.DB,--it),m0)ne[Bt].copyTo(j),m0=!1;else{for(;ie>1;)Q.sqrTo(j,lt),Q.sqrTo(lt,j),ie-=2;ie>0?Q.sqrTo(j,lt):(ht=j,j=lt,lt=ht),Q.mulTo(lt,ne[Bt],j)}for(;it>=0&&!(h[it]&1<<E);)Q.sqrTo(j,lt),ht=j,j=lt,lt=ht,--E<0&&(E=this.DB-1,--it)}return Q.revert(j)}function rx(h){var d=this.s<0?this.negate():this.clone(),E=h.s<0?h.negate():h.clone();if(d.compareTo(E)<0){var R=d;d=E,E=R}var j=d.getLowestSetBit(),Q=E.getLowestSetBit();if(Q<0)return d;for(j<Q&&(Q=j),Q>0&&(d.rShiftTo(Q,d),E.rShiftTo(Q,E));d.signum()>0;)(j=d.getLowestSetBit())>0&&d.rShiftTo(j,d),(j=E.getLowestSetBit())>0&&E.rShiftTo(j,E),d.compareTo(E)>=0?(d.subTo(E,d),d.rShiftTo(1,d)):(E.subTo(d,E),E.rShiftTo(1,E));return Q>0&&E.lShiftTo(Q,E),E}function nx(h){if(h<=0)return 0;var d=this.DV%h,E=this.s<0?h-1:0;if(this.t>0)if(d==0)E=this[0]%h;else for(var R=this.t-1;R>=0;--R)E=(d*E+this[R])%h;return E}function ix(h){var d=h.isEven();if(this.isEven()&&d||h.signum()==0)return o.ZERO;for(var E=h.clone(),R=this.clone(),j=b(1),Q=b(0),ne=b(0),ie=b(1);E.signum()!=0;){for(;E.isEven();)E.rShiftTo(1,E),d?((!j.isEven()||!Q.isEven())&&(j.addTo(this,j),Q.subTo(h,Q)),j.rShiftTo(1,j)):Q.isEven()||Q.subTo(h,Q),Q.rShiftTo(1,Q);for(;R.isEven();)R.rShiftTo(1,R),d?((!ne.isEven()||!ie.isEven())&&(ne.addTo(this,ne),ie.subTo(h,ie)),ne.rShiftTo(1,ne)):ie.isEven()||ie.subTo(h,ie),ie.rShiftTo(1,ie);E.compareTo(R)>=0?(E.subTo(R,E),d&&j.subTo(ne,j),Q.subTo(ie,Q)):(R.subTo(E,R),d&&ne.subTo(j,ne),ie.subTo(Q,ie))}if(R.compareTo(o.ONE)!=0)return o.ZERO;if(ie.compareTo(h)>=0)return ie.subtract(h);if(ie.signum()<0)ie.addTo(h,ie);else return ie;return ie.signum()<0?ie.add(h):ie}var Ze=[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],ox=(1<<26)/Ze[Ze.length-1];function ax(h){var d,E=this.abs();if(E.t==1&&E[0]<=Ze[Ze.length-1]){for(d=0;d<Ze.length;++d)if(E[0]==Ze[d])return!0;return!1}if(E.isEven())return!1;for(d=1;d<Ze.length;){for(var R=Ze[d],j=d+1;j<Ze.length&&R<ox;)R*=Ze[j++];for(R=E.modInt(R);d<j;)if(R%Ze[d++]==0)return!1}return E.millerRabin(h)}function sx(h){var d=this.subtract(o.ONE),E=d.getLowestSetBit();if(E<=0)return!1;var R=d.shiftRight(E);h=h+1>>1,h>Ze.length&&(h=Ze.length);for(var j=a(),Q=0;Q<h;++Q){j.fromInt(Ze[Math.floor(Math.random()*Ze.length)]);var ne=j.modPow(R,this);if(ne.compareTo(o.ONE)!=0&&ne.compareTo(d)!=0){for(var ie=1;ie++<E&&ne.compareTo(d)!=0;)if(ne=ne.modPowInt(2,this),ne.compareTo(o.ONE)==0)return!1;if(ne.compareTo(d)!=0)return!1}}return!0}o.prototype.chunkSize=Z,o.prototype.toRadix=ye,o.prototype.fromRadix=Be,o.prototype.fromNumber=De,o.prototype.bitwiseTo=St,o.prototype.changeBit=ui,o.prototype.addTo=Ye,o.prototype.dMultiply=z1,o.prototype.dAddOffset=W1,o.prototype.multiplyLowerTo=j1,o.prototype.multiplyUpperTo=X1,o.prototype.modInt=nx,o.prototype.millerRabin=sx,o.prototype.clone=u,o.prototype.intValue=F,o.prototype.byteValue=L,o.prototype.shortValue=K,o.prototype.signum=ue,o.prototype.toByteArray=Ae,o.prototype.equals=_t,o.prototype.min=qt,o.prototype.max=__$t__,o.prototype.and=ri,o.prototype.or=c0,o.prototype.xor=ni,o.prototype.andNot=ii,o.prototype.not=l0,o.prototype.shiftLeft=oi,o.prototype.shiftRight=h0,o.prototype.getLowestSetBit=si,o.prototype.bitCount=x0,o.prototype.testBit=ci,o.prototype.setBit=d0,o.prototype.clearBit=li,o.prototype.flipBit=p0,o.prototype.add=At,o.prototype.subtract=v0,o.prototype.multiply=hi,o.prototype.divide=H1,o.prototype.remainder=q1,o.prototype.divideAndRemainder=$1,o.prototype.modPow=tx,o.prototype.modInverse=ix,o.prototype.pow=K1,o.prototype.gcd=rx,o.prototype.isProbablePrime=ax,o.prototype.square=N1,o.prototype.Barrett=Wt;var y0,nt,We;function fx(h){nt[We++]^=h&255,nt[We++]^=h>>8&255,nt[We++]^=h>>16&255,nt[We++]^=h>>24&255,We>=di&&(We-=di)}function Rs(){fx(new Date().getTime())}if(nt==null){nt=new Array,We=0;var ut;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var Os=new Uint8Array(32);for(window.crypto.getRandomValues(Os),ut=0;ut<32;++ut)nt[We++]=Os[ut]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ks=window.crypto.random(32);for(ut=0;ut<ks.length;++ut)nt[We++]=ks.charCodeAt(ut)&255}}for(;We<di;)ut=Math.floor(65536*Math.random()),nt[We++]=ut>>>8,nt[We++]=ut&255;We=0,Rs()}function cx(){if(y0==null){for(Rs(),y0=xx(),y0.init(nt),We=0;We<nt.length;++We)nt[We]=0;We=0}return y0.next()}function ux(h){var d;for(d=0;d<h.length;++d)h[d]=cx()}function Ps(){}Ps.prototype.nextBytes=ux;function xi(){this.i=0,this.j=0,this.S=new Array}function lx(h){var d,E,R;for(d=0;d<256;++d)this.S[d]=d;for(E=0,d=0;d<256;++d)E=E+this.S[d]+h[d%h.length]&255,R=this.S[d],this.S[d]=this.S[E],this.S[E]=R;this.i=0,this.j=0}function hx(){var h;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,h=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=h,this.S[h+this.S[this.i]&255]}xi.prototype.init=lx,xi.prototype.next=hx;function xx(){return new xi}var di=256;t.exports={default:o,BigInteger:o,SecureRandom:Ps}}).call(le)})(Ga);var ge=Ga.exports,u1=ge.BigInteger.prototype.Barrett;function Xe(t,e){this.x=e,this.q=t}function tt(t,e,r,n){this.curve=t,this.x=e,this.y=r,this.z=n==null?ge.BigInteger.ONE:n,this.zinv=null}function mt(t,e,r){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(r),this.infinity=new tt(this,null,null),this.reducer=new u1(this.q)}Xe.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},Xe.prototype.toBigInteger=function(){return this.x},Xe.prototype.negate=function(){return new Xe(this.q,this.x.negate().mod(this.q))},Xe.prototype.add=function(t){return new Xe(this.q,this.x.add(t.toBigInteger()).mod(this.q))},Xe.prototype.subtract=function(t){return new Xe(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},Xe.prototype.multiply=function(t){return new Xe(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},Xe.prototype.square=function(){return new Xe(this.q,this.x.square().mod(this.q))},Xe.prototype.divide=function(t){return new Xe(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},tt.prototype.getX=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var t=this.x.toBigInteger().multiply(this.zinv);return this.curve.reduce(t),this.curve.fromBigInteger(t)},tt.prototype.getY=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var t=this.y.toBigInteger().multiply(this.zinv);return this.curve.reduce(t),this.curve.fromBigInteger(t)},tt.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(ge.BigInteger.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(ge.BigInteger.ZERO))},tt.prototype.isInfinity=function(){return this.x==null&&this.y==null||this.z.equals(ge.BigInteger.ZERO)&&!this.y.toBigInteger().equals(ge.BigInteger.ZERO)},tt.prototype.negate=function(){return new tt(this.curve,this.x,this.y.negate(),this.z)},tt.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),r=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(ge.BigInteger.ZERO.equals(r))return ge.BigInteger.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new ge.BigInteger("3"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),a=(t.x.toBigInteger(),t.y.toBigInteger(),r.square()),s=a.multiply(r),p=i.multiply(a),f=e.square().multiply(this.z),l=f.subtract(p.shiftLeft(1)).multiply(t.z).subtract(s).multiply(r).mod(this.curve.q),v=p.multiply(n).multiply(e).subtract(o.multiply(s)).subtract(f.multiply(e)).multiply(t.z).add(e.multiply(s)).mod(this.curve.q),x=s.multiply(this.z).multiply(t.z).mod(this.curve.q);return new tt(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(v),x)},tt.prototype.twice=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var t=new ge.BigInteger("3"),e=this.x.toBigInteger(),r=this.y.toBigInteger(),n=r.multiply(this.z),i=n.multiply(r).mod(this.curve.q),o=this.curve.a.toBigInteger(),a=e.square().multiply(t);ge.BigInteger.ZERO.equals(o)||(a=a.add(this.z.square().multiply(o)));var s=(a=a.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(n).mod(this.curve.q),p=a.multiply(t).multiply(e).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(a.square().multiply(a)).mod(this.curve.q),f=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new tt(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(p),f)},tt.prototype.multiply=function(t){if(this.isInfinity())return this;if(t.signum()==0)return this.curve.getInfinity();var e,r=t,n=r.multiply(new ge.BigInteger("3")),i=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var a=n.testBit(e);a!=r.testBit(e)&&(o=o.add(a?this:i))}return o},tt.prototype.multiplyTwo=function(t,e,r){var n;n=t.bitLength()>r.bitLength()?t.bitLength()-1:r.bitLength()-1;for(var i=this.curve.getInfinity(),o=this.add(e);n>=0;)i=i.twice(),t.testBit(n)?i=r.testBit(n)?i.add(o):i.add(this):r.testBit(n)&&(i=i.add(e)),--n;return i},mt.prototype.getQ=function(){return this.q},mt.prototype.getA=function(){return this.a},mt.prototype.getB=function(){return this.b},mt.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},mt.prototype.getInfinity=function(){return this.infinity},mt.prototype.fromBigInteger=function(t){return new Xe(this.q,t)},mt.prototype.reduce=function(t){this.reducer.reduce(t)},mt.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,r=t.substr(2,e),n=t.substr(e+2,e);return new tt(this,this.fromBigInteger(new ge.BigInteger(r,16)),this.fromBigInteger(new ge.BigInteger(n,16)));default:return null}},mt.prototype.encodePointHex=function(t){if(t.isInfinity())return"00";var e=t.getX().toBigInteger().toString(16),r=t.getY().toBigInteger().toString(16),n=this.getQ().toString(16).length;for(n%2!=0&&n++;e.length<n;)e="0"+e;for(;r.length<n;)r="0"+r;return"04"+e+r};var qe=function(t,e){return t<<(e%=32)|t>>>32-e},gt=function(t,e){var r=e-t.length;return(r>0?"0".repeat(r):"")+t},l1=function(t){return t<16?2043430169:2055708042},h1=function(t,e,r,n){return n<16?t^e^r:t&e|t&r|e&r},x1=function(t,e,r,n){return n<16?t^e^r:t&e|~t&r},d1=function(t,e,r){for(var n,i,o,a,s,p=function(C){var B,b=new Array(132);C.forEach(function(k,q){b[q]=k});for(var _=16;_<68;_++)b[_]=(B=b[_-16]^b[_-9]^qe(b[_-3],15))^qe(B,15)^qe(B,23)^qe(b[_-13],7)^b[_-6];for(var T=0;T<64;T++)b[T+68]=b[T]^b[T+4];return b}(e),f=t[0],l=t[1],v=t[2],x=t[3],A=t[4],y=t[5],m=t[6],g=t[7],D=0;D<64;D++)i=(n=qe(qe(f,12)+A+qe(l1(D),D),7))^qe(f,12),o=h1(f,l,v,D)+x+i+p[D+68],a=x1(A,y,m,D)+g+n+p[D],x=v,v=qe(l,9),l=f,f=o,g=m,m=qe(y,19),y=A,A=(s=a)^qe(s,9)^qe(s,17);return[f^t[0],l^t[1],v^t[2],x^t[3],A^t[4],y^t[5],m^t[6],g^t[7]]},ei=function(t,e,r){if(typeof t=="string"?t=xe.Buffer.from(t,e||"utf8"):t instanceof ArrayBuffer&&(t=xe.Buffer.from(t)),!xe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var n,i,o,a,s,p;n=t,i=xe.Buffer.alloc(1,128),a=xe.Buffer.alloc(o=(o=n.length%64)>=56?64-o%56-1:56-o-1,0),s=xe.Buffer.alloc(8),p=8*n.length,s.writeUInt32BE(Math.floor(p/Math.pow(2,32)),0),s.writeUInt32BE(p%Math.pow(2,32),4);for(var f=(t=xe.Buffer.concat([n,i,a,s],n.length+1+o+8)).length/64,l=new Array(f),v=0;v<f;v++){l[v]=new Array(16);for(var x=0;x<16;x++)l[v][x]=t.readUInt32BE(64*v+4*x)}var A=new Array(f);A[0]=[1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214];for(var y=0;y<f;y++)A[y+1]=d1(A[y],l[y]);var m=xe.Buffer.alloc(32);return A[f].forEach(function(g,D){return m.writeInt32BE(g,4*D)}),r?m.toString(r):wr(m)},Va=new ge.SecureRandom,ti=function(){var t=new mt(new ge.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),new ge.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),new ge.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16)),e=t.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:t,G:e,n:new ge.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}(),Ka=ti.curve,ja=ti.G,r0=ti.n;function Xa(t,e){for(var r=[],n=Math.ceil(e/32),i=e%32,o=1;o<=n;o++){var a=xe.Buffer.allocUnsafe(4);a.writeUInt32BE(o);var s=ei(xe.Buffer.concat([t,a]));r.push(o===n&&i?xe.Buffer.from(s).slice(0,i):xe.Buffer.from(s))}return xe.Buffer.concat(r,e)}var p1={__proto__:null,constants:{C1C2C3:0,C1C3C2:1,PC:"04"},generateKeyPair:function(){var t=new ge.BigInteger(r0.bitLength(),Va).mod(r0.subtract(new ge.BigInteger("2"))).add(ge.BigInteger.ONE),e=gt(t.toString(16),64),r=ja.multiply(t);return{privateKey:e,publicKey:"04"+gt(r.getX().toBigInteger().toString(16),64)+gt(r.getY().toBigInteger().toString(16),64)}},encrypt:function(t,e,r){var n=r||{},i=n.mode,o=i===void 0?1:i,a=n.outputEncoding,s=n.pc;if(typeof t=="string"?t=xe.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=xe.Buffer.from(t)),!xe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var p=new ge.BigInteger(r0.bitLength(),Va).mod(r0.subtract(ge.BigInteger.ONE)).add(ge.BigInteger.ONE),f=ja.multiply(p),l=gt(f.getX().toBigInteger().toString(16),64)+gt(f.getY().toBigInteger().toString(16),64),v=Ka.decodePointHex(e).multiply(p),x=gt(v.getX().toBigInteger().toString(16),64),A=gt(v.getY().toBigInteger().toString(16),64),y=Xa(xe.Buffer.from(x+A,"hex"),t.length),m=gt(new ge.BigInteger(t.toString("hex"),16).xor(new ge.BigInteger(y.toString("hex"),16)).toString(16),2*t.length),g=ei(x+t.toString("hex")+A,"hex","hex"),D=xe.Buffer.from((s?"04":"")+(o===0?l+m+g:l+g+m),"hex");return a?D.toString(a):wr(D)},decrypt:function(t,e,r){var n=r||{},i=n.mode,o=i===void 0?1:i,a=n.outputEncoding,s=n.pc;if(typeof t=="string"?t=xe.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=xe.Buffer.from(t)),!xe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var p=(t=s?t.slice(1):t).slice(0,32).toString("hex"),f=t.slice(32,64).toString("hex"),l=Ka.decodePointHex("04"+p+f).multiply(new ge.BigInteger(e,16)),v=gt(l.getX().toBigInteger().toString(16),64),x=gt(l.getY().toBigInteger().toString(16),64),A=t.slice(64,96),y=t.slice(96);o===0&&(A=t.slice(t.length-32),y=t.slice(64,t.length-32));var m=Xa(xe.Buffer.from(v+x,"hex"),y.length),g=new ge.BigInteger(y.toString("hex"),16).xor(new ge.BigInteger(m.toString("hex"),16)).toString(16),D=ei(v+g+x,"hex","hex")===A.toString("hex")?xe.Buffer.from(g,"hex"):xe.Buffer.alloc(0);return a?D.toString(a):wr(D)}},n0=[[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]],i0=[2746333894,1453994832,1736282519,2993693404],v1=[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],o0=/^[0-9a-f]{32}$/i,Ya=function(t){return n0[(4026531840&t)>>>28][(251658240&t)>>>24]<<24|n0[(15728640&t)>>>20][(983040&t)>>>16]<<16|n0[(61440&t)>>>12][(3840&t)>>>8]<<8|n0[(240&t)>>>4][(15&t)>>>0]<<0},Za=function(t){return(e=Ya(t))^qe(e,2)^qe(e,10)^qe(e,18)^qe(e,24);var e},Qa=function(t){var e,r=new Array(36);r[0]=t[0]^i0[0],r[1]=t[1]^i0[1],r[2]=t[2]^i0[2],r[3]=t[3]^i0[3];for(var n=new Array(32),i=0;i<32;i++)r[i+4]=r[i]^(e=Ya(r[i+1]^r[i+2]^r[i+3]^v1[i]))^qe(e,13)^qe(e,23),n[i]=r[i+4];return n},Ja=function(t,e){for(var r=Qa(e),n=0;n<32;n++)t[n+4]=t[n]^Za(t[n+1]^t[n+2]^t[n+3]^r[n]);return[t[35],t[34],t[33],t[32]]},es=function(t,e){for(var r=Qa(e).reverse(),n=0;n<32;n++)t[n+4]=t[n]^Za(t[n+1]^t[n+2]^t[n+3]^r[n]);return[t[35],t[34],t[33],t[32]]},a0=function(t){return[t.readInt32BE(0),t.readInt32BE(4),t.readInt32BE(8),t.readInt32BE(12)]},s0=function(t){for(var e=xe.Buffer.alloc(16),r=0;r<4;r++)e.writeInt32BE(t[r],4*r);return e},rr={__proto__:null,constants:{ECB:1,CBC:2},encrypt:function(t,e,r){var n=r||{},i=n.mode,o=n.iv,a=n.outputEncoding;if(typeof t=="string"?t=xe.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=xe.Buffer.from(t)),!xe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');if(!o0.test(e))throw new TypeError("Invalid value of cipher `key`");if(e=xe.Buffer.from(e,"hex"),i===2&&!o0.test(o))throw new TypeError("Invalid value of `iv` option");return function(s,p,f,l){f&&(f=a0(f)),p=a0(p);for(var v=[],x=(s=function(_){var T=16-_.length%16,k=xe.Buffer.alloc(T,T);return xe.Buffer.concat([_,k],_.length+T)}(s)).length/16,A=0;A<x;A++)if(f){var y=16*A,m=[f[0]^s.readInt32BE(y),f[1]^s.readInt32BE(y+4),f[2]^s.readInt32BE(y+8),f[3]^s.readInt32BE(y+12)],g=Ja(m,p);v.push(s0(g)),f=g.slice(0)}else{var D=16*A,C=[s.readInt32BE(D),s.readInt32BE(D+4),s.readInt32BE(D+8),s.readInt32BE(D+12)],B=Ja(C,p);v.push(s0(B))}var b=xe.Buffer.concat(v,s.length);return l?b.toString(l):wr(b)}(t,e,o=i===2?xe.Buffer.from(o,"hex"):null,a)},decrypt:function(t,e,r){var n=r||{},i=n.mode,o=n.iv,a=n.outputEncoding;if(typeof t=="string"?t=xe.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=xe.Buffer.from(t)),!xe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');if(!o0.test(e))throw new TypeError("Invalid value of cipher `key`");if(e=xe.Buffer.from(e,"hex"),i===2&&!o0.test(o))throw new TypeError("Invalid value of `iv` option");return function(s,p,f,l){f&&(f=a0(f)),p=a0(p);var v=[],x=s.length/16;if(f)for(var A=x-1;A>=0;A--){var y,m=16*A;y=A>0?[s.readInt32BE(m-16),s.readInt32BE(m-16+4),s.readInt32BE(m-16+8),s.readInt32BE(m-16+12)]:f;var g=[s.readInt32BE(m),s.readInt32BE(m+4),s.readInt32BE(m+8),s.readInt32BE(m+12)],D=es(g,p);v.unshift(s0([D[0]^y[0],D[1]^y[1],D[2]^y[2],D[3]^y[3]]))}else for(var C=0;C<x;C++){var B=16*C,b=[s.readInt32BE(B),s.readInt32BE(B+4),s.readInt32BE(B+8),s.readInt32BE(B+12)],_=es(b,p);v.push(s0(_))}var T=xe.Buffer.concat(v,s.length-v[v.length-1][15]);return l?T.toString(l):wr(T)}(t,e,o=i===2?xe.Buffer.from(o,"hex"):null,a)}};(function(){if(typeof Object.id=="undefined"){var t=0;Object.id=function(e){return typeof e.__uniqueid=="undefined"&&Object.defineProperty(e,"__uniqueid",{value:++t,enumerable:!1,writable:!1}),e.__uniqueid}}})();function y1(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=[-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,i,o,a,s,p;for(o=r.length,i=0,n="";i<o;){if(a=r.charCodeAt(i++)&255,i==o){n+=t.charAt(a>>2),n+=t.charAt((a&3)<<4),n+="==";break}if(s=r.charCodeAt(i++),i==o){n+=t.charAt(a>>2),n+=t.charAt((a&3)<<4|(s&240)>>4),n+=t.charAt((s&15)<<2),n+="=";break}p=r.charCodeAt(i++),n+=t.charAt(a>>2),n+=t.charAt((a&3)<<4|(s&240)>>4),n+=t.charAt((s&15)<<2|(p&192)>>6),n+=t.charAt(p&63)}return n},this.decode=function(r){var n,i,o,a,s,p,f;for(p=r.length,s=0,f="";s<p;){do n=e[r.charCodeAt(s++)&255];while(s<p&&n==-1);if(n==-1)break;do i=e[r.charCodeAt(s++)&255];while(s<p&&i==-1);if(i==-1)break;f+=String.fromCharCode(n<<2|(i&48)>>4);do{if(o=r.charCodeAt(s++)&255,o==61)return f;o=e[o]}while(s<p&&o==-1);if(o==-1)break;f+=String.fromCharCode((i&15)<<4|(o&60)>>2);do{if(a=r.charCodeAt(s++)&255,a==61)return f;a=e[a]}while(s<p&&a==-1);if(a==-1)break;f+=String.fromCharCode((o&3)<<6|a)}return f},this.utf16to8=function(r){var n,i,o,a;for(n="",o=r.length,i=0;i<o;i++)a=r.charCodeAt(i),a>=1&&a<=127?n+=r.charAt(i):a>2047?(n+=String.fromCharCode(224|a>>12&15),n+=String.fromCharCode(128|a>>6&63),n+=String.fromCharCode(128|a>>0&63)):(n+=String.fromCharCode(192|a>>6&31),n+=String.fromCharCode(128|a>>0&63));return n},this.utf8to16=function(r){var n,i,o,a,s,p;for(n="",o=r.length,i=0;i<o;)switch(a=r.charCodeAt(i++),a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:n+=r.charAt(i-1);break;case 12:case 13:s=r.charCodeAt(i++),n+=String.fromCharCode((a&31)<<6|s&63);break;case 14:s=r.charCodeAt(i++),p=r.charCodeAt(i++),n+=String.fromCharCode((a&15)<<12|(s&63)<<6|(p&63)<<0);break}return n},this.charToHex=function(r){var n,i,o;for(n="",i=0;i<r.length;)o=r.charCodeAt(i++).toString(16),n+="\\0x"+o,n+=i>0&&i%8==0?`\r
|
|
28
|
-
`:", ";return n}}function m1(){var t=0,e=new Object;this.add=function(r,n){this.containsKey(r)||t++,e[r]=n},this.getValue=function(r){return this.containsKey(r)?e[r]:null},this.remove=function(r){this.containsKey(r)&&delete e[r]&&t--},this.containsKey=function(r){return r in e},this.containsValue=function(r){for(var n in e)if(e[n]==r)return!0;return!1},this.getValues=function(){var r=[];for(var n in e)r.push(e[n]);return r},this.getKeys=function(){var r=[];for(var n in e)r.push(n);return r},this.getSize=function(){return t},this.clear=function(){t=0,e=new Object}}function g1(t){if(this.connect=!1,this.ready_func_=null,this.callbacks_=new m1,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 e=JSON.stringify({MsgId:"LoadModule",Module:this.module_});this.ws.onmessage=this._callback.bind(this),this.ws.send(e)},this.loadModuleCallBack=function(e){if(!e)throw e.Response;this.ready_func_&&this.ready_func_()}.bind(this),this.callbacks_.add("LoadModule",this.loadModuleCallBack),this.exec=function(e,r,n){var i=Object.id(n).toString();this.callbacks_.add(i,n);var o={MsgId:i,Method:e+"|"+t};r&&(o.Param=JSON.stringify(r));var a=JSON.stringify(o);this.connect&&this.ws.send(a)},this.ready=function(e){this.ready_func_=e},this._callback=function(e){var r=JSON.parse(e.data),n=r.MsgId;if(this.callbacks_.containsKey(n)){var i=this.callbacks_.getValue(n);i(r.Result,r.Response),this.callbacks_.remove(n)}},this.ws.onopen=this.loadModule.bind(this),this.Arm_GetDongleInfo=function({Index:e,DongleInfoNum:r},n){this.exec("Arm_GetDongleInfo",[parseInt(e),parseInt(r)],n)},this.Arm_Enum=function(e){this.exec("Arm_Enum",null,e)},this.Arm_Open=function({Index:e},r){this.exec("Arm_Open",[parseInt(e)],r)},this.Arm_Close=function({Handle:e},r){this.exec("Arm_Close",[parseInt(e)],r)},this.Arm_VerifyPIN=function({Handle:e,UserPin:r,UserType:n},i){this.exec("Arm_VerifyPIN",[parseInt(e),n,r],i)},this.Arm_ResetState=function({Handle:e},r){this.exec("Arm_ResetState",[parseInt(e)],r)},this.Arm_GenRandom=function({Handle:e,RandomLen:r},n){this.exec("Arm_GenRandom",[parseInt(e),parseInt(r)],n)},this.Arm_LEDControl=function({Handle:e,LedFlag:r},n){this.exec("Arm_LEDControl",[parseInt(e),r],n)},this.Arm_SwitchProtocol=function({Handle:e,ProtocolFlag:r},n){this.exec("Arm_SwitchProtocol",[parseInt(e),r],n)},this.Arm_CreateFile=function({Handle:e,FileID:r,FileType:n,AttrBuffer:i},o){this.exec("Arm_CreateFile",[parseInt(e),n,parseInt(r),i],o)},this.Arm_WriteFile=function({Handle:e,FileID:r,FileType:n,FileOffset:i,DataInput:o},a){this.exec("Arm_WriteFile",[parseInt(e),n,parseInt(r),parseInt(i),o],a)},this.Arm_ReadFile0001=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0001"),parseInt(0),parseInt("64")],r)},this.Arm_ReadFile0002=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0002"),parseInt(0),parseInt("130")],r)},this.Arm_ReadFile0003=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0003"),parseInt(0),parseInt("130")],r)},this.Arm_ReadFile0004=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0004"),parseInt(0),parseInt("2048")],r)},this.Arm_ReadFile0005=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0005"),parseInt(0),parseInt("2048")],r)},this.Arm_DownloadExeFile=function({Handle:e,Count:r,ExeFileInfo:n},i){this.exec("Arm_DownloadExeFile",[parseInt(e),parseInt(r),n],i)},this.Arm_RunExeFile=function({Handle:e,FileID:r,InData:n,DataLen:i},o){this.exec("Arm_RunExeFile",[parseInt(e),parseInt(r),n,n.length,parseInt(i)],o)},this.Arm_ReadRunExeFileData=function(e){this.exec("Arm_ReadRunExeFileData",null,e)},this.Arm_DeleteFile=function({Handle:e,FileID:r,FileType:n},i){this.exec("Arm_DeleteFile",[parseInt(e),n,parseInt(r)],i)},this.Arm_WriteData=function({Handle:e,Offset:r,DataInput:n},i){this.exec("Arm_WriteData",[parseInt(e),parseInt(r),n],i)},this.Arm_ReadData=function({Handle:e,Offset:r,ReadLength:n},i){this.exec("Arm_ReadData",[parseInt(e),parseInt(r),n],i)},this.Arm_WriteShareMemory=function({Handle:e,DataInput:r},n){this.exec("Arm_WriteShareMemory",[parseInt(e),r],n)},this.Arm_ReadShareMemory=function({Handle:e},r){this.exec("Arm_ReadShareMemory",[parseInt(e)],r)},this.Arm_GenUniqueKey=function({Handle:e,Seed:r},n){this.exec("Arm_GenUniqueKey",[parseInt(e),r.length,r],n)},this.Arm_ChangePIN=function({Handle:e,NewPIN:r,OldPIN:n,TryCount:i,PinFlag:o},a){this.exec("Arm_ChangePIN",[parseInt(e),o,n,r,parseInt(i)],a)},this.Arm_ResetUserPIN=function({Handle:e,AdminPIN:r},n){this.exec("Arm_ResetUserPIN",[parseInt(e),r],n)},this.Arm_SetUserID=function({Handle:e,UserID:r},n){this.exec("Arm_SetUserID",[parseInt(e),parseInt(r)],n)},this.Arm_GetDeadline=function({Handle:e},r){this.exec("Arm_GetDeadline",[parseInt(e)],r)},this.Arm_SetDeadline=function({Handle:e,SetDeadTime:r},n){this.exec("Arm_SetDeadline",[parseInt(e),parseInt(r)],n)},this.Arm_GetUTCTime=function({Handle:e},r){this.exec("Arm_GetUTCTime",[parseInt(e)],r)},this.Arm_RFS=function({Handle:e},r){this.exec("Arm_RFS",[parseInt(e)],r)},this.Arm_RsaGenPubPriKey=function({Handle:e,RsaFileId:r},n){this.exec("Arm_RsaGenPubPriKey",[parseInt(e),parseInt(r)],n)},this.Arm_EccGenPubPriKey=function({Handle:e,EccFileId:r},n){this.exec("Arm_EccGenPubPriKey",[parseInt(e),parseInt(r)],n)},this.Arm_Sm2GenPubPriKey=function({Handle:e,Sm2FileId:r},n){this.exec("Arm_Sm2GenPubPriKey",[parseInt(e),parseInt(r)],n)},this.Arm_ReadRsaPri=function(e){this.exec("Arm_ReadRsaPri",null,e)},this.Arm_ReadRsaPub=function(e){this.exec("Arm_ReadRsaPub",null,e)},this.Arm_ReadEccPri=function(e){this.exec("Arm_ReadEccPri",null,e)},this.Arm_ReadEccPub=function(e){this.exec("Arm_ReadEccPub",null,e)},this.Arm_ReadSm2Pri=function(e){this.exec("Arm_ReadSm2Pri",null,e)},this.Arm_ReadSm2Pub=function(e){this.exec("Arm_ReadSm2Pub",null,e)},this.Arm_RsaPri=function({Handle:e,RsaPri_Flag:r,RsaPriInData:n,RsaPriFileID:i,RsaPriFileSize:o},a){this.exec("Arm_RsaPri",[parseInt(e),parseInt(i),parseInt(o),r,n],a)},this.Arm_RsaPub=function({Handle:e,RsaPubKey:r,RsaPub_Flag:n,RsaPubInData:i,RsaPubFileSize:o},a){this.exec("Arm_RsaPub",[parseInt(e),parseInt(o),n,r,r.length,i],a)},this.Arm_EccSign=function({Handle:e,HashData:r,EccFileId:n},i){this.exec("Arm_EccSign",[parseInt(e),parseInt(n),r],i)},this.Arm_EccVerify=function({Handle:e,HashData:r,EccPubKey:n,EccSignData:i},o){this.exec("Arm_EccVerify",[parseInt(e),n,n.length,r,i],o)},this.Arm_Sm2Sign=function({Handle:e,HashData:r,Sm2FileId:n},i){this.exec("Arm_Sm2Sign",[parseInt(e),parseInt(n),r],i)},this.Arm_Sm2Verify=function({Handle:e,HashData:r,Sm2PubKey:n,Sm2SignData:i},o){this.exec("Arm_Sm2Verify",[parseInt(e),n,n.length,r,i],o)},this.Arm_TDES=function({Handle:e,Tdes_Flag:r,TdesFileID:n,TdesInData:i},o){this.exec("Arm_TDES",[parseInt(e),parseInt(n),r,i],o)},this.Arm_SM4=function({Handle:e,Sm4_Flag:r,Sm4FileID:n,Sm4InData:i},o){this.exec("Arm_SM4",[parseInt(e),parseInt(n),r,i],o)},this.Arm_HASH=function({Handle:e,Hash_Flag:r,HashInData:n},i){this.exec("Arm_HASH",[parseInt(e),r,n],i)},this.Arm_Seed=function({Handle:e,SeedData:r,SeedLength:n},i){this.exec("Arm_Seed",[parseInt(e),n,r],i)},this.Arm_LimitSeedCount=function({Handle:e,SeedCount:r},n){this.exec("Arm_LimitSeedCount",[parseInt(e),parseInt(r)],n)},this.Arm_GenMotherKey=function({Handle:e,SeedLen:r,SeedForPID:n,SonCount:i,StartUserID:o,AdminTryCount:a,UserPin:s,UserTryCount:p,UpdateRSAPriKey:f},l){this.exec("Arm_GenMotherKey",[parseInt(e),parseInt(r),n,s,parseInt(p),parseInt(a),f,parseInt(o),parseInt(i)],l)},this.Arm_RequestInit=function({Handle:e},r){this.exec("Arm_RequestInit",[parseInt(e)],r)},this.Arm_GetInitDataFromMother=function({Handle:e},r){this.exec("Arm_GetInitDataFromMother",[parseInt(e),Request],r)},this.Arm_InitSon=function({Handle:e,InitData:r},n){this.exec("Arm_InitSon",[parseInt(e),r],n)},this.Arm_SetUpdatePriKey=function({Handle:e,UpdatePriKey:r},n){this.exec("Arm_SetUpdatePriKey",[parseInt(e),r],n)},this.Arm_MakeUpdatePacket=function({Handle:e,HID:r,Func:n,FileID:i,FileType:o,Offset:a,DataLen:s,DataBuffer:p,UpRSAPubKey:f},l){this.exec("Arm_MakeUpdatePacket",[parseInt(e),r,n,o,parseInt(i),parseInt(a),p,f,parseInt(s)],l)},this.Arm_MakeUpdatePacketFromMother=function({Handle:e,HID:r,Func:n,FileID:i,FileType:o,Offset:a,DataLen:s,DataBuffer:p},f){this.exec("Arm_MakeUpdatePacketFromMother",[parseInt(e),r,n,o,parseInt(i),parseInt(a),p,parseInt(s)],f)},this.Arm_Update=function({Handle:e,UpdateData:r},n){this.exec("Arm_Update",[parseInt(e),r],n)},this.Arm_Set_DATA_FILE_ATTR=function({Size:e,ReadPriv:r,WritePriv:n},i){this.exec("Arm_Set_DATA_FILE_ATTR",[parseInt(e),parseInt(r),parseInt(n)],i)},this.Arm_Set_PRIKEY_FILE_ATTR=function({Count:e,Size:r,Type:n,Priv:i,IsReset:o,IsDecOnRAM:a},s){this.exec("Arm_Set_PRIKEY_FILE_ATTR",[n,parseInt(r),parseInt(e),parseInt(i),parseInt(a),parseInt(o)],s)},this.Arm_Set_KEY_FILE_ATTR=function({Size:e,PrivEnc:r},n){this.exec("Arm_Set_KEY_FILE_ATTR",[parseInt(e),parseInt(r)],n)},this.Arm_Set_EXE_FILE_ATTR=function({FileLen:e,PrivExe:r},n){this.exec("Arm_Set_EXE_FILE_ATTR",[parseInt(e),parseInt(r)],n)},this.Arm_Set_DATA_LIC=function({ReadPriv:e,WritePriv:r},n){this.exec("Arm_Set_DATA_LIC",[parseInt(e),parseInt(r)],n)},this.Arm_Set_PRIKEY_LIC=function({Count:e,Priv:r,IsReset:n,IsDecOnRAM:i},o){this.exec("Arm_Set_PRIKEY_LIC",[parseInt(e),parseInt(r),parseInt(i),parseInt(n)],o)},this.Arm_Set_KEY_LIC=function({PrivEnc:e},r){this.exec("Arm_Set_KEY_LIC",[parseInt(e)],r)},this.Arm_Set_EXE_LIC=function({PrivExe:e},r){this.exec("Arm_Set_EXE_LIC",[parseInt(e)],r)},this.Arm_Set_EXE_FILE_INFO=function({FileID:e,FileData:r,FileSize:n,InBuffer:i,CallLimit:o},a){this.exec("Arm_Set_EXE_FILE_INFO",[i,parseInt(n),parseInt(e),parseInt(o),r,r.length],a)},this.Arm_Clear_EXE_FILE_INFO=function({InBuffer:e},r){this.exec("Arm_Clear_EXE_FILE_INFO",[e],r)}}const A1={HID:0},f0={PRODUCT_ID:0,USER_ID:1,HARDWARE_ID:2},ts={USER:0};class rs{constructor(){It(this,"Base64",new y1);It(this,"AtlCtrl",null);It(this,"ArmCount",0);It(this,"ArmIndex",0);It(this,"ArmHandle",0);It(this,"ArmRandom","");try{this.AtlCtrl=new g1("{39E9B272-82A7-4177-A19D-6723C1BDB0CC}")}catch(e){this.AtlCtrl=null}}armEnum(){if(this.AtlCtrl)return new Promise((e,r)=>{this.AtlCtrl.Arm_Enum((n,i)=>{n?(this.ArmCount=+i,e(i)):r(i)})})}armOpen(e=0){if(this.AtlCtrl)return this.ArmIndex=e,new Promise((r,n)=>{this.AtlCtrl.Arm_Open({Index:e},(i,o)=>{i?(this.ArmHandle=+o,r(o)):(this.ArmHandle=o,n(o))})})}armClose(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_Close({Handle:e},(i,o)=>{i?r(o):n(o)})})}armChangePIN(e,r,n=255,i=ts.USER,o=this.ArmHandle){if(this.AtlCtrl)return new Promise((a,s)=>{this.AtlCtrl.Arm_ChangePIN({Handle:o,NewPIN:e,OldPIN:r,TryCount:n,PinFlag:i},(p,f)=>{p&&f==0?(this.ArmPin=e,a(f)):s(f)})})}armGenRandom(e=16,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_GenRandom({Handle:r,RandomLen:e},(o,a)=>{o?(this.ArmRandom=a,n(a)):i(a)})})}armGetDeadline(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_GetDeadline({Handle:e},(i,o)=>{i?(this.ArmDeadline=o,r(o)):n(o)})})}armGenUniqueKey(e="MTIzNDU2Nzg5MA==",r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_GenUniqueKey({Handle:r,Seed:e},(o,a)=>{o?(this.ArmUKey=a,n(a)):i(a)})})}armGetDongleInfo(e=0,r=f0.HARDWARE_ID){if(this.AtlCtrl)return this.ArmIndex=e,new Promise((n,i)=>{this.AtlCtrl.Arm_GetDongleInfo({Index:e,DongleInfoNum:r},(o,a)=>{if(o){switch(r){case f0.USER_ID:this.ArmUid=a;break;case f0.PRODUCT_ID:this.ArmPid=a;break;case f0.HARDWARE_ID:this.ArmHid=a;break}n(a)}else i(a)})})}armLEDControl(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_LEDControl({Handle:r,LedFlag:e},(o,a)=>{o&&a==0?n(a):i(a)})})}armRFS(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_RFS({Handle:e},(i,o)=>{i&&o==0?r(o):n(o)})})}armReadFile(e="0001",r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl[`Arm_ReadFile${e}`]({Handle:r},(o,a)=>{if(o&&a.length>0)try{a=this.Base64.decode(a),n(a)}catch(s){n(a)}else i(a)})})}armResetState(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_ResetState({Handle:e},(i,o)=>{i&&o==0?r(o):n(o)})})}armResetUserPIN(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_ResetUserPIN({Handle:r,AdminPIN:e},(o,a)=>{o&&a==0?n(a):i(a)})})}armSetUserID(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SetUserID({Handle:r,UserID:e},(o,a)=>{o&&a==0?n(a):i(a)})})}armSetDeadline(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SetDeadline({Handle:r,SetDeadTime:e},(o,a)=>{o&&a==0?n(a):i(a)})})}armSwitchProtocol(e=A1.HID,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SwitchProtocol({Handle:r,ProtocolFlag:e},(o,a)=>{o&&a==0?n(a):i(a)})})}armVerifyPIN(e,r=ts.USER,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,o)=>{this.AtlCtrl.Arm_VerifyPIN({Handle:n,UserPin:e,UserType:r},(a,s)=>{a&&s==0?(this.ArmPin=e,i(s)):o(s)})})}armReadData(e=0,r=128,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,o)=>{this.AtlCtrl.Arm_ReadData({Handle:n,Offset:e,ReadLength:r},(a,s)=>{a?(this.ArmData=s,i(s)):o(s)})})}armWriteData(e,r=0,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,o)=>{this.AtlCtrl.Arm_WriteData({Handle:n,Offset:r,DataInput:e},(a,s)=>{a&&s==0?i(s):o(s)})})}armReadShareMemory(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_ReadShareMemory({Handle:e},(i,o)=>{i?(this.ArmData=o,r(o)):n(o)})})}armWriteShareMemory(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_WriteShareMemory({Handle:r,DataInput:e},(o,a)=>{o&&a==0?n(a):i(a)})})}}const ns="0123456789abcdeffedcba9876543210",is="4b0de988570c3a0f";let nr=window.ENCRYPT&&new rs;function os(t=16,e="0123456789abcdefghijklmnopqrstuvwxyz"){let r="",n=e.length;for(;t>0;)r+=e[Math.floor(Math.random()*n)],t--;return r}function as(){return Qe(this,null,function*(){return nr||(nr=new rs),new Promise((t,e)=>{nr.armEnum().then(r=>{t(+r)}).catch(r=>{we.ElMessage({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e(r)})})})}me.throttle(()=>Qe(this,null,function*(){const t=yield as(),e={};if(typeof t!="number"||t<=0)we.ElMessage({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e.resetToken();else{const r=yield B1();if(!e.token)return;r.length?r.includes(e.ukeyHid)||(we.ElMessage({type:"error",ElMessage:"U盘锁不匹配,请检查U盘锁!"}),e.resetToken()):(we.ElMessage({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e.resetToken())}}),5e3,{trailing:!1});function E1(t=0){return Qe(this,null,function*(){return nr?new Promise((e,r)=>{nr.armGetDongleInfo(t).then(n=>{n?e(n):(we.ElMessage({type:"warning",ElMessage:"U盘锁信息为空,请检查U盘锁!"}),r(n))}).catch(n=>{r(n)})}):we.ElMessage({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"})})}function B1(){return Qe(this,null,function*(){if(!nr)return we.ElMessage({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"});const t=yield as();let e=[];for(let r=0;r<t;r++){const n=yield E1(r);e.push(n)}return e})}os(16),os(16);const ss=window.INSPECT?rr.constants.CBC:rr.constants.ECB;p1.generateKeyPair();function fs(t,e,r={}){const n=us(is),i=r.mode||ss;r=i===rr.constants.ECB?te({mode:i,inputEncoding:"utf8",outputEncoding:"hex"},r):te({iv:ns,mode:i,inputEncoding:"utf8",outputEncoding:"hex"},r);let o="";try{o=rr.encrypt(t,n,r)}catch(a){console.log("err: ",a)}return o}function cs(t,e,r={}){const n=us(is),i=r.mode||ss;return r=i===rr.constants.ECB?te({mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r):te({iv:ns,mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r),rr.decrypt(t,n,r)}function us(t){return[...t].map(e=>e.charCodeAt().toString(16)).join("")}const ls={getLocal:t=>{try{let e=window.localStorage.getItem(t);return e=e!==null?cs(e):e,JSON.parse(e)}catch(e){console.error(e)}},setLocal:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?fs(r):r,window.localStorage.setItem(t,r)}catch(r){console.error(r)}},eachLocal:t=>{if(!t||aa(t)!=="Function")return console.error("传递参数非函数类型!");for(let e=0,r=window.localStorage.length;e<r;e++){const n=window.localStorage.key(e);t((void 0).getLocal(n),n)}},clearLocal:()=>{window.localStorage.clear()},removeLocal:t=>{window.localStorage.removeItem(t)},getSession:t=>{try{let e=window.sessionStorage.getItem(t);return e=e!==null?cs(e):e,JSON.parse(e)}catch(e){console.error(e)}},setSession:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?fs(r):r,window.sessionStorage.setItem(t,r)}catch(r){console.error(r)}},eachSession:t=>{if(!t||aa(t)!=="Function")return console.error("传递参数非函数类型!");for(let e=0,r=window.sessionStorage.length;e<r;e++){const n=window.sessionStorage.key(e);t((void 0).getSession(n),n)}},clearSession:()=>{window.sessionStorage.clear()},removeSession:t=>{window.sessionStorage.removeItem(t)}},hs=t=>{const{quality:e,value:r,function_id:n}=t;return(e>>7&1)===1||e===0&&n===2&&r===1},xs="USER_TOKEN",ds="STATION_ID";var ps={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(le,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",a="second",s="minute",p="hour",f="day",l="week",v="month",x="quarter",A="year",y="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|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,C={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(N){var M=["th","st","nd","rd"],H=N%100;return"["+N+(M[(H-20)%10]||M[H]||M[0])+"]"}},B=function(N,M,H){var Y=String(N);return!Y||Y.length>=M?N:""+Array(M+1-Y.length).join(H)+N},b={s:B,z:function(N){var M=-N.utcOffset(),H=Math.abs(M),Y=Math.floor(H/60),W=H%60;return(M<=0?"+":"-")+B(Y,2,"0")+":"+B(W,2,"0")},m:function N(M,H){if(M.date()<H.date())return-N(H,M);var Y=12*(H.year()-M.year())+(H.month()-M.month()),W=M.clone().add(Y,v),ee=H-W<0,J=M.clone().add(Y+(ee?-1:1),v);return+(-(Y+(H-W)/(ee?W-J:J-W))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:v,y:A,w:l,d:f,D:y,h:p,m:s,s:a,ms:o,Q:x}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},_="en",T={};T[_]=C;var k="$isDayjsObject",q=function(N){return N instanceof G||!(!N||!N[k])},X=function N(M,H,Y){var W;if(!M)return _;if(typeof M=="string"){var ee=M.toLowerCase();T[ee]&&(W=ee),H&&(T[ee]=H,W=ee);var J=M.split("-");if(!W&&J.length>1)return N(J[0])}else{var O=M.name;T[O]=M,W=O}return!Y&&W&&(_=W),W||!Y&&_},I=function(N,M){if(q(N))return N.clone();var H=typeof M=="object"?M:{};return H.date=N,H.args=arguments,new G(H)},P=b;P.l=X,P.i=q,P.w=function(N,M){return I(N,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var G=function(){function N(H){this.$L=X(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[k]=!0}var M=N.prototype;return M.parse=function(H){this.$d=function(Y){var W=Y.date,ee=Y.utc;if(W===null)return new Date(NaN);if(P.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var J=W.match(g);if(J){var O=J[2]-1||0,U=(J[7]||"0").substring(0,3);return ee?new Date(Date.UTC(J[1],O,J[3]||1,J[4]||0,J[5]||0,J[6]||0,U)):new Date(J[1],O,J[3]||1,J[4]||0,J[5]||0,J[6]||0,U)}}return new Date(W)}(H),this.init()},M.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},M.$utils=function(){return P},M.isValid=function(){return this.$d.toString()!==m},M.isSame=function(H,Y){var W=I(H);return this.startOf(Y)<=W&&W<=this.endOf(Y)},M.isAfter=function(H,Y){return I(H)<this.startOf(Y)},M.isBefore=function(H,Y){return this.endOf(Y)<I(H)},M.$g=function(H,Y,W){return P.u(H)?this[Y]:this.set(W,H)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(H,Y){var W=this,ee=!!P.u(Y)||Y,J=P.p(H),O=function(Se,Fe){var Ke=P.w(W.$u?Date.UTC(W.$y,Fe,Se):new Date(W.$y,Fe,Se),W);return ee?Ke:Ke.endOf(f)},U=function(Se,Fe){return P.w(W.toDate()[Se].apply(W.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(Fe)),W)},V=this.$W,z=this.$M,se=this.$D,ce="set"+(this.$u?"UTC":"");switch(J){case A:return ee?O(1,0):O(31,11);case v:return ee?O(1,z):O(0,z+1);case l:var be=this.$locale().weekStart||0,fe=(V<be?V+7:V)-be;return O(ee?se-fe:se+(6-fe),z);case f:case y:return U(ce+"Hours",0);case p:return U(ce+"Minutes",1);case s:return U(ce+"Seconds",2);case a:return U(ce+"Milliseconds",3);default:return this.clone()}},M.endOf=function(H){return this.startOf(H,!1)},M.$set=function(H,Y){var W,ee=P.p(H),J="set"+(this.$u?"UTC":""),O=(W={},W[f]=J+"Date",W[y]=J+"Date",W[v]=J+"Month",W[A]=J+"FullYear",W[p]=J+"Hours",W[s]=J+"Minutes",W[a]=J+"Seconds",W[o]=J+"Milliseconds",W)[ee],U=ee===f?this.$D+(Y-this.$W):Y;if(ee===v||ee===A){var V=this.clone().set(y,1);V.$d[O](U),V.init(),this.$d=V.set(y,Math.min(this.$D,V.daysInMonth())).$d}else O&&this.$d[O](U);return this.init(),this},M.set=function(H,Y){return this.clone().$set(H,Y)},M.get=function(H){return this[P.p(H)]()},M.add=function(H,Y){var W,ee=this;H=Number(H);var J=P.p(Y),O=function(z){var se=I(ee);return P.w(se.date(se.date()+Math.round(z*H)),ee)};if(J===v)return this.set(v,this.$M+H);if(J===A)return this.set(A,this.$y+H);if(J===f)return O(1);if(J===l)return O(7);var U=(W={},W[s]=n,W[p]=i,W[a]=r,W)[J]||1,V=this.$d.getTime()+H*U;return P.w(V,this)},M.subtract=function(H,Y){return this.add(-1*H,Y)},M.format=function(H){var Y=this,W=this.$locale();if(!this.isValid())return W.invalidDate||m;var ee=H||"YYYY-MM-DDTHH:mm:ssZ",J=P.z(this),O=this.$H,U=this.$m,V=this.$M,z=W.weekdays,se=W.months,ce=W.meridiem,be=function(Fe,Ke,ze,Ee){return Fe&&(Fe[Ke]||Fe(Y,ee))||ze[Ke].slice(0,Ee)},fe=function(Fe){return P.s(O%12||12,Fe,"0")},Se=ce||function(Fe,Ke,ze){var Ee=Fe<12?"AM":"PM";return ze?Ee.toLowerCase():Ee};return ee.replace(D,function(Fe,Ke){return Ke||function(ze){switch(ze){case"YY":return String(Y.$y).slice(-2);case"YYYY":return P.s(Y.$y,4,"0");case"M":return V+1;case"MM":return P.s(V+1,2,"0");case"MMM":return be(W.monthsShort,V,se,3);case"MMMM":return be(se,V);case"D":return Y.$D;case"DD":return P.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return be(W.weekdaysMin,Y.$W,z,2);case"ddd":return be(W.weekdaysShort,Y.$W,z,3);case"dddd":return z[Y.$W];case"H":return String(O);case"HH":return P.s(O,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return Se(O,U,!0);case"A":return Se(O,U,!1);case"m":return String(U);case"mm":return P.s(U,2,"0");case"s":return String(Y.$s);case"ss":return P.s(Y.$s,2,"0");case"SSS":return P.s(Y.$ms,3,"0");case"Z":return J}return null}(Fe)||J.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(H,Y,W){var ee,J=this,O=P.p(Y),U=I(H),V=(U.utcOffset()-this.utcOffset())*n,z=this-U,se=function(){return P.m(J,U)};switch(O){case A:ee=se()/12;break;case v:ee=se();break;case x:ee=se()/3;break;case l:ee=(z-V)/6048e5;break;case f:ee=(z-V)/864e5;break;case p:ee=z/i;break;case s:ee=z/n;break;case a:ee=z/r;break;default:ee=z}return W?ee:P.a(ee)},M.daysInMonth=function(){return this.endOf(v).$D},M.$locale=function(){return T[this.$L]},M.locale=function(H,Y){if(!H)return this.$L;var W=this.clone(),ee=X(H,Y,!0);return ee&&(W.$L=ee),W},M.clone=function(){return P.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},N}(),S=G.prototype;return I.prototype=S,[["$ms",o],["$s",a],["$m",s],["$H",p],["$W",f],["$M",v],["$y",A],["$D",y]].forEach(function(N){S[N[1]]=function(M){return this.$g(M,N[0],N[1])}}),I.extend=function(N,M){return N.$i||(N(M,G,I),N.$i=!0),I},I.locale=X,I.isDayjs=q,I.unix=function(N){return I(1e3*N)},I.en=T[_],I.Ls=T,I.p={},I})})(ps);var w1=ps.exports;const C1=A0(w1),b1=[{key:0,value:"离线"},{key:1,value:"在线"}],F1=[{key:0,value:"反向"},{key:1,value:"正向"},{key:2,value:"停止"}],D1=[{key:1,value:1},{key:2,value:2},{key:3,value:3},{key:4,value:4},{key:5,value:5}],_1="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",S1="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",Ft=(Fs=(bs=window.meta)==null?void 0:bs.graph)!=null&&Fs.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}]}]},vs=(_s=(Ds=window.meta)==null?void 0:Ds.graph)!=null&&_s.lightPlateColorMap?window.meta.graph.lightPlateColorMap:{0:"#00d200",1:"#e2ac06",2:"#fa800a",3:"#f04155",4:"#ff0000"},ys=(Ts=(Ss=window.meta)==null?void 0:Ss.graph)!=null&&Ts.lightPlateTextMap?window.meta.graph.lightPlateTextMap:{0:"#fff",1:"#fff",2:"#fff",3:"#fff",4:"#fff"},$e={form:[{name:"带电状态",key:"charged_state",type:"select",dataIds:{},options:b1.map(t=>({label:t.value,value:t.key}))},{name:"潮流方向",key:"electric_direction",type:"select",dataIds:{},options:F1.map(t=>({label:t.value,value:t.key}))},{name:"电荷大小",key:"electric_size",type:"select",dataIds:{},options:D1.map(t=>({label:t.value,value:t.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},oe=Le(te({penType:Ce.NORMAL},$e),{form:[...Ft[Ce.NORMAL],...$e.form]});Ce.POINT_VALUE,$e.anchors,window.visibleLevel,[...Ft[Ce.POINT_VALUE],...$e.form],$e.form,window.dataType,window.dataProp,window.visibleLevel,$e.form,window.dataType,window.dataProp,window.visibleLevel,ys[0],Ce.LIGHT_PLATE,vs[0],$e.anchors,window.visibleLevel,[...Ft[Ce.LIGHT_PLATE],...$e.form],Le(te({width:100,height:30,name:"text",text:"文本",disableAnchor:!0,penType:Ce.TEXT},$e),{form:[...Ft[Ce.TEXT],...$e.form]}),te({width:100,height:100,name:"square"},oe),Le(te({type:1,name:"line",width:100,height:5,lineWidth:2,lineName:"line",penName:"line",background:"#FFF000",color:"#FFF000"},oe),{lineAnimateType:1,anchors:[{x:0,y:.5,id:"0"},{x:1,y:.5,id:"1"}]}),te({width:200,height:50,borderRadius:0,name:"rectangle"},oe),te({width:100,height:100,name:"circle"},oe),te({width:100,height:100,name:"triangle"},oe),te({width:100,height:100,name:"diamond"},oe),te({width:100,height:100,name:"pentagon"},oe),te({width:100,height:100,name:"hexagon"},oe),te({width:100,height:100,name:"pentagram"},oe),te({width:120,height:60,name:"leftArrow"},oe),te({width:120,height:60,name:"rightArrow"},oe),te({width:150,height:60,name:"twowayArrow"},oe),te({width:100,height:100,name:"cloud"},oe),te({textTop:-.1,width:100,height:100,name:"message"},oe),te({width:80,height:100,name:"file"},oe),Le(te({name:"svg",width:100,height:100,image:S1,audioId:"",penType:Ce.AUDIO},$e),{form:[...Ft[Ce.AUDIO],...$e.form],events:[{name:"enter",action:Jr.Emit,value:ct.CUSTOM_MSG,where:{type:""},params:JSON.stringify({action:ct.OPEN_AUDIO,data:""})},{name:"leave",action:Jr.Emit,value:ct.CUSTOM_MSG,where:{type:""},params:JSON.stringify({action:ct.CLOSE_AUDIO,data:""})}]}),Le(te({name:"svg",width:100,height:100,image:_1,cameraId:"",events:[{name:"enter",action:Jr.Emit,value:ct.CUSTOM_MSG,where:{type:""},params:JSON.stringify({action:ct.OPEN_CAMERA,data:""})},{name:"leave",action:Jr.Emit,value:ct.CUSTOM_MSG,where:{type:""},params:JSON.stringify({action:ct.CLOSE_CAMERA,data:""})}],penType:Ce.CAMERA},$e),{form:[...Ft[Ce.CAMERA],...$e.form]}),Le(te({name:"video",width:100,height:100,video:"https://video.699pic.com/videos/17/69/11/a_aa3jeKZ0D63g1556176911_10s.mp4",autoPlay:!0,penType:Ce.MP4},$e),{form:[...Ft[Ce.MP4],...$e.form]}),Le(te({name:"video",width:100,height:100,video:"https://video.699pic.com/videos/17/69/11/a_aa3jeKZ0D63g1556176911_10s.mp4",autoPlay:!0,penType:Ce.VIDEO_STREAM},$e),{form:[...Ft[Ce.VIDEO_STREAM],...$e.form]}),Le(te({width:60,height:100,name:"cube",z:.25},oe),{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"}]}}),te({width:70,height:100,name:"people"},oe),Le(te({name:"table",width:80,height:30,disableAnchor:!0,colWidth:90,rowHeight:32,bordered:!0,vLine:!0,hLine:!0,stripe:!1,color:"#333",textColor:"#444"},oe),{penType:Ce.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"}]}),Le(te({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"},oe),{penType:Ce.BUTTON}),Le(te({name:"switch",penName:"开关",height:30,width:60,checked:!1,offColor:"#BFBFBF",onColor:"#1890ff",disableOffColor:"#E5E5E5",disableOnColor:"#A3D3FF",locked:0},oe),{penType:Ce.SWITCH}),Le(te({name:"radio",penName:"单选框",width:150,height:100,direction:"vertical",checked:"",options:[{text:"选项一"},{text:"选项二"},{text:"选项三",isForbidden:!0}]},oe),{penType:Ce.RADIO}),Le(te({name:"checkbox",penName:"多选框",width:30,height:30,checked:!0,value:"选项一"},oe),{penType:Ce.CHECKBOX}),Le(te({name:"slider",penName:"进度条",width:300,height:30,value:10,textWidth:50,barHeight:4,min:0,max:100,color:"#1890ff",background:"#D4D6D9",textColor:"#222",unit:"%"},oe),{penType:Ce.SLIDER}),Le(te({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},oe),{penType:Ce.INPUT}),Le(te({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"}]},oe),{penType:Ce.SELECT}),Le(te({name:"time",penName:"时间",width:300,height:40,text:`${C1().format("YYYY-MM-DD HH:mm:ss")}`,lineWidth:0,interval:67,fillZero:!0},oe),{penType:Ce.TIME,form:[{key:"timeFormat",name:"显示格式",type:"text"},{key:"fillZero",name:"是否补0",type:"switch"},...oe.form],timeFormat:"`${year}-${month}-${day} ${hours}:${minutes}:${seconds} 星期${week}`"}),te({text:"开始/结束",width:120,height:40,borderRadius:.5,name:"rectangle"},oe),te({text:"流程",width:120,height:40,name:"rectangle"},oe),te({text:"判定",width:120,height:60,name:"diamond"},oe),te({text:"数据",width:120,height:50,name:"flowData",offsetX:.14},oe),te({text:"准备",width:120,height:50,name:"hexagon"},oe),te({text:"子流程",width:120,height:50,name:"flowSubprocess"},oe),te({text:"数据库",width:80,height:120,name:"flowDb"},oe),te({text:"文档",width:120,height:100,name:"flowDocument"},oe),te({text:"内部存储",width:120,height:80,name:"flowInternalStorage"},oe),te({text:"外部存储",width:120,height:80,name:"flowExternStorage"},oe),te({text:"队列",width:100,height:100,name:"flowQueue"},oe),te({text:"手动输入",width:120,height:80,name:"flowManually"},oe),te({text:"展示",width:120,height:80,name:"flowDisplay"},oe),te({text:"并行模式",width:120,height:50,name:"flowParallel"},oe),te({text:"注释",width:100,height:100,name:"flowComment"},oe),te({text:"",width:30,height:30,name:"circle",background:"#555",lineWidth:0},oe),te({width:30,height:30,name:"activityFinal"},oe),te({text:"活动",width:120,height:50,borderRadius:.25,name:"rectangle"},oe),te({text:"决策/合并",width:120,height:50,name:"diamond"},oe),te({text:"垂直泳道",width:200,height:500,name:"swimlaneV",textBaseline:"top",textTop:20,lineTop:.08},oe),te({text:"水平泳道",width:500,height:200,name:"swimlaneH",textWidth:.01,textLeft:.04,textAlign:"left",lineLeft:.08},oe),te({text:"垂直分岔/汇合",width:10,height:150,name:"forkV",fillStyle:"#555",strokeStyle:"transparent"},oe),te({text:"水平分岔/汇合",width:150,height:10,name:"forkH",fillStyle:"#555",strokeStyle:"transparent"},oe),te({name:"andGate",width:100,height:150},oe),te({name:"basicEvent",width:100,height:150},oe),te({name:"unexpandedEvent",width:100,height:150},oe),te({name:"priorityAndGate",width:100,height:150},oe),te({name:"forbiddenGate",width:100,height:150},oe),te({name:"event",width:100,height:150},oe),te({name:"switchEvent",width:100,height:150},oe),te({name:"conditionalEvent",width:150,height:100},oe),te({name:"transferSymbol",width:100,height:150},oe),te({name:"orGate",width:100,height:150},oe),te({name:"xorGate",width:100,height:150},oe),te({name:"votingGate",width:100,height:150},oe),te({text:"主题",width:200,height:50,name:"mindNode",borderRadius:.5},oe),te({text:"子主题",width:160,height:40,name:"mindLine"},oe);class T1{constructor(e){It(this,"editor");this.editor=e}initPlugin(e,r,n={}){e.installPenPlugins({name:r},[{plugin:Ue.mindBoxPlugin,options:n},{plugin:Ve.collapseChildPlugin,options:n}])}}const I1="original_meta2d";function R1(){return localStorage.removeItem(I1)}let Cr={};const O1=t=>{const e=document.querySelectorAll("video");let r=null;if(e.forEach(i=>{i.getAttribute("src")===t.video&&(r=i)}),!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 t.autoPlay&&t.streamUrl&&n.play(t.streamUrl),Cr[t.id]=n,n},k1=()=>{Object.keys(Cr).forEach(t=>{Cr[t].destroy(),Cr[t]=null}),Cr={}},ms=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},P1=ms(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(t,{expose:e,emit:r}){const n=r,i=t,o=re.ref(null),a=re.shallowRef(),s=re.computed(()=>!!(i.data||i.url));re.watch(()=>[i.data,i.url],()=>{s.value&&p()});function p(){return Qe(this,null,function*(){try{if(yield re.nextTick(),!o.value){console.error("未找到meta2d元素!");return}let m=null;if(i.data?m=i.data:i.url&&(m=yield y()),!m||!m.data){console.log("图纸数据为空");return}const g=m.options||{background:"#eee",disableAnchor:!1};if(a.value&&(a.value.destroy(!0),a.value=null),!o.value){console.error("Meta2D 容器元素不可用");return}a.value=new de.Meta2d(o.value,te({},g)),g.visibleLevel&&a.value.scale(g.visibleLevel),f(),l(),yield v(m.data),a.value.render(),x(),setTimeout(()=>{window!=null&&window.meta2dTools&&(window==null||window.registerToolsNew())},1e3),n("loaded",a.value)}catch(m){console.error("初始化编辑器失败:",m),we.ElMessage.error("初始化编辑器失败")}})}function f(){if(!a.value)return;new T1({}).initPlugin(a.value,"mindNode",{})}function l(){de.register(rt.classPens()),de.register(ar.flowPens()),de.registerAnchors(ar.flowAnchors()),de.register(st.sequencePens()),de.registerCanvasDraw(st.sequencePensbyCtx()),de.register(gi.activityDiagram()),de.registerCanvasDraw(gi.activityDiagramByCtx()),de.registerCanvasDraw(Ie.formPens()),de.registerCanvasDraw(_r.chartsPens()),de.register(sr.ftaPens()),de.registerAnchors(sr.ftaAnchors()),de.registerCanvasDraw(sr.ftaPensbyCtx())}function v(m){var g,D;if(a.value){if(typeof m.locked=="undefined"&&(m.locked=0),m.bkImage&&a.value.setBackgroundImage(m.bkImage),m.pens&&m.pens.length>0){const C=m.pens.filter(_=>_.name==="video"&&_.streamUrl);C.length>0&&setTimeout(()=>{C.forEach(_=>{O1(_)})},500);const B=((D=(g=window==null?void 0:window.meta)==null?void 0:g.graph)==null?void 0:D.penCountThreshold)||2e3;m.pens.length>B&&m.scale&&m.pens.forEach(_=>{const T=_.visibleLevel;T!==void 0?(_.visible=m.scale>=T,_.visible||(_.disabled=!0,_.locked=de.LockState.Disable)):(_.visible=!0,_.disabled=!1,_.locked=de.LockState.None)})}a.value.open(m)}}function x(){a.value&&a.value.on("scale",A)}function A(m){var g,D;try{if(!a.value)return;dn.emit("graph-scale",m);let C=a.value.store.data.pens;const B=((D=(g=window==null?void 0:window.meta)==null?void 0:g.graph)==null?void 0:D.penCountThreshold)||500;if(!(C.length>B))return;for(let _=0;_<C.length;_++){const T=C[_],k=T.visibleLevel!==void 0?m>=T.visibleLevel:!0;a.value._setValue({id:T.id,visible:k,disabled:!k,locked:k?de.LockState.None:de.LockState.Disable})}a.value.render()}catch(C){console.error("处理缩放失败:",C)}}function y(){return Qe(this,null,function*(){return i.url?(yield xn.getGraphApi(i.url,{local:i.local}))||null:(we.ElMessage.error("图纸路径为空!"),null)})}return re.onMounted(()=>{s.value&&p()}),re.onUnmounted(()=>{k1(),R1(),a.value&&(i.preview?(ke.clearLineCross(),a.value.destroy(!0)):a.value.off("scale",A))}),e({stage:a}),(m,g)=>(re.openBlock(),re.createElementBlock("div",{ref_key:"meta2dRef",ref:o,class:"meta2d-editor"},null,512))}}),[["__scopeId","data-v-664781e2"]]),M1={class:"preview-container"},L1={key:0,class:"back-btn"},br=ms(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},config:{type:Object,default:()=>({socketUrl:oa,stationIdKey:ds,userTokenKey:xs,messageDelay:200,debounceDelay:100,enableAutoFit:!0,enableWebSocket:!0,graphSocket:ia.GRAPH.SOCKET})},showMap:{type:Boolean,default:!1},isFactory:{type:Boolean,default:!1},apiInstance:{type:Object,default:()=>xn},mittInstance:{type:Object,default:()=>dn},customCallbacks:{type:Object,default:()=>({})},errorHandler:{type:Object,default:()=>({callback:null,showMessage:!0})}},emits:["error","loaded","custom-msg","socket-msg"],setup(t,{expose:e,emit:r}){const n=r,i=t;let o=re.ref(!1),a=re.ref(""),s=re.ref(!1);const p=re.ref(null),f=re.ref(""),l=re.ref(!1),v=re.computed(()=>{var S;return(S=p.value)==null?void 0:S.stage}),x=re.computed(()=>{var S;return(S=v.value)==null?void 0:S.store}),A=re.computed(()=>te({socketUrl:oa,stationIdKey:ds,userTokenKey:xs,messageDelay:200,debounceDelay:100,enableAutoFit:!0,enableWebSocket:!0,graphSocket:ia.GRAPH.SOCKET},i.config)),y=()=>i.apiInstance||xn,m=()=>i.mittInstance||dn,g=(S,N="")=>{const M={error:S,message:N,timestamp:new Date().toISOString()};n("error",M),i.errorHandler.callback?i.errorHandler.callback(M):i.errorHandler.showMessage&&we.ElMessage&&we.ElMessage.error(`${N}: ${S.message||S}`)},D=()=>{a.value&&(f.value=a.value,l.value=s.value)},C=S=>{var N,M;try{if(!S)return;if(S.includes("token 必传"))return we.ElMessage.warning(S);if(S.data==="服务错误"||S.data.includes("token is expired"))return we.ElMessage.warning(S.data);n("socket-msg",S);const H=typeof S=="string"?JSON.parse(S):S;if(((N=H.data)==null?void 0:N.length)>0){const Y=setTimeout(()=>{clearTimeout(Y),v.value&&(H.data.forEach(W=>{const ee=v.value.find(W.dataId);I(ee,W)}),v.value.render())},A.value.messageDelay);i.customCallbacks.onWebSocketMessage&&i.customCallbacks.onWebSocketMessage(H),(M=window.customSocketFn)==null||M.call(window,S)}return!0}catch(H){return g(H,"WebSocket消息处理"),!0}},B=S=>Qe(this,null,function*(){var N;try{if(S.params){const M=JSON.parse(S.params);switch(M.action){case ct.CHANGE_GRAPH:(M==null?void 0:M.data)!=="图纸id"&&(a.value=f.value,s.value=l.value,o.value=M.isBack,(N=M==null?void 0:M.data)!=null&&N.startsWith("/")?(f.value=M==null?void 0:M.data,l.value=!0):(l.value=!1,_(M.data)));break}}n("custom-msg",S),i.customCallbacks.onCustomMessage&&i.customCallbacks.onCustomMessage(S)}catch(M){g(M,"自定义消息处理")}}),b=S=>{var N,M;try{n("loaded",S);const H=T(),Y=A.value,W=ls.getSession(Y.stationIdKey),ee=ls.getSession(Y.userTokenKey);!((M=(N=S.store)==null?void 0:N.data)!=null&&M.websocket)&&Y.enableWebSocket&&W&&ee&&(S.store.data.websocket=`${Y.socketUrl}?station_id=${W}`,S.store.data.websocketProtocols=ee,S.connectWebsocket()),(i.showMap||H.showMap==="true")&&S.showMap(),S.setRule({rule:!1}),S.setOptions({disableRuleLine:!0}),S.setGrid({grid:!1}),S.lock(de.LockState.DisableEdit),X().forEach(O=>{var U;(U=O==null?void 0:O.events)!=null&&U.length?k({id:O.id,locked:1},!1):k({id:O.id,locked:10},!1)}),S.render(),Y.enableAutoFit&&S.fitView(!0,24),S.on(ct.CUSTOM_MSG,B),S.on(ct.CHANGE_GRAPH,B),S&&(S.socketFn=C),i.customCallbacks.onStageLoaded&&i.customCallbacks.onStageLoaded(S)}catch(H){g(H,"图纸加载完成处理")}},_=S=>Qe(this,null,function*(){var N;try{if(i.url){f.value=i.url,l.value=i.local;return}const M=T();if(S=S||i.gid||M.id,M.local==="true"&&(l.value=!0),S){const H=y();if(H&&H.getCommonApi){const Y=yield H.getCommonApi(i.isFactory?"graph":"floorplan",{guid:S});if((N=Y.data)!=null&&N.length)f.value=Y.data[0].path,i.customCallbacks.onGraphLoaded&&i.customCallbacks.onGraphLoaded(f.value);else{const W="未找到图纸!";g(new Error(W),"获取图纸数据")}}else g(new Error("API实例不可用"),"初始化图纸数据!")}else f.value=i.url,l.value=i.local}catch(M){g(M,"获取图纸数据失败")}}),T=()=>{var H;const S={},N=((H=window.location.href.split("?"))==null?void 0:H[1])||"",M=new URLSearchParams(N);for(const[Y,W]of M.entries())S[Y]=W;return S},k=(S,N=!0)=>{if(v.value)return v.value.setValue(S,{render:N})},q=()=>v.value,X=()=>{var S,N;return((N=(S=x.value)==null?void 0:S.data)==null?void 0:N.pens)||[]},I=(()=>{let S=null;const N=new Map,M=new Map,H=W=>{var J;if(!((J=W.children)!=null&&J.length))return[];const ee=W.id||"";if(!ee)return[];if(!M.has(ee)&&x.value){const O=de.getAllChildren(W,x.value);M.set(ee,O)}return M.get(ee)||[]},Y=()=>{if(N.size===0||!v.value||!x.value)return;const W=[],ee=[],J=x.value.animates;N.forEach(({pen:O,dataItem:U,formKey:V})=>{switch(V){case"light_plate":{const z=U.value===-1||hs(U)?"#999999":ys[U.value!==void 0?U.value:U.alarm_value],se=U.value===-1||hs(U)?"#cccccc":vs[U.value!==void 0?U.value:U.alarm_value];k({id:O.id,textColor:z,background:se},!1)}break;case"point_value":O.penType===Ce.POINT_VALUE&&H(O).forEach(se=>{se.name==="text"&&k({id:se.id,text:U.value},!1)});break;case"online_state":{let z=U.value?void 0:"contrast(0%)";k({id:O.id,filter:z},!1),H(O).forEach(ce=>{k({id:ce.id,filter:z},!1)})}break;case"charged_state":{const z=U.value===eh.OFFLINE?"contrast(0%)":void 0;z!==O.filter&&(k({id:O.id,filter:z},!1),H(O).forEach(ce=>{k({id:ce.id,filter:z},!1)}))}break;case"electric_direction":U.value===th.STOP?J!=null&&J.has(O)&&ee.push(O):!!U.value!==O.animateReverse&&(k({id:O.id,animateReverse:!!U.value},!1),J!=null&&J.has(O)||W.push(O));break;case"electric_size":{const z=rh[U.value];z!==void 0&&z!==O.lineWidth&&k({id:O.id,lineWidth:z},!1)}break}}),ee.length>0&&v.value.stopAnimate(ee),W.length>0&&v.value.startAnimate(W),N.clear(),v.value.render()};return(W,ee)=>{W!=null&&W.length&&(W.forEach(J=>{const O=J.form;O!=null&&O.length&&O.forEach(U=>{if(!(Array.isArray(U.dataIds)?U.dataIds:[U.dataIds]).some(ce=>(ce==null?void 0:ce.dataId)===ee.dataId))return;const se=`${J.id}-${U.key}`;N.set(se,{pen:J,dataItem:ee,formKey:U.key})})}),S&&clearTimeout(S),S=setTimeout(()=>{Y(),S=null},A.value.debounceDelay))}})(),P=S=>{if(v.value){for(let N=0;N<S.length;N++){const M=S[N],H=v.value.find(M.dataId);I(H,M)}v.value.render(),i.customCallbacks.onBatchUpdate&&i.customCallbacks.onBatchUpdate(S)}},G=(S,N=!1)=>{if(!v.value)return;const M=X();for(let H=0;H<M.length;H++){const Y=M[H];let W=!1;N?W=S===Y.dataProp:W=S===5?!0:Y.dataProp<=S,k({id:Y.id,visible:W},!1)}v.value.fitView(),v.value.render(),i.customCallbacks.onLevelChange&&i.customCallbacks.onLevelChange(S,N)};return re.watch(()=>[i.url,i.isFactory,i.local,i.data,i.gid],()=>{_()}),re.watch(()=>i.showMap,()=>{v.value&&v.value.showMap()}),re.onMounted(()=>{const S=m();S&&S.on&&S.on(A.value.graphSocket,C),_()}),re.onUnmounted(()=>{const S=m();S&&S.off&&S.off(A.value.graphSocket,C)}),e({setValue:k,getStage:q,getAllPens:X,batchUpdatePen:P,handleLineCross:ke.handleLineCross,changeVisibleByLevel:G}),(S,N)=>{const M=re.resolveComponent("el-button");return re.openBlock(),re.createElementBlock("div",M1,[re.createVNode(P1,{ref_key:"graphRef",ref:p,url:f.value,local:l.value,data:i.data,preview:"",onLoaded:b},null,8,["url","local","data"]),re.unref(o)?(re.openBlock(),re.createElementBlock("div",L1,[re.createVNode(M,{type:"primary",onClick:D},{default:re.withCtx(()=>N[0]||(N[0]=[re.createTextVNode("返回",-1)])),_:1,__:[0]})])):re.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-c09e5d6b"]]);br.name||(br.name="SyGraph");const U1={install:t=>{t.component(br.name||"SyGraph",br)}};ae.SyGraph=br,ae.default=U1,Object.defineProperties(ae,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
28
|
+
*/(function(t){var e=t0,r=Jn,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=C,t.INSPECT_MAX_BYTES=50;var i=2147483647;t.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!s.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 B=new Uint8Array(1),c={foo:function(){return 42}};return Object.setPrototypeOf(c,Uint8Array.prototype),Object.setPrototypeOf(B,c),B.foo()===42}catch(u){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(B){if(B>i)throw new RangeError('The value "'+B+'" is invalid for option "size"');var c=new Uint8Array(B);return Object.setPrototypeOf(c,s.prototype),c}function s(B,c,u){if(typeof B=="number"){if(typeof c=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(B)}return p(B,c,u)}s.poolSize=8192;function p(B,c,u){if(typeof B=="string")return x(B,c);if(ArrayBuffer.isView(B))return y(B);if(B==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(Ee(B,ArrayBuffer)||B&&Ee(B.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ee(B,SharedArrayBuffer)||B&&Ee(B.buffer,SharedArrayBuffer)))return m(B,c,u);if(typeof B=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var F=B.valueOf&&B.valueOf();if(F!=null&&F!==B)return s.from(F,c,u);var L=g(B);if(L)return L;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof B[Symbol.toPrimitive]=="function")return s.from(B[Symbol.toPrimitive]("string"),c,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}s.from=function(B,c,u){return p(B,c,u)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function f(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 l(B,c,u){return f(B),B<=0?a(B):c!==void 0?typeof u=="string"?a(B).fill(c,u):a(B).fill(c):a(B)}s.alloc=function(B,c,u){return l(B,c,u)};function v(B){return f(B),a(B<0?0:D(B)|0)}s.allocUnsafe=function(B){return v(B)},s.allocUnsafeSlow=function(B){return v(B)};function x(B,c){if((typeof c!="string"||c==="")&&(c="utf8"),!s.isEncoding(c))throw new TypeError("Unknown encoding: "+c);var u=w(B,c)|0,F=a(u),L=F.write(B,c);return L!==u&&(F=F.slice(0,L)),F}function A(B){for(var c=B.length<0?0:D(B.length)|0,u=a(c),F=0;F<c;F+=1)u[F]=B[F]&255;return u}function y(B){if(Ee(B,Uint8Array)){var c=new Uint8Array(B);return m(c.buffer,c.byteOffset,c.byteLength)}return A(B)}function m(B,c,u){if(c<0||B.byteLength<c)throw new RangeError('"offset" is outside of buffer bounds');if(B.byteLength<c+(u||0))throw new RangeError('"length" is outside of buffer bounds');var F;return c===void 0&&u===void 0?F=new Uint8Array(B):u===void 0?F=new Uint8Array(B,c):F=new Uint8Array(B,c,u),Object.setPrototypeOf(F,s.prototype),F}function g(B){if(s.isBuffer(B)){var c=D(B.length)|0,u=a(c);return u.length===0||B.copy(u,0,0,c),u}if(B.length!==void 0)return typeof B.length!="number"||Me(B.length)?a(0):A(B);if(B.type==="Buffer"&&Array.isArray(B.data))return A(B.data)}function D(B){if(B>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return B|0}function C(B){return+B!=B&&(B=0),s.alloc(+B)}s.isBuffer=function(c){return c!=null&&c._isBuffer===!0&&c!==s.prototype},s.compare=function(c,u){if(Ee(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),Ee(u,Uint8Array)&&(u=s.from(u,u.offset,u.byteLength)),!s.isBuffer(c)||!s.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(c===u)return 0;for(var F=c.length,L=u.length,K=0,Z=Math.min(F,L);K<Z;++K)if(c[K]!==u[K]){F=c[K],L=u[K];break}return F<L?-1:L<F?1:0},s.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}},s.concat=function(c,u){if(!Array.isArray(c))throw new TypeError('"list" argument must be an Array of Buffers');if(c.length===0)return s.alloc(0);var F;if(u===void 0)for(u=0,F=0;F<c.length;++F)u+=c[F].length;var L=s.allocUnsafe(u),K=0;for(F=0;F<c.length;++F){var Z=c[F];if(Ee(Z,Uint8Array))K+Z.length>L.length?s.from(Z).copy(L,K):Uint8Array.prototype.set.call(L,Z,K);else if(s.isBuffer(Z))Z.copy(L,K);else throw new TypeError('"list" argument must be an Array of Buffers');K+=Z.length}return L};function w(B,c){if(s.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||Ee(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 u=B.length,F=arguments.length>2&&arguments[2]===!0;if(!F&&u===0)return 0;for(var L=!1;;)switch(c){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return fe(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return Ke(B).length;default:if(L)return F?-1:fe(B).length;c=(""+c).toLowerCase(),L=!0}}s.byteLength=w;function b(B,c,u){var F=!1;if((c===void 0||c<0)&&(c=0),c>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,c>>>=0,u<=c))return"";for(B||(B="utf8");;)switch(B){case"hex":return ee(this,c,u);case"utf8":case"utf-8":return N(this,c,u);case"ascii":return Y(this,c,u);case"latin1":case"binary":return W(this,c,u);case"base64":return S(this,c,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,c,u);default:if(F)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),F=!0}}s.prototype._isBuffer=!0;function _(B,c,u){var F=B[c];B[c]=B[u],B[u]=F}s.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 u=0;u<c;u+=2)_(this,u,u+1);return this},s.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 u=0;u<c;u+=4)_(this,u,u+3),_(this,u+1,u+2);return this},s.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 u=0;u<c;u+=8)_(this,u,u+7),_(this,u+1,u+6),_(this,u+2,u+5),_(this,u+3,u+4);return this},s.prototype.toString=function(){var c=this.length;return c===0?"":arguments.length===0?N(this,0,c):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(c){if(!s.isBuffer(c))throw new TypeError("Argument must be a Buffer");return this===c?!0:s.compare(this,c)===0},s.prototype.inspect=function(){var c="",u=t.INSPECT_MAX_BYTES;return c=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(c+=" ... "),"<Buffer "+c+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(c,u,F,L,K){if(Ee(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),!s.isBuffer(c))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof c);if(u===void 0&&(u=0),F===void 0&&(F=c?c.length:0),L===void 0&&(L=0),K===void 0&&(K=this.length),u<0||F>c.length||L<0||K>this.length)throw new RangeError("out of range index");if(L>=K&&u>=F)return 0;if(L>=K)return-1;if(u>=F)return 1;if(u>>>=0,F>>>=0,L>>>=0,K>>>=0,this===c)return 0;for(var Z=K-L,ue=F-u,ye=Math.min(Z,ue),we=this.slice(L,K),De=c.slice(u,F),Ae=0;Ae<ye;++Ae)if(we[Ae]!==De[Ae]){Z=we[Ae],ue=De[Ae];break}return Z<ue?-1:ue<Z?1:0};function T(B,c,u,F,L){if(B.length===0)return-1;if(typeof u=="string"?(F=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,Me(u)&&(u=L?0:B.length-1),u<0&&(u=B.length+u),u>=B.length){if(L)return-1;u=B.length-1}else if(u<0)if(L)u=0;else return-1;if(typeof c=="string"&&(c=s.from(c,F)),s.isBuffer(c))return c.length===0?-1:k(B,c,u,F,L);if(typeof c=="number")return c=c&255,typeof Uint8Array.prototype.indexOf=="function"?L?Uint8Array.prototype.indexOf.call(B,c,u):Uint8Array.prototype.lastIndexOf.call(B,c,u):k(B,[c],u,F,L);throw new TypeError("val must be string, number or Buffer")}function k(B,c,u,F,L){var K=1,Z=B.length,ue=c.length;if(F!==void 0&&(F=String(F).toLowerCase(),F==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(B.length<2||c.length<2)return-1;K=2,Z/=2,ue/=2,u/=2}function ye(qt,__$t__){return K===1?qt[__$t__]:qt.readUInt16BE(__$t__*K)}var we;if(L){var De=-1;for(we=u;we<Z;we++)if(ye(B,we)===ye(c,De===-1?0:we-De)){if(De===-1&&(De=we),we-De+1===ue)return De*K}else De!==-1&&(we-=we-De),De=-1}else for(u+ue>Z&&(u=Z-ue),we=u;we>=0;we--){for(var Ae=!0,_t=0;_t<ue;_t++)if(ye(B,we+_t)!==ye(c,_t)){Ae=!1;break}if(Ae)return we}return-1}s.prototype.includes=function(c,u,F){return this.indexOf(c,u,F)!==-1},s.prototype.indexOf=function(c,u,F){return T(this,c,u,F,!0)},s.prototype.lastIndexOf=function(c,u,F){return T(this,c,u,F,!1)};function q(B,c,u,F){u=Number(u)||0;var L=B.length-u;F?(F=Number(F),F>L&&(F=L)):F=L;var K=c.length;F>K/2&&(F=K/2);for(var Z=0;Z<F;++Z){var ue=parseInt(c.substr(Z*2,2),16);if(Me(ue))return Z;B[u+Z]=ue}return Z}function X(B,c,u,F){return ze(fe(c,B.length-u),B,u,F)}function I(B,c,u,F){return ze(Se(c),B,u,F)}function P(B,c,u,F){return ze(Ke(c),B,u,F)}function G(B,c,u,F){return ze(Fe(c,B.length-u),B,u,F)}s.prototype.write=function(c,u,F,L){if(u===void 0)L="utf8",F=this.length,u=0;else if(F===void 0&&typeof u=="string")L=u,F=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(F)?(F=F>>>0,L===void 0&&(L="utf8")):(L=F,F=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var K=this.length-u;if((F===void 0||F>K)&&(F=K),c.length>0&&(F<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");for(var Z=!1;;)switch(L){case"hex":return q(this,c,u,F);case"utf8":case"utf-8":return X(this,c,u,F);case"ascii":case"latin1":case"binary":return I(this,c,u,F);case"base64":return P(this,c,u,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,c,u,F);default:if(Z)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),Z=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(B,c,u){return c===0&&u===B.length?e.fromByteArray(B):e.fromByteArray(B.slice(c,u))}function N(B,c,u){u=Math.min(B.length,u);for(var F=[],L=c;L<u;){var K=B[L],Z=null,ue=K>239?4:K>223?3:K>191?2:1;if(L+ue<=u){var ye,we,De,Ae;switch(ue){case 1:K<128&&(Z=K);break;case 2:ye=B[L+1],(ye&192)===128&&(Ae=(K&31)<<6|ye&63,Ae>127&&(Z=Ae));break;case 3:ye=B[L+1],we=B[L+2],(ye&192)===128&&(we&192)===128&&(Ae=(K&15)<<12|(ye&63)<<6|we&63,Ae>2047&&(Ae<55296||Ae>57343)&&(Z=Ae));break;case 4:ye=B[L+1],we=B[L+2],De=B[L+3],(ye&192)===128&&(we&192)===128&&(De&192)===128&&(Ae=(K&15)<<18|(ye&63)<<12|(we&63)<<6|De&63,Ae>65535&&Ae<1114112&&(Z=Ae))}}Z===null?(Z=65533,ue=1):Z>65535&&(Z-=65536,F.push(Z>>>10&1023|55296),Z=56320|Z&1023),F.push(Z),L+=ue}return H(F)}var M=4096;function H(B){var c=B.length;if(c<=M)return String.fromCharCode.apply(String,B);for(var u="",F=0;F<c;)u+=String.fromCharCode.apply(String,B.slice(F,F+=M));return u}function Y(B,c,u){var F="";u=Math.min(B.length,u);for(var L=c;L<u;++L)F+=String.fromCharCode(B[L]&127);return F}function W(B,c,u){var F="";u=Math.min(B.length,u);for(var L=c;L<u;++L)F+=String.fromCharCode(B[L]);return F}function ee(B,c,u){var F=B.length;(!c||c<0)&&(c=0),(!u||u<0||u>F)&&(u=F);for(var L="",K=c;K<u;++K)L+=Dt[B[K]];return L}function J(B,c,u){for(var F=B.slice(c,u),L="",K=0;K<F.length-1;K+=2)L+=String.fromCharCode(F[K]+F[K+1]*256);return L}s.prototype.slice=function(c,u){var F=this.length;c=~~c,u=u===void 0?F:~~u,c<0?(c+=F,c<0&&(c=0)):c>F&&(c=F),u<0?(u+=F,u<0&&(u=0)):u>F&&(u=F),u<c&&(u=c);var L=this.subarray(c,u);return Object.setPrototypeOf(L,s.prototype),L};function O(B,c,u){if(B%1!==0||B<0)throw new RangeError("offset is not uint");if(B+c>u)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(c,u,F){c=c>>>0,u=u>>>0,F||O(c,u,this.length);for(var L=this[c],K=1,Z=0;++Z<u&&(K*=256);)L+=this[c+Z]*K;return L},s.prototype.readUintBE=s.prototype.readUIntBE=function(c,u,F){c=c>>>0,u=u>>>0,F||O(c,u,this.length);for(var L=this[c+--u],K=1;u>0&&(K*=256);)L+=this[c+--u]*K;return L},s.prototype.readUint8=s.prototype.readUInt8=function(c,u){return c=c>>>0,u||O(c,1,this.length),this[c]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(c,u){return c=c>>>0,u||O(c,2,this.length),this[c]|this[c+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(c,u){return c=c>>>0,u||O(c,2,this.length),this[c]<<8|this[c+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(c,u){return c=c>>>0,u||O(c,4,this.length),(this[c]|this[c+1]<<8|this[c+2]<<16)+this[c+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(c,u){return c=c>>>0,u||O(c,4,this.length),this[c]*16777216+(this[c+1]<<16|this[c+2]<<8|this[c+3])},s.prototype.readIntLE=function(c,u,F){c=c>>>0,u=u>>>0,F||O(c,u,this.length);for(var L=this[c],K=1,Z=0;++Z<u&&(K*=256);)L+=this[c+Z]*K;return K*=128,L>=K&&(L-=Math.pow(2,8*u)),L},s.prototype.readIntBE=function(c,u,F){c=c>>>0,u=u>>>0,F||O(c,u,this.length);for(var L=u,K=1,Z=this[c+--L];L>0&&(K*=256);)Z+=this[c+--L]*K;return K*=128,Z>=K&&(Z-=Math.pow(2,8*u)),Z},s.prototype.readInt8=function(c,u){return c=c>>>0,u||O(c,1,this.length),this[c]&128?(255-this[c]+1)*-1:this[c]},s.prototype.readInt16LE=function(c,u){c=c>>>0,u||O(c,2,this.length);var F=this[c]|this[c+1]<<8;return F&32768?F|4294901760:F},s.prototype.readInt16BE=function(c,u){c=c>>>0,u||O(c,2,this.length);var F=this[c+1]|this[c]<<8;return F&32768?F|4294901760:F},s.prototype.readInt32LE=function(c,u){return c=c>>>0,u||O(c,4,this.length),this[c]|this[c+1]<<8|this[c+2]<<16|this[c+3]<<24},s.prototype.readInt32BE=function(c,u){return c=c>>>0,u||O(c,4,this.length),this[c]<<24|this[c+1]<<16|this[c+2]<<8|this[c+3]},s.prototype.readFloatLE=function(c,u){return c=c>>>0,u||O(c,4,this.length),r.read(this,c,!0,23,4)},s.prototype.readFloatBE=function(c,u){return c=c>>>0,u||O(c,4,this.length),r.read(this,c,!1,23,4)},s.prototype.readDoubleLE=function(c,u){return c=c>>>0,u||O(c,8,this.length),r.read(this,c,!0,52,8)},s.prototype.readDoubleBE=function(c,u){return c=c>>>0,u||O(c,8,this.length),r.read(this,c,!1,52,8)};function U(B,c,u,F,L,K){if(!s.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>L||c<K)throw new RangeError('"value" argument is out of bounds');if(u+F>B.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(c,u,F,L){if(c=+c,u=u>>>0,F=F>>>0,!L){var K=Math.pow(2,8*F)-1;U(this,c,u,F,K,0)}var Z=1,ue=0;for(this[u]=c&255;++ue<F&&(Z*=256);)this[u+ue]=c/Z&255;return u+F},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(c,u,F,L){if(c=+c,u=u>>>0,F=F>>>0,!L){var K=Math.pow(2,8*F)-1;U(this,c,u,F,K,0)}var Z=F-1,ue=1;for(this[u+Z]=c&255;--Z>=0&&(ue*=256);)this[u+Z]=c/ue&255;return u+F},s.prototype.writeUint8=s.prototype.writeUInt8=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,1,255,0),this[u]=c&255,u+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,2,65535,0),this[u]=c&255,this[u+1]=c>>>8,u+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,2,65535,0),this[u]=c>>>8,this[u+1]=c&255,u+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,4,4294967295,0),this[u+3]=c>>>24,this[u+2]=c>>>16,this[u+1]=c>>>8,this[u]=c&255,u+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,4,4294967295,0),this[u]=c>>>24,this[u+1]=c>>>16,this[u+2]=c>>>8,this[u+3]=c&255,u+4},s.prototype.writeIntLE=function(c,u,F,L){if(c=+c,u=u>>>0,!L){var K=Math.pow(2,8*F-1);U(this,c,u,F,K-1,-K)}var Z=0,ue=1,ye=0;for(this[u]=c&255;++Z<F&&(ue*=256);)c<0&&ye===0&&this[u+Z-1]!==0&&(ye=1),this[u+Z]=(c/ue>>0)-ye&255;return u+F},s.prototype.writeIntBE=function(c,u,F,L){if(c=+c,u=u>>>0,!L){var K=Math.pow(2,8*F-1);U(this,c,u,F,K-1,-K)}var Z=F-1,ue=1,ye=0;for(this[u+Z]=c&255;--Z>=0&&(ue*=256);)c<0&&ye===0&&this[u+Z+1]!==0&&(ye=1),this[u+Z]=(c/ue>>0)-ye&255;return u+F},s.prototype.writeInt8=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,1,127,-128),c<0&&(c=255+c+1),this[u]=c&255,u+1},s.prototype.writeInt16LE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,2,32767,-32768),this[u]=c&255,this[u+1]=c>>>8,u+2},s.prototype.writeInt16BE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,2,32767,-32768),this[u]=c>>>8,this[u+1]=c&255,u+2},s.prototype.writeInt32LE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,4,2147483647,-2147483648),this[u]=c&255,this[u+1]=c>>>8,this[u+2]=c>>>16,this[u+3]=c>>>24,u+4},s.prototype.writeInt32BE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,4,2147483647,-2147483648),c<0&&(c=4294967295+c+1),this[u]=c>>>24,this[u+1]=c>>>16,this[u+2]=c>>>8,this[u+3]=c&255,u+4};function V(B,c,u,F,L,K){if(u+F>B.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function z(B,c,u,F,L){return c=+c,u=u>>>0,L||V(B,c,u,4),r.write(B,c,u,F,23,4),u+4}s.prototype.writeFloatLE=function(c,u,F){return z(this,c,u,!0,F)},s.prototype.writeFloatBE=function(c,u,F){return z(this,c,u,!1,F)};function se(B,c,u,F,L){return c=+c,u=u>>>0,L||V(B,c,u,8),r.write(B,c,u,F,52,8),u+8}s.prototype.writeDoubleLE=function(c,u,F){return se(this,c,u,!0,F)},s.prototype.writeDoubleBE=function(c,u,F){return se(this,c,u,!1,F)},s.prototype.copy=function(c,u,F,L){if(!s.isBuffer(c))throw new TypeError("argument should be a Buffer");if(F||(F=0),!L&&L!==0&&(L=this.length),u>=c.length&&(u=c.length),u||(u=0),L>0&&L<F&&(L=F),L===F||c.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),c.length-u<L-F&&(L=c.length-u+F);var K=L-F;return this===c&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,F,L):Uint8Array.prototype.set.call(c,this.subarray(F,L),u),K},s.prototype.fill=function(c,u,F,L){if(typeof c=="string"){if(typeof u=="string"?(L=u,u=0,F=this.length):typeof F=="string"&&(L=F,F=this.length),L!==void 0&&typeof L!="string")throw new TypeError("encoding must be a string");if(typeof L=="string"&&!s.isEncoding(L))throw new TypeError("Unknown encoding: "+L);if(c.length===1){var K=c.charCodeAt(0);(L==="utf8"&&K<128||L==="latin1")&&(c=K)}}else typeof c=="number"?c=c&255:typeof c=="boolean"&&(c=Number(c));if(u<0||this.length<u||this.length<F)throw new RangeError("Out of range index");if(F<=u)return this;u=u>>>0,F=F===void 0?this.length:F>>>0,c||(c=0);var Z;if(typeof c=="number")for(Z=u;Z<F;++Z)this[Z]=c;else{var ue=s.isBuffer(c)?c:s.from(c,L),ye=ue.length;if(ye===0)throw new TypeError('The value "'+c+'" is invalid for argument "value"');for(Z=0;Z<F-u;++Z)this[Z+u]=ue[Z%ye]}return this};var ce=/[^+/0-9A-Za-z-_]/g;function be(B){if(B=B.split("=")[0],B=B.trim().replace(ce,""),B.length<2)return"";for(;B.length%4!==0;)B=B+"=";return B}function fe(B,c){c=c||1/0;for(var u,F=B.length,L=null,K=[],Z=0;Z<F;++Z){if(u=B.charCodeAt(Z),u>55295&&u<57344){if(!L){if(u>56319){(c-=3)>-1&&K.push(239,191,189);continue}else if(Z+1===F){(c-=3)>-1&&K.push(239,191,189);continue}L=u;continue}if(u<56320){(c-=3)>-1&&K.push(239,191,189),L=u;continue}u=(L-55296<<10|u-56320)+65536}else L&&(c-=3)>-1&&K.push(239,191,189);if(L=null,u<128){if((c-=1)<0)break;K.push(u)}else if(u<2048){if((c-=2)<0)break;K.push(u>>6|192,u&63|128)}else if(u<65536){if((c-=3)<0)break;K.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((c-=4)<0)break;K.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return K}function Se(B){for(var c=[],u=0;u<B.length;++u)c.push(B.charCodeAt(u)&255);return c}function Fe(B,c){for(var u,F,L,K=[],Z=0;Z<B.length&&!((c-=2)<0);++Z)u=B.charCodeAt(Z),F=u>>8,L=u%256,K.push(L),K.push(F);return K}function Ke(B){return e.toByteArray(be(B))}function ze(B,c,u,F){for(var L=0;L<F&&!(L+u>=c.length||L>=B.length);++L)c[L+u]=B[L];return L}function Ee(B,c){return B instanceof c||B!=null&&B.constructor!=null&&B.constructor.name!=null&&B.constructor.name===c.name}function Me(B){return B!==B}var Dt=function(){for(var B="0123456789abcdef",c=new Array(256),u=0;u<16;++u)for(var F=u*16,L=0;L<16;++L)c[F+L]=B[u]+B[L];return c}()})(xe);var c1=xe.Buffer,u1=function(t){if(t instanceof Uint8Array){if(t.byteOffset===0&&t.byteLength===t.buffer.byteLength)return t.buffer;if(typeof t.buffer.slice=="function")return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(c1.isBuffer(t)){for(var e=new Uint8Array(t.length),r=t.length,n=0;n<r;n++)e[n]=t[n];return e.buffer}else throw new Error("Argument must be a Buffer")};const Br=A0(u1);var Va={exports:{}};(function(t,e){(function(){var r,n=0xdeadbeefcafe,i=(n&16777215)==15715070;function o(h,d,E){h!=null&&(typeof h=="number"?this.fromNumber(h,d,E):d==null&&typeof h!="string"?this.fromString(h,256):this.fromString(h,d))}function a(){return new o(null)}function s(h,d,E,R,j,Q){for(;--Q>=0;){var ne=d*this[h++]+E[R]+j;j=Math.floor(ne/67108864),E[R++]=ne&67108863}return j}function p(h,d,E,R,j,Q){for(var ne=d&32767,ie=d>>15;--Q>=0;){var _e=this[h]&32767,Ge=this[h++]>>15,at=ie*_e+Ge*ne;_e=ne*_e+((at&32767)<<15)+E[R]+(j&1073741823),j=(_e>>>30)+(at>>>15)+ie*Ge+(j>>>30),E[R++]=_e&1073741823}return j}function f(h,d,E,R,j,Q){for(var ne=d&16383,ie=d>>14;--Q>=0;){var _e=this[h]&16383,Ge=this[h++]>>14,at=ie*_e+Ge*ne;_e=ne*_e+((at&16383)<<14)+E[R]+j,j=(_e>>28)+(at>>14)+ie*Ge,E[R++]=_e&268435455}return j}var l=typeof navigator!="undefined";l&&i&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=p,r=30):l&&i&&navigator.appName!="Netscape"?(o.prototype.am=s,r=26):(o.prototype.am=f,r=28),o.prototype.DB=r,o.prototype.DM=(1<<r)-1,o.prototype.DV=1<<r;var v=52;o.prototype.FV=Math.pow(2,v),o.prototype.F1=v-r,o.prototype.F2=2*r-v;var x="0123456789abcdefghijklmnopqrstuvwxyz",A=new Array,y,m;for(y=48,m=0;m<=9;++m)A[y++]=m;for(y=97,m=10;m<36;++m)A[y++]=m;for(y=65,m=10;m<36;++m)A[y++]=m;function g(h){return x.charAt(h)}function D(h,d){var E=A[h.charCodeAt(d)];return E==null?-1:E}function C(h){for(var d=this.t-1;d>=0;--d)h[d]=this[d];h.t=this.t,h.s=this.s}function w(h){this.t=1,this.s=h<0?-1:0,h>0?this[0]=h:h<-1?this[0]=h+this.DV:this.t=0}function b(h){var d=a();return d.fromInt(h),d}function _(h,d){var E;if(d==16)E=4;else if(d==8)E=3;else if(d==256)E=8;else if(d==2)E=1;else if(d==32)E=5;else if(d==4)E=2;else{this.fromRadix(h,d);return}this.t=0,this.s=0;for(var R=h.length,j=!1,Q=0;--R>=0;){var ne=E==8?h[R]&255:D(h,R);if(ne<0){h.charAt(R)=="-"&&(j=!0);continue}j=!1,Q==0?this[this.t++]=ne:Q+E>this.DB?(this[this.t-1]|=(ne&(1<<this.DB-Q)-1)<<Q,this[this.t++]=ne>>this.DB-Q):this[this.t-1]|=ne<<Q,Q+=E,Q>=this.DB&&(Q-=this.DB)}E==8&&h[0]&128&&(this.s=-1,Q>0&&(this[this.t-1]|=(1<<this.DB-Q)-1<<Q)),this.clamp(),j&&o.ZERO.subTo(this,this)}function T(){for(var h=this.s&this.DM;this.t>0&&this[this.t-1]==h;)--this.t}function k(h){if(this.s<0)return"-"+this.negate().toString(h);var d;if(h==16)d=4;else if(h==8)d=3;else if(h==2)d=1;else if(h==32)d=5;else if(h==4)d=2;else return this.toRadix(h);var E=(1<<d)-1,R,j=!1,Q="",ne=this.t,ie=this.DB-ne*this.DB%d;if(ne-- >0)for(ie<this.DB&&(R=this[ne]>>ie)>0&&(j=!0,Q=g(R));ne>=0;)ie<d?(R=(this[ne]&(1<<ie)-1)<<d-ie,R|=this[--ne]>>(ie+=this.DB-d)):(R=this[ne]>>(ie-=d)&E,ie<=0&&(ie+=this.DB,--ne)),R>0&&(j=!0),j&&(Q+=g(R));return j?Q:"0"}function q(){var h=a();return o.ZERO.subTo(this,h),h}function X(){return this.s<0?this.negate():this}function I(h){var d=this.s-h.s;if(d!=0)return d;var E=this.t;if(d=E-h.t,d!=0)return this.s<0?-d:d;for(;--E>=0;)if((d=this[E]-h[E])!=0)return d;return 0}function P(h){var d=1,E;return(E=h>>>16)!=0&&(h=E,d+=16),(E=h>>8)!=0&&(h=E,d+=8),(E=h>>4)!=0&&(h=E,d+=4),(E=h>>2)!=0&&(h=E,d+=2),(E=h>>1)!=0&&(h=E,d+=1),d}function G(){return this.t<=0?0:this.DB*(this.t-1)+P(this[this.t-1]^this.s&this.DM)}function S(h,d){var E;for(E=this.t-1;E>=0;--E)d[E+h]=this[E];for(E=h-1;E>=0;--E)d[E]=0;d.t=this.t+h,d.s=this.s}function N(h,d){for(var E=h;E<this.t;++E)d[E-h]=this[E];d.t=Math.max(this.t-h,0),d.s=this.s}function M(h,d){var E=h%this.DB,R=this.DB-E,j=(1<<R)-1,Q=Math.floor(h/this.DB),ne=this.s<<E&this.DM,ie;for(ie=this.t-1;ie>=0;--ie)d[ie+Q+1]=this[ie]>>R|ne,ne=(this[ie]&j)<<E;for(ie=Q-1;ie>=0;--ie)d[ie]=0;d[Q]=ne,d.t=this.t+Q+1,d.s=this.s,d.clamp()}function H(h,d){d.s=this.s;var E=Math.floor(h/this.DB);if(E>=this.t){d.t=0;return}var R=h%this.DB,j=this.DB-R,Q=(1<<R)-1;d[0]=this[E]>>R;for(var ne=E+1;ne<this.t;++ne)d[ne-E-1]|=(this[ne]&Q)<<j,d[ne-E]=this[ne]>>R;R>0&&(d[this.t-E-1]|=(this.s&Q)<<j),d.t=this.t-E,d.clamp()}function Y(h,d){for(var E=0,R=0,j=Math.min(h.t,this.t);E<j;)R+=this[E]-h[E],d[E++]=R&this.DM,R>>=this.DB;if(h.t<this.t){for(R-=h.s;E<this.t;)R+=this[E],d[E++]=R&this.DM,R>>=this.DB;R+=this.s}else{for(R+=this.s;E<h.t;)R-=h[E],d[E++]=R&this.DM,R>>=this.DB;R-=h.s}d.s=R<0?-1:0,R<-1?d[E++]=this.DV+R:R>0&&(d[E++]=R),d.t=E,d.clamp()}function W(h,d){var E=this.abs(),R=h.abs(),j=E.t;for(d.t=j+R.t;--j>=0;)d[j]=0;for(j=0;j<R.t;++j)d[j+E.t]=E.am(0,R[j],d,j,0,E.t);d.s=0,d.clamp(),this.s!=h.s&&o.ZERO.subTo(d,d)}function ee(h){for(var d=this.abs(),E=h.t=2*d.t;--E>=0;)h[E]=0;for(E=0;E<d.t-1;++E){var R=d.am(E,d[E],h,2*E,0,1);(h[E+d.t]+=d.am(E+1,2*d[E],h,2*E+1,R,d.t-E-1))>=d.DV&&(h[E+d.t]-=d.DV,h[E+d.t+1]=1)}h.t>0&&(h[h.t-1]+=d.am(E,d[E],h,2*E,0,1)),h.s=0,h.clamp()}function J(h,d,E){var R=h.abs();if(!(R.t<=0)){var j=this.abs();if(j.t<R.t){d!=null&&d.fromInt(0),E!=null&&this.copyTo(E);return}E==null&&(E=a());var Q=a(),ne=this.s,ie=h.s,_e=this.DB-P(R[R.t-1]);_e>0?(R.lShiftTo(_e,Q),j.lShiftTo(_e,E)):(R.copyTo(Q),j.copyTo(E));var Ge=Q.t,at=Q[Ge-1];if(at!=0){var it=at*(1<<this.F1)+(Ge>1?Q[Ge-2]>>this.F2:0),wt=this.FV/it,m0=(1<<this.F1)/it,lt=1<<this.F2,ht=E.t,g0=ht-Ge,Tt=d==null?a():d;for(Q.dlShiftTo(g0,Tt),E.compareTo(Tt)>=0&&(E[E.t++]=1,E.subTo(Tt,E)),o.ONE.dlShiftTo(Ge,Tt),Tt.subTo(Q,Q);Q.t<Ge;)Q[Q.t++]=0;for(;--g0>=0;){var pi=E[--ht]==at?this.DM:Math.floor(E[ht]*wt+(E[ht-1]+lt)*m0);if((E[ht]+=Q.am(0,pi,E,g0,0,Ge))<pi)for(Q.dlShiftTo(g0,Tt),E.subTo(Tt,E);E[ht]<--pi;)E.subTo(Tt,E)}d!=null&&(E.drShiftTo(Ge,d),ne!=ie&&o.ZERO.subTo(d,d)),E.t=Ge,E.clamp(),_e>0&&E.rShiftTo(_e,E),ne<0&&o.ZERO.subTo(E,E)}}}function O(h){var d=a();return this.abs().divRemTo(h,null,d),this.s<0&&d.compareTo(o.ZERO)>0&&h.subTo(d,d),d}function U(h){this.m=h}function V(h){return h.s<0||h.compareTo(this.m)>=0?h.mod(this.m):h}function z(h){return h}function se(h){h.divRemTo(this.m,null,h)}function ce(h,d,E){h.multiplyTo(d,E),this.reduce(E)}function be(h,d){h.squareTo(d),this.reduce(d)}U.prototype.convert=V,U.prototype.revert=z,U.prototype.reduce=se,U.prototype.mulTo=ce,U.prototype.sqrTo=be;function fe(){if(this.t<1)return 0;var h=this[0];if(!(h&1))return 0;var d=h&3;return d=d*(2-(h&15)*d)&15,d=d*(2-(h&255)*d)&255,d=d*(2-((h&65535)*d&65535))&65535,d=d*(2-h*d%this.DV)%this.DV,d>0?this.DV-d:-d}function Se(h){this.m=h,this.mp=h.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<h.DB-15)-1,this.mt2=2*h.t}function Fe(h){var d=a();return h.abs().dlShiftTo(this.m.t,d),d.divRemTo(this.m,null,d),h.s<0&&d.compareTo(o.ZERO)>0&&this.m.subTo(d,d),d}function Ke(h){var d=a();return h.copyTo(d),this.reduce(d),d}function ze(h){for(;h.t<=this.mt2;)h[h.t++]=0;for(var d=0;d<this.m.t;++d){var E=h[d]&32767,R=E*this.mpl+((E*this.mph+(h[d]>>15)*this.mpl&this.um)<<15)&h.DM;for(E=d+this.m.t,h[E]+=this.m.am(0,R,h,d,0,this.m.t);h[E]>=h.DV;)h[E]-=h.DV,h[++E]++}h.clamp(),h.drShiftTo(this.m.t,h),h.compareTo(this.m)>=0&&h.subTo(this.m,h)}function Ee(h,d){h.squareTo(d),this.reduce(d)}function Me(h,d,E){h.multiplyTo(d,E),this.reduce(E)}Se.prototype.convert=Fe,Se.prototype.revert=Ke,Se.prototype.reduce=ze,Se.prototype.mulTo=Me,Se.prototype.sqrTo=Ee;function Dt(){return(this.t>0?this[0]&1:this.s)==0}function B(h,d){if(h>4294967295||h<1)return o.ONE;var E=a(),R=a(),j=d.convert(this),Q=P(h)-1;for(j.copyTo(E);--Q>=0;)if(d.sqrTo(E,R),(h&1<<Q)>0)d.mulTo(R,j,E);else{var ne=E;E=R,R=ne}return d.revert(E)}function c(h,d){var E;return h<256||d.isEven()?E=new U(d):E=new Se(d),this.exp(h,E)}o.prototype.copyTo=C,o.prototype.fromInt=w,o.prototype.fromString=_,o.prototype.clamp=T,o.prototype.dlShiftTo=S,o.prototype.drShiftTo=N,o.prototype.lShiftTo=M,o.prototype.rShiftTo=H,o.prototype.subTo=Y,o.prototype.multiplyTo=W,o.prototype.squareTo=ee,o.prototype.divRemTo=J,o.prototype.invDigit=fe,o.prototype.isEven=Dt,o.prototype.exp=B,o.prototype.toString=k,o.prototype.negate=q,o.prototype.abs=X,o.prototype.compareTo=I,o.prototype.bitLength=G,o.prototype.mod=O,o.prototype.modPowInt=c,o.ZERO=b(0),o.ONE=b(1);function u(){var h=a();return this.copyTo(h),h}function F(){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 L(){return this.t==0?this.s:this[0]<<24>>24}function K(){return this.t==0?this.s:this[0]<<16>>16}function Z(h){return Math.floor(Math.LN2*this.DB/Math.log(h))}function ue(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function ye(h){if(h==null&&(h=10),this.signum()==0||h<2||h>36)return"0";var d=this.chunkSize(h),E=Math.pow(h,d),R=b(E),j=a(),Q=a(),ne="";for(this.divRemTo(R,j,Q);j.signum()>0;)ne=(E+Q.intValue()).toString(h).substr(1)+ne,j.divRemTo(R,j,Q);return Q.intValue().toString(h)+ne}function we(h,d){this.fromInt(0),d==null&&(d=10);for(var E=this.chunkSize(d),R=Math.pow(d,E),j=!1,Q=0,ne=0,ie=0;ie<h.length;++ie){var _e=D(h,ie);if(_e<0){h.charAt(ie)=="-"&&this.signum()==0&&(j=!0);continue}ne=d*ne+_e,++Q>=E&&(this.dMultiply(R),this.dAddOffset(ne,0),Q=0,ne=0)}Q>0&&(this.dMultiply(Math.pow(d,Q)),this.dAddOffset(ne,0)),j&&o.ZERO.subTo(this,this)}function De(h,d,E){if(typeof d=="number")if(h<2)this.fromInt(1);else for(this.fromNumber(h,E),this.testBit(h-1)||this.bitwiseTo(o.ONE.shiftLeft(h-1),ir,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(d);)this.dAddOffset(2,0),this.bitLength()>h&&this.subTo(o.ONE.shiftLeft(h-1),this);else{var R=new Array,j=h&7;R.length=(h>>3)+1,d.nextBytes(R),j>0?R[0]&=(1<<j)-1:R[0]=0,this.fromString(R,256)}}function Ae(){var h=this.t,d=new Array;d[0]=this.s;var E=this.DB-h*this.DB%8,R,j=0;if(h-- >0)for(E<this.DB&&(R=this[h]>>E)!=(this.s&this.DM)>>E&&(d[j++]=R|this.s<<this.DB-E);h>=0;)E<8?(R=(this[h]&(1<<E)-1)<<8-E,R|=this[--h]>>(E+=this.DB-8)):(R=this[h]>>(E-=8)&255,E<=0&&(E+=this.DB,--h)),R&128&&(R|=-256),j==0&&(this.s&128)!=(R&128)&&++j,(j>0||R!=this.s)&&(d[j++]=R);return d}function _t(h){return this.compareTo(h)==0}function qt(h){return this.compareTo(h)<0?this:h}function __$t__(h){return this.compareTo(h)>0?this:h}function St(h,d,E){var R,j,Q=Math.min(h.t,this.t);for(R=0;R<Q;++R)E[R]=d(this[R],h[R]);if(h.t<this.t){for(j=h.s&this.DM,R=Q;R<this.t;++R)E[R]=d(this[R],j);E.t=this.t}else{for(j=this.s&this.DM,R=Q;R<h.t;++R)E[R]=d(j,h[R]);E.t=h.t}E.s=d(this.s,h.s),E.clamp()}function zt(h,d){return h&d}function ri(h){var d=a();return this.bitwiseTo(h,zt,d),d}function ir(h,d){return h|d}function c0(h){var d=a();return this.bitwiseTo(h,ir,d),d}function u0(h,d){return h^d}function ni(h){var d=a();return this.bitwiseTo(h,u0,d),d}function Fr(h,d){return h&~d}function ii(h){var d=a();return this.bitwiseTo(h,Fr,d),d}function l0(){for(var h=a(),d=0;d<this.t;++d)h[d]=this.DM&~this[d];return h.t=this.t,h.s=~this.s,h}function oi(h){var d=a();return h<0?this.rShiftTo(-h,d):this.lShiftTo(h,d),d}function h0(h){var d=a();return h<0?this.lShiftTo(-h,d):this.rShiftTo(h,d),d}function ai(h){if(h==0)return-1;var d=0;return h&65535||(h>>=16,d+=16),h&255||(h>>=8,d+=8),h&15||(h>>=4,d+=4),h&3||(h>>=2,d+=2),h&1||++d,d}function si(){for(var h=0;h<this.t;++h)if(this[h]!=0)return h*this.DB+ai(this[h]);return this.s<0?this.t*this.DB:-1}function fi(h){for(var d=0;h!=0;)h&=h-1,++d;return d}function x0(){for(var h=0,d=this.s&this.DM,E=0;E<this.t;++E)h+=fi(this[E]^d);return h}function ci(h){var d=Math.floor(h/this.DB);return d>=this.t?this.s!=0:(this[d]&1<<h%this.DB)!=0}function ui(h,d){var E=o.ONE.shiftLeft(h);return this.bitwiseTo(E,d,E),E}function d0(h){return this.changeBit(h,ir)}function li(h){return this.changeBit(h,Fr)}function p0(h){return this.changeBit(h,u0)}function Ye(h,d){for(var E=0,R=0,j=Math.min(h.t,this.t);E<j;)R+=this[E]+h[E],d[E++]=R&this.DM,R>>=this.DB;if(h.t<this.t){for(R+=h.s;E<this.t;)R+=this[E],d[E++]=R&this.DM,R>>=this.DB;R+=this.s}else{for(R+=this.s;E<h.t;)R+=h[E],d[E++]=R&this.DM,R>>=this.DB;R+=h.s}d.s=R<0?-1:0,R>0?d[E++]=R:R<-1&&(d[E++]=this.DV+R),d.t=E,d.clamp()}function At(h){var d=a();return this.addTo(h,d),d}function v0(h){var d=a();return this.subTo(h,d),d}function hi(h){var d=a();return this.multiplyTo(h,d),d}function H1(){var h=a();return this.squareTo(h),h}function q1(h){var d=a();return this.divRemTo(h,d,null),d}function $1(h){var d=a();return this.divRemTo(h,null,d),d}function z1(h){var d=a(),E=a();return this.divRemTo(h,d,E),new Array(d,E)}function W1(h){this[this.t]=this.am(0,h-1,this,0,0,this.t),++this.t,this.clamp()}function G1(h,d){if(h!=0){for(;this.t<=d;)this[this.t++]=0;for(this[d]+=h;this[d]>=this.DV;)this[d]-=this.DV,++d>=this.t&&(this[this.t++]=0),++this[d]}}function Dr(){}function Rs(h){return h}function V1(h,d,E){h.multiplyTo(d,E)}function K1(h,d){h.squareTo(d)}Dr.prototype.convert=Rs,Dr.prototype.revert=Rs,Dr.prototype.mulTo=V1,Dr.prototype.sqrTo=K1;function j1(h){return this.exp(h,new Dr)}function X1(h,d,E){var R=Math.min(this.t+h.t,d);for(E.s=0,E.t=R;R>0;)E[--R]=0;var j;for(j=E.t-this.t;R<j;++R)E[R+this.t]=this.am(0,h[R],E,R,0,this.t);for(j=Math.min(h.t,d);R<j;++R)this.am(0,h[R],E,R,0,d-R);E.clamp()}function Y1(h,d,E){--d;var R=E.t=this.t+h.t-d;for(E.s=0;--R>=0;)E[R]=0;for(R=Math.max(d-this.t,0);R<h.t;++R)E[this.t+R-d]=this.am(d-R,h[R],E,0,0,this.t+R-d);E.clamp(),E.drShiftTo(1,E)}function Wt(h){this.r2=a(),this.q3=a(),o.ONE.dlShiftTo(2*h.t,this.r2),this.mu=this.r2.divide(h),this.m=h}function Z1(h){if(h.s<0||h.t>2*this.m.t)return h.mod(this.m);if(h.compareTo(this.m)<0)return h;var d=a();return h.copyTo(d),this.reduce(d),d}function Q1(h){return h}function J1(h){for(h.drShiftTo(this.m.t-1,this.r2),h.t>this.m.t+1&&(h.t=this.m.t+1,h.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);h.compareTo(this.r2)<0;)h.dAddOffset(1,this.m.t+1);for(h.subTo(this.r2,h);h.compareTo(this.m)>=0;)h.subTo(this.m,h)}function ex(h,d){h.squareTo(d),this.reduce(d)}function tx(h,d,E){h.multiplyTo(d,E),this.reduce(E)}Wt.prototype.convert=Z1,Wt.prototype.revert=Q1,Wt.prototype.reduce=J1,Wt.prototype.mulTo=tx,Wt.prototype.sqrTo=ex;function rx(h,d){var E=h.bitLength(),R,j=b(1),Q;if(E<=0)return j;E<18?R=1:E<48?R=3:E<144?R=4:E<768?R=5:R=6,E<8?Q=new U(d):d.isEven()?Q=new Wt(d):Q=new Se(d);var ne=new Array,ie=3,_e=R-1,Ge=(1<<R)-1;if(ne[1]=Q.convert(this),R>1){var at=a();for(Q.sqrTo(ne[1],at);ie<=Ge;)ne[ie]=a(),Q.mulTo(at,ne[ie-2],ne[ie]),ie+=2}var it=h.t-1,wt,m0=!0,lt=a(),ht;for(E=P(h[it])-1;it>=0;){for(E>=_e?wt=h[it]>>E-_e&Ge:(wt=(h[it]&(1<<E+1)-1)<<_e-E,it>0&&(wt|=h[it-1]>>this.DB+E-_e)),ie=R;!(wt&1);)wt>>=1,--ie;if((E-=ie)<0&&(E+=this.DB,--it),m0)ne[wt].copyTo(j),m0=!1;else{for(;ie>1;)Q.sqrTo(j,lt),Q.sqrTo(lt,j),ie-=2;ie>0?Q.sqrTo(j,lt):(ht=j,j=lt,lt=ht),Q.mulTo(lt,ne[wt],j)}for(;it>=0&&!(h[it]&1<<E);)Q.sqrTo(j,lt),ht=j,j=lt,lt=ht,--E<0&&(E=this.DB-1,--it)}return Q.revert(j)}function nx(h){var d=this.s<0?this.negate():this.clone(),E=h.s<0?h.negate():h.clone();if(d.compareTo(E)<0){var R=d;d=E,E=R}var j=d.getLowestSetBit(),Q=E.getLowestSetBit();if(Q<0)return d;for(j<Q&&(Q=j),Q>0&&(d.rShiftTo(Q,d),E.rShiftTo(Q,E));d.signum()>0;)(j=d.getLowestSetBit())>0&&d.rShiftTo(j,d),(j=E.getLowestSetBit())>0&&E.rShiftTo(j,E),d.compareTo(E)>=0?(d.subTo(E,d),d.rShiftTo(1,d)):(E.subTo(d,E),E.rShiftTo(1,E));return Q>0&&E.lShiftTo(Q,E),E}function ix(h){if(h<=0)return 0;var d=this.DV%h,E=this.s<0?h-1:0;if(this.t>0)if(d==0)E=this[0]%h;else for(var R=this.t-1;R>=0;--R)E=(d*E+this[R])%h;return E}function ox(h){var d=h.isEven();if(this.isEven()&&d||h.signum()==0)return o.ZERO;for(var E=h.clone(),R=this.clone(),j=b(1),Q=b(0),ne=b(0),ie=b(1);E.signum()!=0;){for(;E.isEven();)E.rShiftTo(1,E),d?((!j.isEven()||!Q.isEven())&&(j.addTo(this,j),Q.subTo(h,Q)),j.rShiftTo(1,j)):Q.isEven()||Q.subTo(h,Q),Q.rShiftTo(1,Q);for(;R.isEven();)R.rShiftTo(1,R),d?((!ne.isEven()||!ie.isEven())&&(ne.addTo(this,ne),ie.subTo(h,ie)),ne.rShiftTo(1,ne)):ie.isEven()||ie.subTo(h,ie),ie.rShiftTo(1,ie);E.compareTo(R)>=0?(E.subTo(R,E),d&&j.subTo(ne,j),Q.subTo(ie,Q)):(R.subTo(E,R),d&&ne.subTo(j,ne),ie.subTo(Q,ie))}if(R.compareTo(o.ONE)!=0)return o.ZERO;if(ie.compareTo(h)>=0)return ie.subtract(h);if(ie.signum()<0)ie.addTo(h,ie);else return ie;return ie.signum()<0?ie.add(h):ie}var Ze=[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],ax=(1<<26)/Ze[Ze.length-1];function sx(h){var d,E=this.abs();if(E.t==1&&E[0]<=Ze[Ze.length-1]){for(d=0;d<Ze.length;++d)if(E[0]==Ze[d])return!0;return!1}if(E.isEven())return!1;for(d=1;d<Ze.length;){for(var R=Ze[d],j=d+1;j<Ze.length&&R<ax;)R*=Ze[j++];for(R=E.modInt(R);d<j;)if(R%Ze[d++]==0)return!1}return E.millerRabin(h)}function fx(h){var d=this.subtract(o.ONE),E=d.getLowestSetBit();if(E<=0)return!1;var R=d.shiftRight(E);h=h+1>>1,h>Ze.length&&(h=Ze.length);for(var j=a(),Q=0;Q<h;++Q){j.fromInt(Ze[Math.floor(Math.random()*Ze.length)]);var ne=j.modPow(R,this);if(ne.compareTo(o.ONE)!=0&&ne.compareTo(d)!=0){for(var ie=1;ie++<E&&ne.compareTo(d)!=0;)if(ne=ne.modPowInt(2,this),ne.compareTo(o.ONE)==0)return!1;if(ne.compareTo(d)!=0)return!1}}return!0}o.prototype.chunkSize=Z,o.prototype.toRadix=ye,o.prototype.fromRadix=we,o.prototype.fromNumber=De,o.prototype.bitwiseTo=St,o.prototype.changeBit=ui,o.prototype.addTo=Ye,o.prototype.dMultiply=W1,o.prototype.dAddOffset=G1,o.prototype.multiplyLowerTo=X1,o.prototype.multiplyUpperTo=Y1,o.prototype.modInt=ix,o.prototype.millerRabin=fx,o.prototype.clone=u,o.prototype.intValue=F,o.prototype.byteValue=L,o.prototype.shortValue=K,o.prototype.signum=ue,o.prototype.toByteArray=Ae,o.prototype.equals=_t,o.prototype.min=qt,o.prototype.max=__$t__,o.prototype.and=ri,o.prototype.or=c0,o.prototype.xor=ni,o.prototype.andNot=ii,o.prototype.not=l0,o.prototype.shiftLeft=oi,o.prototype.shiftRight=h0,o.prototype.getLowestSetBit=si,o.prototype.bitCount=x0,o.prototype.testBit=ci,o.prototype.setBit=d0,o.prototype.clearBit=li,o.prototype.flipBit=p0,o.prototype.add=At,o.prototype.subtract=v0,o.prototype.multiply=hi,o.prototype.divide=q1,o.prototype.remainder=$1,o.prototype.divideAndRemainder=z1,o.prototype.modPow=rx,o.prototype.modInverse=ox,o.prototype.pow=j1,o.prototype.gcd=nx,o.prototype.isProbablePrime=sx,o.prototype.square=H1,o.prototype.Barrett=Wt;var y0,nt,We;function cx(h){nt[We++]^=h&255,nt[We++]^=h>>8&255,nt[We++]^=h>>16&255,nt[We++]^=h>>24&255,We>=di&&(We-=di)}function Os(){cx(new Date().getTime())}if(nt==null){nt=new Array,We=0;var ut;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var ks=new Uint8Array(32);for(window.crypto.getRandomValues(ks),ut=0;ut<32;++ut)nt[We++]=ks[ut]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var Ps=window.crypto.random(32);for(ut=0;ut<Ps.length;++ut)nt[We++]=Ps.charCodeAt(ut)&255}}for(;We<di;)ut=Math.floor(65536*Math.random()),nt[We++]=ut>>>8,nt[We++]=ut&255;We=0,Os()}function ux(){if(y0==null){for(Os(),y0=dx(),y0.init(nt),We=0;We<nt.length;++We)nt[We]=0;We=0}return y0.next()}function lx(h){var d;for(d=0;d<h.length;++d)h[d]=ux()}function Ms(){}Ms.prototype.nextBytes=lx;function xi(){this.i=0,this.j=0,this.S=new Array}function hx(h){var d,E,R;for(d=0;d<256;++d)this.S[d]=d;for(E=0,d=0;d<256;++d)E=E+this.S[d]+h[d%h.length]&255,R=this.S[d],this.S[d]=this.S[E],this.S[E]=R;this.i=0,this.j=0}function xx(){var h;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,h=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=h,this.S[h+this.S[this.i]&255]}xi.prototype.init=hx,xi.prototype.next=xx;function dx(){return new xi}var di=256;t.exports={default:o,BigInteger:o,SecureRandom:Ms}}).call(le)})(Va);var ge=Va.exports,l1=ge.BigInteger.prototype.Barrett;function Xe(t,e){this.x=e,this.q=t}function tt(t,e,r,n){this.curve=t,this.x=e,this.y=r,this.z=n==null?ge.BigInteger.ONE:n,this.zinv=null}function mt(t,e,r){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(r),this.infinity=new tt(this,null,null),this.reducer=new l1(this.q)}Xe.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},Xe.prototype.toBigInteger=function(){return this.x},Xe.prototype.negate=function(){return new Xe(this.q,this.x.negate().mod(this.q))},Xe.prototype.add=function(t){return new Xe(this.q,this.x.add(t.toBigInteger()).mod(this.q))},Xe.prototype.subtract=function(t){return new Xe(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},Xe.prototype.multiply=function(t){return new Xe(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},Xe.prototype.square=function(){return new Xe(this.q,this.x.square().mod(this.q))},Xe.prototype.divide=function(t){return new Xe(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},tt.prototype.getX=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var t=this.x.toBigInteger().multiply(this.zinv);return this.curve.reduce(t),this.curve.fromBigInteger(t)},tt.prototype.getY=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var t=this.y.toBigInteger().multiply(this.zinv);return this.curve.reduce(t),this.curve.fromBigInteger(t)},tt.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(ge.BigInteger.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(ge.BigInteger.ZERO))},tt.prototype.isInfinity=function(){return this.x==null&&this.y==null||this.z.equals(ge.BigInteger.ZERO)&&!this.y.toBigInteger().equals(ge.BigInteger.ZERO)},tt.prototype.negate=function(){return new tt(this.curve,this.x,this.y.negate(),this.z)},tt.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),r=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(ge.BigInteger.ZERO.equals(r))return ge.BigInteger.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new ge.BigInteger("3"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),a=(t.x.toBigInteger(),t.y.toBigInteger(),r.square()),s=a.multiply(r),p=i.multiply(a),f=e.square().multiply(this.z),l=f.subtract(p.shiftLeft(1)).multiply(t.z).subtract(s).multiply(r).mod(this.curve.q),v=p.multiply(n).multiply(e).subtract(o.multiply(s)).subtract(f.multiply(e)).multiply(t.z).add(e.multiply(s)).mod(this.curve.q),x=s.multiply(this.z).multiply(t.z).mod(this.curve.q);return new tt(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(v),x)},tt.prototype.twice=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var t=new ge.BigInteger("3"),e=this.x.toBigInteger(),r=this.y.toBigInteger(),n=r.multiply(this.z),i=n.multiply(r).mod(this.curve.q),o=this.curve.a.toBigInteger(),a=e.square().multiply(t);ge.BigInteger.ZERO.equals(o)||(a=a.add(this.z.square().multiply(o)));var s=(a=a.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(n).mod(this.curve.q),p=a.multiply(t).multiply(e).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(a.square().multiply(a)).mod(this.curve.q),f=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new tt(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(p),f)},tt.prototype.multiply=function(t){if(this.isInfinity())return this;if(t.signum()==0)return this.curve.getInfinity();var e,r=t,n=r.multiply(new ge.BigInteger("3")),i=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var a=n.testBit(e);a!=r.testBit(e)&&(o=o.add(a?this:i))}return o},tt.prototype.multiplyTwo=function(t,e,r){var n;n=t.bitLength()>r.bitLength()?t.bitLength()-1:r.bitLength()-1;for(var i=this.curve.getInfinity(),o=this.add(e);n>=0;)i=i.twice(),t.testBit(n)?i=r.testBit(n)?i.add(o):i.add(this):r.testBit(n)&&(i=i.add(e)),--n;return i},mt.prototype.getQ=function(){return this.q},mt.prototype.getA=function(){return this.a},mt.prototype.getB=function(){return this.b},mt.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},mt.prototype.getInfinity=function(){return this.infinity},mt.prototype.fromBigInteger=function(t){return new Xe(this.q,t)},mt.prototype.reduce=function(t){this.reducer.reduce(t)},mt.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,r=t.substr(2,e),n=t.substr(e+2,e);return new tt(this,this.fromBigInteger(new ge.BigInteger(r,16)),this.fromBigInteger(new ge.BigInteger(n,16)));default:return null}},mt.prototype.encodePointHex=function(t){if(t.isInfinity())return"00";var e=t.getX().toBigInteger().toString(16),r=t.getY().toBigInteger().toString(16),n=this.getQ().toString(16).length;for(n%2!=0&&n++;e.length<n;)e="0"+e;for(;r.length<n;)r="0"+r;return"04"+e+r};var qe=function(t,e){return t<<(e%=32)|t>>>32-e},gt=function(t,e){var r=e-t.length;return(r>0?"0".repeat(r):"")+t},h1=function(t){return t<16?2043430169:2055708042},x1=function(t,e,r,n){return n<16?t^e^r:t&e|t&r|e&r},d1=function(t,e,r,n){return n<16?t^e^r:t&e|~t&r},p1=function(t,e,r){for(var n,i,o,a,s,p=function(C){var w,b=new Array(132);C.forEach(function(k,q){b[q]=k});for(var _=16;_<68;_++)b[_]=(w=b[_-16]^b[_-9]^qe(b[_-3],15))^qe(w,15)^qe(w,23)^qe(b[_-13],7)^b[_-6];for(var T=0;T<64;T++)b[T+68]=b[T]^b[T+4];return b}(e),f=t[0],l=t[1],v=t[2],x=t[3],A=t[4],y=t[5],m=t[6],g=t[7],D=0;D<64;D++)i=(n=qe(qe(f,12)+A+qe(h1(D),D),7))^qe(f,12),o=x1(f,l,v,D)+x+i+p[D+68],a=d1(A,y,m,D)+g+n+p[D],x=v,v=qe(l,9),l=f,f=o,g=m,m=qe(y,19),y=A,A=(s=a)^qe(s,9)^qe(s,17);return[f^t[0],l^t[1],v^t[2],x^t[3],A^t[4],y^t[5],m^t[6],g^t[7]]},ei=function(t,e,r){if(typeof t=="string"?t=xe.Buffer.from(t,e||"utf8"):t instanceof ArrayBuffer&&(t=xe.Buffer.from(t)),!xe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var n,i,o,a,s,p;n=t,i=xe.Buffer.alloc(1,128),a=xe.Buffer.alloc(o=(o=n.length%64)>=56?64-o%56-1:56-o-1,0),s=xe.Buffer.alloc(8),p=8*n.length,s.writeUInt32BE(Math.floor(p/Math.pow(2,32)),0),s.writeUInt32BE(p%Math.pow(2,32),4);for(var f=(t=xe.Buffer.concat([n,i,a,s],n.length+1+o+8)).length/64,l=new Array(f),v=0;v<f;v++){l[v]=new Array(16);for(var x=0;x<16;x++)l[v][x]=t.readUInt32BE(64*v+4*x)}var A=new Array(f);A[0]=[1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214];for(var y=0;y<f;y++)A[y+1]=p1(A[y],l[y]);var m=xe.Buffer.alloc(32);return A[f].forEach(function(g,D){return m.writeInt32BE(g,4*D)}),r?m.toString(r):Br(m)},Ka=new ge.SecureRandom,ti=function(){var t=new mt(new ge.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),new ge.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),new ge.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16)),e=t.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:t,G:e,n:new ge.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}(),ja=ti.curve,Xa=ti.G,r0=ti.n;function Ya(t,e){for(var r=[],n=Math.ceil(e/32),i=e%32,o=1;o<=n;o++){var a=xe.Buffer.allocUnsafe(4);a.writeUInt32BE(o);var s=ei(xe.Buffer.concat([t,a]));r.push(o===n&&i?xe.Buffer.from(s).slice(0,i):xe.Buffer.from(s))}return xe.Buffer.concat(r,e)}var v1={__proto__:null,constants:{C1C2C3:0,C1C3C2:1,PC:"04"},generateKeyPair:function(){var t=new ge.BigInteger(r0.bitLength(),Ka).mod(r0.subtract(new ge.BigInteger("2"))).add(ge.BigInteger.ONE),e=gt(t.toString(16),64),r=Xa.multiply(t);return{privateKey:e,publicKey:"04"+gt(r.getX().toBigInteger().toString(16),64)+gt(r.getY().toBigInteger().toString(16),64)}},encrypt:function(t,e,r){var n=r||{},i=n.mode,o=i===void 0?1:i,a=n.outputEncoding,s=n.pc;if(typeof t=="string"?t=xe.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=xe.Buffer.from(t)),!xe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var p=new ge.BigInteger(r0.bitLength(),Ka).mod(r0.subtract(ge.BigInteger.ONE)).add(ge.BigInteger.ONE),f=Xa.multiply(p),l=gt(f.getX().toBigInteger().toString(16),64)+gt(f.getY().toBigInteger().toString(16),64),v=ja.decodePointHex(e).multiply(p),x=gt(v.getX().toBigInteger().toString(16),64),A=gt(v.getY().toBigInteger().toString(16),64),y=Ya(xe.Buffer.from(x+A,"hex"),t.length),m=gt(new ge.BigInteger(t.toString("hex"),16).xor(new ge.BigInteger(y.toString("hex"),16)).toString(16),2*t.length),g=ei(x+t.toString("hex")+A,"hex","hex"),D=xe.Buffer.from((s?"04":"")+(o===0?l+m+g:l+g+m),"hex");return a?D.toString(a):Br(D)},decrypt:function(t,e,r){var n=r||{},i=n.mode,o=i===void 0?1:i,a=n.outputEncoding,s=n.pc;if(typeof t=="string"?t=xe.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=xe.Buffer.from(t)),!xe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var p=(t=s?t.slice(1):t).slice(0,32).toString("hex"),f=t.slice(32,64).toString("hex"),l=ja.decodePointHex("04"+p+f).multiply(new ge.BigInteger(e,16)),v=gt(l.getX().toBigInteger().toString(16),64),x=gt(l.getY().toBigInteger().toString(16),64),A=t.slice(64,96),y=t.slice(96);o===0&&(A=t.slice(t.length-32),y=t.slice(64,t.length-32));var m=Ya(xe.Buffer.from(v+x,"hex"),y.length),g=new ge.BigInteger(y.toString("hex"),16).xor(new ge.BigInteger(m.toString("hex"),16)).toString(16),D=ei(v+g+x,"hex","hex")===A.toString("hex")?xe.Buffer.from(g,"hex"):xe.Buffer.alloc(0);return a?D.toString(a):Br(D)}},n0=[[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]],i0=[2746333894,1453994832,1736282519,2993693404],y1=[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],o0=/^[0-9a-f]{32}$/i,Za=function(t){return n0[(4026531840&t)>>>28][(251658240&t)>>>24]<<24|n0[(15728640&t)>>>20][(983040&t)>>>16]<<16|n0[(61440&t)>>>12][(3840&t)>>>8]<<8|n0[(240&t)>>>4][(15&t)>>>0]<<0},Qa=function(t){return(e=Za(t))^qe(e,2)^qe(e,10)^qe(e,18)^qe(e,24);var e},Ja=function(t){var e,r=new Array(36);r[0]=t[0]^i0[0],r[1]=t[1]^i0[1],r[2]=t[2]^i0[2],r[3]=t[3]^i0[3];for(var n=new Array(32),i=0;i<32;i++)r[i+4]=r[i]^(e=Za(r[i+1]^r[i+2]^r[i+3]^y1[i]))^qe(e,13)^qe(e,23),n[i]=r[i+4];return n},es=function(t,e){for(var r=Ja(e),n=0;n<32;n++)t[n+4]=t[n]^Qa(t[n+1]^t[n+2]^t[n+3]^r[n]);return[t[35],t[34],t[33],t[32]]},ts=function(t,e){for(var r=Ja(e).reverse(),n=0;n<32;n++)t[n+4]=t[n]^Qa(t[n+1]^t[n+2]^t[n+3]^r[n]);return[t[35],t[34],t[33],t[32]]},a0=function(t){return[t.readInt32BE(0),t.readInt32BE(4),t.readInt32BE(8),t.readInt32BE(12)]},s0=function(t){for(var e=xe.Buffer.alloc(16),r=0;r<4;r++)e.writeInt32BE(t[r],4*r);return e},rr={__proto__:null,constants:{ECB:1,CBC:2},encrypt:function(t,e,r){var n=r||{},i=n.mode,o=n.iv,a=n.outputEncoding;if(typeof t=="string"?t=xe.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=xe.Buffer.from(t)),!xe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');if(!o0.test(e))throw new TypeError("Invalid value of cipher `key`");if(e=xe.Buffer.from(e,"hex"),i===2&&!o0.test(o))throw new TypeError("Invalid value of `iv` option");return function(s,p,f,l){f&&(f=a0(f)),p=a0(p);for(var v=[],x=(s=function(_){var T=16-_.length%16,k=xe.Buffer.alloc(T,T);return xe.Buffer.concat([_,k],_.length+T)}(s)).length/16,A=0;A<x;A++)if(f){var y=16*A,m=[f[0]^s.readInt32BE(y),f[1]^s.readInt32BE(y+4),f[2]^s.readInt32BE(y+8),f[3]^s.readInt32BE(y+12)],g=es(m,p);v.push(s0(g)),f=g.slice(0)}else{var D=16*A,C=[s.readInt32BE(D),s.readInt32BE(D+4),s.readInt32BE(D+8),s.readInt32BE(D+12)],w=es(C,p);v.push(s0(w))}var b=xe.Buffer.concat(v,s.length);return l?b.toString(l):Br(b)}(t,e,o=i===2?xe.Buffer.from(o,"hex"):null,a)},decrypt:function(t,e,r){var n=r||{},i=n.mode,o=n.iv,a=n.outputEncoding;if(typeof t=="string"?t=xe.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=xe.Buffer.from(t)),!xe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');if(!o0.test(e))throw new TypeError("Invalid value of cipher `key`");if(e=xe.Buffer.from(e,"hex"),i===2&&!o0.test(o))throw new TypeError("Invalid value of `iv` option");return function(s,p,f,l){f&&(f=a0(f)),p=a0(p);var v=[],x=s.length/16;if(f)for(var A=x-1;A>=0;A--){var y,m=16*A;y=A>0?[s.readInt32BE(m-16),s.readInt32BE(m-16+4),s.readInt32BE(m-16+8),s.readInt32BE(m-16+12)]:f;var g=[s.readInt32BE(m),s.readInt32BE(m+4),s.readInt32BE(m+8),s.readInt32BE(m+12)],D=ts(g,p);v.unshift(s0([D[0]^y[0],D[1]^y[1],D[2]^y[2],D[3]^y[3]]))}else for(var C=0;C<x;C++){var w=16*C,b=[s.readInt32BE(w),s.readInt32BE(w+4),s.readInt32BE(w+8),s.readInt32BE(w+12)],_=ts(b,p);v.push(s0(_))}var T=xe.Buffer.concat(v,s.length-v[v.length-1][15]);return l?T.toString(l):Br(T)}(t,e,o=i===2?xe.Buffer.from(o,"hex"):null,a)}};(function(){if(typeof Object.id=="undefined"){var t=0;Object.id=function(e){return typeof e.__uniqueid=="undefined"&&Object.defineProperty(e,"__uniqueid",{value:++t,enumerable:!1,writable:!1}),e.__uniqueid}}})();function m1(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=[-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,i,o,a,s,p;for(o=r.length,i=0,n="";i<o;){if(a=r.charCodeAt(i++)&255,i==o){n+=t.charAt(a>>2),n+=t.charAt((a&3)<<4),n+="==";break}if(s=r.charCodeAt(i++),i==o){n+=t.charAt(a>>2),n+=t.charAt((a&3)<<4|(s&240)>>4),n+=t.charAt((s&15)<<2),n+="=";break}p=r.charCodeAt(i++),n+=t.charAt(a>>2),n+=t.charAt((a&3)<<4|(s&240)>>4),n+=t.charAt((s&15)<<2|(p&192)>>6),n+=t.charAt(p&63)}return n},this.decode=function(r){var n,i,o,a,s,p,f;for(p=r.length,s=0,f="";s<p;){do n=e[r.charCodeAt(s++)&255];while(s<p&&n==-1);if(n==-1)break;do i=e[r.charCodeAt(s++)&255];while(s<p&&i==-1);if(i==-1)break;f+=String.fromCharCode(n<<2|(i&48)>>4);do{if(o=r.charCodeAt(s++)&255,o==61)return f;o=e[o]}while(s<p&&o==-1);if(o==-1)break;f+=String.fromCharCode((i&15)<<4|(o&60)>>2);do{if(a=r.charCodeAt(s++)&255,a==61)return f;a=e[a]}while(s<p&&a==-1);if(a==-1)break;f+=String.fromCharCode((o&3)<<6|a)}return f},this.utf16to8=function(r){var n,i,o,a;for(n="",o=r.length,i=0;i<o;i++)a=r.charCodeAt(i),a>=1&&a<=127?n+=r.charAt(i):a>2047?(n+=String.fromCharCode(224|a>>12&15),n+=String.fromCharCode(128|a>>6&63),n+=String.fromCharCode(128|a>>0&63)):(n+=String.fromCharCode(192|a>>6&31),n+=String.fromCharCode(128|a>>0&63));return n},this.utf8to16=function(r){var n,i,o,a,s,p;for(n="",o=r.length,i=0;i<o;)switch(a=r.charCodeAt(i++),a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:n+=r.charAt(i-1);break;case 12:case 13:s=r.charCodeAt(i++),n+=String.fromCharCode((a&31)<<6|s&63);break;case 14:s=r.charCodeAt(i++),p=r.charCodeAt(i++),n+=String.fromCharCode((a&15)<<12|(s&63)<<6|(p&63)<<0);break}return n},this.charToHex=function(r){var n,i,o;for(n="",i=0;i<r.length;)o=r.charCodeAt(i++).toString(16),n+="\\0x"+o,n+=i>0&&i%8==0?`\r
|
|
29
|
+
`:", ";return n}}function g1(){var t=0,e=new Object;this.add=function(r,n){this.containsKey(r)||t++,e[r]=n},this.getValue=function(r){return this.containsKey(r)?e[r]:null},this.remove=function(r){this.containsKey(r)&&delete e[r]&&t--},this.containsKey=function(r){return r in e},this.containsValue=function(r){for(var n in e)if(e[n]==r)return!0;return!1},this.getValues=function(){var r=[];for(var n in e)r.push(e[n]);return r},this.getKeys=function(){var r=[];for(var n in e)r.push(n);return r},this.getSize=function(){return t},this.clear=function(){t=0,e=new Object}}function A1(t){if(this.connect=!1,this.ready_func_=null,this.callbacks_=new g1,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 e=JSON.stringify({MsgId:"LoadModule",Module:this.module_});this.ws.onmessage=this._callback.bind(this),this.ws.send(e)},this.loadModuleCallBack=function(e){if(!e)throw e.Response;this.ready_func_&&this.ready_func_()}.bind(this),this.callbacks_.add("LoadModule",this.loadModuleCallBack),this.exec=function(e,r,n){var i=Object.id(n).toString();this.callbacks_.add(i,n);var o={MsgId:i,Method:e+"|"+t};r&&(o.Param=JSON.stringify(r));var a=JSON.stringify(o);this.connect&&this.ws.send(a)},this.ready=function(e){this.ready_func_=e},this._callback=function(e){var r=JSON.parse(e.data),n=r.MsgId;if(this.callbacks_.containsKey(n)){var i=this.callbacks_.getValue(n);i(r.Result,r.Response),this.callbacks_.remove(n)}},this.ws.onopen=this.loadModule.bind(this),this.Arm_GetDongleInfo=function({Index:e,DongleInfoNum:r},n){this.exec("Arm_GetDongleInfo",[parseInt(e),parseInt(r)],n)},this.Arm_Enum=function(e){this.exec("Arm_Enum",null,e)},this.Arm_Open=function({Index:e},r){this.exec("Arm_Open",[parseInt(e)],r)},this.Arm_Close=function({Handle:e},r){this.exec("Arm_Close",[parseInt(e)],r)},this.Arm_VerifyPIN=function({Handle:e,UserPin:r,UserType:n},i){this.exec("Arm_VerifyPIN",[parseInt(e),n,r],i)},this.Arm_ResetState=function({Handle:e},r){this.exec("Arm_ResetState",[parseInt(e)],r)},this.Arm_GenRandom=function({Handle:e,RandomLen:r},n){this.exec("Arm_GenRandom",[parseInt(e),parseInt(r)],n)},this.Arm_LEDControl=function({Handle:e,LedFlag:r},n){this.exec("Arm_LEDControl",[parseInt(e),r],n)},this.Arm_SwitchProtocol=function({Handle:e,ProtocolFlag:r},n){this.exec("Arm_SwitchProtocol",[parseInt(e),r],n)},this.Arm_CreateFile=function({Handle:e,FileID:r,FileType:n,AttrBuffer:i},o){this.exec("Arm_CreateFile",[parseInt(e),n,parseInt(r),i],o)},this.Arm_WriteFile=function({Handle:e,FileID:r,FileType:n,FileOffset:i,DataInput:o},a){this.exec("Arm_WriteFile",[parseInt(e),n,parseInt(r),parseInt(i),o],a)},this.Arm_ReadFile0001=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0001"),parseInt(0),parseInt("64")],r)},this.Arm_ReadFile0002=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0002"),parseInt(0),parseInt("130")],r)},this.Arm_ReadFile0003=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0003"),parseInt(0),parseInt("130")],r)},this.Arm_ReadFile0004=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0004"),parseInt(0),parseInt("2048")],r)},this.Arm_ReadFile0005=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0005"),parseInt(0),parseInt("2048")],r)},this.Arm_DownloadExeFile=function({Handle:e,Count:r,ExeFileInfo:n},i){this.exec("Arm_DownloadExeFile",[parseInt(e),parseInt(r),n],i)},this.Arm_RunExeFile=function({Handle:e,FileID:r,InData:n,DataLen:i},o){this.exec("Arm_RunExeFile",[parseInt(e),parseInt(r),n,n.length,parseInt(i)],o)},this.Arm_ReadRunExeFileData=function(e){this.exec("Arm_ReadRunExeFileData",null,e)},this.Arm_DeleteFile=function({Handle:e,FileID:r,FileType:n},i){this.exec("Arm_DeleteFile",[parseInt(e),n,parseInt(r)],i)},this.Arm_WriteData=function({Handle:e,Offset:r,DataInput:n},i){this.exec("Arm_WriteData",[parseInt(e),parseInt(r),n],i)},this.Arm_ReadData=function({Handle:e,Offset:r,ReadLength:n},i){this.exec("Arm_ReadData",[parseInt(e),parseInt(r),n],i)},this.Arm_WriteShareMemory=function({Handle:e,DataInput:r},n){this.exec("Arm_WriteShareMemory",[parseInt(e),r],n)},this.Arm_ReadShareMemory=function({Handle:e},r){this.exec("Arm_ReadShareMemory",[parseInt(e)],r)},this.Arm_GenUniqueKey=function({Handle:e,Seed:r},n){this.exec("Arm_GenUniqueKey",[parseInt(e),r.length,r],n)},this.Arm_ChangePIN=function({Handle:e,NewPIN:r,OldPIN:n,TryCount:i,PinFlag:o},a){this.exec("Arm_ChangePIN",[parseInt(e),o,n,r,parseInt(i)],a)},this.Arm_ResetUserPIN=function({Handle:e,AdminPIN:r},n){this.exec("Arm_ResetUserPIN",[parseInt(e),r],n)},this.Arm_SetUserID=function({Handle:e,UserID:r},n){this.exec("Arm_SetUserID",[parseInt(e),parseInt(r)],n)},this.Arm_GetDeadline=function({Handle:e},r){this.exec("Arm_GetDeadline",[parseInt(e)],r)},this.Arm_SetDeadline=function({Handle:e,SetDeadTime:r},n){this.exec("Arm_SetDeadline",[parseInt(e),parseInt(r)],n)},this.Arm_GetUTCTime=function({Handle:e},r){this.exec("Arm_GetUTCTime",[parseInt(e)],r)},this.Arm_RFS=function({Handle:e},r){this.exec("Arm_RFS",[parseInt(e)],r)},this.Arm_RsaGenPubPriKey=function({Handle:e,RsaFileId:r},n){this.exec("Arm_RsaGenPubPriKey",[parseInt(e),parseInt(r)],n)},this.Arm_EccGenPubPriKey=function({Handle:e,EccFileId:r},n){this.exec("Arm_EccGenPubPriKey",[parseInt(e),parseInt(r)],n)},this.Arm_Sm2GenPubPriKey=function({Handle:e,Sm2FileId:r},n){this.exec("Arm_Sm2GenPubPriKey",[parseInt(e),parseInt(r)],n)},this.Arm_ReadRsaPri=function(e){this.exec("Arm_ReadRsaPri",null,e)},this.Arm_ReadRsaPub=function(e){this.exec("Arm_ReadRsaPub",null,e)},this.Arm_ReadEccPri=function(e){this.exec("Arm_ReadEccPri",null,e)},this.Arm_ReadEccPub=function(e){this.exec("Arm_ReadEccPub",null,e)},this.Arm_ReadSm2Pri=function(e){this.exec("Arm_ReadSm2Pri",null,e)},this.Arm_ReadSm2Pub=function(e){this.exec("Arm_ReadSm2Pub",null,e)},this.Arm_RsaPri=function({Handle:e,RsaPri_Flag:r,RsaPriInData:n,RsaPriFileID:i,RsaPriFileSize:o},a){this.exec("Arm_RsaPri",[parseInt(e),parseInt(i),parseInt(o),r,n],a)},this.Arm_RsaPub=function({Handle:e,RsaPubKey:r,RsaPub_Flag:n,RsaPubInData:i,RsaPubFileSize:o},a){this.exec("Arm_RsaPub",[parseInt(e),parseInt(o),n,r,r.length,i],a)},this.Arm_EccSign=function({Handle:e,HashData:r,EccFileId:n},i){this.exec("Arm_EccSign",[parseInt(e),parseInt(n),r],i)},this.Arm_EccVerify=function({Handle:e,HashData:r,EccPubKey:n,EccSignData:i},o){this.exec("Arm_EccVerify",[parseInt(e),n,n.length,r,i],o)},this.Arm_Sm2Sign=function({Handle:e,HashData:r,Sm2FileId:n},i){this.exec("Arm_Sm2Sign",[parseInt(e),parseInt(n),r],i)},this.Arm_Sm2Verify=function({Handle:e,HashData:r,Sm2PubKey:n,Sm2SignData:i},o){this.exec("Arm_Sm2Verify",[parseInt(e),n,n.length,r,i],o)},this.Arm_TDES=function({Handle:e,Tdes_Flag:r,TdesFileID:n,TdesInData:i},o){this.exec("Arm_TDES",[parseInt(e),parseInt(n),r,i],o)},this.Arm_SM4=function({Handle:e,Sm4_Flag:r,Sm4FileID:n,Sm4InData:i},o){this.exec("Arm_SM4",[parseInt(e),parseInt(n),r,i],o)},this.Arm_HASH=function({Handle:e,Hash_Flag:r,HashInData:n},i){this.exec("Arm_HASH",[parseInt(e),r,n],i)},this.Arm_Seed=function({Handle:e,SeedData:r,SeedLength:n},i){this.exec("Arm_Seed",[parseInt(e),n,r],i)},this.Arm_LimitSeedCount=function({Handle:e,SeedCount:r},n){this.exec("Arm_LimitSeedCount",[parseInt(e),parseInt(r)],n)},this.Arm_GenMotherKey=function({Handle:e,SeedLen:r,SeedForPID:n,SonCount:i,StartUserID:o,AdminTryCount:a,UserPin:s,UserTryCount:p,UpdateRSAPriKey:f},l){this.exec("Arm_GenMotherKey",[parseInt(e),parseInt(r),n,s,parseInt(p),parseInt(a),f,parseInt(o),parseInt(i)],l)},this.Arm_RequestInit=function({Handle:e},r){this.exec("Arm_RequestInit",[parseInt(e)],r)},this.Arm_GetInitDataFromMother=function({Handle:e},r){this.exec("Arm_GetInitDataFromMother",[parseInt(e),Request],r)},this.Arm_InitSon=function({Handle:e,InitData:r},n){this.exec("Arm_InitSon",[parseInt(e),r],n)},this.Arm_SetUpdatePriKey=function({Handle:e,UpdatePriKey:r},n){this.exec("Arm_SetUpdatePriKey",[parseInt(e),r],n)},this.Arm_MakeUpdatePacket=function({Handle:e,HID:r,Func:n,FileID:i,FileType:o,Offset:a,DataLen:s,DataBuffer:p,UpRSAPubKey:f},l){this.exec("Arm_MakeUpdatePacket",[parseInt(e),r,n,o,parseInt(i),parseInt(a),p,f,parseInt(s)],l)},this.Arm_MakeUpdatePacketFromMother=function({Handle:e,HID:r,Func:n,FileID:i,FileType:o,Offset:a,DataLen:s,DataBuffer:p},f){this.exec("Arm_MakeUpdatePacketFromMother",[parseInt(e),r,n,o,parseInt(i),parseInt(a),p,parseInt(s)],f)},this.Arm_Update=function({Handle:e,UpdateData:r},n){this.exec("Arm_Update",[parseInt(e),r],n)},this.Arm_Set_DATA_FILE_ATTR=function({Size:e,ReadPriv:r,WritePriv:n},i){this.exec("Arm_Set_DATA_FILE_ATTR",[parseInt(e),parseInt(r),parseInt(n)],i)},this.Arm_Set_PRIKEY_FILE_ATTR=function({Count:e,Size:r,Type:n,Priv:i,IsReset:o,IsDecOnRAM:a},s){this.exec("Arm_Set_PRIKEY_FILE_ATTR",[n,parseInt(r),parseInt(e),parseInt(i),parseInt(a),parseInt(o)],s)},this.Arm_Set_KEY_FILE_ATTR=function({Size:e,PrivEnc:r},n){this.exec("Arm_Set_KEY_FILE_ATTR",[parseInt(e),parseInt(r)],n)},this.Arm_Set_EXE_FILE_ATTR=function({FileLen:e,PrivExe:r},n){this.exec("Arm_Set_EXE_FILE_ATTR",[parseInt(e),parseInt(r)],n)},this.Arm_Set_DATA_LIC=function({ReadPriv:e,WritePriv:r},n){this.exec("Arm_Set_DATA_LIC",[parseInt(e),parseInt(r)],n)},this.Arm_Set_PRIKEY_LIC=function({Count:e,Priv:r,IsReset:n,IsDecOnRAM:i},o){this.exec("Arm_Set_PRIKEY_LIC",[parseInt(e),parseInt(r),parseInt(i),parseInt(n)],o)},this.Arm_Set_KEY_LIC=function({PrivEnc:e},r){this.exec("Arm_Set_KEY_LIC",[parseInt(e)],r)},this.Arm_Set_EXE_LIC=function({PrivExe:e},r){this.exec("Arm_Set_EXE_LIC",[parseInt(e)],r)},this.Arm_Set_EXE_FILE_INFO=function({FileID:e,FileData:r,FileSize:n,InBuffer:i,CallLimit:o},a){this.exec("Arm_Set_EXE_FILE_INFO",[i,parseInt(n),parseInt(e),parseInt(o),r,r.length],a)},this.Arm_Clear_EXE_FILE_INFO=function({InBuffer:e},r){this.exec("Arm_Clear_EXE_FILE_INFO",[e],r)}}const E1={HID:0},f0={PRODUCT_ID:0,USER_ID:1,HARDWARE_ID:2},rs={USER:0};class ns{constructor(){It(this,"Base64",new m1);It(this,"AtlCtrl",null);It(this,"ArmCount",0);It(this,"ArmIndex",0);It(this,"ArmHandle",0);It(this,"ArmRandom","");try{this.AtlCtrl=new A1("{39E9B272-82A7-4177-A19D-6723C1BDB0CC}")}catch(e){this.AtlCtrl=null}}armEnum(){if(this.AtlCtrl)return new Promise((e,r)=>{this.AtlCtrl.Arm_Enum((n,i)=>{n?(this.ArmCount=+i,e(i)):r(i)})})}armOpen(e=0){if(this.AtlCtrl)return this.ArmIndex=e,new Promise((r,n)=>{this.AtlCtrl.Arm_Open({Index:e},(i,o)=>{i?(this.ArmHandle=+o,r(o)):(this.ArmHandle=o,n(o))})})}armClose(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_Close({Handle:e},(i,o)=>{i?r(o):n(o)})})}armChangePIN(e,r,n=255,i=rs.USER,o=this.ArmHandle){if(this.AtlCtrl)return new Promise((a,s)=>{this.AtlCtrl.Arm_ChangePIN({Handle:o,NewPIN:e,OldPIN:r,TryCount:n,PinFlag:i},(p,f)=>{p&&f==0?(this.ArmPin=e,a(f)):s(f)})})}armGenRandom(e=16,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_GenRandom({Handle:r,RandomLen:e},(o,a)=>{o?(this.ArmRandom=a,n(a)):i(a)})})}armGetDeadline(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_GetDeadline({Handle:e},(i,o)=>{i?(this.ArmDeadline=o,r(o)):n(o)})})}armGenUniqueKey(e="MTIzNDU2Nzg5MA==",r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_GenUniqueKey({Handle:r,Seed:e},(o,a)=>{o?(this.ArmUKey=a,n(a)):i(a)})})}armGetDongleInfo(e=0,r=f0.HARDWARE_ID){if(this.AtlCtrl)return this.ArmIndex=e,new Promise((n,i)=>{this.AtlCtrl.Arm_GetDongleInfo({Index:e,DongleInfoNum:r},(o,a)=>{if(o){switch(r){case f0.USER_ID:this.ArmUid=a;break;case f0.PRODUCT_ID:this.ArmPid=a;break;case f0.HARDWARE_ID:this.ArmHid=a;break}n(a)}else i(a)})})}armLEDControl(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_LEDControl({Handle:r,LedFlag:e},(o,a)=>{o&&a==0?n(a):i(a)})})}armRFS(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_RFS({Handle:e},(i,o)=>{i&&o==0?r(o):n(o)})})}armReadFile(e="0001",r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl[`Arm_ReadFile${e}`]({Handle:r},(o,a)=>{if(o&&a.length>0)try{a=this.Base64.decode(a),n(a)}catch(s){n(a)}else i(a)})})}armResetState(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_ResetState({Handle:e},(i,o)=>{i&&o==0?r(o):n(o)})})}armResetUserPIN(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_ResetUserPIN({Handle:r,AdminPIN:e},(o,a)=>{o&&a==0?n(a):i(a)})})}armSetUserID(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SetUserID({Handle:r,UserID:e},(o,a)=>{o&&a==0?n(a):i(a)})})}armSetDeadline(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SetDeadline({Handle:r,SetDeadTime:e},(o,a)=>{o&&a==0?n(a):i(a)})})}armSwitchProtocol(e=E1.HID,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SwitchProtocol({Handle:r,ProtocolFlag:e},(o,a)=>{o&&a==0?n(a):i(a)})})}armVerifyPIN(e,r=rs.USER,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,o)=>{this.AtlCtrl.Arm_VerifyPIN({Handle:n,UserPin:e,UserType:r},(a,s)=>{a&&s==0?(this.ArmPin=e,i(s)):o(s)})})}armReadData(e=0,r=128,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,o)=>{this.AtlCtrl.Arm_ReadData({Handle:n,Offset:e,ReadLength:r},(a,s)=>{a?(this.ArmData=s,i(s)):o(s)})})}armWriteData(e,r=0,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,o)=>{this.AtlCtrl.Arm_WriteData({Handle:n,Offset:r,DataInput:e},(a,s)=>{a&&s==0?i(s):o(s)})})}armReadShareMemory(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_ReadShareMemory({Handle:e},(i,o)=>{i?(this.ArmData=o,r(o)):n(o)})})}armWriteShareMemory(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_WriteShareMemory({Handle:r,DataInput:e},(o,a)=>{o&&a==0?n(a):i(a)})})}}const is="0123456789abcdeffedcba9876543210",os="4b0de988570c3a0f";let nr=window.ENCRYPT&&new ns;function as(t=16,e="0123456789abcdefghijklmnopqrstuvwxyz"){let r="",n=e.length;for(;t>0;)r+=e[Math.floor(Math.random()*n)],t--;return r}function ss(){return Qe(this,null,function*(){return nr||(nr=new ns),new Promise((t,e)=>{nr.armEnum().then(r=>{t(+r)}).catch(r=>{Be.ElMessage({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e(r)})})})}me.throttle(()=>Qe(this,null,function*(){const t=yield ss(),e={};if(typeof t!="number"||t<=0)Be.ElMessage({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e.resetToken();else{const r=yield B1();if(!e.token)return;r.length?r.includes(e.ukeyHid)||(Be.ElMessage({type:"error",ElMessage:"U盘锁不匹配,请检查U盘锁!"}),e.resetToken()):(Be.ElMessage({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e.resetToken())}}),5e3,{trailing:!1});function w1(t=0){return Qe(this,null,function*(){return nr?new Promise((e,r)=>{nr.armGetDongleInfo(t).then(n=>{n?e(n):(Be.ElMessage({type:"warning",ElMessage:"U盘锁信息为空,请检查U盘锁!"}),r(n))}).catch(n=>{r(n)})}):Be.ElMessage({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"})})}function B1(){return Qe(this,null,function*(){if(!nr)return Be.ElMessage({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"});const t=yield ss();let e=[];for(let r=0;r<t;r++){const n=yield w1(r);e.push(n)}return e})}as(16),as(16);const fs=window.INSPECT?rr.constants.CBC:rr.constants.ECB;v1.generateKeyPair();function cs(t,e,r={}){const n=ls(os),i=r.mode||fs;r=i===rr.constants.ECB?te({mode:i,inputEncoding:"utf8",outputEncoding:"hex"},r):te({iv:is,mode:i,inputEncoding:"utf8",outputEncoding:"hex"},r);let o="";try{o=rr.encrypt(t,n,r)}catch(a){console.log("err: ",a)}return o}function us(t,e,r={}){const n=ls(os),i=r.mode||fs;return r=i===rr.constants.ECB?te({mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r):te({iv:is,mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r),rr.decrypt(t,n,r)}function ls(t){return[...t].map(e=>e.charCodeAt().toString(16)).join("")}const hs={getLocal:t=>{try{let e=window.localStorage.getItem(t);return e=e!==null?us(e):e,JSON.parse(e)}catch(e){console.error(e)}},setLocal:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?cs(r):r,window.localStorage.setItem(t,r)}catch(r){console.error(r)}},eachLocal:t=>{if(!t||sa(t)!=="Function")return console.error("传递参数非函数类型!");for(let e=0,r=window.localStorage.length;e<r;e++){const n=window.localStorage.key(e);t((void 0).getLocal(n),n)}},clearLocal:()=>{window.localStorage.clear()},removeLocal:t=>{window.localStorage.removeItem(t)},getSession:t=>{try{let e=window.sessionStorage.getItem(t);return e=e!==null?us(e):e,JSON.parse(e)}catch(e){console.error(e)}},setSession:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?cs(r):r,window.sessionStorage.setItem(t,r)}catch(r){console.error(r)}},eachSession:t=>{if(!t||sa(t)!=="Function")return console.error("传递参数非函数类型!");for(let e=0,r=window.sessionStorage.length;e<r;e++){const n=window.sessionStorage.key(e);t((void 0).getSession(n),n)}},clearSession:()=>{window.sessionStorage.clear()},removeSession:t=>{window.sessionStorage.removeItem(t)}},xs=t=>{const{quality:e,value:r,function_id:n}=t;return(e>>7&1)===1||e===0&&n===2&&r===1},ds="USER_TOKEN",ps="STATION_ID";var vs={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(le,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",a="second",s="minute",p="hour",f="day",l="week",v="month",x="quarter",A="year",y="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|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,C={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(N){var M=["th","st","nd","rd"],H=N%100;return"["+N+(M[(H-20)%10]||M[H]||M[0])+"]"}},w=function(N,M,H){var Y=String(N);return!Y||Y.length>=M?N:""+Array(M+1-Y.length).join(H)+N},b={s:w,z:function(N){var M=-N.utcOffset(),H=Math.abs(M),Y=Math.floor(H/60),W=H%60;return(M<=0?"+":"-")+w(Y,2,"0")+":"+w(W,2,"0")},m:function N(M,H){if(M.date()<H.date())return-N(H,M);var Y=12*(H.year()-M.year())+(H.month()-M.month()),W=M.clone().add(Y,v),ee=H-W<0,J=M.clone().add(Y+(ee?-1:1),v);return+(-(Y+(H-W)/(ee?W-J:J-W))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:v,y:A,w:l,d:f,D:y,h:p,m:s,s:a,ms:o,Q:x}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},_="en",T={};T[_]=C;var k="$isDayjsObject",q=function(N){return N instanceof G||!(!N||!N[k])},X=function N(M,H,Y){var W;if(!M)return _;if(typeof M=="string"){var ee=M.toLowerCase();T[ee]&&(W=ee),H&&(T[ee]=H,W=ee);var J=M.split("-");if(!W&&J.length>1)return N(J[0])}else{var O=M.name;T[O]=M,W=O}return!Y&&W&&(_=W),W||!Y&&_},I=function(N,M){if(q(N))return N.clone();var H=typeof M=="object"?M:{};return H.date=N,H.args=arguments,new G(H)},P=b;P.l=X,P.i=q,P.w=function(N,M){return I(N,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var G=function(){function N(H){this.$L=X(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[k]=!0}var M=N.prototype;return M.parse=function(H){this.$d=function(Y){var W=Y.date,ee=Y.utc;if(W===null)return new Date(NaN);if(P.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var J=W.match(g);if(J){var O=J[2]-1||0,U=(J[7]||"0").substring(0,3);return ee?new Date(Date.UTC(J[1],O,J[3]||1,J[4]||0,J[5]||0,J[6]||0,U)):new Date(J[1],O,J[3]||1,J[4]||0,J[5]||0,J[6]||0,U)}}return new Date(W)}(H),this.init()},M.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},M.$utils=function(){return P},M.isValid=function(){return this.$d.toString()!==m},M.isSame=function(H,Y){var W=I(H);return this.startOf(Y)<=W&&W<=this.endOf(Y)},M.isAfter=function(H,Y){return I(H)<this.startOf(Y)},M.isBefore=function(H,Y){return this.endOf(Y)<I(H)},M.$g=function(H,Y,W){return P.u(H)?this[Y]:this.set(W,H)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(H,Y){var W=this,ee=!!P.u(Y)||Y,J=P.p(H),O=function(Se,Fe){var Ke=P.w(W.$u?Date.UTC(W.$y,Fe,Se):new Date(W.$y,Fe,Se),W);return ee?Ke:Ke.endOf(f)},U=function(Se,Fe){return P.w(W.toDate()[Se].apply(W.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(Fe)),W)},V=this.$W,z=this.$M,se=this.$D,ce="set"+(this.$u?"UTC":"");switch(J){case A:return ee?O(1,0):O(31,11);case v:return ee?O(1,z):O(0,z+1);case l:var be=this.$locale().weekStart||0,fe=(V<be?V+7:V)-be;return O(ee?se-fe:se+(6-fe),z);case f:case y:return U(ce+"Hours",0);case p:return U(ce+"Minutes",1);case s:return U(ce+"Seconds",2);case a:return U(ce+"Milliseconds",3);default:return this.clone()}},M.endOf=function(H){return this.startOf(H,!1)},M.$set=function(H,Y){var W,ee=P.p(H),J="set"+(this.$u?"UTC":""),O=(W={},W[f]=J+"Date",W[y]=J+"Date",W[v]=J+"Month",W[A]=J+"FullYear",W[p]=J+"Hours",W[s]=J+"Minutes",W[a]=J+"Seconds",W[o]=J+"Milliseconds",W)[ee],U=ee===f?this.$D+(Y-this.$W):Y;if(ee===v||ee===A){var V=this.clone().set(y,1);V.$d[O](U),V.init(),this.$d=V.set(y,Math.min(this.$D,V.daysInMonth())).$d}else O&&this.$d[O](U);return this.init(),this},M.set=function(H,Y){return this.clone().$set(H,Y)},M.get=function(H){return this[P.p(H)]()},M.add=function(H,Y){var W,ee=this;H=Number(H);var J=P.p(Y),O=function(z){var se=I(ee);return P.w(se.date(se.date()+Math.round(z*H)),ee)};if(J===v)return this.set(v,this.$M+H);if(J===A)return this.set(A,this.$y+H);if(J===f)return O(1);if(J===l)return O(7);var U=(W={},W[s]=n,W[p]=i,W[a]=r,W)[J]||1,V=this.$d.getTime()+H*U;return P.w(V,this)},M.subtract=function(H,Y){return this.add(-1*H,Y)},M.format=function(H){var Y=this,W=this.$locale();if(!this.isValid())return W.invalidDate||m;var ee=H||"YYYY-MM-DDTHH:mm:ssZ",J=P.z(this),O=this.$H,U=this.$m,V=this.$M,z=W.weekdays,se=W.months,ce=W.meridiem,be=function(Fe,Ke,ze,Ee){return Fe&&(Fe[Ke]||Fe(Y,ee))||ze[Ke].slice(0,Ee)},fe=function(Fe){return P.s(O%12||12,Fe,"0")},Se=ce||function(Fe,Ke,ze){var Ee=Fe<12?"AM":"PM";return ze?Ee.toLowerCase():Ee};return ee.replace(D,function(Fe,Ke){return Ke||function(ze){switch(ze){case"YY":return String(Y.$y).slice(-2);case"YYYY":return P.s(Y.$y,4,"0");case"M":return V+1;case"MM":return P.s(V+1,2,"0");case"MMM":return be(W.monthsShort,V,se,3);case"MMMM":return be(se,V);case"D":return Y.$D;case"DD":return P.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return be(W.weekdaysMin,Y.$W,z,2);case"ddd":return be(W.weekdaysShort,Y.$W,z,3);case"dddd":return z[Y.$W];case"H":return String(O);case"HH":return P.s(O,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return Se(O,U,!0);case"A":return Se(O,U,!1);case"m":return String(U);case"mm":return P.s(U,2,"0");case"s":return String(Y.$s);case"ss":return P.s(Y.$s,2,"0");case"SSS":return P.s(Y.$ms,3,"0");case"Z":return J}return null}(Fe)||J.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(H,Y,W){var ee,J=this,O=P.p(Y),U=I(H),V=(U.utcOffset()-this.utcOffset())*n,z=this-U,se=function(){return P.m(J,U)};switch(O){case A:ee=se()/12;break;case v:ee=se();break;case x:ee=se()/3;break;case l:ee=(z-V)/6048e5;break;case f:ee=(z-V)/864e5;break;case p:ee=z/i;break;case s:ee=z/n;break;case a:ee=z/r;break;default:ee=z}return W?ee:P.a(ee)},M.daysInMonth=function(){return this.endOf(v).$D},M.$locale=function(){return T[this.$L]},M.locale=function(H,Y){if(!H)return this.$L;var W=this.clone(),ee=X(H,Y,!0);return ee&&(W.$L=ee),W},M.clone=function(){return P.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},N}(),S=G.prototype;return I.prototype=S,[["$ms",o],["$s",a],["$m",s],["$H",p],["$W",f],["$M",v],["$y",A],["$D",y]].forEach(function(N){S[N[1]]=function(M){return this.$g(M,N[0],N[1])}}),I.extend=function(N,M){return N.$i||(N(M,G,I),N.$i=!0),I},I.locale=X,I.isDayjs=q,I.unix=function(N){return I(1e3*N)},I.en=T[_],I.Ls=T,I.p={},I})})(vs);var C1=vs.exports;const b1=A0(C1),F1=[{key:0,value:"离线"},{key:1,value:"在线"}],D1=[{key:0,value:"反向"},{key:1,value:"正向"},{key:2,value:"停止"}],_1=[{key:1,value:1},{key:2,value:2},{key:3,value:3},{key:4,value:4},{key:5,value:5}],S1="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",T1="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",Ft=(Ds=(Fs=window.meta)==null?void 0:Fs.graph)!=null&&Ds.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}]}]},ys=(Ss=(_s=window.meta)==null?void 0:_s.graph)!=null&&Ss.lightPlateColorMap?window.meta.graph.lightPlateColorMap:{0:"#00d200",1:"#e2ac06",2:"#fa800a",3:"#f04155",4:"#ff0000"},ms=(Is=(Ts=window.meta)==null?void 0:Ts.graph)!=null&&Is.lightPlateTextMap?window.meta.graph.lightPlateTextMap:{0:"#fff",1:"#fff",2:"#fff",3:"#fff",4:"#fff"},$e={form:[{name:"带电状态",key:"charged_state",type:"select",dataIds:{},options:F1.map(t=>({label:t.value,value:t.key}))},{name:"潮流方向",key:"electric_direction",type:"select",dataIds:{},options:D1.map(t=>({label:t.value,value:t.key}))},{name:"电荷大小",key:"electric_size",type:"select",dataIds:{},options:_1.map(t=>({label:t.value,value:t.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},oe=Le(te({penType:Ce.NORMAL},$e),{form:[...Ft[Ce.NORMAL],...$e.form]});Ce.POINT_VALUE,$e.anchors,window.visibleLevel,[...Ft[Ce.POINT_VALUE],...$e.form],$e.form,window.dataType,window.dataProp,window.visibleLevel,$e.form,window.dataType,window.dataProp,window.visibleLevel,ms[0],Ce.LIGHT_PLATE,ys[0],$e.anchors,window.visibleLevel,[...Ft[Ce.LIGHT_PLATE],...$e.form],Le(te({width:100,height:30,name:"text",text:"文本",disableAnchor:!0,penType:Ce.TEXT},$e),{form:[...Ft[Ce.TEXT],...$e.form]}),te({width:100,height:100,name:"square"},oe),Le(te({type:1,name:"line",width:100,height:5,lineWidth:2,lineName:"line",penName:"line",background:"#FFF000",color:"#FFF000"},oe),{lineAnimateType:1,anchors:[{x:0,y:.5,id:"0"},{x:1,y:.5,id:"1"}]}),te({width:200,height:50,borderRadius:0,name:"rectangle"},oe),te({width:100,height:100,name:"circle"},oe),te({width:100,height:100,name:"triangle"},oe),te({width:100,height:100,name:"diamond"},oe),te({width:100,height:100,name:"pentagon"},oe),te({width:100,height:100,name:"hexagon"},oe),te({width:100,height:100,name:"pentagram"},oe),te({width:120,height:60,name:"leftArrow"},oe),te({width:120,height:60,name:"rightArrow"},oe),te({width:150,height:60,name:"twowayArrow"},oe),te({width:100,height:100,name:"cloud"},oe),te({textTop:-.1,width:100,height:100,name:"message"},oe),te({width:80,height:100,name:"file"},oe),Le(te({name:"svg",width:100,height:100,image:T1,audioId:"",penType:Ce.AUDIO},$e),{form:[...Ft[Ce.AUDIO],...$e.form],events:[{name:"enter",action:Jr.Emit,value:ct.CUSTOM_MSG,where:{type:""},params:JSON.stringify({action:ct.OPEN_AUDIO,data:""})},{name:"leave",action:Jr.Emit,value:ct.CUSTOM_MSG,where:{type:""},params:JSON.stringify({action:ct.CLOSE_AUDIO,data:""})}]}),Le(te({name:"svg",width:100,height:100,image:S1,cameraId:"",events:[{name:"enter",action:Jr.Emit,value:ct.CUSTOM_MSG,where:{type:""},params:JSON.stringify({action:ct.OPEN_CAMERA,data:""})},{name:"leave",action:Jr.Emit,value:ct.CUSTOM_MSG,where:{type:""},params:JSON.stringify({action:ct.CLOSE_CAMERA,data:""})}],penType:Ce.CAMERA},$e),{form:[...Ft[Ce.CAMERA],...$e.form]}),Le(te({name:"video",width:100,height:100,video:"https://video.699pic.com/videos/17/69/11/a_aa3jeKZ0D63g1556176911_10s.mp4",autoPlay:!0,penType:Ce.MP4},$e),{form:[...Ft[Ce.MP4],...$e.form]}),Le(te({name:"video",width:100,height:100,video:"https://video.699pic.com/videos/17/69/11/a_aa3jeKZ0D63g1556176911_10s.mp4",autoPlay:!0,penType:Ce.VIDEO_STREAM},$e),{form:[...Ft[Ce.VIDEO_STREAM],...$e.form]}),Le(te({width:60,height:100,name:"cube",z:.25},oe),{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"}]}}),te({width:70,height:100,name:"people"},oe),Le(te({name:"table",width:80,height:30,disableAnchor:!0,colWidth:90,rowHeight:32,bordered:!0,vLine:!0,hLine:!0,stripe:!1,color:"#333",textColor:"#444"},oe),{penType:Ce.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"}]}),Le(te({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"},oe),{penType:Ce.BUTTON}),Le(te({name:"switch",penName:"开关",height:30,width:60,checked:!1,offColor:"#BFBFBF",onColor:"#1890ff",disableOffColor:"#E5E5E5",disableOnColor:"#A3D3FF",locked:0},oe),{penType:Ce.SWITCH}),Le(te({name:"radio",penName:"单选框",width:150,height:100,direction:"vertical",checked:"",options:[{text:"选项一"},{text:"选项二"},{text:"选项三",isForbidden:!0}]},oe),{penType:Ce.RADIO}),Le(te({name:"checkbox",penName:"多选框",width:30,height:30,checked:!0,value:"选项一"},oe),{penType:Ce.CHECKBOX}),Le(te({name:"slider",penName:"进度条",width:300,height:30,value:10,textWidth:50,barHeight:4,min:0,max:100,color:"#1890ff",background:"#D4D6D9",textColor:"#222",unit:"%"},oe),{penType:Ce.SLIDER}),Le(te({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},oe),{penType:Ce.INPUT}),Le(te({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"}]},oe),{penType:Ce.SELECT}),Le(te({name:"time",penName:"时间",width:300,height:40,text:`${b1().format("YYYY-MM-DD HH:mm:ss")}`,lineWidth:0,interval:67,fillZero:!0},oe),{penType:Ce.TIME,form:[{key:"timeFormat",name:"显示格式",type:"text"},{key:"fillZero",name:"是否补0",type:"switch"},...oe.form],timeFormat:"`${year}-${month}-${day} ${hours}:${minutes}:${seconds} 星期${week}`"}),te({text:"开始/结束",width:120,height:40,borderRadius:.5,name:"rectangle"},oe),te({text:"流程",width:120,height:40,name:"rectangle"},oe),te({text:"判定",width:120,height:60,name:"diamond"},oe),te({text:"数据",width:120,height:50,name:"flowData",offsetX:.14},oe),te({text:"准备",width:120,height:50,name:"hexagon"},oe),te({text:"子流程",width:120,height:50,name:"flowSubprocess"},oe),te({text:"数据库",width:80,height:120,name:"flowDb"},oe),te({text:"文档",width:120,height:100,name:"flowDocument"},oe),te({text:"内部存储",width:120,height:80,name:"flowInternalStorage"},oe),te({text:"外部存储",width:120,height:80,name:"flowExternStorage"},oe),te({text:"队列",width:100,height:100,name:"flowQueue"},oe),te({text:"手动输入",width:120,height:80,name:"flowManually"},oe),te({text:"展示",width:120,height:80,name:"flowDisplay"},oe),te({text:"并行模式",width:120,height:50,name:"flowParallel"},oe),te({text:"注释",width:100,height:100,name:"flowComment"},oe),te({text:"",width:30,height:30,name:"circle",background:"#555",lineWidth:0},oe),te({width:30,height:30,name:"activityFinal"},oe),te({text:"活动",width:120,height:50,borderRadius:.25,name:"rectangle"},oe),te({text:"决策/合并",width:120,height:50,name:"diamond"},oe),te({text:"垂直泳道",width:200,height:500,name:"swimlaneV",textBaseline:"top",textTop:20,lineTop:.08},oe),te({text:"水平泳道",width:500,height:200,name:"swimlaneH",textWidth:.01,textLeft:.04,textAlign:"left",lineLeft:.08},oe),te({text:"垂直分岔/汇合",width:10,height:150,name:"forkV",fillStyle:"#555",strokeStyle:"transparent"},oe),te({text:"水平分岔/汇合",width:150,height:10,name:"forkH",fillStyle:"#555",strokeStyle:"transparent"},oe),te({name:"andGate",width:100,height:150},oe),te({name:"basicEvent",width:100,height:150},oe),te({name:"unexpandedEvent",width:100,height:150},oe),te({name:"priorityAndGate",width:100,height:150},oe),te({name:"forbiddenGate",width:100,height:150},oe),te({name:"event",width:100,height:150},oe),te({name:"switchEvent",width:100,height:150},oe),te({name:"conditionalEvent",width:150,height:100},oe),te({name:"transferSymbol",width:100,height:150},oe),te({name:"orGate",width:100,height:150},oe),te({name:"xorGate",width:100,height:150},oe),te({name:"votingGate",width:100,height:150},oe),te({text:"主题",width:200,height:50,name:"mindNode",borderRadius:.5},oe),te({text:"子主题",width:160,height:40,name:"mindLine"},oe);class I1{constructor(e){It(this,"editor");this.editor=e}initPlugin(e,r,n={}){e.installPenPlugins({name:r},[{plugin:Ue.mindBoxPlugin,options:n},{plugin:Ve.collapseChildPlugin,options:n}])}}const R1="original_meta2d";function O1(){return localStorage.removeItem(R1)}let Cr={};const k1=t=>{const e=document.querySelectorAll("video");let r=null;if(e.forEach(i=>{i.getAttribute("src")===t.video&&(r=i)}),!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 t.autoPlay&&t.streamUrl&&n.play(t.streamUrl),Cr[t.id]=n,n},P1=()=>{Object.keys(Cr).forEach(t=>{Cr[t].destroy(),Cr[t]=null}),Cr={}},gs=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},M1=gs(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(t,{expose:e,emit:r}){const n=r,i=t,o=re.ref(null),a=re.shallowRef(),s=re.computed(()=>!!(i.data||i.url));re.watch(()=>[i.data,i.url],()=>{s.value&&p()});function p(){return Qe(this,null,function*(){try{if(yield re.nextTick(),!o.value){console.error("未找到meta2d元素!");return}let m=null;if(i.data?m=i.data:i.url&&(m=yield y()),!m||!m.data){console.log("图纸数据为空");return}const g=m.options||{background:"#eee",disableAnchor:!1};if(a.value&&(a.value.destroy(!0),a.value=null),!o.value){console.error("Meta2D 容器元素不可用");return}a.value=new de.Meta2d(o.value,te({},g)),g.visibleLevel&&a.value.scale(g.visibleLevel),f(),l(),yield v(m.data),a.value.render(),x(),setTimeout(()=>{window!=null&&window.meta2dTools&&(window==null||window.registerToolsNew())},1e3),n("loaded",a.value)}catch(m){console.error("初始化编辑器失败:",m),Be.ElMessage.error("初始化编辑器失败")}})}function f(){if(!a.value)return;new I1({}).initPlugin(a.value,"mindNode",{})}function l(){de.register(rt.classPens()),de.register(ar.flowPens()),de.registerAnchors(ar.flowAnchors()),de.register(st.sequencePens()),de.registerCanvasDraw(st.sequencePensbyCtx()),de.register(gi.activityDiagram()),de.registerCanvasDraw(gi.activityDiagramByCtx()),de.registerCanvasDraw(Ie.formPens()),de.registerCanvasDraw(_r.chartsPens()),de.register(sr.ftaPens()),de.registerAnchors(sr.ftaAnchors()),de.registerCanvasDraw(sr.ftaPensbyCtx())}function v(m){var g,D;if(a.value){if(typeof m.locked=="undefined"&&(m.locked=0),m.bkImage&&a.value.setBackgroundImage(m.bkImage),m.pens&&m.pens.length>0){const C=m.pens.filter(_=>_.name==="video"&&_.streamUrl);C.length>0&&setTimeout(()=>{C.forEach(_=>{k1(_)})},500);const w=((D=(g=window==null?void 0:window.meta)==null?void 0:g.graph)==null?void 0:D.penCountThreshold)||2e3;m.pens.length>w&&m.scale&&m.pens.forEach(_=>{const T=_.visibleLevel;T!==void 0?(_.visible=m.scale>=T,_.visible||(_.disabled=!0,_.locked=de.LockState.Disable)):(_.visible=!0,_.disabled=!1,_.locked=de.LockState.None)})}a.value.open(m)}}function x(){a.value&&a.value.on("scale",A)}function A(m){var g,D;try{if(!a.value)return;dn.emit("graph-scale",m);let C=a.value.store.data.pens;const w=((D=(g=window==null?void 0:window.meta)==null?void 0:g.graph)==null?void 0:D.penCountThreshold)||500;if(!(C.length>w))return;for(let _=0;_<C.length;_++){const T=C[_],k=T.visibleLevel!==void 0?m>=T.visibleLevel:!0;a.value._setValue({id:T.id,visible:k,disabled:!k,locked:k?de.LockState.None:de.LockState.Disable})}a.value.render()}catch(C){console.error("处理缩放失败:",C)}}function y(){return Qe(this,null,function*(){return i.url?(yield xn.getGraphApi(i.url,{local:i.local}))||null:(Be.ElMessage.error("图纸路径为空!"),null)})}return re.onMounted(()=>{s.value&&p()}),re.onUnmounted(()=>{P1(),O1(),a.value&&(i.preview?(ke.clearLineCross(),a.value.destroy(!0)):a.value.off("scale",A))}),e({stage:a}),(m,g)=>(re.openBlock(),re.createElementBlock("div",{ref_key:"meta2dRef",ref:o,class:"meta2d-editor"},null,512))}}),[["__scopeId","data-v-664781e2"]]),L1={class:"preview-container"},U1={key:0,class:"back-btn"},br=gs(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},config:{type:Object,default:()=>({socketUrl:aa,stationIdKey:ps,userTokenKey:ds,messageDelay:200,debounceDelay:100,enableAutoFit:!0,enableWebSocket:!0,graphSocket:oa.GRAPH.SOCKET})},showMap:{type:Boolean,default:!1},isFactory:{type:Boolean,default:!1},apiInstance:{type:Object,default:()=>xn},mittInstance:{type:Object,default:()=>dn},customCallbacks:{type:Object,default:()=>({})},errorHandler:{type:Object,default:()=>({callback:null,showMessage:!0})}},emits:["error","loaded","custom-msg","socket-msg"],setup(t,{expose:e,emit:r}){const n=r,i=t;let o=re.ref(!1),a=re.ref(""),s=re.ref(!1);const p=re.ref(null),f=re.ref(""),l=re.ref(!1),v=re.computed(()=>{var S;return(S=p.value)==null?void 0:S.stage}),x=re.computed(()=>{var S;return(S=v.value)==null?void 0:S.store}),A=re.computed(()=>te({socketUrl:aa,stationIdKey:ps,userTokenKey:ds,messageDelay:200,debounceDelay:100,enableAutoFit:!0,enableWebSocket:!0,graphSocket:oa.GRAPH.SOCKET},i.config)),y=()=>i.apiInstance||xn,m=()=>i.mittInstance||dn,g=(S,N="")=>{const M={error:S,message:N,timestamp:new Date().toISOString()};n("error",M),i.errorHandler.callback?i.errorHandler.callback(M):i.errorHandler.showMessage&&Be.ElMessage&&Be.ElMessage.error(`${N}: ${S.message||S}`)},D=()=>{a.value&&(f.value=a.value,l.value=s.value)},C=S=>{var N,M;try{if(!S)return;if(S.includes("token 必传"))return Be.ElMessage.warning(S);if(S.data==="服务错误"||S.data.includes("token is expired"))return Be.ElMessage.warning(S.data);n("socket-msg",S);const H=typeof S=="string"?JSON.parse(S):S;if(((N=H.data)==null?void 0:N.length)>0){const Y=setTimeout(()=>{clearTimeout(Y),v.value&&(H.data.forEach(W=>{const ee=v.value.find(W.dataId);I(ee,W)}),v.value.render())},A.value.messageDelay);i.customCallbacks.onWebSocketMessage&&i.customCallbacks.onWebSocketMessage(H),(M=window.customSocketFn)==null||M.call(window,S)}return!0}catch(H){return g(H,"WebSocket消息处理"),!0}},w=S=>Qe(this,null,function*(){var N;try{if(S.params){const M=JSON.parse(S.params);switch(M.action){case ct.CHANGE_GRAPH:(M==null?void 0:M.data)!=="图纸id"&&(a.value=f.value,s.value=l.value,o.value=M.isBack,(N=M==null?void 0:M.data)!=null&&N.startsWith("/")?(f.value=M==null?void 0:M.data,l.value=!0):(l.value=!1,_(M.data)));break}}n("custom-msg",S),i.customCallbacks.onCustomMessage&&i.customCallbacks.onCustomMessage(S)}catch(M){g(M,"自定义消息处理")}}),b=S=>{var N,M;try{n("loaded",S);const H=T(),Y=A.value,W=hs.getSession(Y.stationIdKey),ee=hs.getSession(Y.userTokenKey);!((M=(N=S.store)==null?void 0:N.data)!=null&&M.websocket)&&Y.enableWebSocket&&W&&ee&&(S.store.data.websocket=`${Y.socketUrl}?station_id=${W}`,S.store.data.websocketProtocols=ee,S.connectWebsocket()),(i.showMap||H.showMap==="true")&&S.showMap(),S.setRule({rule:!1}),S.setOptions({disableRuleLine:!0}),S.setGrid({grid:!1}),S.lock(de.LockState.DisableEdit),X().forEach(O=>{var U;(U=O==null?void 0:O.events)!=null&&U.length?k({id:O.id,locked:1},!1):k({id:O.id,locked:10},!1)}),S.render(),Y.enableAutoFit&&S.fitView(!0,24),S.on(ct.CUSTOM_MSG,w),S.on(ct.CHANGE_GRAPH,w),S&&(S.socketFn=C),i.customCallbacks.onStageLoaded&&i.customCallbacks.onStageLoaded(S)}catch(H){g(H,"图纸加载完成处理")}},_=S=>Qe(this,null,function*(){var N;try{if(i.url){f.value=i.url,l.value=i.local;return}const M=T();if(S=S||i.gid||M.id,M.local==="true"&&(l.value=!0),S){const H=y();if(H&&H.getCommonApi){const Y=yield H.getCommonApi(i.isFactory?"graph":"floorplan",{guid:S});if((N=Y.data)!=null&&N.length)f.value=Y.data[0].path,i.customCallbacks.onGraphLoaded&&i.customCallbacks.onGraphLoaded(f.value);else{const W="未找到图纸!";g(new Error(W),"获取图纸数据")}}else g(new Error("API实例不可用"),"初始化图纸数据!")}else f.value=i.url,l.value=i.local}catch(M){g(M,"获取图纸数据失败")}}),T=()=>{var H;const S={},N=((H=window.location.href.split("?"))==null?void 0:H[1])||"",M=new URLSearchParams(N);for(const[Y,W]of M.entries())S[Y]=W;return S},k=(S,N=!0)=>{if(v.value)return v.value.setValue(S,{render:N})},q=()=>v.value,X=()=>{var S,N;return((N=(S=x.value)==null?void 0:S.data)==null?void 0:N.pens)||[]},I=(()=>{let S=null;const N=new Map,M=new Map,H=W=>{var J;if(!((J=W.children)!=null&&J.length))return[];const ee=W.id||"";if(!ee)return[];if(!M.has(ee)&&x.value){const O=de.getAllChildren(W,x.value);M.set(ee,O)}return M.get(ee)||[]},Y=()=>{if(N.size===0||!v.value||!x.value)return;const W=[],ee=[],J=x.value.animates;N.forEach(({pen:O,dataItem:U,formKey:V})=>{switch(V){case"light_plate":{const z=U.value===-1||xs(U)?"#999999":ms[U.value!==void 0?U.value:U.alarm_value],se=U.value===-1||xs(U)?"#cccccc":ys[U.value!==void 0?U.value:U.alarm_value];k({id:O.id,textColor:z,background:se},!1)}break;case"point_value":O.penType===Ce.POINT_VALUE&&H(O).forEach(se=>{se.name==="text"&&k({id:se.id,text:U.value},!1)});break;case"online_state":{let z=U.value?void 0:"contrast(0%)";k({id:O.id,filter:z},!1),H(O).forEach(ce=>{k({id:ce.id,filter:z},!1)})}break;case"charged_state":{const z=U.value===th.OFFLINE?"contrast(0%)":void 0;z!==O.filter&&(k({id:O.id,filter:z},!1),H(O).forEach(ce=>{k({id:ce.id,filter:z},!1)}))}break;case"electric_direction":U.value===rh.STOP?J!=null&&J.has(O)&&ee.push(O):!!U.value!==O.animateReverse&&(k({id:O.id,animateReverse:!!U.value},!1),J!=null&&J.has(O)||W.push(O));break;case"electric_size":{const z=nh[U.value];z!==void 0&&z!==O.lineWidth&&k({id:O.id,lineWidth:z},!1)}break}}),ee.length>0&&v.value.stopAnimate(ee),W.length>0&&v.value.startAnimate(W),N.clear(),v.value.render()};return(W,ee)=>{W!=null&&W.length&&(W.forEach(J=>{const O=J.form;O!=null&&O.length&&O.forEach(U=>{if(!(Array.isArray(U.dataIds)?U.dataIds:[U.dataIds]).some(ce=>(ce==null?void 0:ce.dataId)===ee.dataId))return;const se=`${J.id}-${U.key}`;N.set(se,{pen:J,dataItem:ee,formKey:U.key})})}),S&&clearTimeout(S),S=setTimeout(()=>{Y(),S=null},A.value.debounceDelay))}})(),P=S=>{if(v.value){for(let N=0;N<S.length;N++){const M=S[N],H=v.value.find(M.dataId);I(H,M)}v.value.render(),i.customCallbacks.onBatchUpdate&&i.customCallbacks.onBatchUpdate(S)}},G=(S,N=!1)=>{if(!v.value)return;const M=X();for(let H=0;H<M.length;H++){const Y=M[H];let W=!1;N?W=S===Y.dataProp:W=S===5?!0:Y.dataProp<=S,k({id:Y.id,visible:W},!1)}v.value.fitView(),v.value.render(),i.customCallbacks.onLevelChange&&i.customCallbacks.onLevelChange(S,N)};return re.watch(()=>[i.url,i.isFactory,i.local,i.data,i.gid],()=>{_()}),re.watch(()=>i.showMap,()=>{v.value&&v.value.showMap()}),re.onMounted(()=>{const S=m();S&&S.on&&S.on(A.value.graphSocket,C),_()}),re.onUnmounted(()=>{const S=m();S&&S.off&&S.off(A.value.graphSocket,C)}),e({setValue:k,getStage:q,getAllPens:X,batchUpdatePen:P,handleLineCross:ke.handleLineCross,changeVisibleByLevel:G}),(S,N)=>{const M=re.resolveComponent("el-button");return re.openBlock(),re.createElementBlock("div",L1,[re.createVNode(M1,{ref_key:"graphRef",ref:p,url:f.value,local:l.value,data:i.data,preview:"",onLoaded:b},null,8,["url","local","data"]),re.unref(o)?(re.openBlock(),re.createElementBlock("div",U1,[re.createVNode(M,{type:"primary",onClick:D},{default:re.withCtx(()=>N[0]||(N[0]=[re.createTextVNode("返回",-1)])),_:1,__:[0]})])):re.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-c09e5d6b"]]);br.name||(br.name="SyGraph");const N1={install:t=>{t.component(br.name||"SyGraph",br)}};ae.SyGraph=br,ae.default=N1,Object.defineProperties(ae,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|