@syhr/sy-threed-graph 1.0.0-beta1 → 1.0.0-beta2
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/lib-threed/sy-threed-graph.cjs +19 -19
- package/lib-threed/sy-threed-graph.mjs +2279 -2280
- package/lib-threed/sy-threed-graph.umd.js +21 -21
- package/lib-threed/threed-graph.css +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";require('./threed-graph.css');var Gu=Object.defineProperty,ju=Object.defineProperties;var Ku=Object.getOwnPropertyDescriptors;var In=Object.getOwnPropertySymbols;var X0=Object.prototype.hasOwnProperty,J0=Object.prototype.propertyIsEnumerable;var Br=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Yu=t=>{throw TypeError(t)};var Ui=(t,e,r)=>e in t?Gu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ue=(t,e)=>{for(var r in e||(e={}))X0.call(e,r)&&Ui(t,r,e[r]);if(In)for(var r of In(e))J0.call(e,r)&&Ui(t,r,e[r]);return t},Rt=(t,e)=>ju(t,Ku(e));var Q0=(t,e)=>{var r={};for(var n in t)X0.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&In)for(var n of In(t))e.indexOf(n)<0&&J0.call(t,n)&&(r[n]=t[n]);return r};var rr=(t,e,r)=>Ui(t,typeof e!="symbol"?e+"":e,r);var Be=(t,e,r)=>new Promise((n,i)=>{var o=l=>{try{a(r.next(l))}catch(c){i(c)}},s=l=>{try{a(r.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);a((r=r.apply(t,e)).next())}),nr=function(t,e){this[0]=t,this[1]=e},$i=(t,e,r)=>{var n=(s,a,l,c)=>{try{var u=r[s](a),x=(a=u.value)instanceof nr,h=u.done;Promise.resolve(x?a[0]:a).then(y=>x?n(s==="return"?s:"next",a[1]?{done:y.done,value:y.value}:y,l,c):l({value:y,done:h})).catch(y=>n("throw",y,l,c))}catch(y){c(y)}},i=s=>o[s]=a=>new Promise((l,c)=>n(s,a,l,c)),o={};return r=r.apply(t,e),o[Br("asyncIterator")]=()=>o,i("next"),i("throw"),i("return"),o},Hi=t=>{var e=t[Br("asyncIterator")],r=!1,n,i={};return e==null?(e=t[Br("iterator")](),n=o=>i[o]=s=>e[o](s)):(e=e.call(t),n=o=>i[o]=s=>{if(r){if(r=!1,o==="throw")throw s;return s}return r=!0,{done:!1,value:new nr(new Promise(a=>{var l=e[o](s);l instanceof Object||Yu("Object expected"),a(l)}),1)}}),i[Br("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=o=>{throw o},"return"in e&&n("return"),i},Z0=(t,e,r)=>(e=t[Br("asyncIterator")])?e.call(t):(t=t[Br("iterator")](),e={},r=(n,i)=>(i=t[n])&&(e[n]=o=>new Promise((s,a,l)=>(o=i.call(t,o),l=o.done,Promise.resolve(o.value).then(c=>s({value:c,done:l}),a)))),r("next"),r("return"),e);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const P=require("vue"),_0=require("pinia"),b0=require("lodash-es"),je=require("three"),ht=require("three-edit-cores");var zi=typeof document!="undefined"?document.currentScript:null,be=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function C0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Xu(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 zr=TypeError;const Ju={},Qu=Object.freeze(Object.defineProperty({__proto__:null,default:Ju},Symbol.toStringTag,{value:"Module"})),dc=Xu(Qu);var B0=typeof Map=="function"&&Map.prototype,qi=Object.getOwnPropertyDescriptor&&B0?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Qn=B0&&qi&&typeof qi.get=="function"?qi.get:null,ea=B0&&Map.prototype.forEach,D0=typeof Set=="function"&&Set.prototype,Wi=Object.getOwnPropertyDescriptor&&D0?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Zn=D0&&Wi&&typeof Wi.get=="function"?Wi.get:null,ta=D0&&Set.prototype.forEach,Zu=typeof WeakMap=="function"&&WeakMap.prototype,sn=Zu?WeakMap.prototype.has:null,ef=typeof WeakSet=="function"&&WeakSet.prototype,cn=ef?WeakSet.prototype.has:null,tf=typeof WeakRef=="function"&&WeakRef.prototype,ra=tf?WeakRef.prototype.deref:null,rf=Boolean.prototype.valueOf,nf=Object.prototype.toString,of=Function.prototype.toString,af=String.prototype.match,S0=String.prototype.slice,Kt=String.prototype.replace,sf=String.prototype.toUpperCase,na=String.prototype.toLowerCase,pc=RegExp.prototype.test,ia=Array.prototype.concat,Nt=Array.prototype.join,cf=Array.prototype.slice,oa=Math.floor,e0=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Vi=Object.getOwnPropertySymbols,t0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",un=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Mr||!0)?Symbol.toStringTag:null,xc=Object.prototype.propertyIsEnumerable,aa=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function sa(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||pc.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-oa(-t):oa(t);if(n!==t){var i=String(n),o=S0.call(e,i.length+1);return Kt.call(i,r,"$&_")+"."+Kt.call(Kt.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Kt.call(e,r,"$&_")}var r0=dc,ca=r0.custom,ua=mc(ca)?ca:null,vc={__proto__:null,double:'"',single:"'"},uf={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},si=function t(e,r,n,i){var o=r||{};if(Ht(o,"quoteStyle")&&!Ht(vc,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ht(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Ht(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ht(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(Ht(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=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 Ec(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return a?sa(e,l):l}if(typeof e=="bigint"){var c=String(e)+"n";return a?sa(e,c):c}var u=typeof o.depth=="undefined"?5:o.depth;if(typeof n=="undefined"&&(n=0),n>=u&&u>0&&typeof e=="object")return n0(e)?"[Array]":"[Object]";var x=Df(o,n);if(typeof i=="undefined")i=[];else if(gc(i,e)>=0)return"[Circular]";function h(X,te,Y){if(te&&(i=cf.call(i),i.push(te)),Y){var Q={depth:o.depth};return Ht(o,"quoteStyle")&&(Q.quoteStyle=o.quoteStyle),t(X,Q,n+1,i)}return t(X,o,n+1,i)}if(typeof e=="function"&&!fa(e)){var y=mf(e),m=Tn(e,h);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(m.length>0?" { "+Nt.call(m,", ")+" }":"")}if(mc(e)){var E=Mr?Kt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):t0.call(e);return typeof e=="object"&&!Mr?en(E):E}if(bf(e)){for(var A="<"+na.call(String(e.nodeName)),R=e.attributes||[],w=0;w<R.length;w++)A+=" "+R[w].name+"="+yc(ff(R[w].value),"double",o);return A+=">",e.childNodes&&e.childNodes.length&&(A+="..."),A+="</"+na.call(String(e.nodeName))+">",A}if(n0(e)){if(e.length===0)return"[]";var _=Tn(e,h);return x&&!Bf(_)?"["+i0(_,x)+"]":"[ "+Nt.call(_,", ")+" ]"}if(hf(e)){var D=Tn(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!xc.call(e,"cause")?"{ ["+String(e)+"] "+Nt.call(ia.call("[cause]: "+h(e.cause),D),", ")+" }":D.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Nt.call(D,", ")+" }"}if(typeof e=="object"&&s){if(ua&&typeof e[ua]=="function"&&r0)return r0(e,{depth:u-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(gf(e)){var C=[];return ea&&ea.call(e,function(X,te){C.push(h(te,e,!0)+" => "+h(X,e))}),la("Map",Qn.call(e),C,x)}if(wf(e)){var T=[];return ta&&ta.call(e,function(X){T.push(h(X,e))}),la("Set",Zn.call(e),T,x)}if(Ef(e))return Gi("WeakMap");if(_f(e))return Gi("WeakSet");if(Af(e))return Gi("WeakRef");if(pf(e))return en(h(Number(e)));if(vf(e))return en(h(e0.call(e)));if(xf(e))return en(rf.call(e));if(df(e))return en(h(String(e)));if(typeof window!="undefined"&&e===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&e===globalThis||typeof be!="undefined"&&e===be)return"{ [object globalThis] }";if(!lf(e)&&!fa(e)){var L=Tn(e,h),H=aa?aa(e)===Object.prototype:e instanceof Object||e.constructor===Object,Z=e instanceof Object?"":"null prototype",O=!H&&un&&Object(e)===e&&un in e?S0.call(Xt(e),8,-1):Z?"Object":"",k=H||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",V=k+(O||Z?"["+Nt.call(ia.call([],O||[],Z||[]),": ")+"] ":"");return L.length===0?V+"{}":x?V+"{"+i0(L,x)+"}":V+"{ "+Nt.call(L,", ")+" }"}return String(e)};function yc(t,e,r){var n=r.quoteStyle||e,i=vc[n];return i+t+i}function ff(t){return Kt.call(String(t),/"/g,""")}function dr(t){return!un||!(typeof t=="object"&&(un in t||typeof t[un]!="undefined"))}function n0(t){return Xt(t)==="[object Array]"&&dr(t)}function lf(t){return Xt(t)==="[object Date]"&&dr(t)}function fa(t){return Xt(t)==="[object RegExp]"&&dr(t)}function hf(t){return Xt(t)==="[object Error]"&&dr(t)}function df(t){return Xt(t)==="[object String]"&&dr(t)}function pf(t){return Xt(t)==="[object Number]"&&dr(t)}function xf(t){return Xt(t)==="[object Boolean]"&&dr(t)}function mc(t){if(Mr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!t0)return!1;try{return t0.call(t),!0}catch(e){}return!1}function vf(t){if(!t||typeof t!="object"||!e0)return!1;try{return e0.call(t),!0}catch(e){}return!1}var yf=Object.prototype.hasOwnProperty||function(t){return t in this};function Ht(t,e){return yf.call(t,e)}function Xt(t){return nf.call(t)}function mf(t){if(t.name)return t.name;var e=af.call(of.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function gc(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 gf(t){if(!Qn||!t||typeof t!="object")return!1;try{Qn.call(t);try{Zn.call(t)}catch(e){return!0}return t instanceof Map}catch(e){}return!1}function Ef(t){if(!sn||!t||typeof t!="object")return!1;try{sn.call(t,sn);try{cn.call(t,cn)}catch(e){return!0}return t instanceof WeakMap}catch(e){}return!1}function Af(t){if(!ra||!t||typeof t!="object")return!1;try{return ra.call(t),!0}catch(e){}return!1}function wf(t){if(!Zn||!t||typeof t!="object")return!1;try{Zn.call(t);try{Qn.call(t)}catch(e){return!0}return t instanceof Set}catch(e){}return!1}function _f(t){if(!cn||!t||typeof t!="object")return!1;try{cn.call(t,cn);try{sn.call(t,sn)}catch(e){return!0}return t instanceof WeakSet}catch(e){}return!1}function bf(t){return!t||typeof t!="object"?!1:typeof HTMLElement!="undefined"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Ec(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Ec(S0.call(t,0,e.maxStringLength),e)+n}var i=uf[e.quoteStyle||"single"];i.lastIndex=0;var o=Kt.call(Kt.call(t,i,"\\$1"),/[\x00-\x1f]/g,Cf);return yc(o,"single",e)}function Cf(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":"")+sf.call(e.toString(16))}function en(t){return"Object("+t+")"}function Gi(t){return t+" { ? }"}function la(t,e,r,n){var i=n?i0(r,n):Nt.call(r,", ");return t+" ("+e+") {"+i+"}"}function Bf(t){for(var e=0;e<t.length;e++)if(gc(t[e],`
|
|
2
|
-
`)>=0)return!1;return!0}function Df(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=Nt.call(Array(t.indent+1)," ");else return null;return{base:r,prev:Nt.call(Array(e+1),r)}}function
|
|
1
|
+
"use strict";require('./threed-graph.css');var Gu=Object.defineProperty,ju=Object.defineProperties;var Ku=Object.getOwnPropertyDescriptors;var In=Object.getOwnPropertySymbols;var Y0=Object.prototype.hasOwnProperty,X0=Object.prototype.propertyIsEnumerable;var Br=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Yu=t=>{throw TypeError(t)};var Ui=(t,e,r)=>e in t?Gu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ue=(t,e)=>{for(var r in e||(e={}))Y0.call(e,r)&&Ui(t,r,e[r]);if(In)for(var r of In(e))X0.call(e,r)&&Ui(t,r,e[r]);return t},Rt=(t,e)=>ju(t,Ku(e));var J0=(t,e)=>{var r={};for(var n in t)Y0.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&In)for(var n of In(t))e.indexOf(n)<0&&X0.call(t,n)&&(r[n]=t[n]);return r};var rr=(t,e,r)=>Ui(t,typeof e!="symbol"?e+"":e,r);var Be=(t,e,r)=>new Promise((n,i)=>{var o=u=>{try{a(r.next(u))}catch(c){i(c)}},s=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,s);a((r=r.apply(t,e)).next())}),nr=function(t,e){this[0]=t,this[1]=e},$i=(t,e,r)=>{var n=(s,a,u,c)=>{try{var f=r[s](a),x=(a=f.value)instanceof nr,h=f.done;Promise.resolve(x?a[0]:a).then(y=>x?n(s==="return"?s:"next",a[1]?{done:y.done,value:y.value}:y,u,c):u({value:y,done:h})).catch(y=>n("throw",y,u,c))}catch(y){c(y)}},i=s=>o[s]=a=>new Promise((u,c)=>n(s,a,u,c)),o={};return r=r.apply(t,e),o[Br("asyncIterator")]=()=>o,i("next"),i("throw"),i("return"),o},Hi=t=>{var e=t[Br("asyncIterator")],r=!1,n,i={};return e==null?(e=t[Br("iterator")](),n=o=>i[o]=s=>e[o](s)):(e=e.call(t),n=o=>i[o]=s=>{if(r){if(r=!1,o==="throw")throw s;return s}return r=!0,{done:!1,value:new nr(new Promise(a=>{var u=e[o](s);u instanceof Object||Yu("Object expected"),a(u)}),1)}}),i[Br("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=o=>{throw o},"return"in e&&n("return"),i},Q0=(t,e,r)=>(e=t[Br("asyncIterator")])?e.call(t):(t=t[Br("iterator")](),e={},r=(n,i)=>(i=t[n])&&(e[n]=o=>new Promise((s,a,u)=>(o=i.call(t,o),u=o.done,Promise.resolve(o.value).then(c=>s({value:c,done:u}),a)))),r("next"),r("return"),e);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const P=require("vue"),w0=require("pinia"),_0=require("lodash-es"),je=require("three"),xt=require("three-edit-cores");var be=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function b0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Xu(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 zr=TypeError;const Ju={},Qu=Object.freeze(Object.defineProperty({__proto__:null,default:Ju},Symbol.toStringTag,{value:"Module"})),hc=Xu(Qu);var C0=typeof Map=="function"&&Map.prototype,zi=Object.getOwnPropertyDescriptor&&C0?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Qn=C0&&zi&&typeof zi.get=="function"?zi.get:null,Z0=C0&&Map.prototype.forEach,B0=typeof Set=="function"&&Set.prototype,qi=Object.getOwnPropertyDescriptor&&B0?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Zn=B0&&qi&&typeof qi.get=="function"?qi.get:null,ea=B0&&Set.prototype.forEach,Zu=typeof WeakMap=="function"&&WeakMap.prototype,sn=Zu?WeakMap.prototype.has:null,ef=typeof WeakSet=="function"&&WeakSet.prototype,cn=ef?WeakSet.prototype.has:null,tf=typeof WeakRef=="function"&&WeakRef.prototype,ta=tf?WeakRef.prototype.deref:null,rf=Boolean.prototype.valueOf,nf=Object.prototype.toString,of=Function.prototype.toString,af=String.prototype.match,D0=String.prototype.slice,Kt=String.prototype.replace,sf=String.prototype.toUpperCase,ra=String.prototype.toLowerCase,dc=RegExp.prototype.test,na=Array.prototype.concat,Nt=Array.prototype.join,cf=Array.prototype.slice,ia=Math.floor,Zo=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Wi=Object.getOwnPropertySymbols,e0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",un=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Mr||!0)?Symbol.toStringTag:null,pc=Object.prototype.propertyIsEnumerable,oa=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function aa(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||dc.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-ia(-t):ia(t);if(n!==t){var i=String(n),o=D0.call(e,i.length+1);return Kt.call(i,r,"$&_")+"."+Kt.call(Kt.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Kt.call(e,r,"$&_")}var t0=hc,sa=t0.custom,ca=yc(sa)?sa:null,xc={__proto__:null,double:'"',single:"'"},uf={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},si=function t(e,r,n,i){var o=r||{};if(Ht(o,"quoteStyle")&&!Ht(xc,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ht(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Ht(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ht(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(Ht(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=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 gc(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?aa(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return a?aa(e,c):c}var f=typeof o.depth=="undefined"?5:o.depth;if(typeof n=="undefined"&&(n=0),n>=f&&f>0&&typeof e=="object")return r0(e)?"[Array]":"[Object]";var x=Df(o,n);if(typeof i=="undefined")i=[];else if(mc(i,e)>=0)return"[Circular]";function h(X,ee,Y){if(ee&&(i=cf.call(i),i.push(ee)),Y){var Z={depth:o.depth};return Ht(o,"quoteStyle")&&(Z.quoteStyle=o.quoteStyle),t(X,Z,n+1,i)}return t(X,o,n+1,i)}if(typeof e=="function"&&!ua(e)){var y=mf(e),m=Tn(e,h);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(m.length>0?" { "+Nt.call(m,", ")+" }":"")}if(yc(e)){var E=Mr?Kt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):e0.call(e);return typeof e=="object"&&!Mr?en(E):E}if(bf(e)){for(var A="<"+ra.call(String(e.nodeName)),R=e.attributes||[],w=0;w<R.length;w++)A+=" "+R[w].name+"="+vc(ff(R[w].value),"double",o);return A+=">",e.childNodes&&e.childNodes.length&&(A+="..."),A+="</"+ra.call(String(e.nodeName))+">",A}if(r0(e)){if(e.length===0)return"[]";var _=Tn(e,h);return x&&!Bf(_)?"["+n0(_,x)+"]":"[ "+Nt.call(_,", ")+" ]"}if(hf(e)){var B=Tn(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!pc.call(e,"cause")?"{ ["+String(e)+"] "+Nt.call(na.call("[cause]: "+h(e.cause),B),", ")+" }":B.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Nt.call(B,", ")+" }"}if(typeof e=="object"&&s){if(ca&&typeof e[ca]=="function"&&t0)return t0(e,{depth:f-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(gf(e)){var D=[];return Z0&&Z0.call(e,function(X,ee){D.push(h(ee,e,!0)+" => "+h(X,e))}),fa("Map",Qn.call(e),D,x)}if(wf(e)){var T=[];return ea&&ea.call(e,function(X){T.push(h(X,e))}),fa("Set",Zn.call(e),T,x)}if(Ef(e))return Vi("WeakMap");if(_f(e))return Vi("WeakSet");if(Af(e))return Vi("WeakRef");if(pf(e))return en(h(Number(e)));if(vf(e))return en(h(Zo.call(e)));if(xf(e))return en(rf.call(e));if(df(e))return en(h(String(e)));if(typeof window!="undefined"&&e===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&e===globalThis||typeof be!="undefined"&&e===be)return"{ [object globalThis] }";if(!lf(e)&&!ua(e)){var L=Tn(e,h),z=oa?oa(e)===Object.prototype:e instanceof Object||e.constructor===Object,Q=e instanceof Object?"":"null prototype",O=!z&&un&&Object(e)===e&&un in e?D0.call(Xt(e),8,-1):Q?"Object":"",k=z||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",V=k+(O||Q?"["+Nt.call(na.call([],O||[],Q||[]),": ")+"] ":"");return L.length===0?V+"{}":x?V+"{"+n0(L,x)+"}":V+"{ "+Nt.call(L,", ")+" }"}return String(e)};function vc(t,e,r){var n=r.quoteStyle||e,i=xc[n];return i+t+i}function ff(t){return Kt.call(String(t),/"/g,""")}function dr(t){return!un||!(typeof t=="object"&&(un in t||typeof t[un]!="undefined"))}function r0(t){return Xt(t)==="[object Array]"&&dr(t)}function lf(t){return Xt(t)==="[object Date]"&&dr(t)}function ua(t){return Xt(t)==="[object RegExp]"&&dr(t)}function hf(t){return Xt(t)==="[object Error]"&&dr(t)}function df(t){return Xt(t)==="[object String]"&&dr(t)}function pf(t){return Xt(t)==="[object Number]"&&dr(t)}function xf(t){return Xt(t)==="[object Boolean]"&&dr(t)}function yc(t){if(Mr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!e0)return!1;try{return e0.call(t),!0}catch(e){}return!1}function vf(t){if(!t||typeof t!="object"||!Zo)return!1;try{return Zo.call(t),!0}catch(e){}return!1}var yf=Object.prototype.hasOwnProperty||function(t){return t in this};function Ht(t,e){return yf.call(t,e)}function Xt(t){return nf.call(t)}function mf(t){if(t.name)return t.name;var e=af.call(of.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function mc(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 gf(t){if(!Qn||!t||typeof t!="object")return!1;try{Qn.call(t);try{Zn.call(t)}catch(e){return!0}return t instanceof Map}catch(e){}return!1}function Ef(t){if(!sn||!t||typeof t!="object")return!1;try{sn.call(t,sn);try{cn.call(t,cn)}catch(e){return!0}return t instanceof WeakMap}catch(e){}return!1}function Af(t){if(!ta||!t||typeof t!="object")return!1;try{return ta.call(t),!0}catch(e){}return!1}function wf(t){if(!Zn||!t||typeof t!="object")return!1;try{Zn.call(t);try{Qn.call(t)}catch(e){return!0}return t instanceof Set}catch(e){}return!1}function _f(t){if(!cn||!t||typeof t!="object")return!1;try{cn.call(t,cn);try{sn.call(t,sn)}catch(e){return!0}return t instanceof WeakSet}catch(e){}return!1}function bf(t){return!t||typeof t!="object"?!1:typeof HTMLElement!="undefined"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function gc(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return gc(D0.call(t,0,e.maxStringLength),e)+n}var i=uf[e.quoteStyle||"single"];i.lastIndex=0;var o=Kt.call(Kt.call(t,i,"\\$1"),/[\x00-\x1f]/g,Cf);return vc(o,"single",e)}function Cf(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":"")+sf.call(e.toString(16))}function en(t){return"Object("+t+")"}function Vi(t){return t+" { ? }"}function fa(t,e,r,n){var i=n?n0(r,n):Nt.call(r,", ");return t+" ("+e+") {"+i+"}"}function Bf(t){for(var e=0;e<t.length;e++)if(mc(t[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function Df(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=Nt.call(Array(t.indent+1)," ");else return null;return{base:r,prev:Nt.call(Array(e+1),r)}}function n0(t,e){if(t.length===0)return"";var r=`
|
|
3
3
|
`+e.prev+e.base;return r+Nt.call(t,","+r)+`
|
|
4
|
-
`+e.prev}function Tn(t,e){var r=n0(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=Ht(t,i)?e(t[i],t):""}var o=typeof Vi=="function"?Vi(t):[],s;if(Mr){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var l in t)Ht(t,l)&&(r&&String(Number(l))===l&&l<t.length||Mr&&s["$"+l]instanceof Symbol||(pc.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t))));if(typeof Vi=="function")for(var c=0;c<o.length;c++)xc.call(t,o[c])&&n.push("["+e(o[c])+"]: "+e(t[o[c]],t));return n}var Sf=si,Ff=zr,ci=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},Rf=function(t,e){if(t){var r=ci(t,e);return r&&r.value}},If=function(t,e,r){var n=ci(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Tf=function(t,e){return t?!!ci(t,e):!1},Of=function(t,e){if(t)return ci(t,e,!0)},Pf=function(){var e,r={assert:function(n){if(!r.has(n))throw new Ff("Side channel does not contain "+Sf(n))},delete:function(n){var i=e&&e.next,o=Of(e,n);return o&&i&&i===o&&(e=void 0),!!o},get:function(n){return Rf(e,n)},has:function(n){return Tf(e,n)},set:function(n,i){e||(e={next:void 0}),If(e,n,i)}};return r},Ac=Object,Nf=Error,Lf=EvalError,kf=RangeError,Mf=ReferenceError,Uf=SyntaxError,$f=URIError,Hf=Math.abs,zf=Math.floor,qf=Math.max,Wf=Math.min,Vf=Math.pow,Gf=Math.round,jf=Number.isNaN||function(e){return e!==e},Kf=jf,Yf=function(e){return Kf(e)||e===0?e:e<0?-1:1},Xf=Object.getOwnPropertyDescriptor,zn=Xf;if(zn)try{zn([],"length")}catch(t){zn=null}var wc=zn,qn=Object.defineProperty||!1;if(qn)try{qn({},"a",{value:1})}catch(t){qn=!1}var Jf=qn,ji,ha;function Qf(){return ha||(ha=1,ji=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 s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0}),ji}var Ki,da;function Zf(){if(da)return Ki;da=1;var t=typeof Symbol!="undefined"&&Symbol,e=Qf();return Ki=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Ki}var Yi,pa;function _c(){return pa||(pa=1,Yi=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),Yi}var Xi,xa;function bc(){if(xa)return Xi;xa=1;var t=Ac;return Xi=t.getPrototypeOf||null,Xi}var Ji,va;function el(){if(va)return Ji;va=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(l,c){for(var u=[],x=0;x<l.length;x+=1)u[x]=l[x];for(var h=0;h<c.length;h+=1)u[h+l.length]=c[h];return u},o=function(l,c){for(var u=[],x=c,h=0;x<l.length;x+=1,h+=1)u[h]=l[x];return u},s=function(a,l){for(var c="",u=0;u<a.length;u+=1)c+=a[u],u+1<a.length&&(c+=l);return c};return Ji=function(l){var c=this;if(typeof c!="function"||e.apply(c)!==n)throw new TypeError(t+c);for(var u=o(arguments,1),x,h=function(){if(this instanceof x){var R=c.apply(this,i(u,arguments));return Object(R)===R?R:this}return c.apply(l,i(u,arguments))},y=r(0,c.length-u.length),m=[],E=0;E<y;E++)m[E]="$"+E;if(x=Function("binder","return function ("+s(m,",")+"){ return binder.apply(this,arguments); }")(h),c.prototype){var A=function(){};A.prototype=c.prototype,x.prototype=new A,A.prototype=null}return x},Ji}var Qi,ya;function ui(){if(ya)return Qi;ya=1;var t=el();return Qi=Function.prototype.bind||t,Qi}var Zi,ma;function F0(){return ma||(ma=1,Zi=Function.prototype.call),Zi}var eo,ga;function Cc(){return ga||(ga=1,eo=Function.prototype.apply),eo}var tl=typeof Reflect!="undefined"&&Reflect&&Reflect.apply,rl=ui(),nl=Cc(),il=F0(),ol=tl,al=ol||rl.call(il,nl),sl=ui(),cl=zr,ul=F0(),fl=al,Bc=function(e){if(e.length<1||typeof e[0]!="function")throw new cl("a function is required");return fl(sl,ul,e)},to,Ea;function ll(){if(Ea)return to;Ea=1;var t=Bc,e=wc,r;try{r=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var n=!!r&&e&&e(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return to=n&&typeof n.get=="function"?t([n.get]):typeof o=="function"?function(a){return o(a==null?a:i(a))}:!1,to}var ro,Aa;function hl(){if(Aa)return ro;Aa=1;var t=_c(),e=bc(),r=ll();return ro=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,ro}var no,wa;function dl(){if(wa)return no;wa=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=ui();return no=r.call(t,e),no}var Re,pl=Ac,xl=Nf,vl=Lf,yl=kf,ml=Mf,Ur=Uf,Nr=zr,gl=$f,El=Hf,Al=zf,wl=qf,_l=Wf,bl=Vf,Cl=Gf,Bl=Yf,Dc=Function,io=function(t){try{return Dc('"use strict"; return ('+t+").constructor;")()}catch(e){}},dn=wc,Dl=Jf,oo=function(){throw new Nr},Sl=dn?function(){try{return arguments.callee,oo}catch(t){try{return dn(arguments,"callee").get}catch(e){return oo}}}():oo,Dr=Zf()(),et=hl(),Fl=bc(),Rl=_c(),Sc=Cc(),vn=F0(),Tr={},Il=typeof Uint8Array=="undefined"||!et?Re:et(Uint8Array),cr={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Re:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Re:ArrayBuffer,"%ArrayIteratorPrototype%":Dr&&et?et([][Symbol.iterator]()):Re,"%AsyncFromSyncIteratorPrototype%":Re,"%AsyncFunction%":Tr,"%AsyncGenerator%":Tr,"%AsyncGeneratorFunction%":Tr,"%AsyncIteratorPrototype%":Tr,"%Atomics%":typeof Atomics=="undefined"?Re:Atomics,"%BigInt%":typeof BigInt=="undefined"?Re:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Re:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Re:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Re:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":xl,"%eval%":eval,"%EvalError%":vl,"%Float16Array%":typeof Float16Array=="undefined"?Re:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Re:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Re:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Re:FinalizationRegistry,"%Function%":Dc,"%GeneratorFunction%":Tr,"%Int8Array%":typeof Int8Array=="undefined"?Re:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Re:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Re:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Dr&&et?et(et([][Symbol.iterator]())):Re,"%JSON%":typeof JSON=="object"?JSON:Re,"%Map%":typeof Map=="undefined"?Re:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Dr||!et?Re:et(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":pl,"%Object.getOwnPropertyDescriptor%":dn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Re:Promise,"%Proxy%":typeof Proxy=="undefined"?Re:Proxy,"%RangeError%":yl,"%ReferenceError%":ml,"%Reflect%":typeof Reflect=="undefined"?Re:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Re:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Dr||!et?Re:et(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Re:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Dr&&et?et(""[Symbol.iterator]()):Re,"%Symbol%":Dr?Symbol:Re,"%SyntaxError%":Ur,"%ThrowTypeError%":Sl,"%TypedArray%":Il,"%TypeError%":Nr,"%Uint8Array%":typeof Uint8Array=="undefined"?Re:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Re:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Re:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Re:Uint32Array,"%URIError%":gl,"%WeakMap%":typeof WeakMap=="undefined"?Re:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Re:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Re:WeakSet,"%Function.prototype.call%":vn,"%Function.prototype.apply%":Sc,"%Object.defineProperty%":Dl,"%Object.getPrototypeOf%":Fl,"%Math.abs%":El,"%Math.floor%":Al,"%Math.max%":wl,"%Math.min%":_l,"%Math.pow%":bl,"%Math.round%":Cl,"%Math.sign%":Bl,"%Reflect.getPrototypeOf%":Rl};if(et)try{null.error}catch(t){var Tl=et(et(t));cr["%Error.prototype%"]=Tl}var Ol=function t(e){var r;if(e==="%AsyncFunction%")r=io("async function () {}");else if(e==="%GeneratorFunction%")r=io("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=io("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&et&&(r=et(i.prototype))}return cr[e]=r,r},_a={__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"]},yn=ui(),ei=dl(),Pl=yn.call(vn,Array.prototype.concat),Nl=yn.call(Sc,Array.prototype.splice),ba=yn.call(vn,String.prototype.replace),ti=yn.call(vn,String.prototype.slice),Ll=yn.call(vn,RegExp.prototype.exec),kl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ml=/\\(\\)?/g,Ul=function(e){var r=ti(e,0,1),n=ti(e,-1);if(r==="%"&&n!=="%")throw new Ur("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ur("invalid intrinsic syntax, expected opening `%`");var i=[];return ba(e,kl,function(o,s,a,l){i[i.length]=a?ba(l,Ml,"$1"):s||o}),i},$l=function(e,r){var n=e,i;if(ei(_a,n)&&(i=_a[n],n="%"+i[0]+"%"),ei(cr,n)){var o=cr[n];if(o===Tr&&(o=Ol(n)),typeof o=="undefined"&&!r)throw new Nr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new Ur("intrinsic "+e+" does not exist!")},R0=function(e,r){if(typeof e!="string"||e.length===0)throw new Nr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Nr('"allowMissing" argument must be a boolean');if(Ll(/^%?[^%]*%?$/,e)===null)throw new Ur("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ul(e),i=n.length>0?n[0]:"",o=$l("%"+i+"%",r),s=o.name,a=o.value,l=!1,c=o.alias;c&&(i=c[0],Nl(n,Pl([0,1],c)));for(var u=1,x=!0;u<n.length;u+=1){var h=n[u],y=ti(h,0,1),m=ti(h,-1);if((y==='"'||y==="'"||y==="`"||m==='"'||m==="'"||m==="`")&&y!==m)throw new Ur("property names with quotes must have matching quotes");if((h==="constructor"||!x)&&(l=!0),i+="."+h,s="%"+i+"%",ei(cr,s))a=cr[s];else if(a!=null){if(!(h in a)){if(!r)throw new Nr("base intrinsic for "+e+" exists, but the property is not available.");return}if(dn&&u+1>=n.length){var E=dn(a,h);x=!!E,x&&"get"in E&&!("originalValue"in E.get)?a=E.get:a=a[h]}else x=ei(a,h),a=a[h];x&&!l&&(cr[s]=a)}}return a},Fc=R0,Rc=Bc,Hl=Rc([Fc("%String.prototype.indexOf%")]),Ic=function(e,r){var n=Fc(e,!!r);return typeof n=="function"&&Hl(e,".prototype.")>-1?Rc([n]):n},zl=R0,mn=Ic,ql=si,Wl=zr,Ca=zl("%Map%",!0),Vl=mn("Map.prototype.get",!0),Gl=mn("Map.prototype.set",!0),jl=mn("Map.prototype.has",!0),Kl=mn("Map.prototype.delete",!0),Yl=mn("Map.prototype.size",!0),Tc=!!Ca&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Wl("Side channel does not contain "+ql(n))},delete:function(n){if(e){var i=Kl(e,n);return Yl(e)===0&&(e=void 0),i}return!1},get:function(n){if(e)return Vl(e,n)},has:function(n){return e?jl(e,n):!1},set:function(n,i){e||(e=new Ca),Gl(e,n,i)}};return r},Xl=R0,fi=Ic,Jl=si,On=Tc,Ql=zr,Sr=Xl("%WeakMap%",!0),Zl=fi("WeakMap.prototype.get",!0),eh=fi("WeakMap.prototype.set",!0),th=fi("WeakMap.prototype.has",!0),rh=fi("WeakMap.prototype.delete",!0),nh=Sr?function(){var e,r,n={assert:function(i){if(!n.has(i))throw new Ql("Side channel does not contain "+Jl(i))},delete:function(i){if(Sr&&i&&(typeof i=="object"||typeof i=="function")){if(e)return rh(e,i)}else if(On&&r)return r.delete(i);return!1},get:function(i){return Sr&&i&&(typeof i=="object"||typeof i=="function")&&e?Zl(e,i):r&&r.get(i)},has:function(i){return Sr&&i&&(typeof i=="object"||typeof i=="function")&&e?th(e,i):!!r&&r.has(i)},set:function(i,o){Sr&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Sr),eh(e,i,o)):On&&(r||(r=On()),r.set(i,o))}};return n}:On,ih=zr,oh=si,ah=Pf,sh=Tc,ch=nh,uh=ch||sh||ah,Oc=function(){var e,r={assert:function(n){if(!r.has(n))throw new ih("Side channel does not contain "+oh(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=uh()),e.set(n,i)}};return r},fh=String.prototype.replace,lh=/%20/g,ao={RFC1738:"RFC1738",RFC3986:"RFC3986"},I0={default:ao.RFC3986,formatters:{RFC1738:function(t){return fh.call(t,lh,"+")},RFC3986:function(t){return String(t)}},RFC1738:ao.RFC1738,RFC3986:ao.RFC3986},hh=I0,dh=Oc,so=Object.prototype.hasOwnProperty,or=Array.isArray,li=dh(),Pr=function(e,r){return li.set(e,r),e},ar=function(e){return li.has(e)},nn=function(e){return li.get(e)},o0=function(e,r){li.set(e,r)},It=function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t}(),ph=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(or(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]!="undefined"&&(i[i.length]=n[o]);r.obj[r.prop]=i}}},fn=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},xh=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(or(e)){var i=e.length;if(n&&typeof n.arrayLimit=="number"&&i>n.arrayLimit)return Pr(fn(e.concat(r),n),i);e[i]=r}else if(e&&typeof e=="object")if(ar(e)){var o=nn(e)+1;e[o]=r,o0(e,o)}else{if(n&&n.strictMerge)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!so.call(Object.prototype,r))&&(e[r]=!0)}else return[e,r];return e}if(!e||typeof e!="object"){if(ar(r)){for(var s=Object.keys(r),a=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},l=0;l<s.length;l++){var c=parseInt(s[l],10);a[c+1]=r[s[l]]}return Pr(a,nn(r)+1)}var u=[e].concat(r);return n&&typeof n.arrayLimit=="number"&&u.length>n.arrayLimit?Pr(fn(u,n),u.length-1):u}var x=e;return or(e)&&!or(r)&&(x=fn(e,n)),or(e)&&or(r)?(r.forEach(function(h,y){if(so.call(e,y)){var m=e[y];m&&typeof m=="object"&&h&&typeof h=="object"?e[y]=t(m,h,n):e[e.length]=h}else e[y]=h}),e):Object.keys(r).reduce(function(h,y){var m=r[y];if(so.call(h,y)?h[y]=t(h[y],m,n):h[y]=m,ar(r)&&!ar(h)&&Pr(h,nn(r)),ar(h)){var E=parseInt(y,10);String(E)===y&&E>=0&&E>nn(h)&&o0(h,E)}return h},x)},vh=function(e,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},e)},yh=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}},co=1024,mh=function(e,r,n,i,o){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;l+=co){for(var c=s.length>=co?s.slice(l,l+co):s,u=[],x=0;x<c.length;++x){var h=c.charCodeAt(x);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===hh.RFC1738&&(h===40||h===41)){u[u.length]=c.charAt(x);continue}if(h<128){u[u.length]=It[h];continue}if(h<2048){u[u.length]=It[192|h>>6]+It[128|h&63];continue}if(h<55296||h>=57344){u[u.length]=It[224|h>>12]+It[128|h>>6&63]+It[128|h&63];continue}x+=1,h=65536+((h&1023)<<10|c.charCodeAt(x)&1023),u[u.length]=It[240|h>>18]+It[128|h>>12&63]+It[128|h>>6&63]+It[128|h&63]}a+=u.join("")}return a},gh=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],s=o.obj[o.prop],a=Object.keys(s),l=0;l<a.length;++l){var c=a[l],u=s[c];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r[r.length]={obj:s,prop:c},n[n.length]=u)}return ph(r),e},Eh=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Ah=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},wh=function(e,r,n,i){if(ar(e)){var o=nn(e)+1;return e[o]=r,o0(e,o),e}var s=[].concat(e,r);return s.length>n?Pr(fn(s,{plainObjects:i}),s.length-1):s},_h=function(e,r){if(or(e)){for(var n=[],i=0;i<e.length;i+=1)n[n.length]=r(e[i]);return n}return r(e)},Pc={arrayToObject:fn,assign:vh,combine:wh,compact:gh,decode:yh,encode:mh,isBuffer:Ah,isOverflow:ar,isRegExp:Eh,markOverflow:Pr,maybeMap:_h,merge:xh},Nc=Oc,Wn=Pc,ln=I0,bh=Object.prototype.hasOwnProperty,Lc={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},Pt=Array.isArray,Ch=Array.prototype.push,kc=function(t,e){Ch.apply(t,Pt(e)?e:[e])},Bh=Date.prototype.toISOString,Ba=ln.default,Je={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Wn.encode,encodeValuesOnly:!1,filter:void 0,format:Ba,formatter:ln.formatters[Ba],indices:!1,serializeDate:function(e){return Bh.call(e)},skipNulls:!1,strictNullHandling:!1},Dh=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},uo={},Sh=function t(e,r,n,i,o,s,a,l,c,u,x,h,y,m,E,A,R,w){for(var _=e,D=w,C=0,T=!1;(D=D.get(uo))!==void 0&&!T;){var L=D.get(e);if(C+=1,typeof L!="undefined"){if(L===C)throw new RangeError("Cyclic object value");T=!0}typeof D.get(uo)=="undefined"&&(C=0)}if(typeof u=="function"?_=u(r,_):_ instanceof Date?_=y(_):n==="comma"&&Pt(_)&&(_=Wn.maybeMap(_,function(ue){return ue instanceof Date?y(ue):ue})),_===null){if(s)return c&&!A?c(r,Je.encoder,R,"key",m):r;_=""}if(Dh(_)||Wn.isBuffer(_)){if(c){var H=A?r:c(r,Je.encoder,R,"key",m);return[E(H)+"="+E(c(_,Je.encoder,R,"value",m))]}return[E(r)+"="+E(String(_))]}var Z=[];if(typeof _=="undefined")return Z;var O;if(n==="comma"&&Pt(_))A&&c&&(_=Wn.maybeMap(_,c)),O=[{value:_.length>0?_.join(",")||null:void 0}];else if(Pt(u))O=u;else{var k=Object.keys(_);O=x?k.sort(x):k}var V=l?String(r).replace(/\./g,"%2E"):String(r),X=i&&Pt(_)&&_.length===1?V+"[]":V;if(o&&Pt(_)&&_.length===0)return X+"[]";for(var te=0;te<O.length;++te){var Y=O[te],Q=typeof Y=="object"&&Y&&typeof Y.value!="undefined"?Y.value:_[Y];if(!(a&&Q===null)){var oe=h&&l?String(Y).replace(/\./g,"%2E"):String(Y),ie=Pt(_)?typeof n=="function"?n(X,oe):X:X+(h?"."+oe:"["+oe+"]");w.set(e,C);var he=Nc();he.set(uo,w),kc(Z,t(Q,ie,n,i,o,s,a,l,n==="comma"&&A&&Pt(_)?null:c,u,x,h,y,m,E,A,R,he))}}return Z},Fh=function(e){if(!e)return Je;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||Je.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=ln.default;if(typeof e.format!="undefined"){if(!bh.call(ln.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=ln.formatters[n],o=Je.filter;(typeof e.filter=="function"||Pt(e.filter))&&(o=e.filter);var s;if(e.arrayFormat in Lc?s=e.arrayFormat:"indices"in e?s=e.indices?"indices":"repeat":s=Je.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof e.allowDots=="undefined"?e.encodeDotInKeys===!0?!0:Je.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Je.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Je.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Je.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter=="undefined"?Je.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Je.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:Je.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:Je.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Je.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Je.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Je.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Je.strictNullHandling}},Rh=function(t,e){var r=t,n=Fh(e),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Pt(n.filter)&&(o=n.filter,i=o);var s=[];if(typeof r!="object"||r===null)return"";var a=Lc[n.arrayFormat],l=a==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var c=Nc(),u=0;u<i.length;++u){var x=i[u],h=r[x];n.skipNulls&&h===null||kc(s,Sh(h,x,a,l,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,c))}var y=s.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),y.length>0?m+y:""},Mt=Pc,Vn=Object.prototype.hasOwnProperty,fo=Array.isArray,Ge={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Mt.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},Ih=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Mc=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},Th="utf8=%26%2310003%3B",Oh="utf8=%E2%9C%93",Ph=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,s=i.split(r.delimiter,r.throwOnLimitExceeded&&typeof o!="undefined"?o+1:o);if(r.throwOnLimitExceeded&&typeof o!="undefined"&&s.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(o===1?"":"s")+" allowed.");var a=-1,l,c=r.charset;if(r.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===Oh?c="utf-8":s[l]===Th&&(c="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var u=s[l],x=u.indexOf("]="),h=x===-1?u.indexOf("="):x+1,y,m;if(h===-1?(y=r.decoder(u,Ge.decoder,c,"key"),m=r.strictNullHandling?null:""):(y=r.decoder(u.slice(0,h),Ge.decoder,c,"key"),y!==null&&(m=Mt.maybeMap(Mc(u.slice(h+1),r,fo(n[y])?n[y].length:0),function(A){return r.decoder(A,Ge.decoder,c,"value")}))),m&&r.interpretNumericEntities&&c==="iso-8859-1"&&(m=Ih(String(m))),u.indexOf("[]=")>-1&&(m=fo(m)?[m]:m),r.comma&&fo(m)&&m.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");m=Mt.combine([],m,r.arrayLimit,r.plainObjects)}if(y!==null){var E=Vn.call(n,y);E&&(r.duplicates==="combine"||u.indexOf("[]=")>-1)?n[y]=Mt.combine(n[y],m,r.arrayLimit,r.plainObjects):(!E||r.duplicates==="last")&&(n[y]=m)}}return n},Nh=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 s=n?e:Mc(e,r,i),a=t.length-1;a>=0;--a){var l,c=t[a];if(c==="[]"&&r.parseArrays)Mt.isOverflow(s)?l=s:l=r.allowEmptyArrays&&(s===""||r.strictNullHandling&&s===null)?[]:Mt.combine([],s,r.arrayLimit,r.plainObjects);else{l=r.plainObjects?{__proto__:null}:{};var u=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,x=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,h=parseInt(x,10),y=!isNaN(h)&&c!==x&&String(h)===x&&h>=0&&r.parseArrays;if(!r.parseArrays&&x==="")l={0:s};else if(y&&h<r.arrayLimit)l=[],l[h]=s;else{if(y&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");y?(l[h]=s,Mt.markOverflow(l,h)):x!=="__proto__"&&(l[x]=s)}}s=l}return s},Lh=function(e,r){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&Vn.call(Object.prototype,n)&&!r.allowPrototypes?void 0:[n];var i=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,s=i.exec(n),a=s?n.slice(0,s.index):n,l=[];if(a){if(!r.plainObjects&&Vn.call(Object.prototype,a)&&!r.allowPrototypes)return;l[l.length]=a}for(var c=0;(s=o.exec(n))!==null&&c<r.depth;){c+=1;var u=s[1].slice(1,-1);if(!r.plainObjects&&Vn.call(Object.prototype,u)&&!r.allowPrototypes)return;l[l.length]=s[1]}if(s){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");l[l.length]="["+n.slice(s.index)+"]"}return l},kh=function(e,r,n,i){if(e){var o=Lh(e,n);if(o)return Nh(o,r,n,i)}},Mh=function(e){if(!e)return Ge;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"?Ge.charset:e.charset,n=typeof e.duplicates=="undefined"?Ge.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:Ge.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Ge.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Ge.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Ge.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Ge.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ge.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Ge.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Ge.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Ge.decoder,delimiter:typeof e.delimiter=="string"||Mt.isRegExp(e.delimiter)?e.delimiter:Ge.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Ge.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Ge.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Ge.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Ge.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Ge.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:Ge.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ge.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},Uh=function(t,e){var r=Mh(e);if(t===""||t===null||typeof t=="undefined")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?Ph(t,r):t,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),s=0;s<o.length;++s){var a=o[s],l=kh(a,n[a],r,typeof t=="string");i=Mt.merge(i,l,r)}return r.allowSparse===!0?i:Mt.compact(i)},$h=Rh,Hh=Uh,zh=I0,qh={formats:zh,parse:Hh,stringify:$h};const Wh=C0(qh);function Uc(t,e){return function(){return t.apply(e,arguments)}}const{toString:Vh}=Object.prototype,{getPrototypeOf:hi}=Object,{iterator:di,toStringTag:$c}=Symbol,pi=(t=>e=>{const r=Vh.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ct=t=>(t=t.toLowerCase(),e=>pi(e)===t),xi=t=>e=>typeof e===t,{isArray:qr}=Array,$r=xi("undefined");function gn(t){return t!==null&&!$r(t)&&t.constructor!==null&&!$r(t.constructor)&&dt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Hc=Ct("ArrayBuffer");function Gh(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Hc(t.buffer),e}const jh=xi("string"),dt=xi("function"),zc=xi("number"),En=t=>t!==null&&typeof t=="object",Kh=t=>t===!0||t===!1,Gn=t=>{if(pi(t)!=="object")return!1;const e=hi(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!($c in t)&&!(di in t)},Yh=t=>{if(!En(t)||gn(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},Xh=Ct("Date"),Jh=Ct("File"),Qh=t=>!!(t&&typeof t.uri!="undefined"),Zh=t=>t&&typeof t.getParts!="undefined",ed=Ct("Blob"),td=Ct("FileList"),rd=t=>En(t)&&dt(t.pipe);function nd(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const Da=nd(),Sa=typeof Da.FormData!="undefined"?Da.FormData:void 0,id=t=>{if(!t)return!1;if(Sa&&t instanceof Sa)return!0;const e=hi(t);if(!e||e===Object.prototype||!dt(t.append))return!1;const r=pi(t);return r==="formdata"||r==="object"&&dt(t.toString)&&t.toString()==="[object FormData]"},od=Ct("URLSearchParams"),[ad,sd,cd,ud]=["ReadableStream","Request","Response","Headers"].map(Ct),fd=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function An(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t=="undefined")return;let n,i;if(typeof t!="object"&&(t=[t]),qr(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(gn(t))return;const o=r?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let a;for(n=0;n<s;n++)a=o[n],e.call(null,t[a],a,t)}}function qc(t,e){if(gn(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 sr=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Wc=t=>!$r(t)&&t!==sr;function a0(...t){const{caseless:e,skipUndefined:r}=Wc(this)&&this||{},n={},i=(o,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const a=e&&qc(n,s)||s,l=s0(n,a)?n[a]:void 0;Gn(l)&&Gn(o)?n[a]=a0(l,o):Gn(o)?n[a]=a0({},o):qr(o)?n[a]=o.slice():(!r||!$r(o))&&(n[a]=o)};for(let o=0,s=t.length;o<s;o++)t[o]&&An(t[o],i);return n}const ld=(t,e,r,{allOwnKeys:n}={})=>(An(e,(i,o)=>{r&&dt(i)?Object.defineProperty(t,o,{__proto__:null,value:Uc(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,o,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),hd=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),dd=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),r&&Object.assign(t.prototype,r)},pd=(t,e,r,n)=>{let i,o,s;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],(!n||n(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=r!==!1&&hi(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},xd=(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},vd=t=>{if(!t)return null;if(qr(t))return t;let e=t.length;if(!zc(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},yd=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&hi(Uint8Array)),md=(t,e)=>{const n=(t&&t[di]).call(t);let i;for(;(i=n.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},gd=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Ed=Ct("HTMLFormElement"),Ad=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),s0=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),wd=Ct("RegExp"),Vc=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};An(r,(i,o)=>{let s;(s=e(i,o,t))!==!1&&(n[o]=s||i)}),Object.defineProperties(t,n)},_d=t=>{Vc(t,(e,r)=>{if(dt(t)&&["arguments","caller","callee"].includes(r))return!1;const n=t[r];if(dt(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+"'")})}})},bd=(t,e)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return qr(t)?n(t):n(String(t).split(e)),r},Cd=()=>{},Bd=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Dd(t){return!!(t&&dt(t.append)&&t[$c]==="FormData"&&t[di])}const Sd=t=>{const e=new Array(10),r=(n,i)=>{if(En(n)){if(e.indexOf(n)>=0)return;if(gn(n))return n;if(!("toJSON"in n)){e[i]=n;const o=qr(n)?[]:{};return An(n,(s,a)=>{const l=r(s,i+1);!$r(l)&&(o[a]=l)}),e[i]=void 0,o}}return n};return r(t,0)},Fd=Ct("AsyncFunction"),Rd=t=>t&&(En(t)||dt(t))&&dt(t.then)&&dt(t.catch),Gc=((t,e)=>t?setImmediate:e?((r,n)=>(sr.addEventListener("message",({source:i,data:o})=>{i===sr&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),sr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",dt(sr.postMessage)),Id=typeof queueMicrotask!="undefined"?queueMicrotask.bind(sr):typeof process!="undefined"&&process.nextTick||Gc,Td=t=>t!=null&&dt(t[di]),G={isArray:qr,isArrayBuffer:Hc,isBuffer:gn,isFormData:id,isArrayBufferView:Gh,isString:jh,isNumber:zc,isBoolean:Kh,isObject:En,isPlainObject:Gn,isEmptyObject:Yh,isReadableStream:ad,isRequest:sd,isResponse:cd,isHeaders:ud,isUndefined:$r,isDate:Xh,isFile:Jh,isReactNativeBlob:Qh,isReactNative:Zh,isBlob:ed,isRegExp:wd,isFunction:dt,isStream:rd,isURLSearchParams:od,isTypedArray:yd,isFileList:td,forEach:An,merge:a0,extend:ld,trim:fd,stripBOM:hd,inherits:dd,toFlatObject:pd,kindOf:pi,kindOfTest:Ct,endsWith:xd,toArray:vd,forEachEntry:md,matchAll:gd,isHTMLForm:Ed,hasOwnProperty:s0,hasOwnProp:s0,reduceDescriptors:Vc,freezeMethods:_d,toObjectSet:bd,toCamelCase:Ad,noop:Cd,toFiniteNumber:Bd,findKey:qc,global:sr,isContextDefined:Wc,isSpecCompliantForm:Dd,toJSONObject:Sd,isAsyncFn:Fd,isThenable:Rd,setImmediate:Gc,asap:Id,isIterable:Td},Od=G.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"]),Pd=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
5
|
-
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||e[r]&&Od[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},
|
|
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[Fa]=this[Fa]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=tn(s);n[a]||(Hd(i,s),n[a]=!0)}return G.isArray(e)?e.forEach(o):o(e),this}};ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.reduceDescriptors(ct.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});G.freezeMethods(ct);const zd="[REDACTED ****]";function qd(t){if(G.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(G.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function Wd(t,e){const r=new Set(e.map(o=>String(o).toLowerCase())),n=[],i=o=>{if(o===null||typeof o!="object"||G.isBuffer(o))return o;if(n.indexOf(o)!==-1)return;o instanceof ct&&(o=o.toJSON()),n.push(o);let s;if(G.isArray(o))s=[],o.forEach((a,l)=>{const c=i(a);G.isUndefined(c)||(s[l]=c)});else{if(!G.isPlainObject(o)&&qd(o))return n.pop(),o;s=Object.create(null);for(const[a,l]of Object.entries(o)){const c=r.has(a.toLowerCase())?zd:i(l);G.isUndefined(c)||(s[a]=c)}}return n.pop(),s};return i(t)}let me=class jc extends Error{static from(e,r,n,i,o,s){const a=new jc(e.message,r||e.code,n,i,o);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),s&&Object.assign(a,s),a}constructor(e,r,n,i,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,r=e&&G.hasOwnProp(e,"redact")?e.redact:void 0,n=G.isArray(r)&&r.length>0?Wd(e,r):G.toJSONObject(e);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:n,code:this.code,status:this.status}}};me.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";me.ERR_BAD_OPTION="ERR_BAD_OPTION";me.ECONNABORTED="ECONNABORTED";me.ETIMEDOUT="ETIMEDOUT";me.ECONNREFUSED="ECONNREFUSED";me.ERR_NETWORK="ERR_NETWORK";me.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";me.ERR_DEPRECATED="ERR_DEPRECATED";me.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";me.ERR_BAD_REQUEST="ERR_BAD_REQUEST";me.ERR_CANCELED="ERR_CANCELED";me.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";me.ERR_INVALID_URL="ERR_INVALID_URL";me.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Vd=null;function c0(t){return G.isPlainObject(t)||G.isArray(t)}function Kc(t){return G.endsWith(t,"[]")?t.slice(0,-2):t}function ho(t,e,r){return t?t.concat(e).map(function(i,o){return i=Kc(i),!r&&o?"["+i+"]":i}).join(r?".":""):e}function Gd(t){return G.isArray(t)&&!t.some(c0)}const jd=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)});function vi(t,e,r){if(!G.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=G.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,R){return!G.isUndefined(R[A])});const n=r.metaTokens,i=r.visitor||x,o=r.dots,s=r.indexes,a=r.Blob||typeof Blob!="undefined"&&Blob,l=r.maxDepth===void 0?100:r.maxDepth,c=a&&G.isSpecCompliantForm(e);if(!G.isFunction(i))throw new TypeError("visitor must be a function");function u(E){if(E===null)return"";if(G.isDate(E))return E.toISOString();if(G.isBoolean(E))return E.toString();if(!c&&G.isBlob(E))throw new me("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(E)||G.isTypedArray(E)?c&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function x(E,A,R){let w=E;if(G.isReactNative(e)&&G.isReactNativeBlob(E))return e.append(ho(R,A,o),u(E)),!1;if(E&&!R&&typeof E=="object"){if(G.endsWith(A,"{}"))A=n?A:A.slice(0,-2),E=JSON.stringify(E);else if(G.isArray(E)&&Gd(E)||(G.isFileList(E)||G.endsWith(A,"[]"))&&(w=G.toArray(E)))return A=Kc(A),w.forEach(function(D,C){!(G.isUndefined(D)||D===null)&&e.append(s===!0?ho([A],C,o):s===null?A:A+"[]",u(D))}),!1}return c0(E)?!0:(e.append(ho(R,A,o),u(E)),!1)}const h=[],y=Object.assign(jd,{defaultVisitor:x,convertValue:u,isVisitable:c0});function m(E,A,R=0){if(!G.isUndefined(E)){if(R>l)throw new me("Object is too deeply nested ("+R+" levels). Max depth: "+l,me.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(E)!==-1)throw Error("Circular reference detected in "+A.join("."));h.push(E),G.forEach(E,function(_,D){(!(G.isUndefined(_)||_===null)&&i.call(e,_,G.isString(D)?D.trim():D,A,y))===!0&&m(_,A?A.concat(D):[D],R+1)}),h.pop()}}if(!G.isObject(t))throw new TypeError("data must be an object");return m(t),e}function Ra(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function T0(t,e){this._pairs=[],t&&vi(t,this,e)}const Yc=T0.prototype;Yc.append=function(e,r){this._pairs.push([e,r])};Yc.toString=function(e){const r=e?function(n){return e.call(this,n,Ra)}:Ra;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Kd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Xc(t,e,r){if(!e)return t;const n=r&&r.encode||Kd,i=G.isFunction(r)?{serialize:r}:r,o=i&&i.serialize;let s;if(o?s=o(e,i):s=G.isURLSearchParams(e)?e.toString():new T0(e,i).toString(n),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Ia{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){G.forEach(this.handlers,function(n){n!==null&&e(n)})}}const O0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Yd=typeof URLSearchParams!="undefined"?URLSearchParams:T0,Xd=typeof FormData!="undefined"?FormData:null,Jd=typeof Blob!="undefined"?Blob:null,Qd={isBrowser:!0,classes:{URLSearchParams:Yd,FormData:Xd,Blob:Jd},protocols:["http","https","file","blob","url","data"]},P0=typeof window!="undefined"&&typeof document!="undefined",u0=typeof navigator=="object"&&navigator||void 0,Zd=P0&&(!u0||["ReactNative","NativeScript","NS"].indexOf(u0.product)<0),ep=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tp=P0&&window.location.href||"http://localhost",rp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:P0,hasStandardBrowserEnv:Zd,hasStandardBrowserWebWorkerEnv:ep,navigator:u0,origin:tp},Symbol.toStringTag,{value:"Module"})),at=Ue(Ue({},rp),Qd);function np(t,e){return vi(t,new at.classes.URLSearchParams,Ue({visitor:function(r,n,i,o){return at.isNode&&G.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function ip(t){return G.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function op(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 Jc(t){function e(r,n,i,o){let s=r[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=o>=r.length;return s=!s&&G.isArray(i)?i.length:s,l?(G.hasOwnProp(i,s)?i[s]=G.isArray(i[s])?i[s].concat(n):[i[s],n]:i[s]=n,!a):((!i[s]||!G.isObject(i[s]))&&(i[s]=[]),e(r,n,i[s],o)&&G.isArray(i[s])&&(i[s]=op(i[s])),!a)}if(G.isFormData(t)&&G.isFunction(t.entries)){const r={};return G.forEachEntry(t,(n,i)=>{e(ip(n),i,r,0)}),r}return null}const Fr=(t,e)=>t!=null&&G.hasOwnProp(t,e)?t[e]:void 0;function ap(t,e,r){if(G.isString(t))try{return(e||JSON.parse)(t),G.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const wn={transitional:O0,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=G.isObject(e);if(o&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return i?JSON.stringify(Jc(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){const l=Fr(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return np(e,l).toString();if((a=G.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=Fr(this,"env"),u=c&&c.FormData;return vi(a?{"files[]":e}:e,u&&new u,l)}}return o||i?(r.setContentType("application/json",!1),ap(e)):e}],transformResponse:[function(e){const r=Fr(this,"transitional")||wn.transitional,n=r&&r.forcedJSONParsing,i=Fr(this,"responseType"),o=i==="json";if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(n&&!i||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e,Fr(this,"parseReviver"))}catch(l){if(a)throw l.name==="SyntaxError"?me.from(l,me.ERR_BAD_RESPONSE,this,null,Fr(this,"response")):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:at.classes.FormData,Blob:at.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch","query"],t=>{wn.headers[t]={}});function po(t,e){const r=this||wn,n=e||r,i=ct.from(n.headers);let o=n.data;return G.forEach(t,function(a){o=a.call(r,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function Qc(t){return!!(t&&t.__CANCEL__)}let _n=class extends me{constructor(e,r,n){super(e==null?"canceled":e,me.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Zc(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new me("Request failed with status code "+r.status,r.status>=400&&r.status<500?me.ERR_BAD_REQUEST:me.ERR_BAD_RESPONSE,r.config,r.request,r))}function sp(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function cp(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,o=0,s;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=n[o];s||(s=c),r[i]=l,n[i]=c;let x=o,h=0;for(;x!==i;)h+=r[x++],x=x%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),c-s<e)return;const y=u&&c-u;return y?Math.round(h*1e3/y):void 0}}function up(t,e){let r=0,n=1e3/e,i,o;const s=(c,u=Date.now())=>{r=u,i=null,o&&(clearTimeout(o),o=null),t(...c)};return[(...c)=>{const u=Date.now(),x=u-r;x>=n?s(c,u):(i=c,o||(o=setTimeout(()=>{o=null,s(i)},n-x)))},()=>i&&s(i)]}const ri=(t,e,r=3)=>{let n=0;const i=cp(50,250);return up(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,l=a!=null?Math.min(s,a):s,c=Math.max(0,l-n),u=i(c);n=Math.max(n,l);const x={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a?(a-l)/u:void 0,event:o,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(x)},r)},Ta=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Oa=t=>(...e)=>G.asap(()=>t(...e)),fp=at.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,at.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(at.origin),at.navigator&&/(msie|trident)/i.test(at.navigator.userAgent)):()=>!0,lp=at.hasStandardBrowserEnv?{write(t,e,r,n,i,o,s){if(typeof document=="undefined")return;const a=[`${t}=${encodeURIComponent(e)}`];G.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),G.isString(n)&&a.push(`path=${n}`),G.isString(i)&&a.push(`domain=${i}`),o===!0&&a.push("secure"),G.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(t){if(typeof document=="undefined")return null;const e=document.cookie.split(";");for(let r=0;r<e.length;r++){const n=e[r].replace(/^\s+/,""),i=n.indexOf("=");if(i!==-1&&n.slice(0,i)===t)return decodeURIComponent(n.slice(i+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function hp(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function dp(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function eu(t,e,r){let n=!hp(e);return t&&(n||r===!1)?dp(t,e):e}const Pa=t=>t instanceof ct?Ue({},t):t;function fr(t,e){e=e||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(c,u,x,h){return G.isPlainObject(c)&&G.isPlainObject(u)?G.merge.call({caseless:h},c,u):G.isPlainObject(u)?G.merge({},u):G.isArray(u)?u.slice():u}function i(c,u,x,h){if(G.isUndefined(u)){if(!G.isUndefined(c))return n(void 0,c,x,h)}else return n(c,u,x,h)}function o(c,u){if(!G.isUndefined(u))return n(void 0,u)}function s(c,u){if(G.isUndefined(u)){if(!G.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(c,u,x){if(G.hasOwnProp(e,x))return n(c,u);if(G.hasOwnProp(t,x))return n(void 0,c)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(c,u,x)=>i(Pa(c),Pa(u),x,!0)};return G.forEach(Object.keys(Ue(Ue({},t),e)),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const x=G.hasOwnProp(l,u)?l[u]:i,h=G.hasOwnProp(t,u)?t[u]:void 0,y=G.hasOwnProp(e,u)?e[u]:void 0,m=x(h,y,u);G.isUndefined(m)&&x!==a||(r[u]=m)}),r}const pp=["content-type","content-length"];function xp(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,i])=>{pp.includes(n.toLowerCase())&&t.set(n,i)})}const vp=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),tu=t=>{const e=fr({},t),r=h=>G.hasOwnProp(e,h)?e[h]:void 0,n=r("data");let i=r("withXSRFToken");const o=r("xsrfHeaderName"),s=r("xsrfCookieName");let a=r("headers");const l=r("auth"),c=r("baseURL"),u=r("allowAbsoluteUrls"),x=r("url");if(e.headers=a=ct.from(a),e.url=Xc(eu(c,x,u),t.params,t.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?vp(l.password):""))),G.isFormData(n)&&(at.hasStandardBrowserEnv||at.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):G.isFunction(n.getHeaders)&&xp(a,n.getHeaders(),r("formDataHeaderPolicy"))),at.hasStandardBrowserEnv&&(G.isFunction(i)&&(i=i(e)),i===!0||i==null&&fp(e.url))){const y=o&&s&&lp.read(s);y&&a.set(o,y)}return e},yp=typeof XMLHttpRequest!="undefined",mp=yp&&function(t){return new Promise(function(r,n){const i=tu(t);let o=i.data;const s=ct.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=i,u,x,h,y,m;function E(){y&&y(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let A=new XMLHttpRequest;A.open(i.method.toUpperCase(),i.url,!0),A.timeout=i.timeout;function R(){if(!A)return;const _=ct.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),C={data:!a||a==="text"||a==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:_,config:t,request:A};Zc(function(L){r(L),E()},function(L){n(L),E()},C),A=null}"onloadend"in A?A.onloadend=R:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.startsWith("file:"))||setTimeout(R)},A.onabort=function(){A&&(n(new me("Request aborted",me.ECONNABORTED,t,A)),E(),A=null)},A.onerror=function(D){const C=D&&D.message?D.message:"Network Error",T=new me(C,me.ERR_NETWORK,t,A);T.event=D||null,n(T),E(),A=null},A.ontimeout=function(){let D=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||O0;i.timeoutErrorMessage&&(D=i.timeoutErrorMessage),n(new me(D,C.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,t,A)),E(),A=null},o===void 0&&s.setContentType(null),"setRequestHeader"in A&&G.forEach(s.toJSON(),function(D,C){A.setRequestHeader(C,D)}),G.isUndefined(i.withCredentials)||(A.withCredentials=!!i.withCredentials),a&&a!=="json"&&(A.responseType=i.responseType),c&&([h,m]=ri(c,!0),A.addEventListener("progress",h)),l&&A.upload&&([x,y]=ri(l),A.upload.addEventListener("progress",x),A.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(u=_=>{A&&(n(!_||_.type?new _n(null,t,A):_),A.abort(),E(),A=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const w=sp(i.url);if(w&&!at.protocols.includes(w)){n(new me("Unsupported protocol "+w+":",me.ERR_BAD_REQUEST,t));return}A.send(o||null)})},gp=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const o=function(c){if(!i){i=!0,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof me?u:new _n(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{s=null,o(new me(`timeout of ${e}ms exceeded`,me.ETIMEDOUT))},e);const a=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),t=null)};t.forEach(c=>c.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=()=>G.asap(a),l}},Ep=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},Ap=function(t,e){return $i(this,null,function*(){try{for(var r=Z0(wp(t)),n,i,o;n=!(i=yield new nr(r.next())).done;n=!1){const s=i.value;yield*Hi(Ep(s,e))}}catch(i){o=[i]}finally{try{n&&(i=r.return)&&(yield new nr(i.call(r)))}finally{if(o)throw o[0]}}})},wp=function(t){return $i(this,null,function*(){if(t[Symbol.asyncIterator]){yield*Hi(t);return}const e=t.getReader();try{for(;;){const{done:r,value:n}=yield new nr(e.read());if(r)break;yield n}}finally{yield new nr(e.cancel())}})},Na=(t,e,r,n)=>{const i=Ap(t,e);let o=0,s,a=c=>{s||(s=!0,n&&n(c))};return new ReadableStream({pull(c){return Be(this,null,function*(){try{const{done:u,value:x}=yield i.next();if(u){a(),c.close();return}let h=x.byteLength;if(r){let y=o+=h;r(y)}c.enqueue(new Uint8Array(x))}catch(u){throw a(u),u}})},cancel(c){return a(c),i.return()}},{highWaterMark:2})};function _p(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const r=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(r)){let s=n.length;const a=n.length;for(let y=0;y<a;y++)if(n.charCodeAt(y)===37&&y+2<a){const m=n.charCodeAt(y+1),E=n.charCodeAt(y+2);(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(E>=48&&E<=57||E>=65&&E<=70||E>=97&&E<=102)&&(s-=2,y+=2)}let l=0,c=a-1;const u=y=>y>=2&&n.charCodeAt(y-2)===37&&n.charCodeAt(y-1)===51&&(n.charCodeAt(y)===68||n.charCodeAt(y)===100);c>=0&&(n.charCodeAt(c)===61?(l++,c--):u(c)&&(l++,c-=3)),l===1&&c>=0&&(n.charCodeAt(c)===61||u(c))&&l++;const h=Math.floor(s/4)*3-(l||0);return h>0?h:0}if(typeof Buffer!="undefined"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let o=0;for(let s=0,a=n.length;s<a;s++){const l=n.charCodeAt(s);if(l<128)o+=1;else if(l<2048)o+=2;else if(l>=55296&&l<=56319&&s+1<a){const c=n.charCodeAt(s+1);c>=56320&&c<=57343?(o+=4,s++):o+=3}else o+=3}return o}const N0="1.16.0",La=64*1024,{isFunction:Pn}=G,ka=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},bp=t=>{var R;const e=(R=G.global)!=null?R:globalThis,{ReadableStream:r,TextEncoder:n}=e;t=G.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:i,Request:o,Response:s}=t,a=i?Pn(i):typeof fetch=="function",l=Pn(o),c=Pn(s);if(!a)return!1;const u=a&&Pn(r),x=a&&(typeof n=="function"?(w=>_=>w.encode(_))(new n):w=>Be(exports,null,function*(){return new Uint8Array(yield new o(w).arrayBuffer())})),h=l&&u&&ka(()=>{let w=!1;const _=new o(at.origin,{body:new r,method:"POST",get duplex(){return w=!0,"half"}}),D=_.headers.has("Content-Type");return _.body!=null&&_.body.cancel(),w&&!D}),y=c&&u&&ka(()=>G.isReadableStream(new s("").body)),m={stream:y&&(w=>w.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!m[w]&&(m[w]=(_,D)=>{let C=_&&_[w];if(C)return C.call(_);throw new me(`Response type '${w}' is not supported`,me.ERR_NOT_SUPPORT,D)})});const E=w=>Be(exports,null,function*(){if(w==null)return 0;if(G.isBlob(w))return w.size;if(G.isSpecCompliantForm(w))return(yield new o(at.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(G.isArrayBufferView(w)||G.isArrayBuffer(w))return w.byteLength;if(G.isURLSearchParams(w)&&(w=w+""),G.isString(w))return(yield x(w)).byteLength}),A=(w,_)=>Be(exports,null,function*(){const D=G.toFiniteNumber(w.getContentLength());return D==null?E(_):D});return w=>Be(exports,null,function*(){let{url:_,method:D,data:C,signal:T,cancelToken:L,timeout:H,onDownloadProgress:Z,onUploadProgress:O,responseType:k,headers:V,withCredentials:X="same-origin",fetchOptions:te,maxContentLength:Y,maxBodyLength:Q}=tu(w);const oe=G.isNumber(Y)&&Y>-1,ie=G.isNumber(Q)&&Q>-1;let he=i||fetch;k=k?(k+"").toLowerCase():"text";let ue=gp([T,L&&L.toAbortSignal()],H),z=null;const j=ue&&ue.unsubscribe&&(()=>{ue.unsubscribe()});let re;try{if(oe&&typeof _=="string"&&_.startsWith("data:")&&_p(_)>Y)throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,z);if(ie&&D!=="get"&&D!=="head"){const Ae=yield A(V,C);if(typeof Ae=="number"&&isFinite(Ae)&&Ae>Q)throw new me("Request body larger than maxBodyLength limit",me.ERR_BAD_REQUEST,w,z)}if(O&&h&&D!=="get"&&D!=="head"&&(re=yield A(V,C))!==0){let Ae=new o(_,{method:"POST",body:C,duplex:"half"}),Ie;if(G.isFormData(C)&&(Ie=Ae.headers.get("content-type"))&&V.setContentType(Ie),Ae.body){const[He,$e]=Ta(re,ri(Oa(O)));C=Na(Ae.body,La,He,$e)}}G.isString(X)||(X=X?"include":"omit");const J=l&&"credentials"in o.prototype;if(G.isFormData(C)){const Ae=V.getContentType();Ae&&/^multipart\/form-data/i.test(Ae)&&!/boundary=/i.test(Ae)&&V.delete("content-type")}V.set("User-Agent","axios/"+N0,!1);const ge=Rt(Ue({},te),{signal:ue,method:D.toUpperCase(),headers:V.normalize().toJSON(),body:C,duplex:"half",credentials:J?X:void 0});z=l&&new o(_,ge);let Ee=yield l?he(z,te):he(_,ge);if(oe){const Ae=G.toFiniteNumber(Ee.headers.get("content-length"));if(Ae!=null&&Ae>Y)throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,z)}const Pe=y&&(k==="stream"||k==="response");if(y&&Ee.body&&(Z||oe||Pe&&j)){const Ae={};["status","statusText","headers"].forEach(qe=>{Ae[qe]=Ee[qe]});const Ie=G.toFiniteNumber(Ee.headers.get("content-length")),[He,$e]=Z&&Ta(Ie,ri(Oa(Z),!0))||[];let Fe=0;const ze=qe=>{if(oe&&(Fe=qe,Fe>Y))throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,z);He&&He(qe)};Ee=new s(Na(Ee.body,La,ze,()=>{$e&&$e(),j&&j()}),Ae)}k=k||"text";let ve=yield m[G.findKey(m,k)||"text"](Ee,w);if(oe&&!y&&!Pe){let Ae;if(ve!=null&&(typeof ve.byteLength=="number"?Ae=ve.byteLength:typeof ve.size=="number"?Ae=ve.size:typeof ve=="string"&&(Ae=typeof n=="function"?new n().encode(ve).byteLength:ve.length)),typeof Ae=="number"&&Ae>Y)throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,z)}return!Pe&&j&&j(),yield new Promise((Ae,Ie)=>{Zc(Ae,Ie,{data:ve,headers:ct.from(Ee.headers),status:Ee.status,statusText:Ee.statusText,config:w,request:z})})}catch(J){if(j&&j(),ue&&ue.aborted&&ue.reason instanceof me){const ge=ue.reason;throw ge.config=w,z&&(ge.request=z),J!==ge&&(ge.cause=J),ge}throw J&&J.name==="TypeError"&&/Load failed|fetch/i.test(J.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,w,z,J&&J.response),{cause:J.cause||J}):me.from(J,J&&J.code,w,z,J&&J.response)}})},Cp=new Map,ru=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:i}=e,o=[n,i,r];let s=o.length,a=s,l,c,u=Cp;for(;a--;)l=o[a],c=u.get(l),c===void 0&&u.set(l,c=a?new Map:bp(e)),u=c;return c};ru();const L0={http:Vd,xhr:mp,fetch:{get:ru}};G.forEach(L0,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch(r){}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const Ma=t=>`- ${t}`,Bp=t=>G.isFunction(t)||t===null||t===!1;function Dp(t,e){t=G.isArray(t)?t:[t];const{length:r}=t;let n,i;const o={};for(let s=0;s<r;s++){n=t[s];let a;if(i=n,!Bp(n)&&(i=L0[(a=String(n)).toLowerCase()],i===void 0))throw new me(`Unknown adapter '${a}'`);if(i&&(G.isFunction(i)||(i=i.get(e))))break;o[a||"#"+s]=i}if(!i){const s=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?s.length>1?`since :
|
|
7
|
-
`+s.map(
|
|
8
|
-
`):" "+
|
|
4
|
+
`+e.prev}function Tn(t,e){var r=r0(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=Ht(t,i)?e(t[i],t):""}var o=typeof Wi=="function"?Wi(t):[],s;if(Mr){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var u in t)Ht(t,u)&&(r&&String(Number(u))===u&&u<t.length||Mr&&s["$"+u]instanceof Symbol||(dc.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if(typeof Wi=="function")for(var c=0;c<o.length;c++)pc.call(t,o[c])&&n.push("["+e(o[c])+"]: "+e(t[o[c]],t));return n}var Sf=si,Ff=zr,ci=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},Rf=function(t,e){if(t){var r=ci(t,e);return r&&r.value}},If=function(t,e,r){var n=ci(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Tf=function(t,e){return t?!!ci(t,e):!1},Of=function(t,e){if(t)return ci(t,e,!0)},Pf=function(){var e,r={assert:function(n){if(!r.has(n))throw new Ff("Side channel does not contain "+Sf(n))},delete:function(n){var i=e&&e.next,o=Of(e,n);return o&&i&&i===o&&(e=void 0),!!o},get:function(n){return Rf(e,n)},has:function(n){return Tf(e,n)},set:function(n,i){e||(e={next:void 0}),If(e,n,i)}};return r},Ec=Object,Nf=Error,Lf=EvalError,kf=RangeError,Mf=ReferenceError,Uf=SyntaxError,$f=URIError,Hf=Math.abs,zf=Math.floor,qf=Math.max,Wf=Math.min,Vf=Math.pow,Gf=Math.round,jf=Number.isNaN||function(e){return e!==e},Kf=jf,Yf=function(e){return Kf(e)||e===0?e:e<0?-1:1},Xf=Object.getOwnPropertyDescriptor,zn=Xf;if(zn)try{zn([],"length")}catch(t){zn=null}var Ac=zn,qn=Object.defineProperty||!1;if(qn)try{qn({},"a",{value:1})}catch(t){qn=!1}var Jf=qn,Gi,la;function Qf(){return la||(la=1,Gi=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 s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0}),Gi}var ji,ha;function Zf(){if(ha)return ji;ha=1;var t=typeof Symbol!="undefined"&&Symbol,e=Qf();return ji=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},ji}var Ki,da;function wc(){return da||(da=1,Ki=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),Ki}var Yi,pa;function _c(){if(pa)return Yi;pa=1;var t=Ec;return Yi=t.getPrototypeOf||null,Yi}var Xi,xa;function el(){if(xa)return Xi;xa=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(u,c){for(var f=[],x=0;x<u.length;x+=1)f[x]=u[x];for(var h=0;h<c.length;h+=1)f[h+u.length]=c[h];return f},o=function(u,c){for(var f=[],x=c,h=0;x<u.length;x+=1,h+=1)f[h]=u[x];return f},s=function(a,u){for(var c="",f=0;f<a.length;f+=1)c+=a[f],f+1<a.length&&(c+=u);return c};return Xi=function(u){var c=this;if(typeof c!="function"||e.apply(c)!==n)throw new TypeError(t+c);for(var f=o(arguments,1),x,h=function(){if(this instanceof x){var R=c.apply(this,i(f,arguments));return Object(R)===R?R:this}return c.apply(u,i(f,arguments))},y=r(0,c.length-f.length),m=[],E=0;E<y;E++)m[E]="$"+E;if(x=Function("binder","return function ("+s(m,",")+"){ return binder.apply(this,arguments); }")(h),c.prototype){var A=function(){};A.prototype=c.prototype,x.prototype=new A,A.prototype=null}return x},Xi}var Ji,va;function ui(){if(va)return Ji;va=1;var t=el();return Ji=Function.prototype.bind||t,Ji}var Qi,ya;function S0(){return ya||(ya=1,Qi=Function.prototype.call),Qi}var Zi,ma;function bc(){return ma||(ma=1,Zi=Function.prototype.apply),Zi}var tl=typeof Reflect!="undefined"&&Reflect&&Reflect.apply,rl=ui(),nl=bc(),il=S0(),ol=tl,al=ol||rl.call(il,nl),sl=ui(),cl=zr,ul=S0(),fl=al,Cc=function(e){if(e.length<1||typeof e[0]!="function")throw new cl("a function is required");return fl(sl,ul,e)},eo,ga;function ll(){if(ga)return eo;ga=1;var t=Cc,e=Ac,r;try{r=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var n=!!r&&e&&e(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return eo=n&&typeof n.get=="function"?t([n.get]):typeof o=="function"?function(a){return o(a==null?a:i(a))}:!1,eo}var to,Ea;function hl(){if(Ea)return to;Ea=1;var t=wc(),e=_c(),r=ll();return to=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,to}var ro,Aa;function dl(){if(Aa)return ro;Aa=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=ui();return ro=r.call(t,e),ro}var Re,pl=Ec,xl=Nf,vl=Lf,yl=kf,ml=Mf,Ur=Uf,Nr=zr,gl=$f,El=Hf,Al=zf,wl=qf,_l=Wf,bl=Vf,Cl=Gf,Bl=Yf,Bc=Function,no=function(t){try{return Bc('"use strict"; return ('+t+").constructor;")()}catch(e){}},dn=Ac,Dl=Jf,io=function(){throw new Nr},Sl=dn?function(){try{return arguments.callee,io}catch(t){try{return dn(arguments,"callee").get}catch(e){return io}}}():io,Dr=Zf()(),et=hl(),Fl=_c(),Rl=wc(),Dc=bc(),vn=S0(),Tr={},Il=typeof Uint8Array=="undefined"||!et?Re:et(Uint8Array),cr={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Re:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Re:ArrayBuffer,"%ArrayIteratorPrototype%":Dr&&et?et([][Symbol.iterator]()):Re,"%AsyncFromSyncIteratorPrototype%":Re,"%AsyncFunction%":Tr,"%AsyncGenerator%":Tr,"%AsyncGeneratorFunction%":Tr,"%AsyncIteratorPrototype%":Tr,"%Atomics%":typeof Atomics=="undefined"?Re:Atomics,"%BigInt%":typeof BigInt=="undefined"?Re:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Re:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Re:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Re:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":xl,"%eval%":eval,"%EvalError%":vl,"%Float16Array%":typeof Float16Array=="undefined"?Re:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Re:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Re:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Re:FinalizationRegistry,"%Function%":Bc,"%GeneratorFunction%":Tr,"%Int8Array%":typeof Int8Array=="undefined"?Re:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Re:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Re:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Dr&&et?et(et([][Symbol.iterator]())):Re,"%JSON%":typeof JSON=="object"?JSON:Re,"%Map%":typeof Map=="undefined"?Re:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Dr||!et?Re:et(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":pl,"%Object.getOwnPropertyDescriptor%":dn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Re:Promise,"%Proxy%":typeof Proxy=="undefined"?Re:Proxy,"%RangeError%":yl,"%ReferenceError%":ml,"%Reflect%":typeof Reflect=="undefined"?Re:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Re:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Dr||!et?Re:et(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Re:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Dr&&et?et(""[Symbol.iterator]()):Re,"%Symbol%":Dr?Symbol:Re,"%SyntaxError%":Ur,"%ThrowTypeError%":Sl,"%TypedArray%":Il,"%TypeError%":Nr,"%Uint8Array%":typeof Uint8Array=="undefined"?Re:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Re:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Re:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Re:Uint32Array,"%URIError%":gl,"%WeakMap%":typeof WeakMap=="undefined"?Re:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Re:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Re:WeakSet,"%Function.prototype.call%":vn,"%Function.prototype.apply%":Dc,"%Object.defineProperty%":Dl,"%Object.getPrototypeOf%":Fl,"%Math.abs%":El,"%Math.floor%":Al,"%Math.max%":wl,"%Math.min%":_l,"%Math.pow%":bl,"%Math.round%":Cl,"%Math.sign%":Bl,"%Reflect.getPrototypeOf%":Rl};if(et)try{null.error}catch(t){var Tl=et(et(t));cr["%Error.prototype%"]=Tl}var Ol=function t(e){var r;if(e==="%AsyncFunction%")r=no("async function () {}");else if(e==="%GeneratorFunction%")r=no("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=no("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&et&&(r=et(i.prototype))}return cr[e]=r,r},wa={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},yn=ui(),ei=dl(),Pl=yn.call(vn,Array.prototype.concat),Nl=yn.call(Dc,Array.prototype.splice),_a=yn.call(vn,String.prototype.replace),ti=yn.call(vn,String.prototype.slice),Ll=yn.call(vn,RegExp.prototype.exec),kl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ml=/\\(\\)?/g,Ul=function(e){var r=ti(e,0,1),n=ti(e,-1);if(r==="%"&&n!=="%")throw new Ur("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ur("invalid intrinsic syntax, expected opening `%`");var i=[];return _a(e,kl,function(o,s,a,u){i[i.length]=a?_a(u,Ml,"$1"):s||o}),i},$l=function(e,r){var n=e,i;if(ei(wa,n)&&(i=wa[n],n="%"+i[0]+"%"),ei(cr,n)){var o=cr[n];if(o===Tr&&(o=Ol(n)),typeof o=="undefined"&&!r)throw new Nr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new Ur("intrinsic "+e+" does not exist!")},F0=function(e,r){if(typeof e!="string"||e.length===0)throw new Nr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Nr('"allowMissing" argument must be a boolean');if(Ll(/^%?[^%]*%?$/,e)===null)throw new Ur("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ul(e),i=n.length>0?n[0]:"",o=$l("%"+i+"%",r),s=o.name,a=o.value,u=!1,c=o.alias;c&&(i=c[0],Nl(n,Pl([0,1],c)));for(var f=1,x=!0;f<n.length;f+=1){var h=n[f],y=ti(h,0,1),m=ti(h,-1);if((y==='"'||y==="'"||y==="`"||m==='"'||m==="'"||m==="`")&&y!==m)throw new Ur("property names with quotes must have matching quotes");if((h==="constructor"||!x)&&(u=!0),i+="."+h,s="%"+i+"%",ei(cr,s))a=cr[s];else if(a!=null){if(!(h in a)){if(!r)throw new Nr("base intrinsic for "+e+" exists, but the property is not available.");return}if(dn&&f+1>=n.length){var E=dn(a,h);x=!!E,x&&"get"in E&&!("originalValue"in E.get)?a=E.get:a=a[h]}else x=ei(a,h),a=a[h];x&&!u&&(cr[s]=a)}}return a},Sc=F0,Fc=Cc,Hl=Fc([Sc("%String.prototype.indexOf%")]),Rc=function(e,r){var n=Sc(e,!!r);return typeof n=="function"&&Hl(e,".prototype.")>-1?Fc([n]):n},zl=F0,mn=Rc,ql=si,Wl=zr,ba=zl("%Map%",!0),Vl=mn("Map.prototype.get",!0),Gl=mn("Map.prototype.set",!0),jl=mn("Map.prototype.has",!0),Kl=mn("Map.prototype.delete",!0),Yl=mn("Map.prototype.size",!0),Ic=!!ba&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Wl("Side channel does not contain "+ql(n))},delete:function(n){if(e){var i=Kl(e,n);return Yl(e)===0&&(e=void 0),i}return!1},get:function(n){if(e)return Vl(e,n)},has:function(n){return e?jl(e,n):!1},set:function(n,i){e||(e=new ba),Gl(e,n,i)}};return r},Xl=F0,fi=Rc,Jl=si,On=Ic,Ql=zr,Sr=Xl("%WeakMap%",!0),Zl=fi("WeakMap.prototype.get",!0),eh=fi("WeakMap.prototype.set",!0),th=fi("WeakMap.prototype.has",!0),rh=fi("WeakMap.prototype.delete",!0),nh=Sr?function(){var e,r,n={assert:function(i){if(!n.has(i))throw new Ql("Side channel does not contain "+Jl(i))},delete:function(i){if(Sr&&i&&(typeof i=="object"||typeof i=="function")){if(e)return rh(e,i)}else if(On&&r)return r.delete(i);return!1},get:function(i){return Sr&&i&&(typeof i=="object"||typeof i=="function")&&e?Zl(e,i):r&&r.get(i)},has:function(i){return Sr&&i&&(typeof i=="object"||typeof i=="function")&&e?th(e,i):!!r&&r.has(i)},set:function(i,o){Sr&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Sr),eh(e,i,o)):On&&(r||(r=On()),r.set(i,o))}};return n}:On,ih=zr,oh=si,ah=Pf,sh=Ic,ch=nh,uh=ch||sh||ah,Tc=function(){var e,r={assert:function(n){if(!r.has(n))throw new ih("Side channel does not contain "+oh(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=uh()),e.set(n,i)}};return r},fh=String.prototype.replace,lh=/%20/g,oo={RFC1738:"RFC1738",RFC3986:"RFC3986"},R0={default:oo.RFC3986,formatters:{RFC1738:function(t){return fh.call(t,lh,"+")},RFC3986:function(t){return String(t)}},RFC1738:oo.RFC1738,RFC3986:oo.RFC3986},hh=R0,dh=Tc,ao=Object.prototype.hasOwnProperty,or=Array.isArray,li=dh(),Pr=function(e,r){return li.set(e,r),e},ar=function(e){return li.has(e)},nn=function(e){return li.get(e)},i0=function(e,r){li.set(e,r)},It=function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t}(),ph=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(or(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]!="undefined"&&(i[i.length]=n[o]);r.obj[r.prop]=i}}},fn=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},xh=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(or(e)){var i=e.length;if(n&&typeof n.arrayLimit=="number"&&i>n.arrayLimit)return Pr(fn(e.concat(r),n),i);e[i]=r}else if(e&&typeof e=="object")if(ar(e)){var o=nn(e)+1;e[o]=r,i0(e,o)}else{if(n&&n.strictMerge)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!ao.call(Object.prototype,r))&&(e[r]=!0)}else return[e,r];return e}if(!e||typeof e!="object"){if(ar(r)){for(var s=Object.keys(r),a=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},u=0;u<s.length;u++){var c=parseInt(s[u],10);a[c+1]=r[s[u]]}return Pr(a,nn(r)+1)}var f=[e].concat(r);return n&&typeof n.arrayLimit=="number"&&f.length>n.arrayLimit?Pr(fn(f,n),f.length-1):f}var x=e;return or(e)&&!or(r)&&(x=fn(e,n)),or(e)&&or(r)?(r.forEach(function(h,y){if(ao.call(e,y)){var m=e[y];m&&typeof m=="object"&&h&&typeof h=="object"?e[y]=t(m,h,n):e[e.length]=h}else e[y]=h}),e):Object.keys(r).reduce(function(h,y){var m=r[y];if(ao.call(h,y)?h[y]=t(h[y],m,n):h[y]=m,ar(r)&&!ar(h)&&Pr(h,nn(r)),ar(h)){var E=parseInt(y,10);String(E)===y&&E>=0&&E>nn(h)&&i0(h,E)}return h},x)},vh=function(e,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},e)},yh=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}},so=1024,mh=function(e,r,n,i,o){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var a="",u=0;u<s.length;u+=so){for(var c=s.length>=so?s.slice(u,u+so):s,f=[],x=0;x<c.length;++x){var h=c.charCodeAt(x);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===hh.RFC1738&&(h===40||h===41)){f[f.length]=c.charAt(x);continue}if(h<128){f[f.length]=It[h];continue}if(h<2048){f[f.length]=It[192|h>>6]+It[128|h&63];continue}if(h<55296||h>=57344){f[f.length]=It[224|h>>12]+It[128|h>>6&63]+It[128|h&63];continue}x+=1,h=65536+((h&1023)<<10|c.charCodeAt(x)&1023),f[f.length]=It[240|h>>18]+It[128|h>>12&63]+It[128|h>>6&63]+It[128|h&63]}a+=f.join("")}return a},gh=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],s=o.obj[o.prop],a=Object.keys(s),u=0;u<a.length;++u){var c=a[u],f=s[c];typeof f=="object"&&f!==null&&n.indexOf(f)===-1&&(r[r.length]={obj:s,prop:c},n[n.length]=f)}return ph(r),e},Eh=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Ah=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},wh=function(e,r,n,i){if(ar(e)){var o=nn(e)+1;return e[o]=r,i0(e,o),e}var s=[].concat(e,r);return s.length>n?Pr(fn(s,{plainObjects:i}),s.length-1):s},_h=function(e,r){if(or(e)){for(var n=[],i=0;i<e.length;i+=1)n[n.length]=r(e[i]);return n}return r(e)},Oc={arrayToObject:fn,assign:vh,combine:wh,compact:gh,decode:yh,encode:mh,isBuffer:Ah,isOverflow:ar,isRegExp:Eh,markOverflow:Pr,maybeMap:_h,merge:xh},Pc=Tc,Wn=Oc,ln=R0,bh=Object.prototype.hasOwnProperty,Nc={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},Pt=Array.isArray,Ch=Array.prototype.push,Lc=function(t,e){Ch.apply(t,Pt(e)?e:[e])},Bh=Date.prototype.toISOString,Ca=ln.default,Je={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Wn.encode,encodeValuesOnly:!1,filter:void 0,format:Ca,formatter:ln.formatters[Ca],indices:!1,serializeDate:function(e){return Bh.call(e)},skipNulls:!1,strictNullHandling:!1},Dh=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},co={},Sh=function t(e,r,n,i,o,s,a,u,c,f,x,h,y,m,E,A,R,w){for(var _=e,B=w,D=0,T=!1;(B=B.get(co))!==void 0&&!T;){var L=B.get(e);if(D+=1,typeof L!="undefined"){if(L===D)throw new RangeError("Cyclic object value");T=!0}typeof B.get(co)=="undefined"&&(D=0)}if(typeof f=="function"?_=f(r,_):_ instanceof Date?_=y(_):n==="comma"&&Pt(_)&&(_=Wn.maybeMap(_,function(ue){return ue instanceof Date?y(ue):ue})),_===null){if(s)return c&&!A?c(r,Je.encoder,R,"key",m):r;_=""}if(Dh(_)||Wn.isBuffer(_)){if(c){var z=A?r:c(r,Je.encoder,R,"key",m);return[E(z)+"="+E(c(_,Je.encoder,R,"value",m))]}return[E(r)+"="+E(String(_))]}var Q=[];if(typeof _=="undefined")return Q;var O;if(n==="comma"&&Pt(_))A&&c&&(_=Wn.maybeMap(_,c)),O=[{value:_.length>0?_.join(",")||null:void 0}];else if(Pt(f))O=f;else{var k=Object.keys(_);O=x?k.sort(x):k}var V=u?String(r).replace(/\./g,"%2E"):String(r),X=i&&Pt(_)&&_.length===1?V+"[]":V;if(o&&Pt(_)&&_.length===0)return X+"[]";for(var ee=0;ee<O.length;++ee){var Y=O[ee],Z=typeof Y=="object"&&Y&&typeof Y.value!="undefined"?Y.value:_[Y];if(!(a&&Z===null)){var oe=h&&u?String(Y).replace(/\./g,"%2E"):String(Y),ie=Pt(_)?typeof n=="function"?n(X,oe):X:X+(h?"."+oe:"["+oe+"]");w.set(e,D);var he=Pc();he.set(co,w),Lc(Q,t(Z,ie,n,i,o,s,a,u,n==="comma"&&A&&Pt(_)?null:c,f,x,h,y,m,E,A,R,he))}}return Q},Fh=function(e){if(!e)return Je;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||Je.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=ln.default;if(typeof e.format!="undefined"){if(!bh.call(ln.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=ln.formatters[n],o=Je.filter;(typeof e.filter=="function"||Pt(e.filter))&&(o=e.filter);var s;if(e.arrayFormat in Nc?s=e.arrayFormat:"indices"in e?s=e.indices?"indices":"repeat":s=Je.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof e.allowDots=="undefined"?e.encodeDotInKeys===!0?!0:Je.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Je.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Je.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Je.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter=="undefined"?Je.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Je.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:Je.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:Je.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Je.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Je.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Je.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Je.strictNullHandling}},Rh=function(t,e){var r=t,n=Fh(e),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Pt(n.filter)&&(o=n.filter,i=o);var s=[];if(typeof r!="object"||r===null)return"";var a=Nc[n.arrayFormat],u=a==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var c=Pc(),f=0;f<i.length;++f){var x=i[f],h=r[x];n.skipNulls&&h===null||Lc(s,Sh(h,x,a,u,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,c))}var y=s.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),y.length>0?m+y:""},Mt=Oc,Vn=Object.prototype.hasOwnProperty,uo=Array.isArray,Ge={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Mt.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},Ih=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},kc=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},Th="utf8=%26%2310003%3B",Oh="utf8=%E2%9C%93",Ph=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,s=i.split(r.delimiter,r.throwOnLimitExceeded&&typeof o!="undefined"?o+1:o);if(r.throwOnLimitExceeded&&typeof o!="undefined"&&s.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(o===1?"":"s")+" allowed.");var a=-1,u,c=r.charset;if(r.charsetSentinel)for(u=0;u<s.length;++u)s[u].indexOf("utf8=")===0&&(s[u]===Oh?c="utf-8":s[u]===Th&&(c="iso-8859-1"),a=u,u=s.length);for(u=0;u<s.length;++u)if(u!==a){var f=s[u],x=f.indexOf("]="),h=x===-1?f.indexOf("="):x+1,y,m;if(h===-1?(y=r.decoder(f,Ge.decoder,c,"key"),m=r.strictNullHandling?null:""):(y=r.decoder(f.slice(0,h),Ge.decoder,c,"key"),y!==null&&(m=Mt.maybeMap(kc(f.slice(h+1),r,uo(n[y])?n[y].length:0),function(A){return r.decoder(A,Ge.decoder,c,"value")}))),m&&r.interpretNumericEntities&&c==="iso-8859-1"&&(m=Ih(String(m))),f.indexOf("[]=")>-1&&(m=uo(m)?[m]:m),r.comma&&uo(m)&&m.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");m=Mt.combine([],m,r.arrayLimit,r.plainObjects)}if(y!==null){var E=Vn.call(n,y);E&&(r.duplicates==="combine"||f.indexOf("[]=")>-1)?n[y]=Mt.combine(n[y],m,r.arrayLimit,r.plainObjects):(!E||r.duplicates==="last")&&(n[y]=m)}}return n},Nh=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 s=n?e:kc(e,r,i),a=t.length-1;a>=0;--a){var u,c=t[a];if(c==="[]"&&r.parseArrays)Mt.isOverflow(s)?u=s:u=r.allowEmptyArrays&&(s===""||r.strictNullHandling&&s===null)?[]:Mt.combine([],s,r.arrayLimit,r.plainObjects);else{u=r.plainObjects?{__proto__:null}:{};var f=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,x=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,h=parseInt(x,10),y=!isNaN(h)&&c!==x&&String(h)===x&&h>=0&&r.parseArrays;if(!r.parseArrays&&x==="")u={0:s};else if(y&&h<r.arrayLimit)u=[],u[h]=s;else{if(y&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");y?(u[h]=s,Mt.markOverflow(u,h)):x!=="__proto__"&&(u[x]=s)}}s=u}return s},Lh=function(e,r){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&Vn.call(Object.prototype,n)&&!r.allowPrototypes?void 0:[n];var i=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,s=i.exec(n),a=s?n.slice(0,s.index):n,u=[];if(a){if(!r.plainObjects&&Vn.call(Object.prototype,a)&&!r.allowPrototypes)return;u[u.length]=a}for(var c=0;(s=o.exec(n))!==null&&c<r.depth;){c+=1;var f=s[1].slice(1,-1);if(!r.plainObjects&&Vn.call(Object.prototype,f)&&!r.allowPrototypes)return;u[u.length]=s[1]}if(s){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u[u.length]="["+n.slice(s.index)+"]"}return u},kh=function(e,r,n,i){if(e){var o=Lh(e,n);if(o)return Nh(o,r,n,i)}},Mh=function(e){if(!e)return Ge;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"?Ge.charset:e.charset,n=typeof e.duplicates=="undefined"?Ge.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:Ge.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Ge.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Ge.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Ge.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Ge.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ge.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Ge.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Ge.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Ge.decoder,delimiter:typeof e.delimiter=="string"||Mt.isRegExp(e.delimiter)?e.delimiter:Ge.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Ge.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Ge.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Ge.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Ge.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Ge.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:Ge.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ge.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},Uh=function(t,e){var r=Mh(e);if(t===""||t===null||typeof t=="undefined")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?Ph(t,r):t,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),s=0;s<o.length;++s){var a=o[s],u=kh(a,n[a],r,typeof t=="string");i=Mt.merge(i,u,r)}return r.allowSparse===!0?i:Mt.compact(i)},$h=Rh,Hh=Uh,zh=R0,qh={formats:zh,parse:Hh,stringify:$h};const Wh=b0(qh);function Mc(t,e){return function(){return t.apply(e,arguments)}}const{toString:Vh}=Object.prototype,{getPrototypeOf:hi}=Object,{iterator:di,toStringTag:Uc}=Symbol,pi=(t=>e=>{const r=Vh.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ct=t=>(t=t.toLowerCase(),e=>pi(e)===t),xi=t=>e=>typeof e===t,{isArray:qr}=Array,$r=xi("undefined");function gn(t){return t!==null&&!$r(t)&&t.constructor!==null&&!$r(t.constructor)&&ht(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $c=Ct("ArrayBuffer");function Gh(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&$c(t.buffer),e}const jh=xi("string"),ht=xi("function"),Hc=xi("number"),En=t=>t!==null&&typeof t=="object",Kh=t=>t===!0||t===!1,Gn=t=>{if(pi(t)!=="object")return!1;const e=hi(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Uc in t)&&!(di in t)},Yh=t=>{if(!En(t)||gn(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},Xh=Ct("Date"),Jh=Ct("File"),Qh=t=>!!(t&&typeof t.uri!="undefined"),Zh=t=>t&&typeof t.getParts!="undefined",ed=Ct("Blob"),td=Ct("FileList"),rd=t=>En(t)&&ht(t.pipe);function nd(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const Ba=nd(),Da=typeof Ba.FormData!="undefined"?Ba.FormData:void 0,id=t=>{if(!t)return!1;if(Da&&t instanceof Da)return!0;const e=hi(t);if(!e||e===Object.prototype||!ht(t.append))return!1;const r=pi(t);return r==="formdata"||r==="object"&&ht(t.toString)&&t.toString()==="[object FormData]"},od=Ct("URLSearchParams"),[ad,sd,cd,ud]=["ReadableStream","Request","Response","Headers"].map(Ct),fd=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function An(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t=="undefined")return;let n,i;if(typeof t!="object"&&(t=[t]),qr(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(gn(t))return;const o=r?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let a;for(n=0;n<s;n++)a=o[n],e.call(null,t[a],a,t)}}function zc(t,e){if(gn(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 sr=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,qc=t=>!$r(t)&&t!==sr;function o0(...t){const{caseless:e,skipUndefined:r}=qc(this)&&this||{},n={},i=(o,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const a=e&&zc(n,s)||s,u=a0(n,a)?n[a]:void 0;Gn(u)&&Gn(o)?n[a]=o0(u,o):Gn(o)?n[a]=o0({},o):qr(o)?n[a]=o.slice():(!r||!$r(o))&&(n[a]=o)};for(let o=0,s=t.length;o<s;o++)t[o]&&An(t[o],i);return n}const ld=(t,e,r,{allOwnKeys:n}={})=>(An(e,(i,o)=>{r&&ht(i)?Object.defineProperty(t,o,{__proto__:null,value:Mc(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,o,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),hd=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),dd=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),r&&Object.assign(t.prototype,r)},pd=(t,e,r,n)=>{let i,o,s;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],(!n||n(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=r!==!1&&hi(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},xd=(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},vd=t=>{if(!t)return null;if(qr(t))return t;let e=t.length;if(!Hc(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},yd=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&hi(Uint8Array)),md=(t,e)=>{const n=(t&&t[di]).call(t);let i;for(;(i=n.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},gd=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Ed=Ct("HTMLFormElement"),Ad=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),a0=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),wd=Ct("RegExp"),Wc=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};An(r,(i,o)=>{let s;(s=e(i,o,t))!==!1&&(n[o]=s||i)}),Object.defineProperties(t,n)},_d=t=>{Wc(t,(e,r)=>{if(ht(t)&&["arguments","caller","callee"].includes(r))return!1;const n=t[r];if(ht(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+"'")})}})},bd=(t,e)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return qr(t)?n(t):n(String(t).split(e)),r},Cd=()=>{},Bd=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Dd(t){return!!(t&&ht(t.append)&&t[Uc]==="FormData"&&t[di])}const Sd=t=>{const e=new Array(10),r=(n,i)=>{if(En(n)){if(e.indexOf(n)>=0)return;if(gn(n))return n;if(!("toJSON"in n)){e[i]=n;const o=qr(n)?[]:{};return An(n,(s,a)=>{const u=r(s,i+1);!$r(u)&&(o[a]=u)}),e[i]=void 0,o}}return n};return r(t,0)},Fd=Ct("AsyncFunction"),Rd=t=>t&&(En(t)||ht(t))&&ht(t.then)&&ht(t.catch),Vc=((t,e)=>t?setImmediate:e?((r,n)=>(sr.addEventListener("message",({source:i,data:o})=>{i===sr&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),sr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ht(sr.postMessage)),Id=typeof queueMicrotask!="undefined"?queueMicrotask.bind(sr):typeof process!="undefined"&&process.nextTick||Vc,Td=t=>t!=null&&ht(t[di]),G={isArray:qr,isArrayBuffer:$c,isBuffer:gn,isFormData:id,isArrayBufferView:Gh,isString:jh,isNumber:Hc,isBoolean:Kh,isObject:En,isPlainObject:Gn,isEmptyObject:Yh,isReadableStream:ad,isRequest:sd,isResponse:cd,isHeaders:ud,isUndefined:$r,isDate:Xh,isFile:Jh,isReactNativeBlob:Qh,isReactNative:Zh,isBlob:ed,isRegExp:wd,isFunction:ht,isStream:rd,isURLSearchParams:od,isTypedArray:yd,isFileList:td,forEach:An,merge:o0,extend:ld,trim:fd,stripBOM:hd,inherits:dd,toFlatObject:pd,kindOf:pi,kindOfTest:Ct,endsWith:xd,toArray:vd,forEachEntry:md,matchAll:gd,isHTMLForm:Ed,hasOwnProperty:a0,hasOwnProp:a0,reduceDescriptors:Wc,freezeMethods:_d,toObjectSet:bd,toCamelCase:Ad,noop:Cd,toFiniteNumber:Bd,findKey:zc,global:sr,isContextDefined:qc,isSpecCompliantForm:Dd,toJSONObject:Sd,isAsyncFn:Fd,isThenable:Rd,setImmediate:Vc,asap:Id,isIterable:Td},Od=G.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"]),Pd=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
5
|
+
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||e[r]&&Od[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Sa=Symbol("internals"),Nd=/[^\x09\x20-\x7E\x80-\xFF]/g;function Ld(t){let e=0,r=t.length;for(;e<r;){const n=t.charCodeAt(e);if(n!==9&&n!==32)break;e+=1}for(;r>e;){const n=t.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return e===0&&r===t.length?t:t.slice(e,r)}function tn(t){return t&&String(t).trim().toLowerCase()}function kd(t){return Ld(t.replace(Nd,""))}function jn(t){return t===!1||t==null?t:G.isArray(t)?t.map(jn):kd(String(t))}function Md(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 Ud=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function fo(t,e,r,n,i){if(G.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!G.isString(e)){if(G.isString(n))return e.indexOf(n)!==-1;if(G.isRegExp(n))return n.test(e)}}function $d(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function Hd(t,e){const r=G.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{__proto__:null,value:function(i,o,s){return this[n].call(this,e,i,o,s)},configurable:!0})})}let ct=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function o(a,u,c){const f=tn(u);if(!f)throw new Error("header name must be a non-empty string");const x=G.findKey(i,f);(!x||i[x]===void 0||c===!0||c===void 0&&i[x]!==!1)&&(i[x||u]=jn(a))}const s=(a,u)=>G.forEach(a,(c,f)=>o(c,f,u));if(G.isPlainObject(e)||e instanceof this.constructor)s(e,r);else if(G.isString(e)&&(e=e.trim())&&!Ud(e))s(Pd(e),r);else if(G.isObject(e)&&G.isIterable(e)){let a={},u,c;for(const f of e){if(!G.isArray(f))throw TypeError("Object iterator must return a key-value pair");a[c=f[0]]=(u=a[c])?G.isArray(u)?[...u,f[1]]:[u,f[1]]:f[1]}s(a,r)}else e!=null&&o(r,e,n);return this}get(e,r){if(e=tn(e),e){const n=G.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return Md(i);if(G.isFunction(r))return r.call(this,i,n);if(G.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=tn(e),e){const n=G.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||fo(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function o(s){if(s=tn(s),s){const a=G.findKey(n,s);a&&(!r||fo(n,n[a],a,r))&&(delete n[a],i=!0)}}return G.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||fo(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const r=this,n={};return G.forEach(this,(i,o)=>{const s=G.findKey(n,o);if(s){r[s]=jn(i),delete r[o];return}const a=e?$d(o):String(o).trim();a!==o&&delete r[o],r[a]=jn(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return G.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&G.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(`
|
|
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[Sa]=this[Sa]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=tn(s);n[a]||(Hd(i,s),n[a]=!0)}return G.isArray(e)?e.forEach(o):o(e),this}};ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.reduceDescriptors(ct.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});G.freezeMethods(ct);const zd="[REDACTED ****]";function qd(t){if(G.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(G.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function Wd(t,e){const r=new Set(e.map(o=>String(o).toLowerCase())),n=[],i=o=>{if(o===null||typeof o!="object"||G.isBuffer(o))return o;if(n.indexOf(o)!==-1)return;o instanceof ct&&(o=o.toJSON()),n.push(o);let s;if(G.isArray(o))s=[],o.forEach((a,u)=>{const c=i(a);G.isUndefined(c)||(s[u]=c)});else{if(!G.isPlainObject(o)&&qd(o))return n.pop(),o;s=Object.create(null);for(const[a,u]of Object.entries(o)){const c=r.has(a.toLowerCase())?zd:i(u);G.isUndefined(c)||(s[a]=c)}}return n.pop(),s};return i(t)}let me=class Gc extends Error{static from(e,r,n,i,o,s){const a=new Gc(e.message,r||e.code,n,i,o);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),s&&Object.assign(a,s),a}constructor(e,r,n,i,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,r=e&&G.hasOwnProp(e,"redact")?e.redact:void 0,n=G.isArray(r)&&r.length>0?Wd(e,r):G.toJSONObject(e);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:n,code:this.code,status:this.status}}};me.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";me.ERR_BAD_OPTION="ERR_BAD_OPTION";me.ECONNABORTED="ECONNABORTED";me.ETIMEDOUT="ETIMEDOUT";me.ECONNREFUSED="ECONNREFUSED";me.ERR_NETWORK="ERR_NETWORK";me.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";me.ERR_DEPRECATED="ERR_DEPRECATED";me.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";me.ERR_BAD_REQUEST="ERR_BAD_REQUEST";me.ERR_CANCELED="ERR_CANCELED";me.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";me.ERR_INVALID_URL="ERR_INVALID_URL";me.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Vd=null;function s0(t){return G.isPlainObject(t)||G.isArray(t)}function jc(t){return G.endsWith(t,"[]")?t.slice(0,-2):t}function lo(t,e,r){return t?t.concat(e).map(function(i,o){return i=jc(i),!r&&o?"["+i+"]":i}).join(r?".":""):e}function Gd(t){return G.isArray(t)&&!t.some(s0)}const jd=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)});function vi(t,e,r){if(!G.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=G.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,R){return!G.isUndefined(R[A])});const n=r.metaTokens,i=r.visitor||x,o=r.dots,s=r.indexes,a=r.Blob||typeof Blob!="undefined"&&Blob,u=r.maxDepth===void 0?100:r.maxDepth,c=a&&G.isSpecCompliantForm(e);if(!G.isFunction(i))throw new TypeError("visitor must be a function");function f(E){if(E===null)return"";if(G.isDate(E))return E.toISOString();if(G.isBoolean(E))return E.toString();if(!c&&G.isBlob(E))throw new me("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(E)||G.isTypedArray(E)?c&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function x(E,A,R){let w=E;if(G.isReactNative(e)&&G.isReactNativeBlob(E))return e.append(lo(R,A,o),f(E)),!1;if(E&&!R&&typeof E=="object"){if(G.endsWith(A,"{}"))A=n?A:A.slice(0,-2),E=JSON.stringify(E);else if(G.isArray(E)&&Gd(E)||(G.isFileList(E)||G.endsWith(A,"[]"))&&(w=G.toArray(E)))return A=jc(A),w.forEach(function(B,D){!(G.isUndefined(B)||B===null)&&e.append(s===!0?lo([A],D,o):s===null?A:A+"[]",f(B))}),!1}return s0(E)?!0:(e.append(lo(R,A,o),f(E)),!1)}const h=[],y=Object.assign(jd,{defaultVisitor:x,convertValue:f,isVisitable:s0});function m(E,A,R=0){if(!G.isUndefined(E)){if(R>u)throw new me("Object is too deeply nested ("+R+" levels). Max depth: "+u,me.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(E)!==-1)throw Error("Circular reference detected in "+A.join("."));h.push(E),G.forEach(E,function(_,B){(!(G.isUndefined(_)||_===null)&&i.call(e,_,G.isString(B)?B.trim():B,A,y))===!0&&m(_,A?A.concat(B):[B],R+1)}),h.pop()}}if(!G.isObject(t))throw new TypeError("data must be an object");return m(t),e}function Fa(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function I0(t,e){this._pairs=[],t&&vi(t,this,e)}const Kc=I0.prototype;Kc.append=function(e,r){this._pairs.push([e,r])};Kc.toString=function(e){const r=e?function(n){return e.call(this,n,Fa)}:Fa;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Kd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Yc(t,e,r){if(!e)return t;const n=r&&r.encode||Kd,i=G.isFunction(r)?{serialize:r}:r,o=i&&i.serialize;let s;if(o?s=o(e,i):s=G.isURLSearchParams(e)?e.toString():new I0(e,i).toString(n),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Ra{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){G.forEach(this.handlers,function(n){n!==null&&e(n)})}}const T0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Yd=typeof URLSearchParams!="undefined"?URLSearchParams:I0,Xd=typeof FormData!="undefined"?FormData:null,Jd=typeof Blob!="undefined"?Blob:null,Qd={isBrowser:!0,classes:{URLSearchParams:Yd,FormData:Xd,Blob:Jd},protocols:["http","https","file","blob","url","data"]},O0=typeof window!="undefined"&&typeof document!="undefined",c0=typeof navigator=="object"&&navigator||void 0,Zd=O0&&(!c0||["ReactNative","NativeScript","NS"].indexOf(c0.product)<0),ep=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tp=O0&&window.location.href||"http://localhost",rp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:O0,hasStandardBrowserEnv:Zd,hasStandardBrowserWebWorkerEnv:ep,navigator:c0,origin:tp},Symbol.toStringTag,{value:"Module"})),at=Ue(Ue({},rp),Qd);function np(t,e){return vi(t,new at.classes.URLSearchParams,Ue({visitor:function(r,n,i,o){return at.isNode&&G.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function ip(t){return G.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function op(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 Xc(t){function e(r,n,i,o){let s=r[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),u=o>=r.length;return s=!s&&G.isArray(i)?i.length:s,u?(G.hasOwnProp(i,s)?i[s]=G.isArray(i[s])?i[s].concat(n):[i[s],n]:i[s]=n,!a):((!i[s]||!G.isObject(i[s]))&&(i[s]=[]),e(r,n,i[s],o)&&G.isArray(i[s])&&(i[s]=op(i[s])),!a)}if(G.isFormData(t)&&G.isFunction(t.entries)){const r={};return G.forEachEntry(t,(n,i)=>{e(ip(n),i,r,0)}),r}return null}const Fr=(t,e)=>t!=null&&G.hasOwnProp(t,e)?t[e]:void 0;function ap(t,e,r){if(G.isString(t))try{return(e||JSON.parse)(t),G.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const wn={transitional:T0,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=G.isObject(e);if(o&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return i?JSON.stringify(Xc(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){const u=Fr(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return np(e,u).toString();if((a=G.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=Fr(this,"env"),f=c&&c.FormData;return vi(a?{"files[]":e}:e,f&&new f,u)}}return o||i?(r.setContentType("application/json",!1),ap(e)):e}],transformResponse:[function(e){const r=Fr(this,"transitional")||wn.transitional,n=r&&r.forcedJSONParsing,i=Fr(this,"responseType"),o=i==="json";if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(n&&!i||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e,Fr(this,"parseReviver"))}catch(u){if(a)throw u.name==="SyntaxError"?me.from(u,me.ERR_BAD_RESPONSE,this,null,Fr(this,"response")):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:at.classes.FormData,Blob:at.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch","query"],t=>{wn.headers[t]={}});function ho(t,e){const r=this||wn,n=e||r,i=ct.from(n.headers);let o=n.data;return G.forEach(t,function(a){o=a.call(r,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function Jc(t){return!!(t&&t.__CANCEL__)}let _n=class extends me{constructor(e,r,n){super(e==null?"canceled":e,me.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Qc(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new me("Request failed with status code "+r.status,r.status>=400&&r.status<500?me.ERR_BAD_REQUEST:me.ERR_BAD_RESPONSE,r.config,r.request,r))}function sp(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function cp(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,o=0,s;return e=e!==void 0?e:1e3,function(u){const c=Date.now(),f=n[o];s||(s=c),r[i]=u,n[i]=c;let x=o,h=0;for(;x!==i;)h+=r[x++],x=x%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),c-s<e)return;const y=f&&c-f;return y?Math.round(h*1e3/y):void 0}}function up(t,e){let r=0,n=1e3/e,i,o;const s=(c,f=Date.now())=>{r=f,i=null,o&&(clearTimeout(o),o=null),t(...c)};return[(...c)=>{const f=Date.now(),x=f-r;x>=n?s(c,f):(i=c,o||(o=setTimeout(()=>{o=null,s(i)},n-x)))},()=>i&&s(i)]}const ri=(t,e,r=3)=>{let n=0;const i=cp(50,250);return up(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,u=a!=null?Math.min(s,a):s,c=Math.max(0,u-n),f=i(c);n=Math.max(n,u);const x={loaded:u,total:a,progress:a?u/a:void 0,bytes:c,rate:f||void 0,estimated:f&&a?(a-u)/f:void 0,event:o,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(x)},r)},Ia=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Ta=t=>(...e)=>G.asap(()=>t(...e)),fp=at.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,at.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(at.origin),at.navigator&&/(msie|trident)/i.test(at.navigator.userAgent)):()=>!0,lp=at.hasStandardBrowserEnv?{write(t,e,r,n,i,o,s){if(typeof document=="undefined")return;const a=[`${t}=${encodeURIComponent(e)}`];G.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),G.isString(n)&&a.push(`path=${n}`),G.isString(i)&&a.push(`domain=${i}`),o===!0&&a.push("secure"),G.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(t){if(typeof document=="undefined")return null;const e=document.cookie.split(";");for(let r=0;r<e.length;r++){const n=e[r].replace(/^\s+/,""),i=n.indexOf("=");if(i!==-1&&n.slice(0,i)===t)return decodeURIComponent(n.slice(i+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function hp(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function dp(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Zc(t,e,r){let n=!hp(e);return t&&(n||r===!1)?dp(t,e):e}const Oa=t=>t instanceof ct?Ue({},t):t;function fr(t,e){e=e||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(c,f,x,h){return G.isPlainObject(c)&&G.isPlainObject(f)?G.merge.call({caseless:h},c,f):G.isPlainObject(f)?G.merge({},f):G.isArray(f)?f.slice():f}function i(c,f,x,h){if(G.isUndefined(f)){if(!G.isUndefined(c))return n(void 0,c,x,h)}else return n(c,f,x,h)}function o(c,f){if(!G.isUndefined(f))return n(void 0,f)}function s(c,f){if(G.isUndefined(f)){if(!G.isUndefined(c))return n(void 0,c)}else return n(void 0,f)}function a(c,f,x){if(G.hasOwnProp(e,x))return n(c,f);if(G.hasOwnProp(t,x))return n(void 0,c)}const u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(c,f,x)=>i(Oa(c),Oa(f),x,!0)};return G.forEach(Object.keys(Ue(Ue({},t),e)),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const x=G.hasOwnProp(u,f)?u[f]:i,h=G.hasOwnProp(t,f)?t[f]:void 0,y=G.hasOwnProp(e,f)?e[f]:void 0,m=x(h,y,f);G.isUndefined(m)&&x!==a||(r[f]=m)}),r}const pp=["content-type","content-length"];function xp(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,i])=>{pp.includes(n.toLowerCase())&&t.set(n,i)})}const vp=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),eu=t=>{const e=fr({},t),r=h=>G.hasOwnProp(e,h)?e[h]:void 0,n=r("data");let i=r("withXSRFToken");const o=r("xsrfHeaderName"),s=r("xsrfCookieName");let a=r("headers");const u=r("auth"),c=r("baseURL"),f=r("allowAbsoluteUrls"),x=r("url");if(e.headers=a=ct.from(a),e.url=Yc(Zc(c,x,f),t.params,t.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?vp(u.password):""))),G.isFormData(n)&&(at.hasStandardBrowserEnv||at.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):G.isFunction(n.getHeaders)&&xp(a,n.getHeaders(),r("formDataHeaderPolicy"))),at.hasStandardBrowserEnv&&(G.isFunction(i)&&(i=i(e)),i===!0||i==null&&fp(e.url))){const y=o&&s&&lp.read(s);y&&a.set(o,y)}return e},yp=typeof XMLHttpRequest!="undefined",mp=yp&&function(t){return new Promise(function(r,n){const i=eu(t);let o=i.data;const s=ct.from(i.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=i,f,x,h,y,m;function E(){y&&y(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let A=new XMLHttpRequest;A.open(i.method.toUpperCase(),i.url,!0),A.timeout=i.timeout;function R(){if(!A)return;const _=ct.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),D={data:!a||a==="text"||a==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:_,config:t,request:A};Qc(function(L){r(L),E()},function(L){n(L),E()},D),A=null}"onloadend"in A?A.onloadend=R:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.startsWith("file:"))||setTimeout(R)},A.onabort=function(){A&&(n(new me("Request aborted",me.ECONNABORTED,t,A)),E(),A=null)},A.onerror=function(B){const D=B&&B.message?B.message:"Network Error",T=new me(D,me.ERR_NETWORK,t,A);T.event=B||null,n(T),E(),A=null},A.ontimeout=function(){let B=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const D=i.transitional||T0;i.timeoutErrorMessage&&(B=i.timeoutErrorMessage),n(new me(B,D.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,t,A)),E(),A=null},o===void 0&&s.setContentType(null),"setRequestHeader"in A&&G.forEach(s.toJSON(),function(B,D){A.setRequestHeader(D,B)}),G.isUndefined(i.withCredentials)||(A.withCredentials=!!i.withCredentials),a&&a!=="json"&&(A.responseType=i.responseType),c&&([h,m]=ri(c,!0),A.addEventListener("progress",h)),u&&A.upload&&([x,y]=ri(u),A.upload.addEventListener("progress",x),A.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(f=_=>{A&&(n(!_||_.type?new _n(null,t,A):_),A.abort(),E(),A=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const w=sp(i.url);if(w&&!at.protocols.includes(w)){n(new me("Unsupported protocol "+w+":",me.ERR_BAD_REQUEST,t));return}A.send(o||null)})},gp=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const o=function(c){if(!i){i=!0,a();const f=c instanceof Error?c:this.reason;n.abort(f instanceof me?f:new _n(f instanceof Error?f.message:f))}};let s=e&&setTimeout(()=>{s=null,o(new me(`timeout of ${e}ms exceeded`,me.ETIMEDOUT))},e);const a=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),t=null)};t.forEach(c=>c.addEventListener("abort",o));const{signal:u}=n;return u.unsubscribe=()=>G.asap(a),u}},Ep=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},Ap=function(t,e){return $i(this,null,function*(){try{for(var r=Q0(wp(t)),n,i,o;n=!(i=yield new nr(r.next())).done;n=!1){const s=i.value;yield*Hi(Ep(s,e))}}catch(i){o=[i]}finally{try{n&&(i=r.return)&&(yield new nr(i.call(r)))}finally{if(o)throw o[0]}}})},wp=function(t){return $i(this,null,function*(){if(t[Symbol.asyncIterator]){yield*Hi(t);return}const e=t.getReader();try{for(;;){const{done:r,value:n}=yield new nr(e.read());if(r)break;yield n}}finally{yield new nr(e.cancel())}})},Pa=(t,e,r,n)=>{const i=Ap(t,e);let o=0,s,a=c=>{s||(s=!0,n&&n(c))};return new ReadableStream({pull(c){return Be(this,null,function*(){try{const{done:f,value:x}=yield i.next();if(f){a(),c.close();return}let h=x.byteLength;if(r){let y=o+=h;r(y)}c.enqueue(new Uint8Array(x))}catch(f){throw a(f),f}})},cancel(c){return a(c),i.return()}},{highWaterMark:2})};function _p(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const r=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(r)){let s=n.length;const a=n.length;for(let y=0;y<a;y++)if(n.charCodeAt(y)===37&&y+2<a){const m=n.charCodeAt(y+1),E=n.charCodeAt(y+2);(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(E>=48&&E<=57||E>=65&&E<=70||E>=97&&E<=102)&&(s-=2,y+=2)}let u=0,c=a-1;const f=y=>y>=2&&n.charCodeAt(y-2)===37&&n.charCodeAt(y-1)===51&&(n.charCodeAt(y)===68||n.charCodeAt(y)===100);c>=0&&(n.charCodeAt(c)===61?(u++,c--):f(c)&&(u++,c-=3)),u===1&&c>=0&&(n.charCodeAt(c)===61||f(c))&&u++;const h=Math.floor(s/4)*3-(u||0);return h>0?h:0}if(typeof Buffer!="undefined"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let o=0;for(let s=0,a=n.length;s<a;s++){const u=n.charCodeAt(s);if(u<128)o+=1;else if(u<2048)o+=2;else if(u>=55296&&u<=56319&&s+1<a){const c=n.charCodeAt(s+1);c>=56320&&c<=57343?(o+=4,s++):o+=3}else o+=3}return o}const P0="1.16.0",Na=64*1024,{isFunction:Pn}=G,La=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},bp=t=>{var R;const e=(R=G.global)!=null?R:globalThis,{ReadableStream:r,TextEncoder:n}=e;t=G.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:i,Request:o,Response:s}=t,a=i?Pn(i):typeof fetch=="function",u=Pn(o),c=Pn(s);if(!a)return!1;const f=a&&Pn(r),x=a&&(typeof n=="function"?(w=>_=>w.encode(_))(new n):w=>Be(exports,null,function*(){return new Uint8Array(yield new o(w).arrayBuffer())})),h=u&&f&&La(()=>{let w=!1;const _=new o(at.origin,{body:new r,method:"POST",get duplex(){return w=!0,"half"}}),B=_.headers.has("Content-Type");return _.body!=null&&_.body.cancel(),w&&!B}),y=c&&f&&La(()=>G.isReadableStream(new s("").body)),m={stream:y&&(w=>w.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!m[w]&&(m[w]=(_,B)=>{let D=_&&_[w];if(D)return D.call(_);throw new me(`Response type '${w}' is not supported`,me.ERR_NOT_SUPPORT,B)})});const E=w=>Be(exports,null,function*(){if(w==null)return 0;if(G.isBlob(w))return w.size;if(G.isSpecCompliantForm(w))return(yield new o(at.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(G.isArrayBufferView(w)||G.isArrayBuffer(w))return w.byteLength;if(G.isURLSearchParams(w)&&(w=w+""),G.isString(w))return(yield x(w)).byteLength}),A=(w,_)=>Be(exports,null,function*(){const B=G.toFiniteNumber(w.getContentLength());return B==null?E(_):B});return w=>Be(exports,null,function*(){let{url:_,method:B,data:D,signal:T,cancelToken:L,timeout:z,onDownloadProgress:Q,onUploadProgress:O,responseType:k,headers:V,withCredentials:X="same-origin",fetchOptions:ee,maxContentLength:Y,maxBodyLength:Z}=eu(w);const oe=G.isNumber(Y)&&Y>-1,ie=G.isNumber(Z)&&Z>-1;let he=i||fetch;k=k?(k+"").toLowerCase():"text";let ue=gp([T,L&&L.toAbortSignal()],z),H=null;const j=ue&&ue.unsubscribe&&(()=>{ue.unsubscribe()});let re;try{if(oe&&typeof _=="string"&&_.startsWith("data:")&&_p(_)>Y)throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,H);if(ie&&B!=="get"&&B!=="head"){const Ae=yield A(V,D);if(typeof Ae=="number"&&isFinite(Ae)&&Ae>Z)throw new me("Request body larger than maxBodyLength limit",me.ERR_BAD_REQUEST,w,H)}if(O&&h&&B!=="get"&&B!=="head"&&(re=yield A(V,D))!==0){let Ae=new o(_,{method:"POST",body:D,duplex:"half"}),Ie;if(G.isFormData(D)&&(Ie=Ae.headers.get("content-type"))&&V.setContentType(Ie),Ae.body){const[He,$e]=Ia(re,ri(Ta(O)));D=Pa(Ae.body,Na,He,$e)}}G.isString(X)||(X=X?"include":"omit");const J=u&&"credentials"in o.prototype;if(G.isFormData(D)){const Ae=V.getContentType();Ae&&/^multipart\/form-data/i.test(Ae)&&!/boundary=/i.test(Ae)&&V.delete("content-type")}V.set("User-Agent","axios/"+P0,!1);const ge=Rt(Ue({},ee),{signal:ue,method:B.toUpperCase(),headers:V.normalize().toJSON(),body:D,duplex:"half",credentials:J?X:void 0});H=u&&new o(_,ge);let Ee=yield u?he(H,ee):he(_,ge);if(oe){const Ae=G.toFiniteNumber(Ee.headers.get("content-length"));if(Ae!=null&&Ae>Y)throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,H)}const Pe=y&&(k==="stream"||k==="response");if(y&&Ee.body&&(Q||oe||Pe&&j)){const Ae={};["status","statusText","headers"].forEach(qe=>{Ae[qe]=Ee[qe]});const Ie=G.toFiniteNumber(Ee.headers.get("content-length")),[He,$e]=Q&&Ia(Ie,ri(Ta(Q),!0))||[];let Fe=0;const ze=qe=>{if(oe&&(Fe=qe,Fe>Y))throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,H);He&&He(qe)};Ee=new s(Pa(Ee.body,Na,ze,()=>{$e&&$e(),j&&j()}),Ae)}k=k||"text";let ve=yield m[G.findKey(m,k)||"text"](Ee,w);if(oe&&!y&&!Pe){let Ae;if(ve!=null&&(typeof ve.byteLength=="number"?Ae=ve.byteLength:typeof ve.size=="number"?Ae=ve.size:typeof ve=="string"&&(Ae=typeof n=="function"?new n().encode(ve).byteLength:ve.length)),typeof Ae=="number"&&Ae>Y)throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,H)}return!Pe&&j&&j(),yield new Promise((Ae,Ie)=>{Qc(Ae,Ie,{data:ve,headers:ct.from(Ee.headers),status:Ee.status,statusText:Ee.statusText,config:w,request:H})})}catch(J){if(j&&j(),ue&&ue.aborted&&ue.reason instanceof me){const ge=ue.reason;throw ge.config=w,H&&(ge.request=H),J!==ge&&(ge.cause=J),ge}throw J&&J.name==="TypeError"&&/Load failed|fetch/i.test(J.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,w,H,J&&J.response),{cause:J.cause||J}):me.from(J,J&&J.code,w,H,J&&J.response)}})},Cp=new Map,tu=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:i}=e,o=[n,i,r];let s=o.length,a=s,u,c,f=Cp;for(;a--;)u=o[a],c=f.get(u),c===void 0&&f.set(u,c=a?new Map:bp(e)),f=c;return c};tu();const N0={http:Vd,xhr:mp,fetch:{get:tu}};G.forEach(N0,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch(r){}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const ka=t=>`- ${t}`,Bp=t=>G.isFunction(t)||t===null||t===!1;function Dp(t,e){t=G.isArray(t)?t:[t];const{length:r}=t;let n,i;const o={};for(let s=0;s<r;s++){n=t[s];let a;if(i=n,!Bp(n)&&(i=N0[(a=String(n)).toLowerCase()],i===void 0))throw new me(`Unknown adapter '${a}'`);if(i&&(G.isFunction(i)||(i=i.get(e))))break;o[a||"#"+s]=i}if(!i){const s=Object.entries(o).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?s.length>1?`since :
|
|
7
|
+
`+s.map(ka).join(`
|
|
8
|
+
`):" "+ka(s[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i}const ru={getAdapter:Dp,adapters:N0};function po(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new _n(null,t)}function Ma(t){return po(t),t.headers=ct.from(t.headers),t.data=ho.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ru.getAdapter(t.adapter||wn.adapter,t)(t).then(function(n){po(t),t.response=n;try{n.data=ho.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=ct.from(n.headers),n},function(n){if(!Jc(n)&&(po(t),n&&n.response)){t.response=n.response;try{n.response.data=ho.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=ct.from(n.response.headers)}return Promise.reject(n)})}const yi={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{yi[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Ua={};yi.transitional=function(e,r,n){function i(o,s){return"[Axios v"+P0+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,a)=>{if(e===!1)throw new me(i(s," has been removed"+(r?" in "+r:"")),me.ERR_DEPRECATED);return r&&!Ua[s]&&(Ua[s]=!0,console.warn(i(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,s,a):!0}};yi.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Sp(t,e,r){if(typeof t!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const o=n[i],s=Object.prototype.hasOwnProperty.call(e,o)?e[o]:void 0;if(s){const a=t[o],u=a===void 0||s(a,o,t);if(u!==!0)throw new me("option "+o+" must be "+u,me.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new me("Unknown option "+o,me.ERR_BAD_OPTION)}}const Kn={assertOptions:Sp,validators:yi},mt=Kn.validators;let ur=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ra,response:new Ra}}request(e,r){return Be(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=(()=>{if(!i.stack)return"";const s=i.stack.indexOf(`
|
|
9
9
|
`);return s===-1?"":i.stack.slice(s+1)})();try{if(!n.stack)n.stack=o;else if(o){const s=o.indexOf(`
|
|
10
10
|
`),a=s===-1?-1:o.indexOf(`
|
|
11
|
-
`,s+1),
|
|
12
|
-
`+o)}}catch(s){}}throw n}})}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=fr(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Kn.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean),legacyInterceptorReqResOrdering:mt.transitional(mt.boolean)},!1),i!=null&&(G.isFunction(i)?r.paramsSerializer={serialize:i}:Kn.assertOptions(i,{encode:mt.function,serialize:mt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Kn.assertOptions(r,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&G.merge(o.common,o[r.method]);o&&G.forEach(["delete","get","head","post","put","patch","query","common"],m=>{delete o[m]}),r.headers=ct.concat(s,o);const a=[];let
|
|
11
|
+
`,s+1),u=a===-1?"":o.slice(a+1);String(n.stack).endsWith(u)||(n.stack+=`
|
|
12
|
+
`+o)}}catch(s){}}throw n}})}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=fr(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Kn.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean),legacyInterceptorReqResOrdering:mt.transitional(mt.boolean)},!1),i!=null&&(G.isFunction(i)?r.paramsSerializer={serialize:i}:Kn.assertOptions(i,{encode:mt.function,serialize:mt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Kn.assertOptions(r,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&G.merge(o.common,o[r.method]);o&&G.forEach(["delete","get","head","post","put","patch","query","common"],m=>{delete o[m]}),r.headers=ct.concat(s,o);const a=[];let u=!0;this.interceptors.request.forEach(function(E){if(typeof E.runWhen=="function"&&E.runWhen(r)===!1)return;u=u&&E.synchronous;const A=r.transitional||T0;A&&A.legacyInterceptorReqResOrdering?a.unshift(E.fulfilled,E.rejected):a.push(E.fulfilled,E.rejected)});const c=[];this.interceptors.response.forEach(function(E){c.push(E.fulfilled,E.rejected)});let f,x=0,h;if(!u){const m=[Ma.bind(this),void 0];for(m.unshift(...a),m.push(...c),h=m.length,f=Promise.resolve(r);x<h;)f=f.then(m[x++],m[x++]);return f}h=a.length;let y=r;for(;x<h;){const m=a[x++],E=a[x++];try{y=m(y)}catch(A){E.call(this,A);break}}try{f=Ma.call(this,y)}catch(m){return Promise.reject(m)}for(x=0,h=c.length;x<h;)f=f.then(c[x++],c[x++]);return f}getUri(e){e=fr(this.defaults,e);const r=Zc(e.baseURL,e.url,e.allowAbsoluteUrls);return Yc(r,e.params,e.paramsSerializer)}};G.forEach(["delete","get","head","options"],function(e){ur.prototype[e]=function(r,n){return this.request(fr(n||{},{method:e,url:r,data:(n||{}).data}))}});G.forEach(["post","put","patch","query"],function(e){function r(n){return function(o,s,a){return this.request(fr(a||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}ur.prototype[e]=r(),e!=="query"&&(ur.prototype[e+"Form"]=r(!0))});let Fp=class nu{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 s=new Promise(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},e(function(o,s,a){n.reason||(n.reason=new _n(o,s,a),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 nu(function(i){e=i}),cancel:e}}};function Rp(t){return function(r){return t.apply(null,r)}}function Ip(t){return G.isObject(t)&&t.isAxiosError===!0}const u0={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(u0).forEach(([t,e])=>{u0[e]=t});function iu(t){const e=new ur(t),r=Mc(ur.prototype.request,e);return G.extend(r,ur.prototype,e,{allOwnKeys:!0}),G.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return iu(fr(t,i))},r}const Ye=iu(wn);Ye.Axios=ur;Ye.CanceledError=_n;Ye.CancelToken=Fp;Ye.isCancel=Jc;Ye.VERSION=P0;Ye.toFormData=vi;Ye.AxiosError=me;Ye.Cancel=Ye.CanceledError;Ye.all=function(e){return Promise.all(e)};Ye.spread=Rp;Ye.isAxiosError=Ip;Ye.mergeConfig=fr;Ye.AxiosHeaders=ct;Ye.formToJSON=t=>Xc(G.isHTMLForm(t)?new FormData(t):t);Ye.getAdapter=ru.getAdapter;Ye.HttpStatusCode=u0;Ye.default=Ye;const{Axios:Wy,AxiosError:Vy,CanceledError:Gy,isCancel:jy,CancelToken:Ky,VERSION:Yy,all:Xy,Cancel:Jy,isAxiosError:Qy,spread:Zy,toFormData:e2,AxiosHeaders:t2,HttpStatusCode:r2,formToJSON:n2,getAdapter:i2,mergeConfig:o2,create:a2}=Ye,zt={NONE:"none",WUJIE:"wujie",QIANKUN:"qiankun",MICROAPP:"microapp"},$a={ACPOINT:{YCVALUE:"status.platform.ycvalue",YXVALUE:"status.platform.yxvalue"}};var mi={};/*!
|
|
13
13
|
* vite-plugin-qiankun.js v1.0.14
|
|
14
14
|
* (c) 2021-2022 Teng Mao Qing
|
|
15
15
|
* Released under the MIT License.
|
|
16
|
-
*/Object.defineProperty(mi,"__esModule",{value:!0});var Or=typeof window!="undefined"?window.proxy||window:{},au=function(t){Or!=null&&Or.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),Or.qiankunName&&(window.moudleQiankunAppLifeCycles[Or.qiankunName]=t))};mi.default=au;var Yn=mi.qiankunWindow=Or;mi.renderWithQiankun=au;function Tp(){return window.__POWERED_BY_WUJIE__||window.$wujie?zt.WUJIE:window.__POWERED_BY_QIANKUN__||Yn!=null&&Yn.__POWERED_BY_QIANKUN__?zt.QIANKUN:window.__MICRO_APP_ENVIRONMENT__||window.microApp?zt.MICROAPP:zt.NONE}function Op(){return{microType:Tp()}}const Pp="/",{microType:za}=Op(),Np=Yn||window;var Qs,Zs;const gi=za!==zt.NONE?za:(Zs=(Qs=Np.meta)==null?void 0:Qs.vite.micro)==null?void 0:Zs.type,Lp=gi===zt.WUJIE,kp=gi===zt.QIANKUN,Mp=gi===zt.MICROAPP,Up=window.top!==window.self||gi!==zt.NONE;console.log("🚀 ~ isNested:",Up,Lp,kp,Mp);const $p=location.origin;var ec,tc,rc,nc,ic,oc,ac,sc,cc,uc,fc,lc;const su={savePath:((tc=(ec=window.meta)==null?void 0:ec.graph)==null?void 0:tc.savePath)||"/cockpit/drawing",graphPenPath:((nc=(rc=window.meta)==null?void 0:rc.graph)==null?void 0:nc.graphPenPath)||"/cockpit/graph",templatePath:((oc=(ic=window.meta)==null?void 0:ic.graph)==null?void 0:oc.templatePath)||"/cockpit/template",graphImgUploadPath:((sc=(ac=window.meta)==null?void 0:ac.graph)==null?void 0:sc.graphImgUploadPath)||"/cockpit/upload",threeSavePath:((uc=(cc=window.meta)==null?void 0:cc.graph)==null?void 0:uc.threeSavePath)||"/cockpit/threed",threeModelPath:((lc=(fc=window.meta)==null?void 0:fc.graph)==null?void 0:lc.threeModelPath)||"/cockpit/models"},Ve=Ye.create({baseURL:$p,timeout:window.meta.axios.timeout||12e4,withCredentials:!1,paramsSerializer:t=>Wh.stringify(t)});Ve.interceptors.request.use(t=>(t.headers["x-token"]="ewoglCJhbGcilDogpc3",t),t=>Promise.reject(t));Ve.interceptors.response.use(t=>{const{data:e}=t;return Promise.resolve(e)},t=>Promise.reject(t));function Hp(t,e={},r={}){return new Promise(n=>{Ve.get(t,Ue({params:e},r)).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function zp(t,e={},r={}){return new Promise(n=>{Ve.post(t,e,r).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function qp(t,e={},r={}){return Ve.get(t,Ue({params:e},r))}function Wp(t,e={},r={}){return Ve.post(t,e,r)}function Vp(t,e={}){return Ve.get(`/filehandle/${t}`,{params:e})}function Gp(t,e={},r={}){return Ve.post(`/filehandle/${t}`,e,r)}function jp(t,e={}){return Ve.get(`/user/${t}`,{params:e})}function Kp(t,e={},r={}){return Ve.post(`/user/${t}`,e,r)}function Yp(t,e={}){return Ve.get(`${t}`,e.local?{params:e,baseURL:Pp}:{params:e})}function Xp(t,e={}){return Ve.get(`/media/${t}/`,{params:e})}function Jp(t,e={},r={}){return Ve.post(`/media/${t}/`,e,r)}function Qp(t,e={}){return Ve.get(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${t}/`,{params:e})}function Zp(t,e={},r={}){return Ve.post(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${t}/`,e,r)}function e1(t,e={}){return Ve.get(`/history/${t}`,{params:e})}function t1(t,e={},r={}){return Ve.post(`/history/${t}`,e,r)}function r1(t,e={}){return Ve.get(`/scada/${t}`,{params:e})}function n1(t,e={},r={}){return Ve.post(`/scada/${t}`,e,r)}function i1(t,e={}){return Ve.get(`/common/factory/${t}`,{params:e})}function o1(t,e={},r={}){return Ve.post(`/common/factory/${t}`,e,r)}function a1(t,e={}){return Ve.get(`/factory/${t}`,{params:e})}function s1(t,e={},r={}){return Ve.post(`/factory/${t}`,e,r)}function c1(t,e={}){return Ve.get(`/pd/${t}`,{params:e})}function u1(t,e={},r={}){return Ve.post(`/pd/${t}`,e,r)}const kt={getApi:Hp,postApi:zp,getFileApi:Vp,postFileApi:Gp,getBaseApi:qp,postBaseApi:Wp,getUserApi:jp,postUserApi:Kp,getGraphApi:Yp,getMediaApi:Xp,postMediaApi:Jp,getScadaApi:r1,postScadaApi:n1,getCommonApi:Qp,postCommonApi:Zp,getHistoryApi:e1,postHistoryApi:t1,getFactoryApi:a1,postFactoryApi:s1,getCommonFactoryApi:i1,postCommonFactoryApi:o1,getPDApi:c1,postPDApi:u1};var f1={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(be,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",a="minute",l="hour",c="day",u="week",x="month",h="quarter",y="year",m="date",E="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|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,w={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(te){var Y=["th","st","nd","rd"],Q=te%100;return"["+te+(Y[(Q-20)%10]||Y[Q]||Y[0])+"]"}},_=function(te,Y,Q){var oe=String(te);return!oe||oe.length>=Y?te:""+Array(Y+1-oe.length).join(Q)+te},D={s:_,z:function(te){var Y=-te.utcOffset(),Q=Math.abs(Y),oe=Math.floor(Q/60),ie=Q%60;return(Y<=0?"+":"-")+_(oe,2,"0")+":"+_(ie,2,"0")},m:function te(Y,Q){if(Y.date()<Q.date())return-te(Q,Y);var oe=12*(Q.year()-Y.year())+(Q.month()-Y.month()),ie=Y.clone().add(oe,x),he=Q-ie<0,ue=Y.clone().add(oe+(he?-1:1),x);return+(-(oe+(Q-ie)/(he?ie-ue:ue-ie))||0)},a:function(te){return te<0?Math.ceil(te)||0:Math.floor(te)},p:function(te){return{M:x,y,w:u,d:c,D:m,h:l,m:a,s,ms:o,Q:h}[te]||String(te||"").toLowerCase().replace(/s$/,"")},u:function(te){return te===void 0}},C="en",T={};T[C]=w;var L="$isDayjsObject",H=function(te){return te instanceof V||!(!te||!te[L])},Z=function te(Y,Q,oe){var ie;if(!Y)return C;if(typeof Y=="string"){var he=Y.toLowerCase();T[he]&&(ie=he),Q&&(T[he]=Q,ie=he);var ue=Y.split("-");if(!ie&&ue.length>1)return te(ue[0])}else{var z=Y.name;T[z]=Y,ie=z}return!oe&&ie&&(C=ie),ie||!oe&&C},O=function(te,Y){if(H(te))return te.clone();var Q=typeof Y=="object"?Y:{};return Q.date=te,Q.args=arguments,new V(Q)},k=D;k.l=Z,k.i=H,k.w=function(te,Y){return O(te,{locale:Y.$L,utc:Y.$u,x:Y.$x,$offset:Y.$offset})};var V=function(){function te(Q){this.$L=Z(Q.locale,null,!0),this.parse(Q),this.$x=this.$x||Q.x||{},this[L]=!0}var Y=te.prototype;return Y.parse=function(Q){this.$d=function(oe){var ie=oe.date,he=oe.utc;if(ie===null)return new Date(NaN);if(k.u(ie))return new Date;if(ie instanceof Date)return new Date(ie);if(typeof ie=="string"&&!/Z$/i.test(ie)){var ue=ie.match(A);if(ue){var z=ue[2]-1||0,j=(ue[7]||"0").substring(0,3);return he?new Date(Date.UTC(ue[1],z,ue[3]||1,ue[4]||0,ue[5]||0,ue[6]||0,j)):new Date(ue[1],z,ue[3]||1,ue[4]||0,ue[5]||0,ue[6]||0,j)}}return new Date(ie)}(Q),this.init()},Y.init=function(){var Q=this.$d;this.$y=Q.getFullYear(),this.$M=Q.getMonth(),this.$D=Q.getDate(),this.$W=Q.getDay(),this.$H=Q.getHours(),this.$m=Q.getMinutes(),this.$s=Q.getSeconds(),this.$ms=Q.getMilliseconds()},Y.$utils=function(){return k},Y.isValid=function(){return this.$d.toString()!==E},Y.isSame=function(Q,oe){var ie=O(Q);return this.startOf(oe)<=ie&&ie<=this.endOf(oe)},Y.isAfter=function(Q,oe){return O(Q)<this.startOf(oe)},Y.isBefore=function(Q,oe){return this.endOf(oe)<O(Q)},Y.$g=function(Q,oe,ie){return k.u(Q)?this[oe]:this.set(ie,Q)},Y.unix=function(){return Math.floor(this.valueOf()/1e3)},Y.valueOf=function(){return this.$d.getTime()},Y.startOf=function(Q,oe){var ie=this,he=!!k.u(oe)||oe,ue=k.p(Q),z=function(Ae,Ie){var He=k.w(ie.$u?Date.UTC(ie.$y,Ie,Ae):new Date(ie.$y,Ie,Ae),ie);return he?He:He.endOf(c)},j=function(Ae,Ie){return k.w(ie.toDate()[Ae].apply(ie.toDate("s"),(he?[0,0,0,0]:[23,59,59,999]).slice(Ie)),ie)},re=this.$W,J=this.$M,ge=this.$D,Ee="set"+(this.$u?"UTC":"");switch(ue){case y:return he?z(1,0):z(31,11);case x:return he?z(1,J):z(0,J+1);case u:var Pe=this.$locale().weekStart||0,ve=(re<Pe?re+7:re)-Pe;return z(he?ge-ve:ge+(6-ve),J);case c:case m:return j(Ee+"Hours",0);case l:return j(Ee+"Minutes",1);case a:return j(Ee+"Seconds",2);case s:return j(Ee+"Milliseconds",3);default:return this.clone()}},Y.endOf=function(Q){return this.startOf(Q,!1)},Y.$set=function(Q,oe){var ie,he=k.p(Q),ue="set"+(this.$u?"UTC":""),z=(ie={},ie[c]=ue+"Date",ie[m]=ue+"Date",ie[x]=ue+"Month",ie[y]=ue+"FullYear",ie[l]=ue+"Hours",ie[a]=ue+"Minutes",ie[s]=ue+"Seconds",ie[o]=ue+"Milliseconds",ie)[he],j=he===c?this.$D+(oe-this.$W):oe;if(he===x||he===y){var re=this.clone().set(m,1);re.$d[z](j),re.init(),this.$d=re.set(m,Math.min(this.$D,re.daysInMonth())).$d}else z&&this.$d[z](j);return this.init(),this},Y.set=function(Q,oe){return this.clone().$set(Q,oe)},Y.get=function(Q){return this[k.p(Q)]()},Y.add=function(Q,oe){var ie,he=this;Q=Number(Q);var ue=k.p(oe),z=function(J){var ge=O(he);return k.w(ge.date(ge.date()+Math.round(J*Q)),he)};if(ue===x)return this.set(x,this.$M+Q);if(ue===y)return this.set(y,this.$y+Q);if(ue===c)return z(1);if(ue===u)return z(7);var j=(ie={},ie[a]=n,ie[l]=i,ie[s]=r,ie)[ue]||1,re=this.$d.getTime()+Q*j;return k.w(re,this)},Y.subtract=function(Q,oe){return this.add(-1*Q,oe)},Y.format=function(Q){var oe=this,ie=this.$locale();if(!this.isValid())return ie.invalidDate||E;var he=Q||"YYYY-MM-DDTHH:mm:ssZ",ue=k.z(this),z=this.$H,j=this.$m,re=this.$M,J=ie.weekdays,ge=ie.months,Ee=ie.meridiem,Pe=function(Ie,He,$e,Fe){return Ie&&(Ie[He]||Ie(oe,he))||$e[He].slice(0,Fe)},ve=function(Ie){return k.s(z%12||12,Ie,"0")},Ae=Ee||function(Ie,He,$e){var Fe=Ie<12?"AM":"PM";return $e?Fe.toLowerCase():Fe};return he.replace(R,function(Ie,He){return He||function($e){switch($e){case"YY":return String(oe.$y).slice(-2);case"YYYY":return k.s(oe.$y,4,"0");case"M":return re+1;case"MM":return k.s(re+1,2,"0");case"MMM":return Pe(ie.monthsShort,re,ge,3);case"MMMM":return Pe(ge,re);case"D":return oe.$D;case"DD":return k.s(oe.$D,2,"0");case"d":return String(oe.$W);case"dd":return Pe(ie.weekdaysMin,oe.$W,J,2);case"ddd":return Pe(ie.weekdaysShort,oe.$W,J,3);case"dddd":return J[oe.$W];case"H":return String(z);case"HH":return k.s(z,2,"0");case"h":return ve(1);case"hh":return ve(2);case"a":return Ae(z,j,!0);case"A":return Ae(z,j,!1);case"m":return String(j);case"mm":return k.s(j,2,"0");case"s":return String(oe.$s);case"ss":return k.s(oe.$s,2,"0");case"SSS":return k.s(oe.$ms,3,"0");case"Z":return ue}return null}(Ie)||ue.replace(":","")})},Y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Y.diff=function(Q,oe,ie){var he,ue=this,z=k.p(oe),j=O(Q),re=(j.utcOffset()-this.utcOffset())*n,J=this-j,ge=function(){return k.m(ue,j)};switch(z){case y:he=ge()/12;break;case x:he=ge();break;case h:he=ge()/3;break;case u:he=(J-re)/6048e5;break;case c:he=(J-re)/864e5;break;case l:he=J/i;break;case a:he=J/n;break;case s:he=J/r;break;default:he=J}return ie?he:k.a(he)},Y.daysInMonth=function(){return this.endOf(x).$D},Y.$locale=function(){return T[this.$L]},Y.locale=function(Q,oe){if(!Q)return this.$L;var ie=this.clone(),he=Z(Q,oe,!0);return he&&(ie.$L=he),ie},Y.clone=function(){return k.w(this.$d,this)},Y.toDate=function(){return new Date(this.valueOf())},Y.toJSON=function(){return this.isValid()?this.toISOString():null},Y.toISOString=function(){return this.$d.toISOString()},Y.toString=function(){return this.$d.toUTCString()},te}(),X=V.prototype;return O.prototype=X,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",c],["$M",x],["$y",y],["$D",m]].forEach(function(te){X[te[1]]=function(Y){return this.$g(Y,te[0],te[1])}}),O.extend=function(te,Y){return te.$i||(te(Y,V,O),te.$i=!0),O},O.locale=Z,O.isDayjs=H,O.unix=function(te){return O(1e3*te)},O.en=T[C],O.Ls=T,O.p={},O})})(f1);const l1=()=>{var n;const t={},e=((n=window.location.href.split("?"))==null?void 0:n[1])||"",r=new URLSearchParams(e);for(const[i,o]of r.entries())t[i]=o;return t};function qa(t){return Object.prototype.toString.call(t).slice(8,-1)}function l0(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}function h1(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 h0=h1();class d1{constructor(e={}){this._options=Ue({url:e.socketUrl,onOpen:null,onClose:null,onError:null,onMessage:null},e),this._client=null,this._isConnect=!1,this._closeClient=!1,this._retryCount=0,this._retryTimes=10,this._retryInterval=1e4,this._retryIntervalObj=null,this._initSockjs()}_initSockjs(){const{url:e,onOpen:r,onClose:n,onError:i,onMessage:o,token:s}=this._options;WebSocket!==void 0?this._client=new WebSocket(e,[s]):this.$message({type:"error",message:"当前浏览器不支持WebSocket推送!"}),this._client.onopen=a=>{this._client.readyState===WebSocket.OPEN&&(this._retryCount=0,this._isConnect=!0,this._closeClient=!1,this._retryIntervalObj&&clearInterval(this._retryIntervalObj),this._retryIntervalObj=null),r&&r(a)},this._client.onclose=a=>{!this._closeClient&&this.retryIntervalStart(),this._isConnect=!1,n&&n(a)},this._client.onerror=a=>{i&&i(a)},this._client.onmessage=a=>{o&&o(a)}}_reconnect(){if(this._retryCount===this._retryTimes){this._retryIntervalObj&&clearInterval(this._retryIntervalObj),this._retryIntervalObj=null;return}this._client=null,this._initSockjs(),this._retryCount++}retryIntervalStart(){this._closeClient=!0,this._retryIntervalObj||(this._retryIntervalObj=setInterval(()=>{this._reconnect()},this._retryInterval))}sendMsg(e){this._isConnect&&this._client.send(e)}destroy(){this._client&&(this._isConnect=!1,this._retryIntervalObj&&clearInterval(this._retryIntervalObj),this._retryIntervalObj=null,this._closeClient=!0,this._client.close(),this._client=null)}}const p1=(t,e)=>new Promise((r,n)=>{kt.postApi("/filehandle/save",{path:t,data:e}).then(i=>{i.res.success?r(!0):n(!1)})});_0.createPinia();var x1={exports:{}};function on(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 vo={exports:{}},Wa;function Oe(){return Wa||(Wa=1,function(t,e){(function(r,n){t.exports=n()})(be,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 be!="undefined"&&be.crypto&&(o=be.crypto),!o&&typeof on=="function")try{o=dc}catch(w){}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(w){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(w){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function w(){}return function(_){var D;return w.prototype=_,D=new w,w.prototype=null,D}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(w){var _=a(this);return w&&_.mixIn(w),(!_.hasOwnProperty("init")||this.init===_.init)&&(_.init=function(){_.$super.init.apply(this,arguments)}),_.init.prototype=_,_.$super=this,_},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var _ in w)w.hasOwnProperty(_)&&(this[_]=w[_]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=c.WordArray=u.extend({init:function(w,_){w=this.words=w||[],_!=i?this.sigBytes=_:this.sigBytes=w.length*4},toString:function(w){return(w||y).stringify(this)},concat:function(w){var _=this.words,D=w.words,C=this.sigBytes,T=w.sigBytes;if(this.clamp(),C%4)for(var L=0;L<T;L++){var H=D[L>>>2]>>>24-L%4*8&255;_[C+L>>>2]|=H<<24-(C+L)%4*8}else for(var Z=0;Z<T;Z+=4)_[C+Z>>>2]=D[Z>>>2];return this.sigBytes+=T,this},clamp:function(){var w=this.words,_=this.sigBytes;w[_>>>2]&=4294967295<<32-_%4*8,w.length=n.ceil(_/4)},clone:function(){var w=u.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var _=[],D=0;D<w;D+=4)_.push(s());return new x.init(_,w)}}),h=l.enc={},y=h.Hex={stringify:function(w){for(var _=w.words,D=w.sigBytes,C=[],T=0;T<D;T++){var L=_[T>>>2]>>>24-T%4*8&255;C.push((L>>>4).toString(16)),C.push((L&15).toString(16))}return C.join("")},parse:function(w){for(var _=w.length,D=[],C=0;C<_;C+=2)D[C>>>3]|=parseInt(w.substr(C,2),16)<<24-C%8*4;return new x.init(D,_/2)}},m=h.Latin1={stringify:function(w){for(var _=w.words,D=w.sigBytes,C=[],T=0;T<D;T++){var L=_[T>>>2]>>>24-T%4*8&255;C.push(String.fromCharCode(L))}return C.join("")},parse:function(w){for(var _=w.length,D=[],C=0;C<_;C++)D[C>>>2]|=(w.charCodeAt(C)&255)<<24-C%4*8;return new x.init(D,_)}},E=h.Utf8={stringify:function(w){try{return decodeURIComponent(escape(m.stringify(w)))}catch(_){throw new Error("Malformed UTF-8 data")}},parse:function(w){return m.parse(unescape(encodeURIComponent(w)))}},A=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=E.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var _,D=this._data,C=D.words,T=D.sigBytes,L=this.blockSize,H=L*4,Z=T/H;w?Z=n.ceil(Z):Z=n.max((Z|0)-this._minBufferSize,0);var O=Z*L,k=n.min(O*4,T);if(O){for(var V=0;V<O;V+=L)this._doProcessBlock(C,V);_=C.splice(0,O),D.sigBytes-=k}return new x.init(_,k)},clone:function(){var w=u.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});c.Hasher=A.extend({cfg:u.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){A.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var _=this._doFinalize();return _},blockSize:16,_createHelper:function(w){return function(_,D){return new w.init(D).finalize(_)}},_createHmacHelper:function(w){return function(_,D){return new R.HMAC.init(w,D).finalize(_)}}});var R=l.algo={};return l}(Math);return r})}(vo)),vo.exports}var yo={exports:{}},Va;function Ei(){return Va||(Va=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(n){var i=r,o=i.lib,s=o.Base,a=o.WordArray,l=i.x64={};l.Word=s.extend({init:function(c,u){this.high=c,this.low=u}}),l.WordArray=s.extend({init:function(c,u){c=this.words=c||[],u!=n?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,x=[],h=0;h<u;h++){var y=c[h];x.push(y.high),x.push(y.low)}return a.create(x,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),u=c.words=this.words.slice(0),x=u.length,h=0;h<x;h++)u[h]=u[h].clone();return c}})}(),r})}(yo)),yo.exports}var mo={exports:{}},Ga;function v1(){return Ga||(Ga=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,i=n.lib,o=i.WordArray,s=o.init,a=o.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var c=l.byteLength,u=[],x=0;x<c;x++)u[x>>>2]|=l[x]<<24-x%4*8;s.call(this,u,c)}else s.apply(this,arguments)};a.prototype=o}}(),r.lib.WordArray})}(mo)),mo.exports}var go={exports:{}},ja;function y1(){return ja||(ja=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Utf16=s.Utf16BE={stringify:function(l){for(var c=l.words,u=l.sigBytes,x=[],h=0;h<u;h+=2){var y=c[h>>>2]>>>16-h%4*8&65535;x.push(String.fromCharCode(y))}return x.join("")},parse:function(l){for(var c=l.length,u=[],x=0;x<c;x++)u[x>>>1]|=l.charCodeAt(x)<<16-x%2*16;return o.create(u,c*2)}},s.Utf16LE={stringify:function(l){for(var c=l.words,u=l.sigBytes,x=[],h=0;h<u;h+=2){var y=a(c[h>>>2]>>>16-h%4*8&65535);x.push(String.fromCharCode(y))}return x.join("")},parse:function(l){for(var c=l.length,u=[],x=0;x<c;x++)u[x>>>1]|=a(l.charCodeAt(x)<<16-x%2*16);return o.create(u,c*2)}};function a(l){return l<<8&4278255360|l>>>8&16711935}}(),r.enc.Utf16})}(go)),go.exports}var Eo={exports:{}},Ka;function pr(){return Ka||(Ka=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,x=this._map;l.clamp();for(var h=[],y=0;y<u;y+=3)for(var m=c[y>>>2]>>>24-y%4*8&255,E=c[y+1>>>2]>>>24-(y+1)%4*8&255,A=c[y+2>>>2]>>>24-(y+2)%4*8&255,R=m<<16|E<<8|A,w=0;w<4&&y+w*.75<u;w++)h.push(x.charAt(R>>>6*(3-w)&63));var _=x.charAt(64);if(_)for(;h.length%4;)h.push(_);return h.join("")},parse:function(l){var c=l.length,u=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var h=0;h<u.length;h++)x[u.charCodeAt(h)]=h}var y=u.charAt(64);if(y){var m=l.indexOf(y);m!==-1&&(c=m)}return a(l,c,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(l,c,u){for(var x=[],h=0,y=0;y<c;y++)if(y%4){var m=u[l.charCodeAt(y-1)]<<y%4*2,E=u[l.charCodeAt(y)]>>>6-y%4*2,A=m|E;x[h>>>2]|=A<<24-h%4*8,h++}return o.create(x,h)}}(),r.enc.Base64})}(Eo)),Eo.exports}var Ao={exports:{}},Ya;function m1(){return Ya||(Ya=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var u=l.words,x=l.sigBytes,h=c?this._safe_map:this._map;l.clamp();for(var y=[],m=0;m<x;m+=3)for(var E=u[m>>>2]>>>24-m%4*8&255,A=u[m+1>>>2]>>>24-(m+1)%4*8&255,R=u[m+2>>>2]>>>24-(m+2)%4*8&255,w=E<<16|A<<8|R,_=0;_<4&&m+_*.75<x;_++)y.push(h.charAt(w>>>6*(3-_)&63));var D=h.charAt(64);if(D)for(;y.length%4;)y.push(D);return y.join("")},parse:function(l,c){c===void 0&&(c=!0);var u=l.length,x=c?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var y=0;y<x.length;y++)h[x.charCodeAt(y)]=y}var m=x.charAt(64);if(m){var E=l.indexOf(m);E!==-1&&(u=E)}return a(l,u,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(l,c,u){for(var x=[],h=0,y=0;y<c;y++)if(y%4){var m=u[l.charCodeAt(y-1)]<<y%4*2,E=u[l.charCodeAt(y)]>>>6-y%4*2,A=m|E;x[h>>>2]|=A<<24-h%4*8,h++}return o.create(x,h)}}(),r.enc.Base64url})}(Ao)),Ao.exports}var wo={exports:{}},Xa;function xr(){return Xa||(Xa=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,l=i.algo,c=[];(function(){for(var E=0;E<64;E++)c[E]=n.abs(n.sin(E+1))*4294967296|0})();var u=l.MD5=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,A){for(var R=0;R<16;R++){var w=A+R,_=E[w];E[w]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}var D=this._hash.words,C=E[A+0],T=E[A+1],L=E[A+2],H=E[A+3],Z=E[A+4],O=E[A+5],k=E[A+6],V=E[A+7],X=E[A+8],te=E[A+9],Y=E[A+10],Q=E[A+11],oe=E[A+12],ie=E[A+13],he=E[A+14],ue=E[A+15],z=D[0],j=D[1],re=D[2],J=D[3];z=x(z,j,re,J,C,7,c[0]),J=x(J,z,j,re,T,12,c[1]),re=x(re,J,z,j,L,17,c[2]),j=x(j,re,J,z,H,22,c[3]),z=x(z,j,re,J,Z,7,c[4]),J=x(J,z,j,re,O,12,c[5]),re=x(re,J,z,j,k,17,c[6]),j=x(j,re,J,z,V,22,c[7]),z=x(z,j,re,J,X,7,c[8]),J=x(J,z,j,re,te,12,c[9]),re=x(re,J,z,j,Y,17,c[10]),j=x(j,re,J,z,Q,22,c[11]),z=x(z,j,re,J,oe,7,c[12]),J=x(J,z,j,re,ie,12,c[13]),re=x(re,J,z,j,he,17,c[14]),j=x(j,re,J,z,ue,22,c[15]),z=h(z,j,re,J,T,5,c[16]),J=h(J,z,j,re,k,9,c[17]),re=h(re,J,z,j,Q,14,c[18]),j=h(j,re,J,z,C,20,c[19]),z=h(z,j,re,J,O,5,c[20]),J=h(J,z,j,re,Y,9,c[21]),re=h(re,J,z,j,ue,14,c[22]),j=h(j,re,J,z,Z,20,c[23]),z=h(z,j,re,J,te,5,c[24]),J=h(J,z,j,re,he,9,c[25]),re=h(re,J,z,j,H,14,c[26]),j=h(j,re,J,z,X,20,c[27]),z=h(z,j,re,J,ie,5,c[28]),J=h(J,z,j,re,L,9,c[29]),re=h(re,J,z,j,V,14,c[30]),j=h(j,re,J,z,oe,20,c[31]),z=y(z,j,re,J,O,4,c[32]),J=y(J,z,j,re,X,11,c[33]),re=y(re,J,z,j,Q,16,c[34]),j=y(j,re,J,z,he,23,c[35]),z=y(z,j,re,J,T,4,c[36]),J=y(J,z,j,re,Z,11,c[37]),re=y(re,J,z,j,V,16,c[38]),j=y(j,re,J,z,Y,23,c[39]),z=y(z,j,re,J,ie,4,c[40]),J=y(J,z,j,re,C,11,c[41]),re=y(re,J,z,j,H,16,c[42]),j=y(j,re,J,z,k,23,c[43]),z=y(z,j,re,J,te,4,c[44]),J=y(J,z,j,re,oe,11,c[45]),re=y(re,J,z,j,ue,16,c[46]),j=y(j,re,J,z,L,23,c[47]),z=m(z,j,re,J,C,6,c[48]),J=m(J,z,j,re,V,10,c[49]),re=m(re,J,z,j,he,15,c[50]),j=m(j,re,J,z,O,21,c[51]),z=m(z,j,re,J,oe,6,c[52]),J=m(J,z,j,re,H,10,c[53]),re=m(re,J,z,j,Y,15,c[54]),j=m(j,re,J,z,T,21,c[55]),z=m(z,j,re,J,X,6,c[56]),J=m(J,z,j,re,ue,10,c[57]),re=m(re,J,z,j,k,15,c[58]),j=m(j,re,J,z,ie,21,c[59]),z=m(z,j,re,J,Z,6,c[60]),J=m(J,z,j,re,Q,10,c[61]),re=m(re,J,z,j,L,15,c[62]),j=m(j,re,J,z,te,21,c[63]),D[0]=D[0]+z|0,D[1]=D[1]+j|0,D[2]=D[2]+re|0,D[3]=D[3]+J|0},_doFinalize:function(){var E=this._data,A=E.words,R=this._nDataBytes*8,w=E.sigBytes*8;A[w>>>5]|=128<<24-w%32;var _=n.floor(R/4294967296),D=R;A[(w+64>>>9<<4)+15]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,A[(w+64>>>9<<4)+14]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,E.sigBytes=(A.length+1)*4,this._process();for(var C=this._hash,T=C.words,L=0;L<4;L++){var H=T[L];T[L]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return C},clone:function(){var E=a.clone.call(this);return E._hash=this._hash.clone(),E}});function x(E,A,R,w,_,D,C){var T=E+(A&R|~A&w)+_+C;return(T<<D|T>>>32-D)+A}function h(E,A,R,w,_,D,C){var T=E+(A&w|R&~w)+_+C;return(T<<D|T>>>32-D)+A}function y(E,A,R,w,_,D,C){var T=E+(A^R^w)+_+C;return(T<<D|T>>>32-D)+A}function m(E,A,R,w,_,D,C){var T=E+(R^(A|~w))+_+C;return(T<<D|T>>>32-D)+A}i.MD5=a._createHelper(u),i.HmacMD5=a._createHmacHelper(u)}(Math),r.MD5})}(wo)),wo.exports}var _o={exports:{}},Ja;function cu(){return Ja||(Ja=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=i.Hasher,a=n.algo,l=[],c=a.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,x){for(var h=this._hash.words,y=h[0],m=h[1],E=h[2],A=h[3],R=h[4],w=0;w<80;w++){if(w<16)l[w]=u[x+w]|0;else{var _=l[w-3]^l[w-8]^l[w-14]^l[w-16];l[w]=_<<1|_>>>31}var D=(y<<5|y>>>27)+R+l[w];w<20?D+=(m&E|~m&A)+1518500249:w<40?D+=(m^E^A)+1859775393:w<60?D+=(m&E|m&A|E&A)-1894007588:D+=(m^E^A)-899497514,R=A,A=E,E=m<<30|m>>>2,m=y,y=D}h[0]=h[0]+y|0,h[1]=h[1]+m|0,h[2]=h[2]+E|0,h[3]=h[3]+A|0,h[4]=h[4]+R|0},_doFinalize:function(){var u=this._data,x=u.words,h=this._nDataBytes*8,y=u.sigBytes*8;return x[y>>>5]|=128<<24-y%32,x[(y+64>>>9<<4)+14]=Math.floor(h/4294967296),x[(y+64>>>9<<4)+15]=h,u.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var u=s.clone.call(this);return u._hash=this._hash.clone(),u}});n.SHA1=s._createHelper(c),n.HmacSHA1=s._createHmacHelper(c)}(),r.SHA1})}(_o)),_o.exports}var bo={exports:{}},Qa;function k0(){return Qa||(Qa=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,l=i.algo,c=[],u=[];(function(){function y(R){for(var w=n.sqrt(R),_=2;_<=w;_++)if(!(R%_))return!1;return!0}function m(R){return(R-(R|0))*4294967296|0}for(var E=2,A=0;A<64;)y(E)&&(A<8&&(c[A]=m(n.pow(E,1/2))),u[A]=m(n.pow(E,1/3)),A++),E++})();var x=[],h=l.SHA256=a.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(y,m){for(var E=this._hash.words,A=E[0],R=E[1],w=E[2],_=E[3],D=E[4],C=E[5],T=E[6],L=E[7],H=0;H<64;H++){if(H<16)x[H]=y[m+H]|0;else{var Z=x[H-15],O=(Z<<25|Z>>>7)^(Z<<14|Z>>>18)^Z>>>3,k=x[H-2],V=(k<<15|k>>>17)^(k<<13|k>>>19)^k>>>10;x[H]=O+x[H-7]+V+x[H-16]}var X=D&C^~D&T,te=A&R^A&w^R&w,Y=(A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22),Q=(D<<26|D>>>6)^(D<<21|D>>>11)^(D<<7|D>>>25),oe=L+Q+X+u[H]+x[H],ie=Y+te;L=T,T=C,C=D,D=_+oe|0,_=w,w=R,R=A,A=oe+ie|0}E[0]=E[0]+A|0,E[1]=E[1]+R|0,E[2]=E[2]+w|0,E[3]=E[3]+_|0,E[4]=E[4]+D|0,E[5]=E[5]+C|0,E[6]=E[6]+T|0,E[7]=E[7]+L|0},_doFinalize:function(){var y=this._data,m=y.words,E=this._nDataBytes*8,A=y.sigBytes*8;return m[A>>>5]|=128<<24-A%32,m[(A+64>>>9<<4)+14]=n.floor(E/4294967296),m[(A+64>>>9<<4)+15]=E,y.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var y=a.clone.call(this);return y._hash=this._hash.clone(),y}});i.SHA256=a._createHelper(h),i.HmacSHA256=a._createHmacHelper(h)}(Math),r.SHA256})}(bo)),bo.exports}var Co={exports:{}},Za;function g1(){return Za||(Za=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),k0())})(be,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.algo,a=s.SHA256,l=s.SHA224=a.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=a._doFinalize.call(this);return c.sigBytes-=4,c}});n.SHA224=a._createHelper(l),n.HmacSHA224=a._createHmacHelper(l)}(),r.SHA224})}(Co)),Co.exports}var Bo={exports:{}},es;function uu(){return es||(es=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),Ei())})(be,function(r){return function(){var n=r,i=n.lib,o=i.Hasher,s=n.x64,a=s.Word,l=s.WordArray,c=n.algo;function u(){return a.create.apply(a,arguments)}var x=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],h=[];(function(){for(var m=0;m<80;m++)h[m]=u()})();var y=c.SHA512=o.extend({_doReset:function(){this._hash=new l.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(m,E){for(var A=this._hash.words,R=A[0],w=A[1],_=A[2],D=A[3],C=A[4],T=A[5],L=A[6],H=A[7],Z=R.high,O=R.low,k=w.high,V=w.low,X=_.high,te=_.low,Y=D.high,Q=D.low,oe=C.high,ie=C.low,he=T.high,ue=T.low,z=L.high,j=L.low,re=H.high,J=H.low,ge=Z,Ee=O,Pe=k,ve=V,Ae=X,Ie=te,He=Y,$e=Q,Fe=oe,ze=ie,qe=he,F=ue,f=z,d=j,v=re,I=J,W=0;W<80;W++){var K,pe,_e=h[W];if(W<16)pe=_e.high=m[E+W*2]|0,K=_e.low=m[E+W*2+1]|0;else{var we=h[W-15],Ce=we.high,Te=we.low,ut=(Ce>>>1|Te<<31)^(Ce>>>8|Te<<24)^Ce>>>7,Bt=(Te>>>1|Ce<<31)^(Te>>>8|Ce<<24)^(Te>>>7|Ce<<25),Dt=h[W-2],Et=Dt.high,St=Dt.low,yr=(Et>>>19|St<<13)^(Et<<3|St>>>29)^Et>>>6,Ft=(St>>>19|Et<<13)^(St<<3|Et>>>29)^(St>>>6|Et<<26),mr=h[W-7],gr=mr.high,Qt=mr.low,qt=h[W-16],Vr=qt.high,pt=qt.low;K=Bt+Qt,pe=ut+gr+(K>>>0<Bt>>>0?1:0),K=K+Ft,pe=pe+yr+(K>>>0<Ft>>>0?1:0),K=K+pt,pe=pe+Vr+(K>>>0<pt>>>0?1:0),_e.high=pe,_e.low=K}var Gr=Fe&qe^~Fe&f,Er=ze&F^~ze&d,Ar=ge&Pe^ge&Ae^Pe&Ae,jr=Ee&ve^Ee&Ie^ve&Ie,Kr=(ge>>>28|Ee<<4)^(ge<<30|Ee>>>2)^(ge<<25|Ee>>>7),wr=(Ee>>>28|ge<<4)^(Ee<<30|ge>>>2)^(Ee<<25|ge>>>7),Yr=(Fe>>>14|ze<<18)^(Fe>>>18|ze<<14)^(Fe<<23|ze>>>9),Xr=(ze>>>14|Fe<<18)^(ze>>>18|Fe<<14)^(ze<<23|Fe>>>9),_r=x[W],Jr=_r.high,br=_r.low,rt=I+Xr,vt=v+Yr+(rt>>>0<I>>>0?1:0),rt=rt+Er,vt=vt+Gr+(rt>>>0<Er>>>0?1:0),rt=rt+br,vt=vt+Jr+(rt>>>0<br>>>0?1:0),rt=rt+K,vt=vt+pe+(rt>>>0<K>>>0?1:0),Zt=wr+jr,Qr=Kr+Ar+(Zt>>>0<wr>>>0?1:0);v=f,I=d,f=qe,d=F,qe=Fe,F=ze,ze=$e+rt|0,Fe=He+vt+(ze>>>0<$e>>>0?1:0)|0,He=Ae,$e=Ie,Ae=Pe,Ie=ve,Pe=ge,ve=Ee,Ee=rt+Zt|0,ge=vt+Qr+(Ee>>>0<rt>>>0?1:0)|0}O=R.low=O+Ee,R.high=Z+ge+(O>>>0<Ee>>>0?1:0),V=w.low=V+ve,w.high=k+Pe+(V>>>0<ve>>>0?1:0),te=_.low=te+Ie,_.high=X+Ae+(te>>>0<Ie>>>0?1:0),Q=D.low=Q+$e,D.high=Y+He+(Q>>>0<$e>>>0?1:0),ie=C.low=ie+ze,C.high=oe+Fe+(ie>>>0<ze>>>0?1:0),ue=T.low=ue+F,T.high=he+qe+(ue>>>0<F>>>0?1:0),j=L.low=j+d,L.high=z+f+(j>>>0<d>>>0?1:0),J=H.low=J+I,H.high=re+v+(J>>>0<I>>>0?1:0)},_doFinalize:function(){var m=this._data,E=m.words,A=this._nDataBytes*8,R=m.sigBytes*8;E[R>>>5]|=128<<24-R%32,E[(R+128>>>10<<5)+30]=Math.floor(A/4294967296),E[(R+128>>>10<<5)+31]=A,m.sigBytes=E.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var m=o.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});n.SHA512=o._createHelper(y),n.HmacSHA512=o._createHmacHelper(y)}(),r.SHA512})}(Bo)),Bo.exports}var Do={exports:{}},ts;function E1(){return ts||(ts=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),Ei(),uu())})(be,function(r){return function(){var n=r,i=n.x64,o=i.Word,s=i.WordArray,a=n.algo,l=a.SHA512,c=a.SHA384=l.extend({_doReset:function(){this._hash=new s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=16,u}});n.SHA384=l._createHelper(c),n.HmacSHA384=l._createHmacHelper(c)}(),r.SHA384})}(Do)),Do.exports}var So={exports:{}},rs;function A1(){return rs||(rs=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),Ei())})(be,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,l=i.x64,c=l.Word,u=i.algo,x=[],h=[],y=[];(function(){for(var A=1,R=0,w=0;w<24;w++){x[A+5*R]=(w+1)*(w+2)/2%64;var _=R%5,D=(2*A+3*R)%5;A=_,R=D}for(var A=0;A<5;A++)for(var R=0;R<5;R++)h[A+5*R]=R+(2*A+3*R)%5*5;for(var C=1,T=0;T<24;T++){for(var L=0,H=0,Z=0;Z<7;Z++){if(C&1){var O=(1<<Z)-1;O<32?H^=1<<O:L^=1<<O-32}C&128?C=C<<1^113:C<<=1}y[T]=c.create(L,H)}})();var m=[];(function(){for(var A=0;A<25;A++)m[A]=c.create()})();var E=u.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var A=this._state=[],R=0;R<25;R++)A[R]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(A,R){for(var w=this._state,_=this.blockSize/2,D=0;D<_;D++){var C=A[R+2*D],T=A[R+2*D+1];C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var L=w[D];L.high^=T,L.low^=C}for(var H=0;H<24;H++){for(var Z=0;Z<5;Z++){for(var O=0,k=0,V=0;V<5;V++){var L=w[Z+5*V];O^=L.high,k^=L.low}var X=m[Z];X.high=O,X.low=k}for(var Z=0;Z<5;Z++)for(var te=m[(Z+4)%5],Y=m[(Z+1)%5],Q=Y.high,oe=Y.low,O=te.high^(Q<<1|oe>>>31),k=te.low^(oe<<1|Q>>>31),V=0;V<5;V++){var L=w[Z+5*V];L.high^=O,L.low^=k}for(var ie=1;ie<25;ie++){var O,k,L=w[ie],he=L.high,ue=L.low,z=x[ie];z<32?(O=he<<z|ue>>>32-z,k=ue<<z|he>>>32-z):(O=ue<<z-32|he>>>64-z,k=he<<z-32|ue>>>64-z);var j=m[h[ie]];j.high=O,j.low=k}var re=m[0],J=w[0];re.high=J.high,re.low=J.low;for(var Z=0;Z<5;Z++)for(var V=0;V<5;V++){var ie=Z+5*V,L=w[ie],ge=m[ie],Ee=m[(Z+1)%5+5*V],Pe=m[(Z+2)%5+5*V];L.high=ge.high^~Ee.high&Pe.high,L.low=ge.low^~Ee.low&Pe.low}var L=w[0],ve=y[H];L.high^=ve.high,L.low^=ve.low}},_doFinalize:function(){var A=this._data,R=A.words;this._nDataBytes*8;var w=A.sigBytes*8,_=this.blockSize*32;R[w>>>5]|=1<<24-w%32,R[(n.ceil((w+1)/_)*_>>>5)-1]|=128,A.sigBytes=R.length*4,this._process();for(var D=this._state,C=this.cfg.outputLength/8,T=C/8,L=[],H=0;H<T;H++){var Z=D[H],O=Z.high,k=Z.low;O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,L.push(k),L.push(O)}return new s.init(L,C)},clone:function(){for(var A=a.clone.call(this),R=A._state=this._state.slice(0),w=0;w<25;w++)R[w]=R[w].clone();return A}});i.SHA3=a._createHelper(E),i.HmacSHA3=a._createHmacHelper(E)}(Math),r.SHA3})}(So)),So.exports}var Fo={exports:{}},ns;function w1(){return ns||(ns=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){/** @preserve
|
|
16
|
+
*/Object.defineProperty(mi,"__esModule",{value:!0});var Or=typeof window!="undefined"?window.proxy||window:{},ou=function(t){Or!=null&&Or.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),Or.qiankunName&&(window.moudleQiankunAppLifeCycles[Or.qiankunName]=t))};mi.default=ou;var Yn=mi.qiankunWindow=Or;mi.renderWithQiankun=ou;function Tp(){return window.__POWERED_BY_WUJIE__||window.$wujie?zt.WUJIE:window.__POWERED_BY_QIANKUN__||Yn!=null&&Yn.__POWERED_BY_QIANKUN__?zt.QIANKUN:window.__MICRO_APP_ENVIRONMENT__||window.microApp?zt.MICROAPP:zt.NONE}function Op(){return{microType:Tp()}}const Pp="/",{microType:Ha}=Op(),Np=Yn||window;var Js,Qs;const gi=Ha!==zt.NONE?Ha:(Qs=(Js=Np.meta)==null?void 0:Js.vite.micro)==null?void 0:Qs.type,Lp=gi===zt.WUJIE,kp=gi===zt.QIANKUN,Mp=gi===zt.MICROAPP,Up=window.top!==window.self||gi!==zt.NONE;console.log("🚀 ~ isNested:",Up,Lp,kp,Mp);const $p=location.origin;var Zs,ec,tc,rc,nc,ic,oc,ac,sc,cc,uc,fc;const au={savePath:((ec=(Zs=window.meta)==null?void 0:Zs.graph)==null?void 0:ec.savePath)||"/cockpit/drawing",graphPenPath:((rc=(tc=window.meta)==null?void 0:tc.graph)==null?void 0:rc.graphPenPath)||"/cockpit/graph",templatePath:((ic=(nc=window.meta)==null?void 0:nc.graph)==null?void 0:ic.templatePath)||"/cockpit/template",graphImgUploadPath:((ac=(oc=window.meta)==null?void 0:oc.graph)==null?void 0:ac.graphImgUploadPath)||"/cockpit/upload",threeSavePath:((cc=(sc=window.meta)==null?void 0:sc.graph)==null?void 0:cc.threeSavePath)||"/cockpit/threed",threeModelPath:((fc=(uc=window.meta)==null?void 0:uc.graph)==null?void 0:fc.threeModelPath)||"/cockpit/models"},Ve=Ye.create({baseURL:$p,timeout:window.meta.axios.timeout||12e4,withCredentials:!1,paramsSerializer:t=>Wh.stringify(t)});Ve.interceptors.request.use(t=>(t.headers["x-token"]="ewoglCJhbGcilDogpc3",t),t=>Promise.reject(t));Ve.interceptors.response.use(t=>{const{data:e}=t;return Promise.resolve(e)},t=>Promise.reject(t));function Hp(t,e={},r={}){return new Promise(n=>{Ve.get(t,Ue({params:e},r)).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function zp(t,e={},r={}){return new Promise(n=>{Ve.post(t,e,r).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function qp(t,e={},r={}){return Ve.get(t,Ue({params:e},r))}function Wp(t,e={},r={}){return Ve.post(t,e,r)}function Vp(t,e={}){return Ve.get(`/filehandle/${t}`,{params:e})}function Gp(t,e={},r={}){return Ve.post(`/filehandle/${t}`,e,r)}function jp(t,e={}){return Ve.get(`/user/${t}`,{params:e})}function Kp(t,e={},r={}){return Ve.post(`/user/${t}`,e,r)}function Yp(t,e={}){return Ve.get(`${t}`,e.local?{params:e,baseURL:Pp}:{params:e})}function Xp(t,e={}){return Ve.get(`/media/${t}/`,{params:e})}function Jp(t,e={},r={}){return Ve.post(`/media/${t}/`,e,r)}function Qp(t,e={}){return Ve.get(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${t}/`,{params:e})}function Zp(t,e={},r={}){return Ve.post(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${t}/`,e,r)}function e1(t,e={}){return Ve.get(`/history/${t}`,{params:e})}function t1(t,e={},r={}){return Ve.post(`/history/${t}`,e,r)}function r1(t,e={}){return Ve.get(`/scada/${t}`,{params:e})}function n1(t,e={},r={}){return Ve.post(`/scada/${t}`,e,r)}function i1(t,e={}){return Ve.get(`/common/factory/${t}`,{params:e})}function o1(t,e={},r={}){return Ve.post(`/common/factory/${t}`,e,r)}function a1(t,e={}){return Ve.get(`/factory/${t}`,{params:e})}function s1(t,e={},r={}){return Ve.post(`/factory/${t}`,e,r)}function c1(t,e={}){return Ve.get(`/pd/${t}`,{params:e})}function u1(t,e={},r={}){return Ve.post(`/pd/${t}`,e,r)}const kt={getApi:Hp,postApi:zp,getFileApi:Vp,postFileApi:Gp,getBaseApi:qp,postBaseApi:Wp,getUserApi:jp,postUserApi:Kp,getGraphApi:Yp,getMediaApi:Xp,postMediaApi:Jp,getScadaApi:r1,postScadaApi:n1,getCommonApi:Qp,postCommonApi:Zp,getHistoryApi:e1,postHistoryApi:t1,getFactoryApi:a1,postFactoryApi:s1,getCommonFactoryApi:i1,postCommonFactoryApi:o1,getPDApi:c1,postPDApi:u1};var f1={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(be,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",a="minute",u="hour",c="day",f="week",x="month",h="quarter",y="year",m="date",E="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|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,w={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(ee){var Y=["th","st","nd","rd"],Z=ee%100;return"["+ee+(Y[(Z-20)%10]||Y[Z]||Y[0])+"]"}},_=function(ee,Y,Z){var oe=String(ee);return!oe||oe.length>=Y?ee:""+Array(Y+1-oe.length).join(Z)+ee},B={s:_,z:function(ee){var Y=-ee.utcOffset(),Z=Math.abs(Y),oe=Math.floor(Z/60),ie=Z%60;return(Y<=0?"+":"-")+_(oe,2,"0")+":"+_(ie,2,"0")},m:function ee(Y,Z){if(Y.date()<Z.date())return-ee(Z,Y);var oe=12*(Z.year()-Y.year())+(Z.month()-Y.month()),ie=Y.clone().add(oe,x),he=Z-ie<0,ue=Y.clone().add(oe+(he?-1:1),x);return+(-(oe+(Z-ie)/(he?ie-ue:ue-ie))||0)},a:function(ee){return ee<0?Math.ceil(ee)||0:Math.floor(ee)},p:function(ee){return{M:x,y,w:f,d:c,D:m,h:u,m:a,s,ms:o,Q:h}[ee]||String(ee||"").toLowerCase().replace(/s$/,"")},u:function(ee){return ee===void 0}},D="en",T={};T[D]=w;var L="$isDayjsObject",z=function(ee){return ee instanceof V||!(!ee||!ee[L])},Q=function ee(Y,Z,oe){var ie;if(!Y)return D;if(typeof Y=="string"){var he=Y.toLowerCase();T[he]&&(ie=he),Z&&(T[he]=Z,ie=he);var ue=Y.split("-");if(!ie&&ue.length>1)return ee(ue[0])}else{var H=Y.name;T[H]=Y,ie=H}return!oe&&ie&&(D=ie),ie||!oe&&D},O=function(ee,Y){if(z(ee))return ee.clone();var Z=typeof Y=="object"?Y:{};return Z.date=ee,Z.args=arguments,new V(Z)},k=B;k.l=Q,k.i=z,k.w=function(ee,Y){return O(ee,{locale:Y.$L,utc:Y.$u,x:Y.$x,$offset:Y.$offset})};var V=function(){function ee(Z){this.$L=Q(Z.locale,null,!0),this.parse(Z),this.$x=this.$x||Z.x||{},this[L]=!0}var Y=ee.prototype;return Y.parse=function(Z){this.$d=function(oe){var ie=oe.date,he=oe.utc;if(ie===null)return new Date(NaN);if(k.u(ie))return new Date;if(ie instanceof Date)return new Date(ie);if(typeof ie=="string"&&!/Z$/i.test(ie)){var ue=ie.match(A);if(ue){var H=ue[2]-1||0,j=(ue[7]||"0").substring(0,3);return he?new Date(Date.UTC(ue[1],H,ue[3]||1,ue[4]||0,ue[5]||0,ue[6]||0,j)):new Date(ue[1],H,ue[3]||1,ue[4]||0,ue[5]||0,ue[6]||0,j)}}return new Date(ie)}(Z),this.init()},Y.init=function(){var Z=this.$d;this.$y=Z.getFullYear(),this.$M=Z.getMonth(),this.$D=Z.getDate(),this.$W=Z.getDay(),this.$H=Z.getHours(),this.$m=Z.getMinutes(),this.$s=Z.getSeconds(),this.$ms=Z.getMilliseconds()},Y.$utils=function(){return k},Y.isValid=function(){return this.$d.toString()!==E},Y.isSame=function(Z,oe){var ie=O(Z);return this.startOf(oe)<=ie&&ie<=this.endOf(oe)},Y.isAfter=function(Z,oe){return O(Z)<this.startOf(oe)},Y.isBefore=function(Z,oe){return this.endOf(oe)<O(Z)},Y.$g=function(Z,oe,ie){return k.u(Z)?this[oe]:this.set(ie,Z)},Y.unix=function(){return Math.floor(this.valueOf()/1e3)},Y.valueOf=function(){return this.$d.getTime()},Y.startOf=function(Z,oe){var ie=this,he=!!k.u(oe)||oe,ue=k.p(Z),H=function(Ae,Ie){var He=k.w(ie.$u?Date.UTC(ie.$y,Ie,Ae):new Date(ie.$y,Ie,Ae),ie);return he?He:He.endOf(c)},j=function(Ae,Ie){return k.w(ie.toDate()[Ae].apply(ie.toDate("s"),(he?[0,0,0,0]:[23,59,59,999]).slice(Ie)),ie)},re=this.$W,J=this.$M,ge=this.$D,Ee="set"+(this.$u?"UTC":"");switch(ue){case y:return he?H(1,0):H(31,11);case x:return he?H(1,J):H(0,J+1);case f:var Pe=this.$locale().weekStart||0,ve=(re<Pe?re+7:re)-Pe;return H(he?ge-ve:ge+(6-ve),J);case c:case m:return j(Ee+"Hours",0);case u:return j(Ee+"Minutes",1);case a:return j(Ee+"Seconds",2);case s:return j(Ee+"Milliseconds",3);default:return this.clone()}},Y.endOf=function(Z){return this.startOf(Z,!1)},Y.$set=function(Z,oe){var ie,he=k.p(Z),ue="set"+(this.$u?"UTC":""),H=(ie={},ie[c]=ue+"Date",ie[m]=ue+"Date",ie[x]=ue+"Month",ie[y]=ue+"FullYear",ie[u]=ue+"Hours",ie[a]=ue+"Minutes",ie[s]=ue+"Seconds",ie[o]=ue+"Milliseconds",ie)[he],j=he===c?this.$D+(oe-this.$W):oe;if(he===x||he===y){var re=this.clone().set(m,1);re.$d[H](j),re.init(),this.$d=re.set(m,Math.min(this.$D,re.daysInMonth())).$d}else H&&this.$d[H](j);return this.init(),this},Y.set=function(Z,oe){return this.clone().$set(Z,oe)},Y.get=function(Z){return this[k.p(Z)]()},Y.add=function(Z,oe){var ie,he=this;Z=Number(Z);var ue=k.p(oe),H=function(J){var ge=O(he);return k.w(ge.date(ge.date()+Math.round(J*Z)),he)};if(ue===x)return this.set(x,this.$M+Z);if(ue===y)return this.set(y,this.$y+Z);if(ue===c)return H(1);if(ue===f)return H(7);var j=(ie={},ie[a]=n,ie[u]=i,ie[s]=r,ie)[ue]||1,re=this.$d.getTime()+Z*j;return k.w(re,this)},Y.subtract=function(Z,oe){return this.add(-1*Z,oe)},Y.format=function(Z){var oe=this,ie=this.$locale();if(!this.isValid())return ie.invalidDate||E;var he=Z||"YYYY-MM-DDTHH:mm:ssZ",ue=k.z(this),H=this.$H,j=this.$m,re=this.$M,J=ie.weekdays,ge=ie.months,Ee=ie.meridiem,Pe=function(Ie,He,$e,Fe){return Ie&&(Ie[He]||Ie(oe,he))||$e[He].slice(0,Fe)},ve=function(Ie){return k.s(H%12||12,Ie,"0")},Ae=Ee||function(Ie,He,$e){var Fe=Ie<12?"AM":"PM";return $e?Fe.toLowerCase():Fe};return he.replace(R,function(Ie,He){return He||function($e){switch($e){case"YY":return String(oe.$y).slice(-2);case"YYYY":return k.s(oe.$y,4,"0");case"M":return re+1;case"MM":return k.s(re+1,2,"0");case"MMM":return Pe(ie.monthsShort,re,ge,3);case"MMMM":return Pe(ge,re);case"D":return oe.$D;case"DD":return k.s(oe.$D,2,"0");case"d":return String(oe.$W);case"dd":return Pe(ie.weekdaysMin,oe.$W,J,2);case"ddd":return Pe(ie.weekdaysShort,oe.$W,J,3);case"dddd":return J[oe.$W];case"H":return String(H);case"HH":return k.s(H,2,"0");case"h":return ve(1);case"hh":return ve(2);case"a":return Ae(H,j,!0);case"A":return Ae(H,j,!1);case"m":return String(j);case"mm":return k.s(j,2,"0");case"s":return String(oe.$s);case"ss":return k.s(oe.$s,2,"0");case"SSS":return k.s(oe.$ms,3,"0");case"Z":return ue}return null}(Ie)||ue.replace(":","")})},Y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Y.diff=function(Z,oe,ie){var he,ue=this,H=k.p(oe),j=O(Z),re=(j.utcOffset()-this.utcOffset())*n,J=this-j,ge=function(){return k.m(ue,j)};switch(H){case y:he=ge()/12;break;case x:he=ge();break;case h:he=ge()/3;break;case f:he=(J-re)/6048e5;break;case c:he=(J-re)/864e5;break;case u:he=J/i;break;case a:he=J/n;break;case s:he=J/r;break;default:he=J}return ie?he:k.a(he)},Y.daysInMonth=function(){return this.endOf(x).$D},Y.$locale=function(){return T[this.$L]},Y.locale=function(Z,oe){if(!Z)return this.$L;var ie=this.clone(),he=Q(Z,oe,!0);return he&&(ie.$L=he),ie},Y.clone=function(){return k.w(this.$d,this)},Y.toDate=function(){return new Date(this.valueOf())},Y.toJSON=function(){return this.isValid()?this.toISOString():null},Y.toISOString=function(){return this.$d.toISOString()},Y.toString=function(){return this.$d.toUTCString()},ee}(),X=V.prototype;return O.prototype=X,[["$ms",o],["$s",s],["$m",a],["$H",u],["$W",c],["$M",x],["$y",y],["$D",m]].forEach(function(ee){X[ee[1]]=function(Y){return this.$g(Y,ee[0],ee[1])}}),O.extend=function(ee,Y){return ee.$i||(ee(Y,V,O),ee.$i=!0),O},O.locale=Q,O.isDayjs=z,O.unix=function(ee){return O(1e3*ee)},O.en=T[D],O.Ls=T,O.p={},O})})(f1);const l1=()=>{var n;const t={},e=((n=window.location.href.split("?"))==null?void 0:n[1])||"",r=new URLSearchParams(e);for(const[i,o]of r.entries())t[i]=o;return t};function za(t){return Object.prototype.toString.call(t).slice(8,-1)}function f0(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}function h1(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 l0=h1();class d1{constructor(e={}){this._options=Ue({url:e.socketUrl,onOpen:null,onClose:null,onError:null,onMessage:null},e),this._client=null,this._isConnect=!1,this._closeClient=!1,this._retryCount=0,this._retryTimes=10,this._retryInterval=1e4,this._retryIntervalObj=null,this._initSockjs()}_initSockjs(){const{url:e,onOpen:r,onClose:n,onError:i,onMessage:o,token:s}=this._options;WebSocket!==void 0?this._client=new WebSocket(e,[s]):this.$message({type:"error",message:"当前浏览器不支持WebSocket推送!"}),this._client.onopen=a=>{this._client.readyState===WebSocket.OPEN&&(this._retryCount=0,this._isConnect=!0,this._closeClient=!1,this._retryIntervalObj&&clearInterval(this._retryIntervalObj),this._retryIntervalObj=null),r&&r(a)},this._client.onclose=a=>{!this._closeClient&&this.retryIntervalStart(),this._isConnect=!1,n&&n(a)},this._client.onerror=a=>{i&&i(a)},this._client.onmessage=a=>{o&&o(a)}}_reconnect(){if(this._retryCount===this._retryTimes){this._retryIntervalObj&&clearInterval(this._retryIntervalObj),this._retryIntervalObj=null;return}this._client=null,this._initSockjs(),this._retryCount++}retryIntervalStart(){this._closeClient=!0,this._retryIntervalObj||(this._retryIntervalObj=setInterval(()=>{this._reconnect()},this._retryInterval))}sendMsg(e){this._isConnect&&this._client.send(e)}destroy(){this._client&&(this._isConnect=!1,this._retryIntervalObj&&clearInterval(this._retryIntervalObj),this._retryIntervalObj=null,this._closeClient=!0,this._client.close(),this._client=null)}}const p1=(t,e)=>new Promise((r,n)=>{kt.postApi("/filehandle/save",{path:t,data:e}).then(i=>{i.res.success?r(!0):n(!1)})});w0.createPinia();var x1={exports:{}};function on(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 xo={exports:{}},qa;function Oe(){return qa||(qa=1,function(t,e){(function(r,n){t.exports=n()})(be,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 be!="undefined"&&be.crypto&&(o=be.crypto),!o&&typeof on=="function")try{o=hc}catch(w){}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(w){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(w){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function w(){}return function(_){var B;return w.prototype=_,B=new w,w.prototype=null,B}}(),u={},c=u.lib={},f=c.Base=function(){return{extend:function(w){var _=a(this);return w&&_.mixIn(w),(!_.hasOwnProperty("init")||this.init===_.init)&&(_.init=function(){_.$super.init.apply(this,arguments)}),_.init.prototype=_,_.$super=this,_},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var _ in w)w.hasOwnProperty(_)&&(this[_]=w[_]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=c.WordArray=f.extend({init:function(w,_){w=this.words=w||[],_!=i?this.sigBytes=_:this.sigBytes=w.length*4},toString:function(w){return(w||y).stringify(this)},concat:function(w){var _=this.words,B=w.words,D=this.sigBytes,T=w.sigBytes;if(this.clamp(),D%4)for(var L=0;L<T;L++){var z=B[L>>>2]>>>24-L%4*8&255;_[D+L>>>2]|=z<<24-(D+L)%4*8}else for(var Q=0;Q<T;Q+=4)_[D+Q>>>2]=B[Q>>>2];return this.sigBytes+=T,this},clamp:function(){var w=this.words,_=this.sigBytes;w[_>>>2]&=4294967295<<32-_%4*8,w.length=n.ceil(_/4)},clone:function(){var w=f.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var _=[],B=0;B<w;B+=4)_.push(s());return new x.init(_,w)}}),h=u.enc={},y=h.Hex={stringify:function(w){for(var _=w.words,B=w.sigBytes,D=[],T=0;T<B;T++){var L=_[T>>>2]>>>24-T%4*8&255;D.push((L>>>4).toString(16)),D.push((L&15).toString(16))}return D.join("")},parse:function(w){for(var _=w.length,B=[],D=0;D<_;D+=2)B[D>>>3]|=parseInt(w.substr(D,2),16)<<24-D%8*4;return new x.init(B,_/2)}},m=h.Latin1={stringify:function(w){for(var _=w.words,B=w.sigBytes,D=[],T=0;T<B;T++){var L=_[T>>>2]>>>24-T%4*8&255;D.push(String.fromCharCode(L))}return D.join("")},parse:function(w){for(var _=w.length,B=[],D=0;D<_;D++)B[D>>>2]|=(w.charCodeAt(D)&255)<<24-D%4*8;return new x.init(B,_)}},E=h.Utf8={stringify:function(w){try{return decodeURIComponent(escape(m.stringify(w)))}catch(_){throw new Error("Malformed UTF-8 data")}},parse:function(w){return m.parse(unescape(encodeURIComponent(w)))}},A=c.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=E.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var _,B=this._data,D=B.words,T=B.sigBytes,L=this.blockSize,z=L*4,Q=T/z;w?Q=n.ceil(Q):Q=n.max((Q|0)-this._minBufferSize,0);var O=Q*L,k=n.min(O*4,T);if(O){for(var V=0;V<O;V+=L)this._doProcessBlock(D,V);_=D.splice(0,O),B.sigBytes-=k}return new x.init(_,k)},clone:function(){var w=f.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});c.Hasher=A.extend({cfg:f.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){A.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var _=this._doFinalize();return _},blockSize:16,_createHelper:function(w){return function(_,B){return new w.init(B).finalize(_)}},_createHmacHelper:function(w){return function(_,B){return new R.HMAC.init(w,B).finalize(_)}}});var R=u.algo={};return u}(Math);return r})}(xo)),xo.exports}var vo={exports:{}},Wa;function Ei(){return Wa||(Wa=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(n){var i=r,o=i.lib,s=o.Base,a=o.WordArray,u=i.x64={};u.Word=s.extend({init:function(c,f){this.high=c,this.low=f}}),u.WordArray=s.extend({init:function(c,f){c=this.words=c||[],f!=n?this.sigBytes=f:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,f=c.length,x=[],h=0;h<f;h++){var y=c[h];x.push(y.high),x.push(y.low)}return a.create(x,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),f=c.words=this.words.slice(0),x=f.length,h=0;h<x;h++)f[h]=f[h].clone();return c}})}(),r})}(vo)),vo.exports}var yo={exports:{}},Va;function v1(){return Va||(Va=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,i=n.lib,o=i.WordArray,s=o.init,a=o.init=function(u){if(u instanceof ArrayBuffer&&(u=new Uint8Array(u)),(u instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&u instanceof Uint8ClampedArray||u instanceof Int16Array||u instanceof Uint16Array||u instanceof Int32Array||u instanceof Uint32Array||u instanceof Float32Array||u instanceof Float64Array)&&(u=new Uint8Array(u.buffer,u.byteOffset,u.byteLength)),u instanceof Uint8Array){for(var c=u.byteLength,f=[],x=0;x<c;x++)f[x>>>2]|=u[x]<<24-x%4*8;s.call(this,f,c)}else s.apply(this,arguments)};a.prototype=o}}(),r.lib.WordArray})}(yo)),yo.exports}var mo={exports:{}},Ga;function y1(){return Ga||(Ga=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Utf16=s.Utf16BE={stringify:function(u){for(var c=u.words,f=u.sigBytes,x=[],h=0;h<f;h+=2){var y=c[h>>>2]>>>16-h%4*8&65535;x.push(String.fromCharCode(y))}return x.join("")},parse:function(u){for(var c=u.length,f=[],x=0;x<c;x++)f[x>>>1]|=u.charCodeAt(x)<<16-x%2*16;return o.create(f,c*2)}},s.Utf16LE={stringify:function(u){for(var c=u.words,f=u.sigBytes,x=[],h=0;h<f;h+=2){var y=a(c[h>>>2]>>>16-h%4*8&65535);x.push(String.fromCharCode(y))}return x.join("")},parse:function(u){for(var c=u.length,f=[],x=0;x<c;x++)f[x>>>1]|=a(u.charCodeAt(x)<<16-x%2*16);return o.create(f,c*2)}};function a(u){return u<<8&4278255360|u>>>8&16711935}}(),r.enc.Utf16})}(mo)),mo.exports}var go={exports:{}},ja;function pr(){return ja||(ja=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Base64={stringify:function(u){var c=u.words,f=u.sigBytes,x=this._map;u.clamp();for(var h=[],y=0;y<f;y+=3)for(var m=c[y>>>2]>>>24-y%4*8&255,E=c[y+1>>>2]>>>24-(y+1)%4*8&255,A=c[y+2>>>2]>>>24-(y+2)%4*8&255,R=m<<16|E<<8|A,w=0;w<4&&y+w*.75<f;w++)h.push(x.charAt(R>>>6*(3-w)&63));var _=x.charAt(64);if(_)for(;h.length%4;)h.push(_);return h.join("")},parse:function(u){var c=u.length,f=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var h=0;h<f.length;h++)x[f.charCodeAt(h)]=h}var y=f.charAt(64);if(y){var m=u.indexOf(y);m!==-1&&(c=m)}return a(u,c,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(u,c,f){for(var x=[],h=0,y=0;y<c;y++)if(y%4){var m=f[u.charCodeAt(y-1)]<<y%4*2,E=f[u.charCodeAt(y)]>>>6-y%4*2,A=m|E;x[h>>>2]|=A<<24-h%4*8,h++}return o.create(x,h)}}(),r.enc.Base64})}(go)),go.exports}var Eo={exports:{}},Ka;function m1(){return Ka||(Ka=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Base64url={stringify:function(u,c){c===void 0&&(c=!0);var f=u.words,x=u.sigBytes,h=c?this._safe_map:this._map;u.clamp();for(var y=[],m=0;m<x;m+=3)for(var E=f[m>>>2]>>>24-m%4*8&255,A=f[m+1>>>2]>>>24-(m+1)%4*8&255,R=f[m+2>>>2]>>>24-(m+2)%4*8&255,w=E<<16|A<<8|R,_=0;_<4&&m+_*.75<x;_++)y.push(h.charAt(w>>>6*(3-_)&63));var B=h.charAt(64);if(B)for(;y.length%4;)y.push(B);return y.join("")},parse:function(u,c){c===void 0&&(c=!0);var f=u.length,x=c?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var y=0;y<x.length;y++)h[x.charCodeAt(y)]=y}var m=x.charAt(64);if(m){var E=u.indexOf(m);E!==-1&&(f=E)}return a(u,f,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(u,c,f){for(var x=[],h=0,y=0;y<c;y++)if(y%4){var m=f[u.charCodeAt(y-1)]<<y%4*2,E=f[u.charCodeAt(y)]>>>6-y%4*2,A=m|E;x[h>>>2]|=A<<24-h%4*8,h++}return o.create(x,h)}}(),r.enc.Base64url})}(Eo)),Eo.exports}var Ao={exports:{}},Ya;function xr(){return Ya||(Ya=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,u=i.algo,c=[];(function(){for(var E=0;E<64;E++)c[E]=n.abs(n.sin(E+1))*4294967296|0})();var f=u.MD5=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,A){for(var R=0;R<16;R++){var w=A+R,_=E[w];E[w]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}var B=this._hash.words,D=E[A+0],T=E[A+1],L=E[A+2],z=E[A+3],Q=E[A+4],O=E[A+5],k=E[A+6],V=E[A+7],X=E[A+8],ee=E[A+9],Y=E[A+10],Z=E[A+11],oe=E[A+12],ie=E[A+13],he=E[A+14],ue=E[A+15],H=B[0],j=B[1],re=B[2],J=B[3];H=x(H,j,re,J,D,7,c[0]),J=x(J,H,j,re,T,12,c[1]),re=x(re,J,H,j,L,17,c[2]),j=x(j,re,J,H,z,22,c[3]),H=x(H,j,re,J,Q,7,c[4]),J=x(J,H,j,re,O,12,c[5]),re=x(re,J,H,j,k,17,c[6]),j=x(j,re,J,H,V,22,c[7]),H=x(H,j,re,J,X,7,c[8]),J=x(J,H,j,re,ee,12,c[9]),re=x(re,J,H,j,Y,17,c[10]),j=x(j,re,J,H,Z,22,c[11]),H=x(H,j,re,J,oe,7,c[12]),J=x(J,H,j,re,ie,12,c[13]),re=x(re,J,H,j,he,17,c[14]),j=x(j,re,J,H,ue,22,c[15]),H=h(H,j,re,J,T,5,c[16]),J=h(J,H,j,re,k,9,c[17]),re=h(re,J,H,j,Z,14,c[18]),j=h(j,re,J,H,D,20,c[19]),H=h(H,j,re,J,O,5,c[20]),J=h(J,H,j,re,Y,9,c[21]),re=h(re,J,H,j,ue,14,c[22]),j=h(j,re,J,H,Q,20,c[23]),H=h(H,j,re,J,ee,5,c[24]),J=h(J,H,j,re,he,9,c[25]),re=h(re,J,H,j,z,14,c[26]),j=h(j,re,J,H,X,20,c[27]),H=h(H,j,re,J,ie,5,c[28]),J=h(J,H,j,re,L,9,c[29]),re=h(re,J,H,j,V,14,c[30]),j=h(j,re,J,H,oe,20,c[31]),H=y(H,j,re,J,O,4,c[32]),J=y(J,H,j,re,X,11,c[33]),re=y(re,J,H,j,Z,16,c[34]),j=y(j,re,J,H,he,23,c[35]),H=y(H,j,re,J,T,4,c[36]),J=y(J,H,j,re,Q,11,c[37]),re=y(re,J,H,j,V,16,c[38]),j=y(j,re,J,H,Y,23,c[39]),H=y(H,j,re,J,ie,4,c[40]),J=y(J,H,j,re,D,11,c[41]),re=y(re,J,H,j,z,16,c[42]),j=y(j,re,J,H,k,23,c[43]),H=y(H,j,re,J,ee,4,c[44]),J=y(J,H,j,re,oe,11,c[45]),re=y(re,J,H,j,ue,16,c[46]),j=y(j,re,J,H,L,23,c[47]),H=m(H,j,re,J,D,6,c[48]),J=m(J,H,j,re,V,10,c[49]),re=m(re,J,H,j,he,15,c[50]),j=m(j,re,J,H,O,21,c[51]),H=m(H,j,re,J,oe,6,c[52]),J=m(J,H,j,re,z,10,c[53]),re=m(re,J,H,j,Y,15,c[54]),j=m(j,re,J,H,T,21,c[55]),H=m(H,j,re,J,X,6,c[56]),J=m(J,H,j,re,ue,10,c[57]),re=m(re,J,H,j,k,15,c[58]),j=m(j,re,J,H,ie,21,c[59]),H=m(H,j,re,J,Q,6,c[60]),J=m(J,H,j,re,Z,10,c[61]),re=m(re,J,H,j,L,15,c[62]),j=m(j,re,J,H,ee,21,c[63]),B[0]=B[0]+H|0,B[1]=B[1]+j|0,B[2]=B[2]+re|0,B[3]=B[3]+J|0},_doFinalize:function(){var E=this._data,A=E.words,R=this._nDataBytes*8,w=E.sigBytes*8;A[w>>>5]|=128<<24-w%32;var _=n.floor(R/4294967296),B=R;A[(w+64>>>9<<4)+15]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,A[(w+64>>>9<<4)+14]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,E.sigBytes=(A.length+1)*4,this._process();for(var D=this._hash,T=D.words,L=0;L<4;L++){var z=T[L];T[L]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360}return D},clone:function(){var E=a.clone.call(this);return E._hash=this._hash.clone(),E}});function x(E,A,R,w,_,B,D){var T=E+(A&R|~A&w)+_+D;return(T<<B|T>>>32-B)+A}function h(E,A,R,w,_,B,D){var T=E+(A&w|R&~w)+_+D;return(T<<B|T>>>32-B)+A}function y(E,A,R,w,_,B,D){var T=E+(A^R^w)+_+D;return(T<<B|T>>>32-B)+A}function m(E,A,R,w,_,B,D){var T=E+(R^(A|~w))+_+D;return(T<<B|T>>>32-B)+A}i.MD5=a._createHelper(f),i.HmacMD5=a._createHmacHelper(f)}(Math),r.MD5})}(Ao)),Ao.exports}var wo={exports:{}},Xa;function su(){return Xa||(Xa=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=i.Hasher,a=n.algo,u=[],c=a.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,x){for(var h=this._hash.words,y=h[0],m=h[1],E=h[2],A=h[3],R=h[4],w=0;w<80;w++){if(w<16)u[w]=f[x+w]|0;else{var _=u[w-3]^u[w-8]^u[w-14]^u[w-16];u[w]=_<<1|_>>>31}var B=(y<<5|y>>>27)+R+u[w];w<20?B+=(m&E|~m&A)+1518500249:w<40?B+=(m^E^A)+1859775393:w<60?B+=(m&E|m&A|E&A)-1894007588:B+=(m^E^A)-899497514,R=A,A=E,E=m<<30|m>>>2,m=y,y=B}h[0]=h[0]+y|0,h[1]=h[1]+m|0,h[2]=h[2]+E|0,h[3]=h[3]+A|0,h[4]=h[4]+R|0},_doFinalize:function(){var f=this._data,x=f.words,h=this._nDataBytes*8,y=f.sigBytes*8;return x[y>>>5]|=128<<24-y%32,x[(y+64>>>9<<4)+14]=Math.floor(h/4294967296),x[(y+64>>>9<<4)+15]=h,f.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA1=s._createHelper(c),n.HmacSHA1=s._createHmacHelper(c)}(),r.SHA1})}(wo)),wo.exports}var _o={exports:{}},Ja;function L0(){return Ja||(Ja=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,u=i.algo,c=[],f=[];(function(){function y(R){for(var w=n.sqrt(R),_=2;_<=w;_++)if(!(R%_))return!1;return!0}function m(R){return(R-(R|0))*4294967296|0}for(var E=2,A=0;A<64;)y(E)&&(A<8&&(c[A]=m(n.pow(E,1/2))),f[A]=m(n.pow(E,1/3)),A++),E++})();var x=[],h=u.SHA256=a.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(y,m){for(var E=this._hash.words,A=E[0],R=E[1],w=E[2],_=E[3],B=E[4],D=E[5],T=E[6],L=E[7],z=0;z<64;z++){if(z<16)x[z]=y[m+z]|0;else{var Q=x[z-15],O=(Q<<25|Q>>>7)^(Q<<14|Q>>>18)^Q>>>3,k=x[z-2],V=(k<<15|k>>>17)^(k<<13|k>>>19)^k>>>10;x[z]=O+x[z-7]+V+x[z-16]}var X=B&D^~B&T,ee=A&R^A&w^R&w,Y=(A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22),Z=(B<<26|B>>>6)^(B<<21|B>>>11)^(B<<7|B>>>25),oe=L+Z+X+f[z]+x[z],ie=Y+ee;L=T,T=D,D=B,B=_+oe|0,_=w,w=R,R=A,A=oe+ie|0}E[0]=E[0]+A|0,E[1]=E[1]+R|0,E[2]=E[2]+w|0,E[3]=E[3]+_|0,E[4]=E[4]+B|0,E[5]=E[5]+D|0,E[6]=E[6]+T|0,E[7]=E[7]+L|0},_doFinalize:function(){var y=this._data,m=y.words,E=this._nDataBytes*8,A=y.sigBytes*8;return m[A>>>5]|=128<<24-A%32,m[(A+64>>>9<<4)+14]=n.floor(E/4294967296),m[(A+64>>>9<<4)+15]=E,y.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var y=a.clone.call(this);return y._hash=this._hash.clone(),y}});i.SHA256=a._createHelper(h),i.HmacSHA256=a._createHmacHelper(h)}(Math),r.SHA256})}(_o)),_o.exports}var bo={exports:{}},Qa;function g1(){return Qa||(Qa=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),L0())})(be,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.algo,a=s.SHA256,u=s.SHA224=a.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=a._doFinalize.call(this);return c.sigBytes-=4,c}});n.SHA224=a._createHelper(u),n.HmacSHA224=a._createHmacHelper(u)}(),r.SHA224})}(bo)),bo.exports}var Co={exports:{}},Za;function cu(){return Za||(Za=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),Ei())})(be,function(r){return function(){var n=r,i=n.lib,o=i.Hasher,s=n.x64,a=s.Word,u=s.WordArray,c=n.algo;function f(){return a.create.apply(a,arguments)}var x=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],h=[];(function(){for(var m=0;m<80;m++)h[m]=f()})();var y=c.SHA512=o.extend({_doReset:function(){this._hash=new u.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(m,E){for(var A=this._hash.words,R=A[0],w=A[1],_=A[2],B=A[3],D=A[4],T=A[5],L=A[6],z=A[7],Q=R.high,O=R.low,k=w.high,V=w.low,X=_.high,ee=_.low,Y=B.high,Z=B.low,oe=D.high,ie=D.low,he=T.high,ue=T.low,H=L.high,j=L.low,re=z.high,J=z.low,ge=Q,Ee=O,Pe=k,ve=V,Ae=X,Ie=ee,He=Y,$e=Z,Fe=oe,ze=ie,qe=he,F=ue,l=H,d=j,v=re,I=J,W=0;W<80;W++){var K,pe,_e=h[W];if(W<16)pe=_e.high=m[E+W*2]|0,K=_e.low=m[E+W*2+1]|0;else{var we=h[W-15],Ce=we.high,Te=we.low,ut=(Ce>>>1|Te<<31)^(Ce>>>8|Te<<24)^Ce>>>7,Bt=(Te>>>1|Ce<<31)^(Te>>>8|Ce<<24)^(Te>>>7|Ce<<25),Dt=h[W-2],Et=Dt.high,St=Dt.low,yr=(Et>>>19|St<<13)^(Et<<3|St>>>29)^Et>>>6,Ft=(St>>>19|Et<<13)^(St<<3|Et>>>29)^(St>>>6|Et<<26),mr=h[W-7],gr=mr.high,Qt=mr.low,qt=h[W-16],Vr=qt.high,dt=qt.low;K=Bt+Qt,pe=ut+gr+(K>>>0<Bt>>>0?1:0),K=K+Ft,pe=pe+yr+(K>>>0<Ft>>>0?1:0),K=K+dt,pe=pe+Vr+(K>>>0<dt>>>0?1:0),_e.high=pe,_e.low=K}var Gr=Fe&qe^~Fe&l,Er=ze&F^~ze&d,Ar=ge&Pe^ge&Ae^Pe&Ae,jr=Ee&ve^Ee&Ie^ve&Ie,Kr=(ge>>>28|Ee<<4)^(ge<<30|Ee>>>2)^(ge<<25|Ee>>>7),wr=(Ee>>>28|ge<<4)^(Ee<<30|ge>>>2)^(Ee<<25|ge>>>7),Yr=(Fe>>>14|ze<<18)^(Fe>>>18|ze<<14)^(Fe<<23|ze>>>9),Xr=(ze>>>14|Fe<<18)^(ze>>>18|Fe<<14)^(ze<<23|Fe>>>9),_r=x[W],Jr=_r.high,br=_r.low,rt=I+Xr,vt=v+Yr+(rt>>>0<I>>>0?1:0),rt=rt+Er,vt=vt+Gr+(rt>>>0<Er>>>0?1:0),rt=rt+br,vt=vt+Jr+(rt>>>0<br>>>0?1:0),rt=rt+K,vt=vt+pe+(rt>>>0<K>>>0?1:0),Zt=wr+jr,Qr=Kr+Ar+(Zt>>>0<wr>>>0?1:0);v=l,I=d,l=qe,d=F,qe=Fe,F=ze,ze=$e+rt|0,Fe=He+vt+(ze>>>0<$e>>>0?1:0)|0,He=Ae,$e=Ie,Ae=Pe,Ie=ve,Pe=ge,ve=Ee,Ee=rt+Zt|0,ge=vt+Qr+(Ee>>>0<rt>>>0?1:0)|0}O=R.low=O+Ee,R.high=Q+ge+(O>>>0<Ee>>>0?1:0),V=w.low=V+ve,w.high=k+Pe+(V>>>0<ve>>>0?1:0),ee=_.low=ee+Ie,_.high=X+Ae+(ee>>>0<Ie>>>0?1:0),Z=B.low=Z+$e,B.high=Y+He+(Z>>>0<$e>>>0?1:0),ie=D.low=ie+ze,D.high=oe+Fe+(ie>>>0<ze>>>0?1:0),ue=T.low=ue+F,T.high=he+qe+(ue>>>0<F>>>0?1:0),j=L.low=j+d,L.high=H+l+(j>>>0<d>>>0?1:0),J=z.low=J+I,z.high=re+v+(J>>>0<I>>>0?1:0)},_doFinalize:function(){var m=this._data,E=m.words,A=this._nDataBytes*8,R=m.sigBytes*8;E[R>>>5]|=128<<24-R%32,E[(R+128>>>10<<5)+30]=Math.floor(A/4294967296),E[(R+128>>>10<<5)+31]=A,m.sigBytes=E.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var m=o.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});n.SHA512=o._createHelper(y),n.HmacSHA512=o._createHmacHelper(y)}(),r.SHA512})}(Co)),Co.exports}var Bo={exports:{}},es;function E1(){return es||(es=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),Ei(),cu())})(be,function(r){return function(){var n=r,i=n.x64,o=i.Word,s=i.WordArray,a=n.algo,u=a.SHA512,c=a.SHA384=u.extend({_doReset:function(){this._hash=new s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var f=u._doFinalize.call(this);return f.sigBytes-=16,f}});n.SHA384=u._createHelper(c),n.HmacSHA384=u._createHmacHelper(c)}(),r.SHA384})}(Bo)),Bo.exports}var Do={exports:{}},ts;function A1(){return ts||(ts=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),Ei())})(be,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,u=i.x64,c=u.Word,f=i.algo,x=[],h=[],y=[];(function(){for(var A=1,R=0,w=0;w<24;w++){x[A+5*R]=(w+1)*(w+2)/2%64;var _=R%5,B=(2*A+3*R)%5;A=_,R=B}for(var A=0;A<5;A++)for(var R=0;R<5;R++)h[A+5*R]=R+(2*A+3*R)%5*5;for(var D=1,T=0;T<24;T++){for(var L=0,z=0,Q=0;Q<7;Q++){if(D&1){var O=(1<<Q)-1;O<32?z^=1<<O:L^=1<<O-32}D&128?D=D<<1^113:D<<=1}y[T]=c.create(L,z)}})();var m=[];(function(){for(var A=0;A<25;A++)m[A]=c.create()})();var E=f.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var A=this._state=[],R=0;R<25;R++)A[R]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(A,R){for(var w=this._state,_=this.blockSize/2,B=0;B<_;B++){var D=A[R+2*B],T=A[R+2*B+1];D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var L=w[B];L.high^=T,L.low^=D}for(var z=0;z<24;z++){for(var Q=0;Q<5;Q++){for(var O=0,k=0,V=0;V<5;V++){var L=w[Q+5*V];O^=L.high,k^=L.low}var X=m[Q];X.high=O,X.low=k}for(var Q=0;Q<5;Q++)for(var ee=m[(Q+4)%5],Y=m[(Q+1)%5],Z=Y.high,oe=Y.low,O=ee.high^(Z<<1|oe>>>31),k=ee.low^(oe<<1|Z>>>31),V=0;V<5;V++){var L=w[Q+5*V];L.high^=O,L.low^=k}for(var ie=1;ie<25;ie++){var O,k,L=w[ie],he=L.high,ue=L.low,H=x[ie];H<32?(O=he<<H|ue>>>32-H,k=ue<<H|he>>>32-H):(O=ue<<H-32|he>>>64-H,k=he<<H-32|ue>>>64-H);var j=m[h[ie]];j.high=O,j.low=k}var re=m[0],J=w[0];re.high=J.high,re.low=J.low;for(var Q=0;Q<5;Q++)for(var V=0;V<5;V++){var ie=Q+5*V,L=w[ie],ge=m[ie],Ee=m[(Q+1)%5+5*V],Pe=m[(Q+2)%5+5*V];L.high=ge.high^~Ee.high&Pe.high,L.low=ge.low^~Ee.low&Pe.low}var L=w[0],ve=y[z];L.high^=ve.high,L.low^=ve.low}},_doFinalize:function(){var A=this._data,R=A.words;this._nDataBytes*8;var w=A.sigBytes*8,_=this.blockSize*32;R[w>>>5]|=1<<24-w%32,R[(n.ceil((w+1)/_)*_>>>5)-1]|=128,A.sigBytes=R.length*4,this._process();for(var B=this._state,D=this.cfg.outputLength/8,T=D/8,L=[],z=0;z<T;z++){var Q=B[z],O=Q.high,k=Q.low;O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,L.push(k),L.push(O)}return new s.init(L,D)},clone:function(){for(var A=a.clone.call(this),R=A._state=this._state.slice(0),w=0;w<25;w++)R[w]=R[w].clone();return A}});i.SHA3=a._createHelper(E),i.HmacSHA3=a._createHmacHelper(E)}(Math),r.SHA3})}(Do)),Do.exports}var So={exports:{}},rs;function w1(){return rs||(rs=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){/** @preserve
|
|
17
17
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
18
18
|
|
|
19
19
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -22,34 +22,34 @@
|
|
|
22
22
|
- 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.
|
|
23
23
|
|
|
24
24
|
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.
|
|
25
|
-
*/return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,l=i.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),x=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),y=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),E=l.RIPEMD160=a.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,L){for(var H=0;H<16;H++){var Z=L+H,O=T[Z];T[Z]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}var k=this._hash.words,V=y.words,X=m.words,te=c.words,Y=u.words,Q=x.words,oe=h.words,ie,he,ue,z,j,re,J,ge,Ee,Pe;re=ie=k[0],J=he=k[1],ge=ue=k[2],Ee=z=k[3],Pe=j=k[4];for(var ve,H=0;H<80;H+=1)ve=ie+T[L+te[H]]|0,H<16?ve+=A(he,ue,z)+V[0]:H<32?ve+=R(he,ue,z)+V[1]:H<48?ve+=w(he,ue,z)+V[2]:H<64?ve+=_(he,ue,z)+V[3]:ve+=D(he,ue,z)+V[4],ve=ve|0,ve=C(ve,Q[H]),ve=ve+j|0,ie=j,j=z,z=C(ue,10),ue=he,he=ve,ve=re+T[L+Y[H]]|0,H<16?ve+=D(J,ge,Ee)+X[0]:H<32?ve+=_(J,ge,Ee)+X[1]:H<48?ve+=w(J,ge,Ee)+X[2]:H<64?ve+=R(J,ge,Ee)+X[3]:ve+=A(J,ge,Ee)+X[4],ve=ve|0,ve=C(ve,oe[H]),ve=ve+Pe|0,re=Pe,Pe=Ee,Ee=C(ge,10),ge=J,J=ve;ve=k[1]+ue+Ee|0,k[1]=k[2]+z+Pe|0,k[2]=k[3]+j+re|0,k[3]=k[4]+ie+J|0,k[4]=k[0]+he+ge|0,k[0]=ve},_doFinalize:function(){var T=this._data,L=T.words,H=this._nDataBytes*8,Z=T.sigBytes*8;L[Z>>>5]|=128<<24-Z%32,L[(Z+64>>>9<<4)+14]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360,T.sigBytes=(L.length+1)*4,this._process();for(var O=this._hash,k=O.words,V=0;V<5;V++){var X=k[V];k[V]=(X<<8|X>>>24)&16711935|(X<<24|X>>>8)&4278255360}return O},clone:function(){var T=a.clone.call(this);return T._hash=this._hash.clone(),T}});function A(T,L,H){return T^L^H}function R(T,L,H){return T&L|~T&H}function w(T,L,H){return(T|~L)^H}function _(T,L,H){return T&H|L&~H}function D(T,L,H){return T^(L|~H)}function C(T,L){return T<<L|T>>>32-L}i.RIPEMD160=a._createHelper(E),i.HmacRIPEMD160=a._createHmacHelper(E)}(),r.RIPEMD160})}(Fo)),Fo.exports}var Ro={exports:{}},is;function M0(){return is||(is=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){(function(){var n=r,i=n.lib,o=i.Base,s=n.enc,a=s.Utf8,l=n.algo;l.HMAC=o.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=a.parse(u));var x=c.blockSize,h=x*4;u.sigBytes>h&&(u=c.finalize(u)),u.clamp();for(var y=this._oKey=u.clone(),m=this._iKey=u.clone(),E=y.words,A=m.words,R=0;R<x;R++)E[R]^=1549556828,A[R]^=909522486;y.sigBytes=m.sigBytes=h,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,x=u.finalize(c);u.reset();var h=u.finalize(this._oKey.clone().concat(x));return h}})})()})}(Ro)),Ro.exports}var Io={exports:{}},os;function _1(){return os||(os=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),k0(),M0())})(be,function(r){return function(){var n=r,i=n.lib,o=i.Base,s=i.WordArray,a=n.algo,l=a.SHA256,c=a.HMAC,u=a.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:l,iterations:25e4}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,h){for(var y=this.cfg,m=c.create(y.hasher,x),E=s.create(),A=s.create([1]),R=E.words,w=A.words,_=y.keySize,D=y.iterations;R.length<_;){var C=m.update(h).finalize(A);m.reset();for(var T=C.words,L=T.length,H=C,Z=1;Z<D;Z++){H=m.finalize(H),m.reset();for(var O=H.words,k=0;k<L;k++)T[k]^=O[k]}E.concat(C),w[0]++}return E.sigBytes=_*4,E}});n.PBKDF2=function(x,h,y){return u.create(y).compute(x,h)}}(),r.PBKDF2})}(Io)),Io.exports}var To={exports:{}},as;function Jt(){return as||(as=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),cu(),M0())})(be,function(r){return function(){var n=r,i=n.lib,o=i.Base,s=i.WordArray,a=n.algo,l=a.MD5,c=a.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:l,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,x){for(var h,y=this.cfg,m=y.hasher.create(),E=s.create(),A=E.words,R=y.keySize,w=y.iterations;A.length<R;){h&&m.update(h),h=m.update(u).finalize(x),m.reset();for(var _=1;_<w;_++)h=m.finalize(h),m.reset();E.concat(h)}return E.sigBytes=R*4,E}});n.EvpKDF=function(u,x,h){return c.create(h).compute(u,x)}}(),r.EvpKDF})}(To)),To.exports}var Oo={exports:{}},ss;function tt(){return ss||(ss=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),Jt())})(be,function(r){r.lib.Cipher||function(n){var i=r,o=i.lib,s=o.Base,a=o.WordArray,l=o.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var u=c.Base64,x=i.algo,h=x.EvpKDF,y=o.Cipher=l.extend({cfg:s.extend(),createEncryptor:function(O,k){return this.create(this._ENC_XFORM_MODE,O,k)},createDecryptor:function(O,k){return this.create(this._DEC_XFORM_MODE,O,k)},init:function(O,k,V){this.cfg=this.cfg.extend(V),this._xformMode=O,this._key=k,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(O){return this._append(O),this._process()},finalize:function(O){O&&this._append(O);var k=this._doFinalize();return k},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function O(k){return typeof k=="string"?Z:T}return function(k){return{encrypt:function(V,X,te){return O(X).encrypt(k,V,X,te)},decrypt:function(V,X,te){return O(X).decrypt(k,V,X,te)}}}}()});o.StreamCipher=y.extend({_doFinalize:function(){var O=this._process(!0);return O},blockSize:1});var m=i.mode={},E=o.BlockCipherMode=s.extend({createEncryptor:function(O,k){return this.Encryptor.create(O,k)},createDecryptor:function(O,k){return this.Decryptor.create(O,k)},init:function(O,k){this._cipher=O,this._iv=k}}),A=m.CBC=function(){var O=E.extend();O.Encryptor=O.extend({processBlock:function(V,X){var te=this._cipher,Y=te.blockSize;k.call(this,V,X,Y),te.encryptBlock(V,X),this._prevBlock=V.slice(X,X+Y)}}),O.Decryptor=O.extend({processBlock:function(V,X){var te=this._cipher,Y=te.blockSize,Q=V.slice(X,X+Y);te.decryptBlock(V,X),k.call(this,V,X,Y),this._prevBlock=Q}});function k(V,X,te){var Y,Q=this._iv;Q?(Y=Q,this._iv=n):Y=this._prevBlock;for(var oe=0;oe<te;oe++)V[X+oe]^=Y[oe]}return O}(),R=i.pad={},w=R.Pkcs7={pad:function(O,k){for(var V=k*4,X=V-O.sigBytes%V,te=X<<24|X<<16|X<<8|X,Y=[],Q=0;Q<X;Q+=4)Y.push(te);var oe=a.create(Y,X);O.concat(oe)},unpad:function(O){var k=O.words[O.sigBytes-1>>>2]&255;O.sigBytes-=k}};o.BlockCipher=y.extend({cfg:y.cfg.extend({mode:A,padding:w}),reset:function(){var O;y.reset.call(this);var k=this.cfg,V=k.iv,X=k.mode;this._xformMode==this._ENC_XFORM_MODE?O=X.createEncryptor:(O=X.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==O?this._mode.init(this,V&&V.words):(this._mode=O.call(X,this,V&&V.words),this._mode.__creator=O)},_doProcessBlock:function(O,k){this._mode.processBlock(O,k)},_doFinalize:function(){var O,k=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(k.pad(this._data,this.blockSize),O=this._process(!0)):(O=this._process(!0),k.unpad(O)),O},blockSize:128/32});var _=o.CipherParams=s.extend({init:function(O){this.mixIn(O)},toString:function(O){return(O||this.formatter).stringify(this)}}),D=i.format={},C=D.OpenSSL={stringify:function(O){var k,V=O.ciphertext,X=O.salt;return X?k=a.create([1398893684,1701076831]).concat(X).concat(V):k=V,k.toString(u)},parse:function(O){var k,V=u.parse(O),X=V.words;return X[0]==1398893684&&X[1]==1701076831&&(k=a.create(X.slice(2,4)),X.splice(0,4),V.sigBytes-=16),_.create({ciphertext:V,salt:k})}},T=o.SerializableCipher=s.extend({cfg:s.extend({format:C}),encrypt:function(O,k,V,X){X=this.cfg.extend(X);var te=O.createEncryptor(V,X),Y=te.finalize(k),Q=te.cfg;return _.create({ciphertext:Y,key:V,iv:Q.iv,algorithm:O,mode:Q.mode,padding:Q.padding,blockSize:O.blockSize,formatter:X.format})},decrypt:function(O,k,V,X){X=this.cfg.extend(X),k=this._parse(k,X.format);var te=O.createDecryptor(V,X).finalize(k.ciphertext);return te},_parse:function(O,k){return typeof O=="string"?k.parse(O,this):O}}),L=i.kdf={},H=L.OpenSSL={execute:function(O,k,V,X,te){if(X||(X=a.random(64/8)),te)var Y=h.create({keySize:k+V,hasher:te}).compute(O,X);else var Y=h.create({keySize:k+V}).compute(O,X);var Q=a.create(Y.words.slice(k),V*4);return Y.sigBytes=k*4,_.create({key:Y,iv:Q,salt:X})}},Z=o.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:H}),encrypt:function(O,k,V,X){X=this.cfg.extend(X);var te=X.kdf.execute(V,O.keySize,O.ivSize,X.salt,X.hasher);X.iv=te.iv;var Y=T.encrypt.call(this,O,k,te.key,X);return Y.mixIn(te),Y},decrypt:function(O,k,V,X){X=this.cfg.extend(X),k=this._parse(k,X.format);var te=X.kdf.execute(V,O.keySize,O.ivSize,k.salt,X.hasher);X.iv=te.iv;var Y=T.decrypt.call(this,O,k,te.key,X);return Y}})}()})}(Oo)),Oo.exports}var Po={exports:{}},cs;function b1(){return cs||(cs=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(o,s){var a=this._cipher,l=a.blockSize;i.call(this,o,s,l,a),this._prevBlock=o.slice(s,s+l)}}),n.Decryptor=n.extend({processBlock:function(o,s){var a=this._cipher,l=a.blockSize,c=o.slice(s,s+l);i.call(this,o,s,l,a),this._prevBlock=c}});function i(o,s,a,l){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var x=0;x<a;x++)o[s+x]^=c[x]}return n}(),r.mode.CFB})}(Po)),Po.exports}var No={exports:{}},us;function C1(){return us||(us=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,s){var a=this._cipher,l=a.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var x=u.slice(0);a.encryptBlock(x,0),u[l-1]=u[l-1]+1|0;for(var h=0;h<l;h++)o[s+h]^=x[h]}});return n.Decryptor=i,n}(),r.mode.CTR})}(No)),No.exports}var Lo={exports:{}},fs;function B1(){return fs||(fs=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){/** @preserve
|
|
25
|
+
*/return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,u=i.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),x=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),y=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),E=u.RIPEMD160=a.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,L){for(var z=0;z<16;z++){var Q=L+z,O=T[Q];T[Q]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}var k=this._hash.words,V=y.words,X=m.words,ee=c.words,Y=f.words,Z=x.words,oe=h.words,ie,he,ue,H,j,re,J,ge,Ee,Pe;re=ie=k[0],J=he=k[1],ge=ue=k[2],Ee=H=k[3],Pe=j=k[4];for(var ve,z=0;z<80;z+=1)ve=ie+T[L+ee[z]]|0,z<16?ve+=A(he,ue,H)+V[0]:z<32?ve+=R(he,ue,H)+V[1]:z<48?ve+=w(he,ue,H)+V[2]:z<64?ve+=_(he,ue,H)+V[3]:ve+=B(he,ue,H)+V[4],ve=ve|0,ve=D(ve,Z[z]),ve=ve+j|0,ie=j,j=H,H=D(ue,10),ue=he,he=ve,ve=re+T[L+Y[z]]|0,z<16?ve+=B(J,ge,Ee)+X[0]:z<32?ve+=_(J,ge,Ee)+X[1]:z<48?ve+=w(J,ge,Ee)+X[2]:z<64?ve+=R(J,ge,Ee)+X[3]:ve+=A(J,ge,Ee)+X[4],ve=ve|0,ve=D(ve,oe[z]),ve=ve+Pe|0,re=Pe,Pe=Ee,Ee=D(ge,10),ge=J,J=ve;ve=k[1]+ue+Ee|0,k[1]=k[2]+H+Pe|0,k[2]=k[3]+j+re|0,k[3]=k[4]+ie+J|0,k[4]=k[0]+he+ge|0,k[0]=ve},_doFinalize:function(){var T=this._data,L=T.words,z=this._nDataBytes*8,Q=T.sigBytes*8;L[Q>>>5]|=128<<24-Q%32,L[(Q+64>>>9<<4)+14]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360,T.sigBytes=(L.length+1)*4,this._process();for(var O=this._hash,k=O.words,V=0;V<5;V++){var X=k[V];k[V]=(X<<8|X>>>24)&16711935|(X<<24|X>>>8)&4278255360}return O},clone:function(){var T=a.clone.call(this);return T._hash=this._hash.clone(),T}});function A(T,L,z){return T^L^z}function R(T,L,z){return T&L|~T&z}function w(T,L,z){return(T|~L)^z}function _(T,L,z){return T&z|L&~z}function B(T,L,z){return T^(L|~z)}function D(T,L){return T<<L|T>>>32-L}i.RIPEMD160=a._createHelper(E),i.HmacRIPEMD160=a._createHmacHelper(E)}(),r.RIPEMD160})}(So)),So.exports}var Fo={exports:{}},ns;function k0(){return ns||(ns=1,function(t,e){(function(r,n){t.exports=n(Oe())})(be,function(r){(function(){var n=r,i=n.lib,o=i.Base,s=n.enc,a=s.Utf8,u=n.algo;u.HMAC=o.extend({init:function(c,f){c=this._hasher=new c.init,typeof f=="string"&&(f=a.parse(f));var x=c.blockSize,h=x*4;f.sigBytes>h&&(f=c.finalize(f)),f.clamp();for(var y=this._oKey=f.clone(),m=this._iKey=f.clone(),E=y.words,A=m.words,R=0;R<x;R++)E[R]^=1549556828,A[R]^=909522486;y.sigBytes=m.sigBytes=h,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var f=this._hasher,x=f.finalize(c);f.reset();var h=f.finalize(this._oKey.clone().concat(x));return h}})})()})}(Fo)),Fo.exports}var Ro={exports:{}},is;function _1(){return is||(is=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),L0(),k0())})(be,function(r){return function(){var n=r,i=n.lib,o=i.Base,s=i.WordArray,a=n.algo,u=a.SHA256,c=a.HMAC,f=a.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:u,iterations:25e4}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,h){for(var y=this.cfg,m=c.create(y.hasher,x),E=s.create(),A=s.create([1]),R=E.words,w=A.words,_=y.keySize,B=y.iterations;R.length<_;){var D=m.update(h).finalize(A);m.reset();for(var T=D.words,L=T.length,z=D,Q=1;Q<B;Q++){z=m.finalize(z),m.reset();for(var O=z.words,k=0;k<L;k++)T[k]^=O[k]}E.concat(D),w[0]++}return E.sigBytes=_*4,E}});n.PBKDF2=function(x,h,y){return f.create(y).compute(x,h)}}(),r.PBKDF2})}(Ro)),Ro.exports}var Io={exports:{}},os;function Jt(){return os||(os=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),su(),k0())})(be,function(r){return function(){var n=r,i=n.lib,o=i.Base,s=i.WordArray,a=n.algo,u=a.MD5,c=a.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:u,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,x){for(var h,y=this.cfg,m=y.hasher.create(),E=s.create(),A=E.words,R=y.keySize,w=y.iterations;A.length<R;){h&&m.update(h),h=m.update(f).finalize(x),m.reset();for(var _=1;_<w;_++)h=m.finalize(h),m.reset();E.concat(h)}return E.sigBytes=R*4,E}});n.EvpKDF=function(f,x,h){return c.create(h).compute(f,x)}}(),r.EvpKDF})}(Io)),Io.exports}var To={exports:{}},as;function tt(){return as||(as=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),Jt())})(be,function(r){r.lib.Cipher||function(n){var i=r,o=i.lib,s=o.Base,a=o.WordArray,u=o.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var f=c.Base64,x=i.algo,h=x.EvpKDF,y=o.Cipher=u.extend({cfg:s.extend(),createEncryptor:function(O,k){return this.create(this._ENC_XFORM_MODE,O,k)},createDecryptor:function(O,k){return this.create(this._DEC_XFORM_MODE,O,k)},init:function(O,k,V){this.cfg=this.cfg.extend(V),this._xformMode=O,this._key=k,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(O){return this._append(O),this._process()},finalize:function(O){O&&this._append(O);var k=this._doFinalize();return k},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function O(k){return typeof k=="string"?Q:T}return function(k){return{encrypt:function(V,X,ee){return O(X).encrypt(k,V,X,ee)},decrypt:function(V,X,ee){return O(X).decrypt(k,V,X,ee)}}}}()});o.StreamCipher=y.extend({_doFinalize:function(){var O=this._process(!0);return O},blockSize:1});var m=i.mode={},E=o.BlockCipherMode=s.extend({createEncryptor:function(O,k){return this.Encryptor.create(O,k)},createDecryptor:function(O,k){return this.Decryptor.create(O,k)},init:function(O,k){this._cipher=O,this._iv=k}}),A=m.CBC=function(){var O=E.extend();O.Encryptor=O.extend({processBlock:function(V,X){var ee=this._cipher,Y=ee.blockSize;k.call(this,V,X,Y),ee.encryptBlock(V,X),this._prevBlock=V.slice(X,X+Y)}}),O.Decryptor=O.extend({processBlock:function(V,X){var ee=this._cipher,Y=ee.blockSize,Z=V.slice(X,X+Y);ee.decryptBlock(V,X),k.call(this,V,X,Y),this._prevBlock=Z}});function k(V,X,ee){var Y,Z=this._iv;Z?(Y=Z,this._iv=n):Y=this._prevBlock;for(var oe=0;oe<ee;oe++)V[X+oe]^=Y[oe]}return O}(),R=i.pad={},w=R.Pkcs7={pad:function(O,k){for(var V=k*4,X=V-O.sigBytes%V,ee=X<<24|X<<16|X<<8|X,Y=[],Z=0;Z<X;Z+=4)Y.push(ee);var oe=a.create(Y,X);O.concat(oe)},unpad:function(O){var k=O.words[O.sigBytes-1>>>2]&255;O.sigBytes-=k}};o.BlockCipher=y.extend({cfg:y.cfg.extend({mode:A,padding:w}),reset:function(){var O;y.reset.call(this);var k=this.cfg,V=k.iv,X=k.mode;this._xformMode==this._ENC_XFORM_MODE?O=X.createEncryptor:(O=X.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==O?this._mode.init(this,V&&V.words):(this._mode=O.call(X,this,V&&V.words),this._mode.__creator=O)},_doProcessBlock:function(O,k){this._mode.processBlock(O,k)},_doFinalize:function(){var O,k=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(k.pad(this._data,this.blockSize),O=this._process(!0)):(O=this._process(!0),k.unpad(O)),O},blockSize:128/32});var _=o.CipherParams=s.extend({init:function(O){this.mixIn(O)},toString:function(O){return(O||this.formatter).stringify(this)}}),B=i.format={},D=B.OpenSSL={stringify:function(O){var k,V=O.ciphertext,X=O.salt;return X?k=a.create([1398893684,1701076831]).concat(X).concat(V):k=V,k.toString(f)},parse:function(O){var k,V=f.parse(O),X=V.words;return X[0]==1398893684&&X[1]==1701076831&&(k=a.create(X.slice(2,4)),X.splice(0,4),V.sigBytes-=16),_.create({ciphertext:V,salt:k})}},T=o.SerializableCipher=s.extend({cfg:s.extend({format:D}),encrypt:function(O,k,V,X){X=this.cfg.extend(X);var ee=O.createEncryptor(V,X),Y=ee.finalize(k),Z=ee.cfg;return _.create({ciphertext:Y,key:V,iv:Z.iv,algorithm:O,mode:Z.mode,padding:Z.padding,blockSize:O.blockSize,formatter:X.format})},decrypt:function(O,k,V,X){X=this.cfg.extend(X),k=this._parse(k,X.format);var ee=O.createDecryptor(V,X).finalize(k.ciphertext);return ee},_parse:function(O,k){return typeof O=="string"?k.parse(O,this):O}}),L=i.kdf={},z=L.OpenSSL={execute:function(O,k,V,X,ee){if(X||(X=a.random(64/8)),ee)var Y=h.create({keySize:k+V,hasher:ee}).compute(O,X);else var Y=h.create({keySize:k+V}).compute(O,X);var Z=a.create(Y.words.slice(k),V*4);return Y.sigBytes=k*4,_.create({key:Y,iv:Z,salt:X})}},Q=o.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:z}),encrypt:function(O,k,V,X){X=this.cfg.extend(X);var ee=X.kdf.execute(V,O.keySize,O.ivSize,X.salt,X.hasher);X.iv=ee.iv;var Y=T.encrypt.call(this,O,k,ee.key,X);return Y.mixIn(ee),Y},decrypt:function(O,k,V,X){X=this.cfg.extend(X),k=this._parse(k,X.format);var ee=X.kdf.execute(V,O.keySize,O.ivSize,k.salt,X.hasher);X.iv=ee.iv;var Y=T.decrypt.call(this,O,k,ee.key,X);return Y}})}()})}(To)),To.exports}var Oo={exports:{}},ss;function b1(){return ss||(ss=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(o,s){var a=this._cipher,u=a.blockSize;i.call(this,o,s,u,a),this._prevBlock=o.slice(s,s+u)}}),n.Decryptor=n.extend({processBlock:function(o,s){var a=this._cipher,u=a.blockSize,c=o.slice(s,s+u);i.call(this,o,s,u,a),this._prevBlock=c}});function i(o,s,a,u){var c,f=this._iv;f?(c=f.slice(0),this._iv=void 0):c=this._prevBlock,u.encryptBlock(c,0);for(var x=0;x<a;x++)o[s+x]^=c[x]}return n}(),r.mode.CFB})}(Oo)),Oo.exports}var Po={exports:{}},cs;function C1(){return cs||(cs=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,s){var a=this._cipher,u=a.blockSize,c=this._iv,f=this._counter;c&&(f=this._counter=c.slice(0),this._iv=void 0);var x=f.slice(0);a.encryptBlock(x,0),f[u-1]=f[u-1]+1|0;for(var h=0;h<u;h++)o[s+h]^=x[h]}});return n.Decryptor=i,n}(),r.mode.CTR})}(Po)),Po.exports}var No={exports:{}},us;function B1(){return us||(us=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){/** @preserve
|
|
26
26
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
27
27
|
* derived from CryptoJS.mode.CTR
|
|
28
28
|
* Jan Hruby jhruby.web@gmail.com
|
|
29
|
-
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function i(a){if((a>>24&255)===255){var l=a>>16&255,c=a>>8&255,u=a&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,a=0,a+=l<<16,a+=c<<8,a+=u}else a+=1<<24;return a}function o(a){return(a[0]=i(a[0]))===0&&(a[1]=i(a[1])),a}var s=n.Encryptor=n.extend({processBlock:function(a,l){var c=this._cipher,u=c.blockSize,x=this._iv,h=this._counter;x&&(h=this._counter=x.slice(0),this._iv=void 0),o(h);var y=h.slice(0);c.encryptBlock(y,0);for(var m=0;m<u;m++)a[l+m]^=y[m]}});return n.Decryptor=s,n}(),r.mode.CTRGladman})}(Lo)),Lo.exports}var ko={exports:{}},ls;function D1(){return ls||(ls=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,s){var a=this._cipher,l=a.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),a.encryptBlock(u,0);for(var x=0;x<l;x++)o[s+x]^=u[x]}});return n.Decryptor=i,n}(),r.mode.OFB})}(ko)),ko.exports}var Mo={exports:{}},hs;function S1(){return hs||(hs=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,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})}(Mo)),Mo.exports}var Uo={exports:{}},ds;function F1(){return ds||(ds=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){return r.pad.AnsiX923={pad:function(n,i){var o=n.sigBytes,s=i*4,a=s-o%s,l=o+a-1;n.clamp(),n.words[l>>>2]|=a<<24-l%4*8,n.sigBytes+=a},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Ansix923})}(Uo)),Uo.exports}var $o={exports:{}},ps;function R1(){return ps||(ps=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){return r.pad.Iso10126={pad:function(n,i){var o=i*4,s=o-n.sigBytes%o;n.concat(r.lib.WordArray.random(s-1)).concat(r.lib.WordArray.create([s<<24],1))},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Iso10126})}($o)),$o.exports}var Ho={exports:{}},xs;function I1(){return xs||(xs=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,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})}(Ho)),Ho.exports}var zo={exports:{}},vs;function T1(){return vs||(vs=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,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})}(zo)),zo.exports}var qo={exports:{}},ys;function O1(){return ys||(ys=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(qo)),qo.exports}var Wo={exports:{}},ms;function P1(){return ms||(ms=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){return function(n){var i=r,o=i.lib,s=o.CipherParams,a=i.enc,l=a.Hex,c=i.format;c.Hex={stringify:function(u){return u.ciphertext.toString(l)},parse:function(u){var x=l.parse(u);return s.create({ciphertext:x})}}}(),r.format.Hex})}(Wo)),Wo.exports}var Vo={exports:{}},gs;function N1(){return gs||(gs=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),pr(),xr(),Jt(),tt())})(be,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,s=n.algo,a=[],l=[],c=[],u=[],x=[],h=[],y=[],m=[],E=[],A=[];(function(){for(var _=[],D=0;D<256;D++)D<128?_[D]=D<<1:_[D]=D<<1^283;for(var C=0,T=0,D=0;D<256;D++){var L=T^T<<1^T<<2^T<<3^T<<4;L=L>>>8^L&255^99,a[C]=L,l[L]=C;var H=_[C],Z=_[H],O=_[Z],k=_[L]*257^L*16843008;c[C]=k<<24|k>>>8,u[C]=k<<16|k>>>16,x[C]=k<<8|k>>>24,h[C]=k;var k=O*16843009^Z*65537^H*257^C*16843008;y[L]=k<<24|k>>>8,m[L]=k<<16|k>>>16,E[L]=k<<8|k>>>24,A[L]=k,C?(C=H^_[_[_[O^H]]],T^=_[_[T]]):C=T=1}})();var R=[0,1,2,4,8,16,32,64,128,27,54],w=s.AES=o.extend({_doReset:function(){var _;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var D=this._keyPriorReset=this._key,C=D.words,T=D.sigBytes/4,L=this._nRounds=T+6,H=(L+1)*4,Z=this._keySchedule=[],O=0;O<H;O++)O<T?Z[O]=C[O]:(_=Z[O-1],O%T?T>6&&O%T==4&&(_=a[_>>>24]<<24|a[_>>>16&255]<<16|a[_>>>8&255]<<8|a[_&255]):(_=_<<8|_>>>24,_=a[_>>>24]<<24|a[_>>>16&255]<<16|a[_>>>8&255]<<8|a[_&255],_^=R[O/T|0]<<24),Z[O]=Z[O-T]^_);for(var k=this._invKeySchedule=[],V=0;V<H;V++){var O=H-V;if(V%4)var _=Z[O];else var _=Z[O-4];V<4||O<=4?k[V]=_:k[V]=y[a[_>>>24]]^m[a[_>>>16&255]]^E[a[_>>>8&255]]^A[a[_&255]]}}},encryptBlock:function(_,D){this._doCryptBlock(_,D,this._keySchedule,c,u,x,h,a)},decryptBlock:function(_,D){var C=_[D+1];_[D+1]=_[D+3],_[D+3]=C,this._doCryptBlock(_,D,this._invKeySchedule,y,m,E,A,l);var C=_[D+1];_[D+1]=_[D+3],_[D+3]=C},_doCryptBlock:function(_,D,C,T,L,H,Z,O){for(var k=this._nRounds,V=_[D]^C[0],X=_[D+1]^C[1],te=_[D+2]^C[2],Y=_[D+3]^C[3],Q=4,oe=1;oe<k;oe++){var ie=T[V>>>24]^L[X>>>16&255]^H[te>>>8&255]^Z[Y&255]^C[Q++],he=T[X>>>24]^L[te>>>16&255]^H[Y>>>8&255]^Z[V&255]^C[Q++],ue=T[te>>>24]^L[Y>>>16&255]^H[V>>>8&255]^Z[X&255]^C[Q++],z=T[Y>>>24]^L[V>>>16&255]^H[X>>>8&255]^Z[te&255]^C[Q++];V=ie,X=he,te=ue,Y=z}var ie=(O[V>>>24]<<24|O[X>>>16&255]<<16|O[te>>>8&255]<<8|O[Y&255])^C[Q++],he=(O[X>>>24]<<24|O[te>>>16&255]<<16|O[Y>>>8&255]<<8|O[V&255])^C[Q++],ue=(O[te>>>24]<<24|O[Y>>>16&255]<<16|O[V>>>8&255]<<8|O[X&255])^C[Q++],z=(O[Y>>>24]<<24|O[V>>>16&255]<<16|O[X>>>8&255]<<8|O[te&255])^C[Q++];_[D]=ie,_[D+1]=he,_[D+2]=ue,_[D+3]=z},keySize:256/32});n.AES=o._createHelper(w)}(),r.AES})}(Vo)),Vo.exports}var Go={exports:{}},Es;function L1(){return Es||(Es=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),pr(),xr(),Jt(),tt())})(be,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=i.BlockCipher,a=n.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[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],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{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}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],y=a.DES=s.extend({_doReset:function(){for(var R=this._key,w=R.words,_=[],D=0;D<56;D++){var C=l[D]-1;_[D]=w[C>>>5]>>>31-C%32&1}for(var T=this._subKeys=[],L=0;L<16;L++){for(var H=T[L]=[],Z=u[L],D=0;D<24;D++)H[D/6|0]|=_[(c[D]-1+Z)%28]<<31-D%6,H[4+(D/6|0)]|=_[28+(c[D+24]-1+Z)%28]<<31-D%6;H[0]=H[0]<<1|H[0]>>>31;for(var D=1;D<7;D++)H[D]=H[D]>>>(D-1)*4+3;H[7]=H[7]<<5|H[7]>>>27}for(var O=this._invSubKeys=[],D=0;D<16;D++)O[D]=T[15-D]},encryptBlock:function(R,w){this._doCryptBlock(R,w,this._subKeys)},decryptBlock:function(R,w){this._doCryptBlock(R,w,this._invSubKeys)},_doCryptBlock:function(R,w,_){this._lBlock=R[w],this._rBlock=R[w+1],m.call(this,4,252645135),m.call(this,16,65535),E.call(this,2,858993459),E.call(this,8,16711935),m.call(this,1,1431655765);for(var D=0;D<16;D++){for(var C=_[D],T=this._lBlock,L=this._rBlock,H=0,Z=0;Z<8;Z++)H|=x[Z][((L^C[Z])&h[Z])>>>0];this._lBlock=L,this._rBlock=T^H}var O=this._lBlock;this._lBlock=this._rBlock,this._rBlock=O,m.call(this,1,1431655765),E.call(this,8,16711935),E.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),R[w]=this._lBlock,R[w+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(R,w){var _=(this._lBlock>>>R^this._rBlock)&w;this._rBlock^=_,this._lBlock^=_<<R}function E(R,w){var _=(this._rBlock>>>R^this._lBlock)&w;this._lBlock^=_,this._rBlock^=_<<R}n.DES=s._createHelper(y);var A=a.TripleDES=s.extend({_doReset:function(){var R=this._key,w=R.words;if(w.length!==2&&w.length!==4&&w.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var _=w.slice(0,2),D=w.length<4?w.slice(0,2):w.slice(2,4),C=w.length<6?w.slice(0,2):w.slice(4,6);this._des1=y.createEncryptor(o.create(_)),this._des2=y.createEncryptor(o.create(D)),this._des3=y.createEncryptor(o.create(C))},encryptBlock:function(R,w){this._des1.encryptBlock(R,w),this._des2.decryptBlock(R,w),this._des3.encryptBlock(R,w)},decryptBlock:function(R,w){this._des3.decryptBlock(R,w),this._des2.encryptBlock(R,w),this._des1.decryptBlock(R,w)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=s._createHelper(A)}(),r.TripleDES})}(Go)),Go.exports}var jo={exports:{}},As;function k1(){return As||(As=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),pr(),xr(),Jt(),tt())})(be,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,s=n.algo,a=s.RC4=o.extend({_doReset:function(){for(var u=this._key,x=u.words,h=u.sigBytes,y=this._S=[],m=0;m<256;m++)y[m]=m;for(var m=0,E=0;m<256;m++){var A=m%h,R=x[A>>>2]>>>24-A%4*8&255;E=(E+y[m]+R)%256;var w=y[m];y[m]=y[E],y[E]=w}this._i=this._j=0},_doProcessBlock:function(u,x){u[x]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var u=this._S,x=this._i,h=this._j,y=0,m=0;m<4;m++){x=(x+1)%256,h=(h+u[x])%256;var E=u[x];u[x]=u[h],u[h]=E,y|=u[(u[x]+u[h])%256]<<24-m*8}return this._i=x,this._j=h,y}n.RC4=o._createHelper(a);var c=s.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)l.call(this)}});n.RC4Drop=o._createHelper(c)}(),r.RC4})}(jo)),jo.exports}var Ko={exports:{}},ws;function M1(){return ws||(ws=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),pr(),xr(),Jt(),tt())})(be,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,s=n.algo,a=[],l=[],c=[],u=s.Rabbit=o.extend({_doReset:function(){for(var h=this._key.words,y=this.cfg.iv,m=0;m<4;m++)h[m]=(h[m]<<8|h[m]>>>24)&16711935|(h[m]<<24|h[m]>>>8)&4278255360;var E=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],A=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var m=0;m<4;m++)x.call(this);for(var m=0;m<8;m++)A[m]^=E[m+4&7];if(y){var R=y.words,w=R[0],_=R[1],D=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,C=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,T=D>>>16|C&4294901760,L=C<<16|D&65535;A[0]^=D,A[1]^=T,A[2]^=C,A[3]^=L,A[4]^=D,A[5]^=T,A[6]^=C,A[7]^=L;for(var m=0;m<4;m++)x.call(this)}},_doProcessBlock:function(h,y){var m=this._X;x.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var E=0;E<4;E++)a[E]=(a[E]<<8|a[E]>>>24)&16711935|(a[E]<<24|a[E]>>>8)&4278255360,h[y+E]^=a[E]},blockSize:128/32,ivSize:64/32});function x(){for(var h=this._X,y=this._C,m=0;m<8;m++)l[m]=y[m];y[0]=y[0]+1295307597+this._b|0,y[1]=y[1]+3545052371+(y[0]>>>0<l[0]>>>0?1:0)|0,y[2]=y[2]+886263092+(y[1]>>>0<l[1]>>>0?1:0)|0,y[3]=y[3]+1295307597+(y[2]>>>0<l[2]>>>0?1:0)|0,y[4]=y[4]+3545052371+(y[3]>>>0<l[3]>>>0?1:0)|0,y[5]=y[5]+886263092+(y[4]>>>0<l[4]>>>0?1:0)|0,y[6]=y[6]+1295307597+(y[5]>>>0<l[5]>>>0?1:0)|0,y[7]=y[7]+3545052371+(y[6]>>>0<l[6]>>>0?1:0)|0,this._b=y[7]>>>0<l[7]>>>0?1:0;for(var m=0;m<8;m++){var E=h[m]+y[m],A=E&65535,R=E>>>16,w=((A*A>>>17)+A*R>>>15)+R*R,_=((E&4294901760)*E|0)+((E&65535)*E|0);c[m]=w^_}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.Rabbit=o._createHelper(u)}(),r.Rabbit})}(Ko)),Ko.exports}var Yo={exports:{}},_s;function U1(){return _s||(_s=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),pr(),xr(),Jt(),tt())})(be,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,s=n.algo,a=[],l=[],c=[],u=s.RabbitLegacy=o.extend({_doReset:function(){var h=this._key.words,y=this.cfg.iv,m=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],E=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var A=0;A<4;A++)x.call(this);for(var A=0;A<8;A++)E[A]^=m[A+4&7];if(y){var R=y.words,w=R[0],_=R[1],D=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,C=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,T=D>>>16|C&4294901760,L=C<<16|D&65535;E[0]^=D,E[1]^=T,E[2]^=C,E[3]^=L,E[4]^=D,E[5]^=T,E[6]^=C,E[7]^=L;for(var A=0;A<4;A++)x.call(this)}},_doProcessBlock:function(h,y){var m=this._X;x.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var E=0;E<4;E++)a[E]=(a[E]<<8|a[E]>>>24)&16711935|(a[E]<<24|a[E]>>>8)&4278255360,h[y+E]^=a[E]},blockSize:128/32,ivSize:64/32});function x(){for(var h=this._X,y=this._C,m=0;m<8;m++)l[m]=y[m];y[0]=y[0]+1295307597+this._b|0,y[1]=y[1]+3545052371+(y[0]>>>0<l[0]>>>0?1:0)|0,y[2]=y[2]+886263092+(y[1]>>>0<l[1]>>>0?1:0)|0,y[3]=y[3]+1295307597+(y[2]>>>0<l[2]>>>0?1:0)|0,y[4]=y[4]+3545052371+(y[3]>>>0<l[3]>>>0?1:0)|0,y[5]=y[5]+886263092+(y[4]>>>0<l[4]>>>0?1:0)|0,y[6]=y[6]+1295307597+(y[5]>>>0<l[5]>>>0?1:0)|0,y[7]=y[7]+3545052371+(y[6]>>>0<l[6]>>>0?1:0)|0,this._b=y[7]>>>0<l[7]>>>0?1:0;for(var m=0;m<8;m++){var E=h[m]+y[m],A=E&65535,R=E>>>16,w=((A*A>>>17)+A*R>>>15)+R*R,_=((E&4294901760)*E|0)+((E&65535)*E|0);c[m]=w^_}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.RabbitLegacy=o._createHelper(u)}(),r.RabbitLegacy})}(Yo)),Yo.exports}var Xo={exports:{}},bs;function $1(){return bs||(bs=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),pr(),xr(),Jt(),tt())})(be,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,s=n.algo;const a=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[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 u={pbox:[],sbox:[]};function x(A,R){let w=R>>24&255,_=R>>16&255,D=R>>8&255,C=R&255,T=A.sbox[0][w]+A.sbox[1][_];return T=T^A.sbox[2][D],T=T+A.sbox[3][C],T}function h(A,R,w){let _=R,D=w,C;for(let T=0;T<a;++T)_=_^A.pbox[T],D=x(A,_)^D,C=_,_=D,D=C;return C=_,_=D,D=C,D=D^A.pbox[a],_=_^A.pbox[a+1],{left:_,right:D}}function y(A,R,w){let _=R,D=w,C;for(let T=a+1;T>1;--T)_=_^A.pbox[T],D=x(A,_)^D,C=_,_=D,D=C;return C=_,_=D,D=C,D=D^A.pbox[1],_=_^A.pbox[0],{left:_,right:D}}function m(A,R,w){for(let L=0;L<4;L++){A.sbox[L]=[];for(let H=0;H<256;H++)A.sbox[L][H]=c[L][H]}let _=0;for(let L=0;L<a+2;L++)A.pbox[L]=l[L]^R[_],_++,_>=w&&(_=0);let D=0,C=0,T=0;for(let L=0;L<a+2;L+=2)T=h(A,D,C),D=T.left,C=T.right,A.pbox[L]=D,A.pbox[L+1]=C;for(let L=0;L<4;L++)for(let H=0;H<256;H+=2)T=h(A,D,C),D=T.left,C=T.right,A.sbox[L][H]=D,A.sbox[L][H+1]=C;return!0}var E=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var A=this._keyPriorReset=this._key,R=A.words,w=A.sigBytes/4;m(u,R,w)}},encryptBlock:function(A,R){var w=h(u,A[R],A[R+1]);A[R]=w.left,A[R+1]=w.right},decryptBlock:function(A,R){var w=y(u,A[R],A[R+1]);A[R]=w.left,A[R+1]=w.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=o._createHelper(E)}(),r.Blowfish})}(Xo)),Xo.exports}(function(t,e){(function(r,n,i){t.exports=n(Oe(),Ei(),v1(),y1(),pr(),m1(),xr(),cu(),k0(),g1(),uu(),E1(),A1(),w1(),M0(),_1(),Jt(),tt(),b1(),C1(),B1(),D1(),S1(),F1(),R1(),I1(),T1(),O1(),P1(),N1(),L1(),k1(),M1(),U1(),$1())})(be,function(r){return r})})(x1);var Se={},Ai={};Ai.byteLength=q1;Ai.toByteArray=V1;Ai.fromByteArray=K1;var Lt=[],gt=[],H1=typeof Uint8Array!="undefined"?Uint8Array:Array,Jo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Rr=0,z1=Jo.length;Rr<z1;++Rr)Lt[Rr]=Jo[Rr],gt[Jo.charCodeAt(Rr)]=Rr;gt[45]=62;gt[95]=63;function fu(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 q1(t){var e=fu(t),r=e[0],n=e[1];return(r+n)*3/4-n}function W1(t,e,r){return(e+r)*3/4-r}function V1(t){var e,r=fu(t),n=r[0],i=r[1],o=new H1(W1(t,n,i)),s=0,a=i>0?n-4:n,l;for(l=0;l<a;l+=4)e=gt[t.charCodeAt(l)]<<18|gt[t.charCodeAt(l+1)]<<12|gt[t.charCodeAt(l+2)]<<6|gt[t.charCodeAt(l+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=gt[t.charCodeAt(l)]<<2|gt[t.charCodeAt(l+1)]>>4,o[s++]=e&255),i===1&&(e=gt[t.charCodeAt(l)]<<10|gt[t.charCodeAt(l+1)]<<4|gt[t.charCodeAt(l+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function G1(t){return Lt[t>>18&63]+Lt[t>>12&63]+Lt[t>>6&63]+Lt[t&63]}function j1(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(G1(n));return i.join("")}function K1(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(j1(t,s,s+o>a?a:s+o));return n===1?(e=t[r-1],i.push(Lt[e>>2]+Lt[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Lt[e>>10]+Lt[e>>4&63]+Lt[e<<2&63]+"=")),i.join("")}var U0={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */U0.read=function(t,e,r,n,i){var o,s,a=i*8-n-1,l=(1<<a)-1,c=l>>1,u=-7,x=r?i-1:0,h=r?-1:1,y=t[e+x];for(x+=h,o=y&(1<<-u)-1,y>>=-u,u+=a;u>0;o=o*256+t[e+x],x+=h,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=s*256+t[e+x],x+=h,u-=8);if(o===0)o=1-c;else{if(o===l)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-c}return(y?-1:1)*s*Math.pow(2,o-n)};U0.write=function(t,e,r,n,i,o){var s,a,l,c=o*8-i-1,u=(1<<c)-1,x=u>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:o-1,m=n?1:-1,E=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+x>=1?e+=h/l:e+=h*Math.pow(2,1-x),e*l>=2&&(s++,l/=2),s+x>=u?(a=0,s=u):s+x>=1?(a=(e*l-1)*Math.pow(2,i),s=s+x):(a=e*Math.pow(2,x-1)*Math.pow(2,i),s=0));i>=8;t[r+y]=a&255,y+=m,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;t[r+y]=s&255,y+=m,s/=256,c-=8);t[r+y-m]|=E*128};/*!
|
|
29
|
+
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function i(a){if((a>>24&255)===255){var u=a>>16&255,c=a>>8&255,f=a&255;u===255?(u=0,c===255?(c=0,f===255?f=0:++f):++c):++u,a=0,a+=u<<16,a+=c<<8,a+=f}else a+=1<<24;return a}function o(a){return(a[0]=i(a[0]))===0&&(a[1]=i(a[1])),a}var s=n.Encryptor=n.extend({processBlock:function(a,u){var c=this._cipher,f=c.blockSize,x=this._iv,h=this._counter;x&&(h=this._counter=x.slice(0),this._iv=void 0),o(h);var y=h.slice(0);c.encryptBlock(y,0);for(var m=0;m<f;m++)a[u+m]^=y[m]}});return n.Decryptor=s,n}(),r.mode.CTRGladman})}(No)),No.exports}var Lo={exports:{}},fs;function D1(){return fs||(fs=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,s){var a=this._cipher,u=a.blockSize,c=this._iv,f=this._keystream;c&&(f=this._keystream=c.slice(0),this._iv=void 0),a.encryptBlock(f,0);for(var x=0;x<u;x++)o[s+x]^=f[x]}});return n.Decryptor=i,n}(),r.mode.OFB})}(Lo)),Lo.exports}var ko={exports:{}},ls;function S1(){return ls||(ls=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,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})}(ko)),ko.exports}var Mo={exports:{}},hs;function F1(){return hs||(hs=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){return r.pad.AnsiX923={pad:function(n,i){var o=n.sigBytes,s=i*4,a=s-o%s,u=o+a-1;n.clamp(),n.words[u>>>2]|=a<<24-u%4*8,n.sigBytes+=a},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Ansix923})}(Mo)),Mo.exports}var Uo={exports:{}},ds;function R1(){return ds||(ds=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){return r.pad.Iso10126={pad:function(n,i){var o=i*4,s=o-n.sigBytes%o;n.concat(r.lib.WordArray.random(s-1)).concat(r.lib.WordArray.create([s<<24],1))},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Iso10126})}(Uo)),Uo.exports}var $o={exports:{}},ps;function I1(){return ps||(ps=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,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})}($o)),$o.exports}var Ho={exports:{}},xs;function T1(){return xs||(xs=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,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})}(Ho)),Ho.exports}var zo={exports:{}},vs;function O1(){return vs||(vs=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(zo)),zo.exports}var qo={exports:{}},ys;function P1(){return ys||(ys=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),tt())})(be,function(r){return function(n){var i=r,o=i.lib,s=o.CipherParams,a=i.enc,u=a.Hex,c=i.format;c.Hex={stringify:function(f){return f.ciphertext.toString(u)},parse:function(f){var x=u.parse(f);return s.create({ciphertext:x})}}}(),r.format.Hex})}(qo)),qo.exports}var Wo={exports:{}},ms;function N1(){return ms||(ms=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),pr(),xr(),Jt(),tt())})(be,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,s=n.algo,a=[],u=[],c=[],f=[],x=[],h=[],y=[],m=[],E=[],A=[];(function(){for(var _=[],B=0;B<256;B++)B<128?_[B]=B<<1:_[B]=B<<1^283;for(var D=0,T=0,B=0;B<256;B++){var L=T^T<<1^T<<2^T<<3^T<<4;L=L>>>8^L&255^99,a[D]=L,u[L]=D;var z=_[D],Q=_[z],O=_[Q],k=_[L]*257^L*16843008;c[D]=k<<24|k>>>8,f[D]=k<<16|k>>>16,x[D]=k<<8|k>>>24,h[D]=k;var k=O*16843009^Q*65537^z*257^D*16843008;y[L]=k<<24|k>>>8,m[L]=k<<16|k>>>16,E[L]=k<<8|k>>>24,A[L]=k,D?(D=z^_[_[_[O^z]]],T^=_[_[T]]):D=T=1}})();var R=[0,1,2,4,8,16,32,64,128,27,54],w=s.AES=o.extend({_doReset:function(){var _;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var B=this._keyPriorReset=this._key,D=B.words,T=B.sigBytes/4,L=this._nRounds=T+6,z=(L+1)*4,Q=this._keySchedule=[],O=0;O<z;O++)O<T?Q[O]=D[O]:(_=Q[O-1],O%T?T>6&&O%T==4&&(_=a[_>>>24]<<24|a[_>>>16&255]<<16|a[_>>>8&255]<<8|a[_&255]):(_=_<<8|_>>>24,_=a[_>>>24]<<24|a[_>>>16&255]<<16|a[_>>>8&255]<<8|a[_&255],_^=R[O/T|0]<<24),Q[O]=Q[O-T]^_);for(var k=this._invKeySchedule=[],V=0;V<z;V++){var O=z-V;if(V%4)var _=Q[O];else var _=Q[O-4];V<4||O<=4?k[V]=_:k[V]=y[a[_>>>24]]^m[a[_>>>16&255]]^E[a[_>>>8&255]]^A[a[_&255]]}}},encryptBlock:function(_,B){this._doCryptBlock(_,B,this._keySchedule,c,f,x,h,a)},decryptBlock:function(_,B){var D=_[B+1];_[B+1]=_[B+3],_[B+3]=D,this._doCryptBlock(_,B,this._invKeySchedule,y,m,E,A,u);var D=_[B+1];_[B+1]=_[B+3],_[B+3]=D},_doCryptBlock:function(_,B,D,T,L,z,Q,O){for(var k=this._nRounds,V=_[B]^D[0],X=_[B+1]^D[1],ee=_[B+2]^D[2],Y=_[B+3]^D[3],Z=4,oe=1;oe<k;oe++){var ie=T[V>>>24]^L[X>>>16&255]^z[ee>>>8&255]^Q[Y&255]^D[Z++],he=T[X>>>24]^L[ee>>>16&255]^z[Y>>>8&255]^Q[V&255]^D[Z++],ue=T[ee>>>24]^L[Y>>>16&255]^z[V>>>8&255]^Q[X&255]^D[Z++],H=T[Y>>>24]^L[V>>>16&255]^z[X>>>8&255]^Q[ee&255]^D[Z++];V=ie,X=he,ee=ue,Y=H}var ie=(O[V>>>24]<<24|O[X>>>16&255]<<16|O[ee>>>8&255]<<8|O[Y&255])^D[Z++],he=(O[X>>>24]<<24|O[ee>>>16&255]<<16|O[Y>>>8&255]<<8|O[V&255])^D[Z++],ue=(O[ee>>>24]<<24|O[Y>>>16&255]<<16|O[V>>>8&255]<<8|O[X&255])^D[Z++],H=(O[Y>>>24]<<24|O[V>>>16&255]<<16|O[X>>>8&255]<<8|O[ee&255])^D[Z++];_[B]=ie,_[B+1]=he,_[B+2]=ue,_[B+3]=H},keySize:256/32});n.AES=o._createHelper(w)}(),r.AES})}(Wo)),Wo.exports}var Vo={exports:{}},gs;function L1(){return gs||(gs=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),pr(),xr(),Jt(),tt())})(be,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=i.BlockCipher,a=n.algo,u=[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],c=[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],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{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}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],y=a.DES=s.extend({_doReset:function(){for(var R=this._key,w=R.words,_=[],B=0;B<56;B++){var D=u[B]-1;_[B]=w[D>>>5]>>>31-D%32&1}for(var T=this._subKeys=[],L=0;L<16;L++){for(var z=T[L]=[],Q=f[L],B=0;B<24;B++)z[B/6|0]|=_[(c[B]-1+Q)%28]<<31-B%6,z[4+(B/6|0)]|=_[28+(c[B+24]-1+Q)%28]<<31-B%6;z[0]=z[0]<<1|z[0]>>>31;for(var B=1;B<7;B++)z[B]=z[B]>>>(B-1)*4+3;z[7]=z[7]<<5|z[7]>>>27}for(var O=this._invSubKeys=[],B=0;B<16;B++)O[B]=T[15-B]},encryptBlock:function(R,w){this._doCryptBlock(R,w,this._subKeys)},decryptBlock:function(R,w){this._doCryptBlock(R,w,this._invSubKeys)},_doCryptBlock:function(R,w,_){this._lBlock=R[w],this._rBlock=R[w+1],m.call(this,4,252645135),m.call(this,16,65535),E.call(this,2,858993459),E.call(this,8,16711935),m.call(this,1,1431655765);for(var B=0;B<16;B++){for(var D=_[B],T=this._lBlock,L=this._rBlock,z=0,Q=0;Q<8;Q++)z|=x[Q][((L^D[Q])&h[Q])>>>0];this._lBlock=L,this._rBlock=T^z}var O=this._lBlock;this._lBlock=this._rBlock,this._rBlock=O,m.call(this,1,1431655765),E.call(this,8,16711935),E.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),R[w]=this._lBlock,R[w+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(R,w){var _=(this._lBlock>>>R^this._rBlock)&w;this._rBlock^=_,this._lBlock^=_<<R}function E(R,w){var _=(this._rBlock>>>R^this._lBlock)&w;this._lBlock^=_,this._rBlock^=_<<R}n.DES=s._createHelper(y);var A=a.TripleDES=s.extend({_doReset:function(){var R=this._key,w=R.words;if(w.length!==2&&w.length!==4&&w.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var _=w.slice(0,2),B=w.length<4?w.slice(0,2):w.slice(2,4),D=w.length<6?w.slice(0,2):w.slice(4,6);this._des1=y.createEncryptor(o.create(_)),this._des2=y.createEncryptor(o.create(B)),this._des3=y.createEncryptor(o.create(D))},encryptBlock:function(R,w){this._des1.encryptBlock(R,w),this._des2.decryptBlock(R,w),this._des3.encryptBlock(R,w)},decryptBlock:function(R,w){this._des3.decryptBlock(R,w),this._des2.encryptBlock(R,w),this._des1.decryptBlock(R,w)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=s._createHelper(A)}(),r.TripleDES})}(Vo)),Vo.exports}var Go={exports:{}},Es;function k1(){return Es||(Es=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),pr(),xr(),Jt(),tt())})(be,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,s=n.algo,a=s.RC4=o.extend({_doReset:function(){for(var f=this._key,x=f.words,h=f.sigBytes,y=this._S=[],m=0;m<256;m++)y[m]=m;for(var m=0,E=0;m<256;m++){var A=m%h,R=x[A>>>2]>>>24-A%4*8&255;E=(E+y[m]+R)%256;var w=y[m];y[m]=y[E],y[E]=w}this._i=this._j=0},_doProcessBlock:function(f,x){f[x]^=u.call(this)},keySize:256/32,ivSize:0});function u(){for(var f=this._S,x=this._i,h=this._j,y=0,m=0;m<4;m++){x=(x+1)%256,h=(h+f[x])%256;var E=f[x];f[x]=f[h],f[h]=E,y|=f[(f[x]+f[h])%256]<<24-m*8}return this._i=x,this._j=h,y}n.RC4=o._createHelper(a);var c=s.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)u.call(this)}});n.RC4Drop=o._createHelper(c)}(),r.RC4})}(Go)),Go.exports}var jo={exports:{}},As;function M1(){return As||(As=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),pr(),xr(),Jt(),tt())})(be,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,s=n.algo,a=[],u=[],c=[],f=s.Rabbit=o.extend({_doReset:function(){for(var h=this._key.words,y=this.cfg.iv,m=0;m<4;m++)h[m]=(h[m]<<8|h[m]>>>24)&16711935|(h[m]<<24|h[m]>>>8)&4278255360;var E=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],A=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var m=0;m<4;m++)x.call(this);for(var m=0;m<8;m++)A[m]^=E[m+4&7];if(y){var R=y.words,w=R[0],_=R[1],B=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,D=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,T=B>>>16|D&4294901760,L=D<<16|B&65535;A[0]^=B,A[1]^=T,A[2]^=D,A[3]^=L,A[4]^=B,A[5]^=T,A[6]^=D,A[7]^=L;for(var m=0;m<4;m++)x.call(this)}},_doProcessBlock:function(h,y){var m=this._X;x.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var E=0;E<4;E++)a[E]=(a[E]<<8|a[E]>>>24)&16711935|(a[E]<<24|a[E]>>>8)&4278255360,h[y+E]^=a[E]},blockSize:128/32,ivSize:64/32});function x(){for(var h=this._X,y=this._C,m=0;m<8;m++)u[m]=y[m];y[0]=y[0]+1295307597+this._b|0,y[1]=y[1]+3545052371+(y[0]>>>0<u[0]>>>0?1:0)|0,y[2]=y[2]+886263092+(y[1]>>>0<u[1]>>>0?1:0)|0,y[3]=y[3]+1295307597+(y[2]>>>0<u[2]>>>0?1:0)|0,y[4]=y[4]+3545052371+(y[3]>>>0<u[3]>>>0?1:0)|0,y[5]=y[5]+886263092+(y[4]>>>0<u[4]>>>0?1:0)|0,y[6]=y[6]+1295307597+(y[5]>>>0<u[5]>>>0?1:0)|0,y[7]=y[7]+3545052371+(y[6]>>>0<u[6]>>>0?1:0)|0,this._b=y[7]>>>0<u[7]>>>0?1:0;for(var m=0;m<8;m++){var E=h[m]+y[m],A=E&65535,R=E>>>16,w=((A*A>>>17)+A*R>>>15)+R*R,_=((E&4294901760)*E|0)+((E&65535)*E|0);c[m]=w^_}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.Rabbit=o._createHelper(f)}(),r.Rabbit})}(jo)),jo.exports}var Ko={exports:{}},ws;function U1(){return ws||(ws=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),pr(),xr(),Jt(),tt())})(be,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,s=n.algo,a=[],u=[],c=[],f=s.RabbitLegacy=o.extend({_doReset:function(){var h=this._key.words,y=this.cfg.iv,m=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],E=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var A=0;A<4;A++)x.call(this);for(var A=0;A<8;A++)E[A]^=m[A+4&7];if(y){var R=y.words,w=R[0],_=R[1],B=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,D=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,T=B>>>16|D&4294901760,L=D<<16|B&65535;E[0]^=B,E[1]^=T,E[2]^=D,E[3]^=L,E[4]^=B,E[5]^=T,E[6]^=D,E[7]^=L;for(var A=0;A<4;A++)x.call(this)}},_doProcessBlock:function(h,y){var m=this._X;x.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var E=0;E<4;E++)a[E]=(a[E]<<8|a[E]>>>24)&16711935|(a[E]<<24|a[E]>>>8)&4278255360,h[y+E]^=a[E]},blockSize:128/32,ivSize:64/32});function x(){for(var h=this._X,y=this._C,m=0;m<8;m++)u[m]=y[m];y[0]=y[0]+1295307597+this._b|0,y[1]=y[1]+3545052371+(y[0]>>>0<u[0]>>>0?1:0)|0,y[2]=y[2]+886263092+(y[1]>>>0<u[1]>>>0?1:0)|0,y[3]=y[3]+1295307597+(y[2]>>>0<u[2]>>>0?1:0)|0,y[4]=y[4]+3545052371+(y[3]>>>0<u[3]>>>0?1:0)|0,y[5]=y[5]+886263092+(y[4]>>>0<u[4]>>>0?1:0)|0,y[6]=y[6]+1295307597+(y[5]>>>0<u[5]>>>0?1:0)|0,y[7]=y[7]+3545052371+(y[6]>>>0<u[6]>>>0?1:0)|0,this._b=y[7]>>>0<u[7]>>>0?1:0;for(var m=0;m<8;m++){var E=h[m]+y[m],A=E&65535,R=E>>>16,w=((A*A>>>17)+A*R>>>15)+R*R,_=((E&4294901760)*E|0)+((E&65535)*E|0);c[m]=w^_}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.RabbitLegacy=o._createHelper(f)}(),r.RabbitLegacy})}(Ko)),Ko.exports}var Yo={exports:{}},_s;function $1(){return _s||(_s=1,function(t,e){(function(r,n,i){t.exports=n(Oe(),pr(),xr(),Jt(),tt())})(be,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,s=n.algo;const a=16,u=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[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 f={pbox:[],sbox:[]};function x(A,R){let w=R>>24&255,_=R>>16&255,B=R>>8&255,D=R&255,T=A.sbox[0][w]+A.sbox[1][_];return T=T^A.sbox[2][B],T=T+A.sbox[3][D],T}function h(A,R,w){let _=R,B=w,D;for(let T=0;T<a;++T)_=_^A.pbox[T],B=x(A,_)^B,D=_,_=B,B=D;return D=_,_=B,B=D,B=B^A.pbox[a],_=_^A.pbox[a+1],{left:_,right:B}}function y(A,R,w){let _=R,B=w,D;for(let T=a+1;T>1;--T)_=_^A.pbox[T],B=x(A,_)^B,D=_,_=B,B=D;return D=_,_=B,B=D,B=B^A.pbox[1],_=_^A.pbox[0],{left:_,right:B}}function m(A,R,w){for(let L=0;L<4;L++){A.sbox[L]=[];for(let z=0;z<256;z++)A.sbox[L][z]=c[L][z]}let _=0;for(let L=0;L<a+2;L++)A.pbox[L]=u[L]^R[_],_++,_>=w&&(_=0);let B=0,D=0,T=0;for(let L=0;L<a+2;L+=2)T=h(A,B,D),B=T.left,D=T.right,A.pbox[L]=B,A.pbox[L+1]=D;for(let L=0;L<4;L++)for(let z=0;z<256;z+=2)T=h(A,B,D),B=T.left,D=T.right,A.sbox[L][z]=B,A.sbox[L][z+1]=D;return!0}var E=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var A=this._keyPriorReset=this._key,R=A.words,w=A.sigBytes/4;m(f,R,w)}},encryptBlock:function(A,R){var w=h(f,A[R],A[R+1]);A[R]=w.left,A[R+1]=w.right},decryptBlock:function(A,R){var w=y(f,A[R],A[R+1]);A[R]=w.left,A[R+1]=w.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=o._createHelper(E)}(),r.Blowfish})}(Yo)),Yo.exports}(function(t,e){(function(r,n,i){t.exports=n(Oe(),Ei(),v1(),y1(),pr(),m1(),xr(),su(),L0(),g1(),cu(),E1(),A1(),w1(),k0(),_1(),Jt(),tt(),b1(),C1(),B1(),D1(),S1(),F1(),R1(),I1(),T1(),O1(),P1(),N1(),L1(),k1(),M1(),U1(),$1())})(be,function(r){return r})})(x1);var Se={},Ai={};Ai.byteLength=q1;Ai.toByteArray=V1;Ai.fromByteArray=K1;var Lt=[],gt=[],H1=typeof Uint8Array!="undefined"?Uint8Array:Array,Xo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Rr=0,z1=Xo.length;Rr<z1;++Rr)Lt[Rr]=Xo[Rr],gt[Xo.charCodeAt(Rr)]=Rr;gt[45]=62;gt[95]=63;function uu(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 q1(t){var e=uu(t),r=e[0],n=e[1];return(r+n)*3/4-n}function W1(t,e,r){return(e+r)*3/4-r}function V1(t){var e,r=uu(t),n=r[0],i=r[1],o=new H1(W1(t,n,i)),s=0,a=i>0?n-4:n,u;for(u=0;u<a;u+=4)e=gt[t.charCodeAt(u)]<<18|gt[t.charCodeAt(u+1)]<<12|gt[t.charCodeAt(u+2)]<<6|gt[t.charCodeAt(u+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=gt[t.charCodeAt(u)]<<2|gt[t.charCodeAt(u+1)]>>4,o[s++]=e&255),i===1&&(e=gt[t.charCodeAt(u)]<<10|gt[t.charCodeAt(u+1)]<<4|gt[t.charCodeAt(u+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function G1(t){return Lt[t>>18&63]+Lt[t>>12&63]+Lt[t>>6&63]+Lt[t&63]}function j1(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(G1(n));return i.join("")}function K1(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(j1(t,s,s+o>a?a:s+o));return n===1?(e=t[r-1],i.push(Lt[e>>2]+Lt[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Lt[e>>10]+Lt[e>>4&63]+Lt[e<<2&63]+"=")),i.join("")}var M0={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */M0.read=function(t,e,r,n,i){var o,s,a=i*8-n-1,u=(1<<a)-1,c=u>>1,f=-7,x=r?i-1:0,h=r?-1:1,y=t[e+x];for(x+=h,o=y&(1<<-f)-1,y>>=-f,f+=a;f>0;o=o*256+t[e+x],x+=h,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=n;f>0;s=s*256+t[e+x],x+=h,f-=8);if(o===0)o=1-c;else{if(o===u)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-c}return(y?-1:1)*s*Math.pow(2,o-n)};M0.write=function(t,e,r,n,i,o){var s,a,u,c=o*8-i-1,f=(1<<c)-1,x=f>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:o-1,m=n?1:-1,E=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+x>=1?e+=h/u:e+=h*Math.pow(2,1-x),e*u>=2&&(s++,u/=2),s+x>=f?(a=0,s=f):s+x>=1?(a=(e*u-1)*Math.pow(2,i),s=s+x):(a=e*Math.pow(2,x-1)*Math.pow(2,i),s=0));i>=8;t[r+y]=a&255,y+=m,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;t[r+y]=s&255,y+=m,s/=256,c-=8);t[r+y-m]|=E*128};/*!
|
|
30
30
|
* The buffer module from node.js, for the browser.
|
|
31
31
|
*
|
|
32
32
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
33
33
|
* @license MIT
|
|
34
|
-
*/(function(t){var e=Ai,r=U0,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=w,t.INSPECT_MAX_BYTES=50;var i=2147483647;t.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=o(),!a.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 F=new Uint8Array(1),f={foo:function(){return 42}};return Object.setPrototypeOf(f,Uint8Array.prototype),Object.setPrototypeOf(F,f),F.foo()===42}catch(d){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(F){if(F>i)throw new RangeError('The value "'+F+'" is invalid for option "size"');var f=new Uint8Array(F);return Object.setPrototypeOf(f,a.prototype),f}function a(F,f,d){if(typeof F=="number"){if(typeof f=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(F)}return l(F,f,d)}a.poolSize=8192;function l(F,f,d){if(typeof F=="string")return h(F,f);if(ArrayBuffer.isView(F))return m(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(Fe(F,ArrayBuffer)||F&&Fe(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Fe(F,SharedArrayBuffer)||F&&Fe(F.buffer,SharedArrayBuffer)))return E(F,f,d);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var v=F.valueOf&&F.valueOf();if(v!=null&&v!==F)return a.from(v,f,d);var I=A(F);if(I)return I;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return a.from(F[Symbol.toPrimitive]("string"),f,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}a.from=function(F,f,d){return l(F,f,d)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function c(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function u(F,f,d){return c(F),F<=0?s(F):f!==void 0?typeof d=="string"?s(F).fill(f,d):s(F).fill(f):s(F)}a.alloc=function(F,f,d){return u(F,f,d)};function x(F){return c(F),s(F<0?0:R(F)|0)}a.allocUnsafe=function(F){return x(F)},a.allocUnsafeSlow=function(F){return x(F)};function h(F,f){if((typeof f!="string"||f==="")&&(f="utf8"),!a.isEncoding(f))throw new TypeError("Unknown encoding: "+f);var d=_(F,f)|0,v=s(d),I=v.write(F,f);return I!==d&&(v=v.slice(0,I)),v}function y(F){for(var f=F.length<0?0:R(F.length)|0,d=s(f),v=0;v<f;v+=1)d[v]=F[v]&255;return d}function m(F){if(Fe(F,Uint8Array)){var f=new Uint8Array(F);return E(f.buffer,f.byteOffset,f.byteLength)}return y(F)}function E(F,f,d){if(f<0||F.byteLength<f)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<f+(d||0))throw new RangeError('"length" is outside of buffer bounds');var v;return f===void 0&&d===void 0?v=new Uint8Array(F):d===void 0?v=new Uint8Array(F,f):v=new Uint8Array(F,f,d),Object.setPrototypeOf(v,a.prototype),v}function A(F){if(a.isBuffer(F)){var f=R(F.length)|0,d=s(f);return d.length===0||F.copy(d,0,0,f),d}if(F.length!==void 0)return typeof F.length!="number"||ze(F.length)?s(0):y(F);if(F.type==="Buffer"&&Array.isArray(F.data))return y(F.data)}function R(F){if(F>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return F|0}function w(F){return+F!=F&&(F=0),a.alloc(+F)}a.isBuffer=function(f){return f!=null&&f._isBuffer===!0&&f!==a.prototype},a.compare=function(f,d){if(Fe(f,Uint8Array)&&(f=a.from(f,f.offset,f.byteLength)),Fe(d,Uint8Array)&&(d=a.from(d,d.offset,d.byteLength)),!a.isBuffer(f)||!a.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(f===d)return 0;for(var v=f.length,I=d.length,W=0,K=Math.min(v,I);W<K;++W)if(f[W]!==d[W]){v=f[W],I=d[W];break}return v<I?-1:I<v?1:0},a.isEncoding=function(f){switch(String(f).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}},a.concat=function(f,d){if(!Array.isArray(f))throw new TypeError('"list" argument must be an Array of Buffers');if(f.length===0)return a.alloc(0);var v;if(d===void 0)for(d=0,v=0;v<f.length;++v)d+=f[v].length;var I=a.allocUnsafe(d),W=0;for(v=0;v<f.length;++v){var K=f[v];if(Fe(K,Uint8Array))W+K.length>I.length?a.from(K).copy(I,W):Uint8Array.prototype.set.call(I,K,W);else if(a.isBuffer(K))K.copy(I,W);else throw new TypeError('"list" argument must be an Array of Buffers');W+=K.length}return I};function _(F,f){if(a.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||Fe(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);var d=F.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&d===0)return 0;for(var I=!1;;)switch(f){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return ve(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return He(F).length;default:if(I)return v?-1:ve(F).length;f=(""+f).toLowerCase(),I=!0}}a.byteLength=_;function D(F,f,d){var v=!1;if((f===void 0||f<0)&&(f=0),f>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,f>>>=0,d<=f))return"";for(F||(F="utf8");;)switch(F){case"hex":return he(this,f,d);case"utf8":case"utf-8":return te(this,f,d);case"ascii":return oe(this,f,d);case"latin1":case"binary":return ie(this,f,d);case"base64":return X(this,f,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,f,d);default:if(v)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),v=!0}}a.prototype._isBuffer=!0;function C(F,f,d){var v=F[f];F[f]=F[d],F[d]=v}a.prototype.swap16=function(){var f=this.length;if(f%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<f;d+=2)C(this,d,d+1);return this},a.prototype.swap32=function(){var f=this.length;if(f%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<f;d+=4)C(this,d,d+3),C(this,d+1,d+2);return this},a.prototype.swap64=function(){var f=this.length;if(f%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<f;d+=8)C(this,d,d+7),C(this,d+1,d+6),C(this,d+2,d+5),C(this,d+3,d+4);return this},a.prototype.toString=function(){var f=this.length;return f===0?"":arguments.length===0?te(this,0,f):D.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(f){if(!a.isBuffer(f))throw new TypeError("Argument must be a Buffer");return this===f?!0:a.compare(this,f)===0},a.prototype.inspect=function(){var f="",d=t.INSPECT_MAX_BYTES;return f=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(f+=" ... "),"<Buffer "+f+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(f,d,v,I,W){if(Fe(f,Uint8Array)&&(f=a.from(f,f.offset,f.byteLength)),!a.isBuffer(f))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof f);if(d===void 0&&(d=0),v===void 0&&(v=f?f.length:0),I===void 0&&(I=0),W===void 0&&(W=this.length),d<0||v>f.length||I<0||W>this.length)throw new RangeError("out of range index");if(I>=W&&d>=v)return 0;if(I>=W)return-1;if(d>=v)return 1;if(d>>>=0,v>>>=0,I>>>=0,W>>>=0,this===f)return 0;for(var K=W-I,pe=v-d,_e=Math.min(K,pe),we=this.slice(I,W),Ce=f.slice(d,v),Te=0;Te<_e;++Te)if(we[Te]!==Ce[Te]){K=we[Te],pe=Ce[Te];break}return K<pe?-1:pe<K?1:0};function T(F,f,d,v,I){if(F.length===0)return-1;if(typeof d=="string"?(v=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,ze(d)&&(d=I?0:F.length-1),d<0&&(d=F.length+d),d>=F.length){if(I)return-1;d=F.length-1}else if(d<0)if(I)d=0;else return-1;if(typeof f=="string"&&(f=a.from(f,v)),a.isBuffer(f))return f.length===0?-1:L(F,f,d,v,I);if(typeof f=="number")return f=f&255,typeof Uint8Array.prototype.indexOf=="function"?I?Uint8Array.prototype.indexOf.call(F,f,d):Uint8Array.prototype.lastIndexOf.call(F,f,d):L(F,[f],d,v,I);throw new TypeError("val must be string, number or Buffer")}function L(F,f,d,v,I){var W=1,K=F.length,pe=f.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(F.length<2||f.length<2)return-1;W=2,K/=2,pe/=2,d/=2}function _e(Bt,Dt){return W===1?Bt[Dt]:Bt.readUInt16BE(Dt*W)}var we;if(I){var Ce=-1;for(we=d;we<K;we++)if(_e(F,we)===_e(f,Ce===-1?0:we-Ce)){if(Ce===-1&&(Ce=we),we-Ce+1===pe)return Ce*W}else Ce!==-1&&(we-=we-Ce),Ce=-1}else for(d+pe>K&&(d=K-pe),we=d;we>=0;we--){for(var Te=!0,ut=0;ut<pe;ut++)if(_e(F,we+ut)!==_e(f,ut)){Te=!1;break}if(Te)return we}return-1}a.prototype.includes=function(f,d,v){return this.indexOf(f,d,v)!==-1},a.prototype.indexOf=function(f,d,v){return T(this,f,d,v,!0)},a.prototype.lastIndexOf=function(f,d,v){return T(this,f,d,v,!1)};function H(F,f,d,v){d=Number(d)||0;var I=F.length-d;v?(v=Number(v),v>I&&(v=I)):v=I;var W=f.length;v>W/2&&(v=W/2);for(var K=0;K<v;++K){var pe=parseInt(f.substr(K*2,2),16);if(ze(pe))return K;F[d+K]=pe}return K}function Z(F,f,d,v){return $e(ve(f,F.length-d),F,d,v)}function O(F,f,d,v){return $e(Ae(f),F,d,v)}function k(F,f,d,v){return $e(He(f),F,d,v)}function V(F,f,d,v){return $e(Ie(f,F.length-d),F,d,v)}a.prototype.write=function(f,d,v,I){if(d===void 0)I="utf8",v=this.length,d=0;else if(v===void 0&&typeof d=="string")I=d,v=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(v)?(v=v>>>0,I===void 0&&(I="utf8")):(I=v,v=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var W=this.length-d;if((v===void 0||v>W)&&(v=W),f.length>0&&(v<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");for(var K=!1;;)switch(I){case"hex":return H(this,f,d,v);case"utf8":case"utf-8":return Z(this,f,d,v);case"ascii":case"latin1":case"binary":return O(this,f,d,v);case"base64":return k(this,f,d,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,f,d,v);default:if(K)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),K=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X(F,f,d){return f===0&&d===F.length?e.fromByteArray(F):e.fromByteArray(F.slice(f,d))}function te(F,f,d){d=Math.min(F.length,d);for(var v=[],I=f;I<d;){var W=F[I],K=null,pe=W>239?4:W>223?3:W>191?2:1;if(I+pe<=d){var _e,we,Ce,Te;switch(pe){case 1:W<128&&(K=W);break;case 2:_e=F[I+1],(_e&192)===128&&(Te=(W&31)<<6|_e&63,Te>127&&(K=Te));break;case 3:_e=F[I+1],we=F[I+2],(_e&192)===128&&(we&192)===128&&(Te=(W&15)<<12|(_e&63)<<6|we&63,Te>2047&&(Te<55296||Te>57343)&&(K=Te));break;case 4:_e=F[I+1],we=F[I+2],Ce=F[I+3],(_e&192)===128&&(we&192)===128&&(Ce&192)===128&&(Te=(W&15)<<18|(_e&63)<<12|(we&63)<<6|Ce&63,Te>65535&&Te<1114112&&(K=Te))}}K===null?(K=65533,pe=1):K>65535&&(K-=65536,v.push(K>>>10&1023|55296),K=56320|K&1023),v.push(K),I+=pe}return Q(v)}var Y=4096;function Q(F){var f=F.length;if(f<=Y)return String.fromCharCode.apply(String,F);for(var d="",v=0;v<f;)d+=String.fromCharCode.apply(String,F.slice(v,v+=Y));return d}function oe(F,f,d){var v="";d=Math.min(F.length,d);for(var I=f;I<d;++I)v+=String.fromCharCode(F[I]&127);return v}function ie(F,f,d){var v="";d=Math.min(F.length,d);for(var I=f;I<d;++I)v+=String.fromCharCode(F[I]);return v}function he(F,f,d){var v=F.length;(!f||f<0)&&(f=0),(!d||d<0||d>v)&&(d=v);for(var I="",W=f;W<d;++W)I+=qe[F[W]];return I}function ue(F,f,d){for(var v=F.slice(f,d),I="",W=0;W<v.length-1;W+=2)I+=String.fromCharCode(v[W]+v[W+1]*256);return I}a.prototype.slice=function(f,d){var v=this.length;f=~~f,d=d===void 0?v:~~d,f<0?(f+=v,f<0&&(f=0)):f>v&&(f=v),d<0?(d+=v,d<0&&(d=0)):d>v&&(d=v),d<f&&(d=f);var I=this.subarray(f,d);return Object.setPrototypeOf(I,a.prototype),I};function z(F,f,d){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+f>d)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(f,d,v){f=f>>>0,d=d>>>0,v||z(f,d,this.length);for(var I=this[f],W=1,K=0;++K<d&&(W*=256);)I+=this[f+K]*W;return I},a.prototype.readUintBE=a.prototype.readUIntBE=function(f,d,v){f=f>>>0,d=d>>>0,v||z(f,d,this.length);for(var I=this[f+--d],W=1;d>0&&(W*=256);)I+=this[f+--d]*W;return I},a.prototype.readUint8=a.prototype.readUInt8=function(f,d){return f=f>>>0,d||z(f,1,this.length),this[f]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(f,d){return f=f>>>0,d||z(f,2,this.length),this[f]|this[f+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(f,d){return f=f>>>0,d||z(f,2,this.length),this[f]<<8|this[f+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(f,d){return f=f>>>0,d||z(f,4,this.length),(this[f]|this[f+1]<<8|this[f+2]<<16)+this[f+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(f,d){return f=f>>>0,d||z(f,4,this.length),this[f]*16777216+(this[f+1]<<16|this[f+2]<<8|this[f+3])},a.prototype.readIntLE=function(f,d,v){f=f>>>0,d=d>>>0,v||z(f,d,this.length);for(var I=this[f],W=1,K=0;++K<d&&(W*=256);)I+=this[f+K]*W;return W*=128,I>=W&&(I-=Math.pow(2,8*d)),I},a.prototype.readIntBE=function(f,d,v){f=f>>>0,d=d>>>0,v||z(f,d,this.length);for(var I=d,W=1,K=this[f+--I];I>0&&(W*=256);)K+=this[f+--I]*W;return W*=128,K>=W&&(K-=Math.pow(2,8*d)),K},a.prototype.readInt8=function(f,d){return f=f>>>0,d||z(f,1,this.length),this[f]&128?(255-this[f]+1)*-1:this[f]},a.prototype.readInt16LE=function(f,d){f=f>>>0,d||z(f,2,this.length);var v=this[f]|this[f+1]<<8;return v&32768?v|4294901760:v},a.prototype.readInt16BE=function(f,d){f=f>>>0,d||z(f,2,this.length);var v=this[f+1]|this[f]<<8;return v&32768?v|4294901760:v},a.prototype.readInt32LE=function(f,d){return f=f>>>0,d||z(f,4,this.length),this[f]|this[f+1]<<8|this[f+2]<<16|this[f+3]<<24},a.prototype.readInt32BE=function(f,d){return f=f>>>0,d||z(f,4,this.length),this[f]<<24|this[f+1]<<16|this[f+2]<<8|this[f+3]},a.prototype.readFloatLE=function(f,d){return f=f>>>0,d||z(f,4,this.length),r.read(this,f,!0,23,4)},a.prototype.readFloatBE=function(f,d){return f=f>>>0,d||z(f,4,this.length),r.read(this,f,!1,23,4)},a.prototype.readDoubleLE=function(f,d){return f=f>>>0,d||z(f,8,this.length),r.read(this,f,!0,52,8)},a.prototype.readDoubleBE=function(f,d){return f=f>>>0,d||z(f,8,this.length),r.read(this,f,!1,52,8)};function j(F,f,d,v,I,W){if(!a.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>I||f<W)throw new RangeError('"value" argument is out of bounds');if(d+v>F.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(f,d,v,I){if(f=+f,d=d>>>0,v=v>>>0,!I){var W=Math.pow(2,8*v)-1;j(this,f,d,v,W,0)}var K=1,pe=0;for(this[d]=f&255;++pe<v&&(K*=256);)this[d+pe]=f/K&255;return d+v},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(f,d,v,I){if(f=+f,d=d>>>0,v=v>>>0,!I){var W=Math.pow(2,8*v)-1;j(this,f,d,v,W,0)}var K=v-1,pe=1;for(this[d+K]=f&255;--K>=0&&(pe*=256);)this[d+K]=f/pe&255;return d+v},a.prototype.writeUint8=a.prototype.writeUInt8=function(f,d,v){return f=+f,d=d>>>0,v||j(this,f,d,1,255,0),this[d]=f&255,d+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(f,d,v){return f=+f,d=d>>>0,v||j(this,f,d,2,65535,0),this[d]=f&255,this[d+1]=f>>>8,d+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(f,d,v){return f=+f,d=d>>>0,v||j(this,f,d,2,65535,0),this[d]=f>>>8,this[d+1]=f&255,d+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(f,d,v){return f=+f,d=d>>>0,v||j(this,f,d,4,4294967295,0),this[d+3]=f>>>24,this[d+2]=f>>>16,this[d+1]=f>>>8,this[d]=f&255,d+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(f,d,v){return f=+f,d=d>>>0,v||j(this,f,d,4,4294967295,0),this[d]=f>>>24,this[d+1]=f>>>16,this[d+2]=f>>>8,this[d+3]=f&255,d+4},a.prototype.writeIntLE=function(f,d,v,I){if(f=+f,d=d>>>0,!I){var W=Math.pow(2,8*v-1);j(this,f,d,v,W-1,-W)}var K=0,pe=1,_e=0;for(this[d]=f&255;++K<v&&(pe*=256);)f<0&&_e===0&&this[d+K-1]!==0&&(_e=1),this[d+K]=(f/pe>>0)-_e&255;return d+v},a.prototype.writeIntBE=function(f,d,v,I){if(f=+f,d=d>>>0,!I){var W=Math.pow(2,8*v-1);j(this,f,d,v,W-1,-W)}var K=v-1,pe=1,_e=0;for(this[d+K]=f&255;--K>=0&&(pe*=256);)f<0&&_e===0&&this[d+K+1]!==0&&(_e=1),this[d+K]=(f/pe>>0)-_e&255;return d+v},a.prototype.writeInt8=function(f,d,v){return f=+f,d=d>>>0,v||j(this,f,d,1,127,-128),f<0&&(f=255+f+1),this[d]=f&255,d+1},a.prototype.writeInt16LE=function(f,d,v){return f=+f,d=d>>>0,v||j(this,f,d,2,32767,-32768),this[d]=f&255,this[d+1]=f>>>8,d+2},a.prototype.writeInt16BE=function(f,d,v){return f=+f,d=d>>>0,v||j(this,f,d,2,32767,-32768),this[d]=f>>>8,this[d+1]=f&255,d+2},a.prototype.writeInt32LE=function(f,d,v){return f=+f,d=d>>>0,v||j(this,f,d,4,2147483647,-2147483648),this[d]=f&255,this[d+1]=f>>>8,this[d+2]=f>>>16,this[d+3]=f>>>24,d+4},a.prototype.writeInt32BE=function(f,d,v){return f=+f,d=d>>>0,v||j(this,f,d,4,2147483647,-2147483648),f<0&&(f=4294967295+f+1),this[d]=f>>>24,this[d+1]=f>>>16,this[d+2]=f>>>8,this[d+3]=f&255,d+4};function re(F,f,d,v,I,W){if(d+v>F.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function J(F,f,d,v,I){return f=+f,d=d>>>0,I||re(F,f,d,4),r.write(F,f,d,v,23,4),d+4}a.prototype.writeFloatLE=function(f,d,v){return J(this,f,d,!0,v)},a.prototype.writeFloatBE=function(f,d,v){return J(this,f,d,!1,v)};function ge(F,f,d,v,I){return f=+f,d=d>>>0,I||re(F,f,d,8),r.write(F,f,d,v,52,8),d+8}a.prototype.writeDoubleLE=function(f,d,v){return ge(this,f,d,!0,v)},a.prototype.writeDoubleBE=function(f,d,v){return ge(this,f,d,!1,v)},a.prototype.copy=function(f,d,v,I){if(!a.isBuffer(f))throw new TypeError("argument should be a Buffer");if(v||(v=0),!I&&I!==0&&(I=this.length),d>=f.length&&(d=f.length),d||(d=0),I>0&&I<v&&(I=v),I===v||f.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(v<0||v>=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),f.length-d<I-v&&(I=f.length-d+v);var W=I-v;return this===f&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,v,I):Uint8Array.prototype.set.call(f,this.subarray(v,I),d),W},a.prototype.fill=function(f,d,v,I){if(typeof f=="string"){if(typeof d=="string"?(I=d,d=0,v=this.length):typeof v=="string"&&(I=v,v=this.length),I!==void 0&&typeof I!="string")throw new TypeError("encoding must be a string");if(typeof I=="string"&&!a.isEncoding(I))throw new TypeError("Unknown encoding: "+I);if(f.length===1){var W=f.charCodeAt(0);(I==="utf8"&&W<128||I==="latin1")&&(f=W)}}else typeof f=="number"?f=f&255:typeof f=="boolean"&&(f=Number(f));if(d<0||this.length<d||this.length<v)throw new RangeError("Out of range index");if(v<=d)return this;d=d>>>0,v=v===void 0?this.length:v>>>0,f||(f=0);var K;if(typeof f=="number")for(K=d;K<v;++K)this[K]=f;else{var pe=a.isBuffer(f)?f:a.from(f,I),_e=pe.length;if(_e===0)throw new TypeError('The value "'+f+'" is invalid for argument "value"');for(K=0;K<v-d;++K)this[K+d]=pe[K%_e]}return this};var Ee=/[^+/0-9A-Za-z-_]/g;function Pe(F){if(F=F.split("=")[0],F=F.trim().replace(Ee,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function ve(F,f){f=f||1/0;for(var d,v=F.length,I=null,W=[],K=0;K<v;++K){if(d=F.charCodeAt(K),d>55295&&d<57344){if(!I){if(d>56319){(f-=3)>-1&&W.push(239,191,189);continue}else if(K+1===v){(f-=3)>-1&&W.push(239,191,189);continue}I=d;continue}if(d<56320){(f-=3)>-1&&W.push(239,191,189),I=d;continue}d=(I-55296<<10|d-56320)+65536}else I&&(f-=3)>-1&&W.push(239,191,189);if(I=null,d<128){if((f-=1)<0)break;W.push(d)}else if(d<2048){if((f-=2)<0)break;W.push(d>>6|192,d&63|128)}else if(d<65536){if((f-=3)<0)break;W.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((f-=4)<0)break;W.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return W}function Ae(F){for(var f=[],d=0;d<F.length;++d)f.push(F.charCodeAt(d)&255);return f}function Ie(F,f){for(var d,v,I,W=[],K=0;K<F.length&&!((f-=2)<0);++K)d=F.charCodeAt(K),v=d>>8,I=d%256,W.push(I),W.push(v);return W}function He(F){return e.toByteArray(Pe(F))}function $e(F,f,d,v){for(var I=0;I<v&&!(I+d>=f.length||I>=F.length);++I)f[I+d]=F[I];return I}function Fe(F,f){return F instanceof f||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===f.name}function ze(F){return F!==F}var qe=function(){for(var F="0123456789abcdef",f=new Array(256),d=0;d<16;++d)for(var v=d*16,I=0;I<16;++I)f[v+I]=F[d]+F[I];return f}()})(Se);var Y1=Se.Buffer,X1=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(Y1.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 pn=C0(X1);var lu={exports:{}};(function(t,e){(function(){var r,n=0xdeadbeefcafe,i=(n&16777215)==15715070;function o(p,g,B){p!=null&&(typeof p=="number"?this.fromNumber(p,g,B):g==null&&typeof p!="string"?this.fromString(p,256):this.fromString(p,g))}function s(){return new o(null)}function a(p,g,B,$,ne,se){for(;--se>=0;){var de=g*this[p++]+B[$]+ne;ne=Math.floor(de/67108864),B[$++]=de&67108863}return ne}function l(p,g,B,$,ne,se){for(var de=g&32767,xe=g>>15;--se>=0;){var Me=this[p]&32767,Qe=this[p++]>>15,yt=xe*Me+Qe*de;Me=de*Me+((yt&32767)<<15)+B[$]+(ne&1073741823),ne=(Me>>>30)+(yt>>>15)+xe*Qe+(ne>>>30),B[$++]=Me&1073741823}return ne}function c(p,g,B,$,ne,se){for(var de=g&16383,xe=g>>14;--se>=0;){var Me=this[p]&16383,Qe=this[p++]>>14,yt=xe*Me+Qe*de;Me=de*Me+((yt&16383)<<14)+B[$]+ne,ne=(Me>>28)+(yt>>14)+xe*Qe,B[$++]=Me&268435455}return ne}var u=typeof navigator!="undefined";u&&i&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=l,r=30):u&&i&&navigator.appName!="Netscape"?(o.prototype.am=a,r=26):(o.prototype.am=c,r=28),o.prototype.DB=r,o.prototype.DM=(1<<r)-1,o.prototype.DV=1<<r;var x=52;o.prototype.FV=Math.pow(2,x),o.prototype.F1=x-r,o.prototype.F2=2*r-x;var h="0123456789abcdefghijklmnopqrstuvwxyz",y=new Array,m,E;for(m=48,E=0;E<=9;++E)y[m++]=E;for(m=97,E=10;E<36;++E)y[m++]=E;for(m=65,E=10;E<36;++E)y[m++]=E;function A(p){return h.charAt(p)}function R(p,g){var B=y[p.charCodeAt(g)];return B==null?-1:B}function w(p){for(var g=this.t-1;g>=0;--g)p[g]=this[g];p.t=this.t,p.s=this.s}function _(p){this.t=1,this.s=p<0?-1:0,p>0?this[0]=p:p<-1?this[0]=p+this.DV:this.t=0}function D(p){var g=s();return g.fromInt(p),g}function C(p,g){var B;if(g==16)B=4;else if(g==8)B=3;else if(g==256)B=8;else if(g==2)B=1;else if(g==32)B=5;else if(g==4)B=2;else{this.fromRadix(p,g);return}this.t=0,this.s=0;for(var $=p.length,ne=!1,se=0;--$>=0;){var de=B==8?p[$]&255:R(p,$);if(de<0){p.charAt($)=="-"&&(ne=!0);continue}ne=!1,se==0?this[this.t++]=de:se+B>this.DB?(this[this.t-1]|=(de&(1<<this.DB-se)-1)<<se,this[this.t++]=de>>this.DB-se):this[this.t-1]|=de<<se,se+=B,se>=this.DB&&(se-=this.DB)}B==8&&p[0]&128&&(this.s=-1,se>0&&(this[this.t-1]|=(1<<this.DB-se)-1<<se)),this.clamp(),ne&&o.ZERO.subTo(this,this)}function T(){for(var p=this.s&this.DM;this.t>0&&this[this.t-1]==p;)--this.t}function L(p){if(this.s<0)return"-"+this.negate().toString(p);var g;if(p==16)g=4;else if(p==8)g=3;else if(p==2)g=1;else if(p==32)g=5;else if(p==4)g=2;else return this.toRadix(p);var B=(1<<g)-1,$,ne=!1,se="",de=this.t,xe=this.DB-de*this.DB%g;if(de-- >0)for(xe<this.DB&&($=this[de]>>xe)>0&&(ne=!0,se=A($));de>=0;)xe<g?($=(this[de]&(1<<xe)-1)<<g-xe,$|=this[--de]>>(xe+=this.DB-g)):($=this[de]>>(xe-=g)&B,xe<=0&&(xe+=this.DB,--de)),$>0&&(ne=!0),ne&&(se+=A($));return ne?se:"0"}function H(){var p=s();return o.ZERO.subTo(this,p),p}function Z(){return this.s<0?this.negate():this}function O(p){var g=this.s-p.s;if(g!=0)return g;var B=this.t;if(g=B-p.t,g!=0)return this.s<0?-g:g;for(;--B>=0;)if((g=this[B]-p[B])!=0)return g;return 0}function k(p){var g=1,B;return(B=p>>>16)!=0&&(p=B,g+=16),(B=p>>8)!=0&&(p=B,g+=8),(B=p>>4)!=0&&(p=B,g+=4),(B=p>>2)!=0&&(p=B,g+=2),(B=p>>1)!=0&&(p=B,g+=1),g}function V(){return this.t<=0?0:this.DB*(this.t-1)+k(this[this.t-1]^this.s&this.DM)}function X(p,g){var B;for(B=this.t-1;B>=0;--B)g[B+p]=this[B];for(B=p-1;B>=0;--B)g[B]=0;g.t=this.t+p,g.s=this.s}function te(p,g){for(var B=p;B<this.t;++B)g[B-p]=this[B];g.t=Math.max(this.t-p,0),g.s=this.s}function Y(p,g){var B=p%this.DB,$=this.DB-B,ne=(1<<$)-1,se=Math.floor(p/this.DB),de=this.s<<B&this.DM,xe;for(xe=this.t-1;xe>=0;--xe)g[xe+se+1]=this[xe]>>$|de,de=(this[xe]&ne)<<B;for(xe=se-1;xe>=0;--xe)g[xe]=0;g[se]=de,g.t=this.t+se+1,g.s=this.s,g.clamp()}function Q(p,g){g.s=this.s;var B=Math.floor(p/this.DB);if(B>=this.t){g.t=0;return}var $=p%this.DB,ne=this.DB-$,se=(1<<$)-1;g[0]=this[B]>>$;for(var de=B+1;de<this.t;++de)g[de-B-1]|=(this[de]&se)<<ne,g[de-B]=this[de]>>$;$>0&&(g[this.t-B-1]|=(this.s&se)<<ne),g.t=this.t-B,g.clamp()}function oe(p,g){for(var B=0,$=0,ne=Math.min(p.t,this.t);B<ne;)$+=this[B]-p[B],g[B++]=$&this.DM,$>>=this.DB;if(p.t<this.t){for($-=p.s;B<this.t;)$+=this[B],g[B++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;B<p.t;)$-=p[B],g[B++]=$&this.DM,$>>=this.DB;$-=p.s}g.s=$<0?-1:0,$<-1?g[B++]=this.DV+$:$>0&&(g[B++]=$),g.t=B,g.clamp()}function ie(p,g){var B=this.abs(),$=p.abs(),ne=B.t;for(g.t=ne+$.t;--ne>=0;)g[ne]=0;for(ne=0;ne<$.t;++ne)g[ne+B.t]=B.am(0,$[ne],g,ne,0,B.t);g.s=0,g.clamp(),this.s!=p.s&&o.ZERO.subTo(g,g)}function he(p){for(var g=this.abs(),B=p.t=2*g.t;--B>=0;)p[B]=0;for(B=0;B<g.t-1;++B){var $=g.am(B,g[B],p,2*B,0,1);(p[B+g.t]+=g.am(B+1,2*g[B],p,2*B+1,$,g.t-B-1))>=g.DV&&(p[B+g.t]-=g.DV,p[B+g.t+1]=1)}p.t>0&&(p[p.t-1]+=g.am(B,g[B],p,2*B,0,1)),p.s=0,p.clamp()}function ue(p,g,B){var $=p.abs();if(!($.t<=0)){var ne=this.abs();if(ne.t<$.t){g!=null&&g.fromInt(0),B!=null&&this.copyTo(B);return}B==null&&(B=s());var se=s(),de=this.s,xe=p.s,Me=this.DB-k($[$.t-1]);Me>0?($.lShiftTo(Me,se),ne.lShiftTo(Me,B)):($.copyTo(se),ne.copyTo(B));var Qe=se.t,yt=se[Qe-1];if(yt!=0){var xt=yt*(1<<this.F1)+(Qe>1?se[Qe-2]>>this.F2:0),__$t__=this.FV/xt,Fn=(1<<this.F1)/xt,At=1<<this.F2,wt=B.t,Rn=wt-Qe,Vt=g==null?s():g;for(se.dlShiftTo(Rn,Vt),B.compareTo(Vt)>=0&&(B[B.t++]=1,B.subTo(Vt,B)),o.ONE.dlShiftTo(Qe,Vt),Vt.subTo(se,se);se.t<Qe;)se[se.t++]=0;for(;--Rn>=0;){var Mi=B[--wt]==yt?this.DM:Math.floor(B[wt]*__$t__+(B[wt-1]+At)*Fn);if((B[wt]+=se.am(0,Mi,B,Rn,0,Qe))<Mi)for(se.dlShiftTo(Rn,Vt),B.subTo(Vt,B);B[wt]<--Mi;)B.subTo(Vt,B)}g!=null&&(B.drShiftTo(Qe,g),de!=xe&&o.ZERO.subTo(g,g)),B.t=Qe,B.clamp(),Me>0&&B.rShiftTo(Me,B),de<0&&o.ZERO.subTo(B,B)}}}function z(p){var g=s();return this.abs().divRemTo(p,null,g),this.s<0&&g.compareTo(o.ZERO)>0&&p.subTo(g,g),g}function j(p){this.m=p}function re(p){return p.s<0||p.compareTo(this.m)>=0?p.mod(this.m):p}function J(p){return p}function ge(p){p.divRemTo(this.m,null,p)}function Ee(p,g,B){p.multiplyTo(g,B),this.reduce(B)}function Pe(p,g){p.squareTo(g),this.reduce(g)}j.prototype.convert=re,j.prototype.revert=J,j.prototype.reduce=ge,j.prototype.mulTo=Ee,j.prototype.sqrTo=Pe;function ve(){if(this.t<1)return 0;var p=this[0];if(!(p&1))return 0;var g=p&3;return g=g*(2-(p&15)*g)&15,g=g*(2-(p&255)*g)&255,g=g*(2-((p&65535)*g&65535))&65535,g=g*(2-p*g%this.DV)%this.DV,g>0?this.DV-g:-g}function Ae(p){this.m=p,this.mp=p.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<p.DB-15)-1,this.mt2=2*p.t}function Ie(p){var g=s();return p.abs().dlShiftTo(this.m.t,g),g.divRemTo(this.m,null,g),p.s<0&&g.compareTo(o.ZERO)>0&&this.m.subTo(g,g),g}function He(p){var g=s();return p.copyTo(g),this.reduce(g),g}function $e(p){for(;p.t<=this.mt2;)p[p.t++]=0;for(var g=0;g<this.m.t;++g){var B=p[g]&32767,$=B*this.mpl+((B*this.mph+(p[g]>>15)*this.mpl&this.um)<<15)&p.DM;for(B=g+this.m.t,p[B]+=this.m.am(0,$,p,g,0,this.m.t);p[B]>=p.DV;)p[B]-=p.DV,p[++B]++}p.clamp(),p.drShiftTo(this.m.t,p),p.compareTo(this.m)>=0&&p.subTo(this.m,p)}function Fe(p,g){p.squareTo(g),this.reduce(g)}function ze(p,g,B){p.multiplyTo(g,B),this.reduce(B)}Ae.prototype.convert=Ie,Ae.prototype.revert=He,Ae.prototype.reduce=$e,Ae.prototype.mulTo=ze,Ae.prototype.sqrTo=Fe;function qe(){return(this.t>0?this[0]&1:this.s)==0}function F(p,g){if(p>4294967295||p<1)return o.ONE;var B=s(),$=s(),ne=g.convert(this),se=k(p)-1;for(ne.copyTo(B);--se>=0;)if(g.sqrTo(B,$),(p&1<<se)>0)g.mulTo($,ne,B);else{var de=B;B=$,$=de}return g.revert(B)}function f(p,g){var B;return p<256||g.isEven()?B=new j(g):B=new Ae(g),this.exp(p,B)}o.prototype.copyTo=w,o.prototype.fromInt=_,o.prototype.fromString=C,o.prototype.clamp=T,o.prototype.dlShiftTo=X,o.prototype.drShiftTo=te,o.prototype.lShiftTo=Y,o.prototype.rShiftTo=Q,o.prototype.subTo=oe,o.prototype.multiplyTo=ie,o.prototype.squareTo=he,o.prototype.divRemTo=ue,o.prototype.invDigit=ve,o.prototype.isEven=qe,o.prototype.exp=F,o.prototype.toString=L,o.prototype.negate=H,o.prototype.abs=Z,o.prototype.compareTo=O,o.prototype.bitLength=V,o.prototype.mod=z,o.prototype.modPowInt=f,o.ZERO=D(0),o.ONE=D(1);function d(){var p=s();return this.copyTo(p),p}function v(){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 I(){return this.t==0?this.s:this[0]<<24>>24}function W(){return this.t==0?this.s:this[0]<<16>>16}function K(p){return Math.floor(Math.LN2*this.DB/Math.log(p))}function pe(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function _e(p){if(p==null&&(p=10),this.signum()==0||p<2||p>36)return"0";var g=this.chunkSize(p),B=Math.pow(p,g),$=D(B),ne=s(),se=s(),de="";for(this.divRemTo($,ne,se);ne.signum()>0;)de=(B+se.intValue()).toString(p).substr(1)+de,ne.divRemTo($,ne,se);return se.intValue().toString(p)+de}function we(p,g){this.fromInt(0),g==null&&(g=10);for(var B=this.chunkSize(g),$=Math.pow(g,B),ne=!1,se=0,de=0,xe=0;xe<p.length;++xe){var Me=R(p,xe);if(Me<0){p.charAt(xe)=="-"&&this.signum()==0&&(ne=!0);continue}de=g*de+Me,++se>=B&&(this.dMultiply($),this.dAddOffset(de,0),se=0,de=0)}se>0&&(this.dMultiply(Math.pow(g,se)),this.dAddOffset(de,0)),ne&&o.ZERO.subTo(this,this)}function Ce(p,g,B){if(typeof g=="number")if(p<2)this.fromInt(1);else for(this.fromNumber(p,B),this.testBit(p-1)||this.bitwiseTo(o.ONE.shiftLeft(p-1),Ft,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(g);)this.dAddOffset(2,0),this.bitLength()>p&&this.subTo(o.ONE.shiftLeft(p-1),this);else{var $=new Array,ne=p&7;$.length=(p>>3)+1,g.nextBytes($),ne>0?$[0]&=(1<<ne)-1:$[0]=0,this.fromString($,256)}}function Te(){var p=this.t,g=new Array;g[0]=this.s;var B=this.DB-p*this.DB%8,$,ne=0;if(p-- >0)for(B<this.DB&&($=this[p]>>B)!=(this.s&this.DM)>>B&&(g[ne++]=$|this.s<<this.DB-B);p>=0;)B<8?($=(this[p]&(1<<B)-1)<<8-B,$|=this[--p]>>(B+=this.DB-8)):($=this[p]>>(B-=8)&255,B<=0&&(B+=this.DB,--p)),$&128&&($|=-256),ne==0&&(this.s&128)!=($&128)&&++ne,(ne>0||$!=this.s)&&(g[ne++]=$);return g}function ut(p){return this.compareTo(p)==0}function Bt(p){return this.compareTo(p)<0?this:p}function Dt(p){return this.compareTo(p)>0?this:p}function Et(p,g,B){var $,ne,se=Math.min(p.t,this.t);for($=0;$<se;++$)B[$]=g(this[$],p[$]);if(p.t<this.t){for(ne=p.s&this.DM,$=se;$<this.t;++$)B[$]=g(this[$],ne);B.t=this.t}else{for(ne=this.s&this.DM,$=se;$<p.t;++$)B[$]=g(ne,p[$]);B.t=p.t}B.s=g(this.s,p.s),B.clamp()}function St(p,g){return p&g}function yr(p){var g=s();return this.bitwiseTo(p,St,g),g}function Ft(p,g){return p|g}function mr(p){var g=s();return this.bitwiseTo(p,Ft,g),g}function gr(p,g){return p^g}function Qt(p){var g=s();return this.bitwiseTo(p,gr,g),g}function qt(p,g){return p&~g}function Vr(p){var g=s();return this.bitwiseTo(p,qt,g),g}function pt(){for(var p=s(),g=0;g<this.t;++g)p[g]=this.DM&~this[g];return p.t=this.t,p.s=~this.s,p}function Gr(p){var g=s();return p<0?this.rShiftTo(-p,g):this.lShiftTo(p,g),g}function Er(p){var g=s();return p<0?this.lShiftTo(-p,g):this.rShiftTo(p,g),g}function Ar(p){if(p==0)return-1;var g=0;return p&65535||(p>>=16,g+=16),p&255||(p>>=8,g+=8),p&15||(p>>=4,g+=4),p&3||(p>>=2,g+=2),p&1||++g,g}function jr(){for(var p=0;p<this.t;++p)if(this[p]!=0)return p*this.DB+Ar(this[p]);return this.s<0?this.t*this.DB:-1}function Kr(p){for(var g=0;p!=0;)p&=p-1,++g;return g}function wr(){for(var p=0,g=this.s&this.DM,B=0;B<this.t;++B)p+=Kr(this[B]^g);return p}function Yr(p){var g=Math.floor(p/this.DB);return g>=this.t?this.s!=0:(this[g]&1<<p%this.DB)!=0}function Xr(p,g){var B=o.ONE.shiftLeft(p);return this.bitwiseTo(B,g,B),B}function _r(p){return this.changeBit(p,Ft)}function Jr(p){return this.changeBit(p,qt)}function br(p){return this.changeBit(p,gr)}function rt(p,g){for(var B=0,$=0,ne=Math.min(p.t,this.t);B<ne;)$+=this[B]+p[B],g[B++]=$&this.DM,$>>=this.DB;if(p.t<this.t){for($+=p.s;B<this.t;)$+=this[B],g[B++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;B<p.t;)$+=p[B],g[B++]=$&this.DM,$>>=this.DB;$+=p.s}g.s=$<0?-1:0,$>0?g[B++]=$:$<-1&&(g[B++]=this.DV+$),g.t=B,g.clamp()}function vt(p){var g=s();return this.addTo(p,g),g}function Zt(p){var g=s();return this.subTo(p,g),g}function Qr(p){var g=s();return this.multiplyTo(p,g),g}function wi(){var p=s();return this.squareTo(p),p}function _i(p){var g=s();return this.divRemTo(p,g,null),g}function bi(p){var g=s();return this.divRemTo(p,null,g),g}function Ci(p){var g=s(),B=s();return this.divRemTo(p,g,B),new Array(g,B)}function Bi(p){this[this.t]=this.am(0,p-1,this,0,0,this.t),++this.t,this.clamp()}function Di(p,g){if(p!=0){for(;this.t<=g;)this[this.t++]=0;for(this[g]+=p;this[g]>=this.DV;)this[g]-=this.DV,++g>=this.t&&(this[this.t++]=0),++this[g]}}function er(){}function Bn(p){return p}function Si(p,g,B){p.multiplyTo(g,B)}function Fi(p,g){p.squareTo(g)}er.prototype.convert=Bn,er.prototype.revert=Bn,er.prototype.mulTo=Si,er.prototype.sqrTo=Fi;function Ri(p){return this.exp(p,new er)}function Ii(p,g,B){var $=Math.min(this.t+p.t,g);for(B.s=0,B.t=$;$>0;)B[--$]=0;var ne;for(ne=B.t-this.t;$<ne;++$)B[$+this.t]=this.am(0,p[$],B,$,0,this.t);for(ne=Math.min(p.t,g);$<ne;++$)this.am(0,p[$],B,$,0,g-$);B.clamp()}function Ti(p,g,B){--g;var $=B.t=this.t+p.t-g;for(B.s=0;--$>=0;)B[$]=0;for($=Math.max(g-this.t,0);$<p.t;++$)B[this.t+$-g]=this.am(g-$,p[$],B,0,0,this.t+$-g);B.clamp(),B.drShiftTo(1,B)}function Ut(p){this.r2=s(),this.q3=s(),o.ONE.dlShiftTo(2*p.t,this.r2),this.mu=this.r2.divide(p),this.m=p}function Dn(p){if(p.s<0||p.t>2*this.m.t)return p.mod(this.m);if(p.compareTo(this.m)<0)return p;var g=s();return p.copyTo(g),this.reduce(g),g}function tr(p){return p}function Sn(p){for(p.drShiftTo(this.m.t-1,this.r2),p.t>this.m.t+1&&(p.t=this.m.t+1,p.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);p.compareTo(this.r2)<0;)p.dAddOffset(1,this.m.t+1);for(p.subTo(this.r2,p);p.compareTo(this.m)>=0;)p.subTo(this.m,p)}function Wt(p,g){p.squareTo(g),this.reduce(g)}function Oi(p,g,B){p.multiplyTo(g,B),this.reduce(B)}Ut.prototype.convert=Dn,Ut.prototype.revert=tr,Ut.prototype.reduce=Sn,Ut.prototype.mulTo=Oi,Ut.prototype.sqrTo=Wt;function Cr(p,g){var B=p.bitLength(),$,ne=D(1),se;if(B<=0)return ne;B<18?$=1:B<48?$=3:B<144?$=4:B<768?$=5:$=6,B<8?se=new j(g):g.isEven()?se=new Ut(g):se=new Ae(g);var de=new Array,xe=3,Me=$-1,Qe=(1<<$)-1;if(de[1]=se.convert(this),$>1){var yt=s();for(se.sqrTo(de[1],yt);xe<=Qe;)de[xe]=s(),se.mulTo(yt,de[xe-2],de[xe]),xe+=2}var xt=p.t-1,__$t__,Fn=!0,At=s(),wt;for(B=k(p[xt])-1;xt>=0;){for(B>=Me?__$t__=p[xt]>>B-Me&Qe:(__$t__=(p[xt]&(1<<B+1)-1)<<Me-B,xt>0&&(__$t__|=p[xt-1]>>this.DB+B-Me)),xe=$;!(__$t__&1);)__$t__>>=1,--xe;if((B-=xe)<0&&(B+=this.DB,--xt),Fn)de[__$t__].copyTo(ne),Fn=!1;else{for(;xe>1;)se.sqrTo(ne,At),se.sqrTo(At,ne),xe-=2;xe>0?se.sqrTo(ne,At):(wt=ne,ne=At,At=wt),se.mulTo(At,de[__$t__],ne)}for(;xt>=0&&!(p[xt]&1<<B);)se.sqrTo(ne,At),wt=ne,ne=At,At=wt,--B<0&&(B=this.DB-1,--xt)}return se.revert(ne)}function Zr(p){var g=this.s<0?this.negate():this.clone(),B=p.s<0?p.negate():p.clone();if(g.compareTo(B)<0){var $=g;g=B,B=$}var ne=g.getLowestSetBit(),se=B.getLowestSetBit();if(se<0)return g;for(ne<se&&(se=ne),se>0&&(g.rShiftTo(se,g),B.rShiftTo(se,B));g.signum()>0;)(ne=g.getLowestSetBit())>0&&g.rShiftTo(ne,g),(ne=B.getLowestSetBit())>0&&B.rShiftTo(ne,B),g.compareTo(B)>=0?(g.subTo(B,g),g.rShiftTo(1,g)):(B.subTo(g,B),B.rShiftTo(1,B));return se>0&&B.lShiftTo(se,B),B}function Pi(p){if(p<=0)return 0;var g=this.DV%p,B=this.s<0?p-1:0;if(this.t>0)if(g==0)B=this[0]%p;else for(var $=this.t-1;$>=0;--$)B=(g*B+this[$])%p;return B}function Ni(p){var g=p.isEven();if(this.isEven()&&g||p.signum()==0)return o.ZERO;for(var B=p.clone(),$=this.clone(),ne=D(1),se=D(0),de=D(0),xe=D(1);B.signum()!=0;){for(;B.isEven();)B.rShiftTo(1,B),g?((!ne.isEven()||!se.isEven())&&(ne.addTo(this,ne),se.subTo(p,se)),ne.rShiftTo(1,ne)):se.isEven()||se.subTo(p,se),se.rShiftTo(1,se);for(;$.isEven();)$.rShiftTo(1,$),g?((!de.isEven()||!xe.isEven())&&(de.addTo(this,de),xe.subTo(p,xe)),de.rShiftTo(1,de)):xe.isEven()||xe.subTo(p,xe),xe.rShiftTo(1,xe);B.compareTo($)>=0?(B.subTo($,B),g&&ne.subTo(de,ne),se.subTo(xe,se)):($.subTo(B,$),g&&de.subTo(ne,de),xe.subTo(se,xe))}if($.compareTo(o.ONE)!=0)return o.ZERO;if(xe.compareTo(p)>=0)return xe.subtract(p);if(xe.signum()<0)xe.addTo(p,xe);else return xe;return xe.signum()<0?xe.add(p):xe}var Xe=[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],Li=(1<<26)/Xe[Xe.length-1];function ki(p){var g,B=this.abs();if(B.t==1&&B[0]<=Xe[Xe.length-1]){for(g=0;g<Xe.length;++g)if(B[0]==Xe[g])return!0;return!1}if(B.isEven())return!1;for(g=1;g<Xe.length;){for(var $=Xe[g],ne=g+1;ne<Xe.length&&$<Li;)$*=Xe[ne++];for($=B.modInt($);g<ne;)if($%Xe[g++]==0)return!1}return B.millerRabin(p)}function b(p){var g=this.subtract(o.ONE),B=g.getLowestSetBit();if(B<=0)return!1;var $=g.shiftRight(B);p=p+1>>1,p>Xe.length&&(p=Xe.length);for(var ne=s(),se=0;se<p;++se){ne.fromInt(Xe[Math.floor(Math.random()*Xe.length)]);var de=ne.modPow($,this);if(de.compareTo(o.ONE)!=0&&de.compareTo(g)!=0){for(var xe=1;xe++<B&&de.compareTo(g)!=0;)if(de=de.modPowInt(2,this),de.compareTo(o.ONE)==0)return!1;if(de.compareTo(g)!=0)return!1}}return!0}o.prototype.chunkSize=K,o.prototype.toRadix=_e,o.prototype.fromRadix=we,o.prototype.fromNumber=Ce,o.prototype.bitwiseTo=Et,o.prototype.changeBit=Xr,o.prototype.addTo=rt,o.prototype.dMultiply=Bi,o.prototype.dAddOffset=Di,o.prototype.multiplyLowerTo=Ii,o.prototype.multiplyUpperTo=Ti,o.prototype.modInt=Pi,o.prototype.millerRabin=b,o.prototype.clone=d,o.prototype.intValue=v,o.prototype.byteValue=I,o.prototype.shortValue=W,o.prototype.signum=pe,o.prototype.toByteArray=Te,o.prototype.equals=ut,o.prototype.min=Bt,o.prototype.max=Dt,o.prototype.and=yr,o.prototype.or=mr,o.prototype.xor=Qt,o.prototype.andNot=Vr,o.prototype.not=pt,o.prototype.shiftLeft=Gr,o.prototype.shiftRight=Er,o.prototype.getLowestSetBit=jr,o.prototype.bitCount=wr,o.prototype.testBit=Yr,o.prototype.setBit=_r,o.prototype.clearBit=Jr,o.prototype.flipBit=br,o.prototype.add=vt,o.prototype.subtract=Zt,o.prototype.multiply=Qr,o.prototype.divide=_i,o.prototype.remainder=bi,o.prototype.divideAndRemainder=Ci,o.prototype.modPow=Cr,o.prototype.modInverse=Ni,o.prototype.pow=Ri,o.prototype.gcd=Zr,o.prototype.isProbablePrime=ki,o.prototype.square=wi,o.prototype.Barrett=Ut;var N,S,M;function q(p){S[M++]^=p&255,S[M++]^=p>>8&255,S[M++]^=p>>16&255,S[M++]^=p>>24&255,M>=We&&(M-=We)}function U(){q(new Date().getTime())}if(S==null){S=new Array,M=0;var ee;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var ae=new Uint8Array(32);for(window.crypto.getRandomValues(ae),ee=0;ee<32;++ee)S[M++]=ae[ee]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ce=window.crypto.random(32);for(ee=0;ee<ce.length;++ee)S[M++]=ce.charCodeAt(ee)&255}}for(;M<We;)ee=Math.floor(65536*Math.random()),S[M++]=ee>>>8,S[M++]=ee&255;M=0,U()}function fe(){if(N==null){for(U(),N=Ke(),N.init(S),M=0;M<S.length;++M)S[M]=0;M=0}return N.next()}function le(p){var g;for(g=0;g<p.length;++g)p[g]=fe()}function ye(){}ye.prototype.nextBytes=le;function De(){this.i=0,this.j=0,this.S=new Array}function Ne(p){var g,B,$;for(g=0;g<256;++g)this.S[g]=g;for(B=0,g=0;g<256;++g)B=B+this.S[g]+p[g%p.length]&255,$=this.S[g],this.S[g]=this.S[B],this.S[B]=$;this.i=0,this.j=0}function Le(){var p;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,p=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=p,this.S[p+this.S[this.i]&255]}De.prototype.init=Ne,De.prototype.next=Le;function Ke(){return new De}var We=256;t.exports={default:o,BigInteger:o,SecureRandom:ye}}).call(be)})(lu);var ke=lu.exports,J1=ke.BigInteger.prototype.Barrett;function st(t,e){this.x=e,this.q=t}function ft(t,e,r,n){this.curve=t,this.x=e,this.y=r,this.z=n==null?ke.BigInteger.ONE:n,this.zinv=null}function Ot(t,e,r){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(r),this.infinity=new ft(this,null,null),this.reducer=new J1(this.q)}st.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},st.prototype.toBigInteger=function(){return this.x},st.prototype.negate=function(){return new st(this.q,this.x.negate().mod(this.q))},st.prototype.add=function(t){return new st(this.q,this.x.add(t.toBigInteger()).mod(this.q))},st.prototype.subtract=function(t){return new st(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},st.prototype.multiply=function(t){return new st(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},st.prototype.square=function(){return new st(this.q,this.x.square().mod(this.q))},st.prototype.divide=function(t){return new st(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},ft.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)},ft.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)},ft.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(ke.BigInteger.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(ke.BigInteger.ZERO))},ft.prototype.isInfinity=function(){return this.x==null&&this.y==null||this.z.equals(ke.BigInteger.ZERO)&&!this.y.toBigInteger().equals(ke.BigInteger.ZERO)},ft.prototype.negate=function(){return new ft(this.curve,this.x,this.y.negate(),this.z)},ft.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(ke.BigInteger.ZERO.equals(r))return ke.BigInteger.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new ke.BigInteger("3"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),s=(t.x.toBigInteger(),t.y.toBigInteger(),r.square()),a=s.multiply(r),l=i.multiply(s),c=e.square().multiply(this.z),u=c.subtract(l.shiftLeft(1)).multiply(t.z).subtract(a).multiply(r).mod(this.curve.q),x=l.multiply(n).multiply(e).subtract(o.multiply(a)).subtract(c.multiply(e)).multiply(t.z).add(e.multiply(a)).mod(this.curve.q),h=a.multiply(this.z).multiply(t.z).mod(this.curve.q);return new ft(this.curve,this.curve.fromBigInteger(u),this.curve.fromBigInteger(x),h)},ft.prototype.twice=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var t=new ke.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(),s=e.square().multiply(t);ke.BigInteger.ZERO.equals(o)||(s=s.add(this.z.square().multiply(o)));var a=(s=s.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(n).mod(this.curve.q),l=s.multiply(t).multiply(e).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(s.square().multiply(s)).mod(this.curve.q),c=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new ft(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(l),c)},ft.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 ke.BigInteger("3")),i=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var s=n.testBit(e);s!=r.testBit(e)&&(o=o.add(s?this:i))}return o},ft.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},Ot.prototype.getQ=function(){return this.q},Ot.prototype.getA=function(){return this.a},Ot.prototype.getB=function(){return this.b},Ot.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},Ot.prototype.getInfinity=function(){return this.infinity},Ot.prototype.fromBigInteger=function(t){return new st(this.q,t)},Ot.prototype.reduce=function(t){this.reducer.reduce(t)},Ot.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 ft(this,this.fromBigInteger(new ke.BigInteger(r,16)),this.fromBigInteger(new ke.BigInteger(n,16)));default:return null}},Ot.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 Ze=function(t,e){return t<<(e%=32)|t>>>32-e},Tt=function(t,e){var r=e-t.length;return(r>0?"0".repeat(r):"")+t},Q1=function(t){return t<16?2043430169:2055708042},Z1=function(t,e,r,n){return n<16?t^e^r:t&e|t&r|e&r},ex=function(t,e,r,n){return n<16?t^e^r:t&e|~t&r},tx=function(t,e,r){for(var n,i,o,s,a,l=function(w){var _,D=new Array(132);w.forEach(function(L,H){D[H]=L});for(var C=16;C<68;C++)D[C]=(_=D[C-16]^D[C-9]^Ze(D[C-3],15))^Ze(_,15)^Ze(_,23)^Ze(D[C-13],7)^D[C-6];for(var T=0;T<64;T++)D[T+68]=D[T]^D[T+4];return D}(e),c=t[0],u=t[1],x=t[2],h=t[3],y=t[4],m=t[5],E=t[6],A=t[7],R=0;R<64;R++)i=(n=Ze(Ze(c,12)+y+Ze(Q1(R),R),7))^Ze(c,12),o=Z1(c,u,x,R)+h+i+l[R+68],s=ex(y,m,E,R)+A+n+l[R],h=x,x=Ze(u,9),u=c,c=o,A=E,E=Ze(m,19),m=y,y=(a=s)^Ze(a,9)^Ze(a,17);return[c^t[0],u^t[1],x^t[2],h^t[3],y^t[4],m^t[5],E^t[6],A^t[7]]},d0=function(t,e,r){if(typeof t=="string"?t=Se.Buffer.from(t,e||"utf8"):t instanceof ArrayBuffer&&(t=Se.Buffer.from(t)),!Se.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var n,i,o,s,a,l;n=t,i=Se.Buffer.alloc(1,128),s=Se.Buffer.alloc(o=(o=n.length%64)>=56?64-o%56-1:56-o-1,0),a=Se.Buffer.alloc(8),l=8*n.length,a.writeUInt32BE(Math.floor(l/Math.pow(2,32)),0),a.writeUInt32BE(l%Math.pow(2,32),4);for(var c=(t=Se.Buffer.concat([n,i,s,a],n.length+1+o+8)).length/64,u=new Array(c),x=0;x<c;x++){u[x]=new Array(16);for(var h=0;h<16;h++)u[x][h]=t.readUInt32BE(64*x+4*h)}var y=new Array(c);y[0]=[1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214];for(var m=0;m<c;m++)y[m+1]=tx(y[m],u[m]);var E=Se.Buffer.alloc(32);return y[c].forEach(function(A,R){return E.writeInt32BE(A,4*R)}),r?E.toString(r):pn(E)},Cs=new ke.SecureRandom,$0=function(){var t=new Ot(new ke.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),new ke.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),new ke.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16)),e=t.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:t,G:e,n:new ke.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}(),Bs=$0.curve,Ds=$0.G,Nn=$0.n;function Ss(t,e){for(var r=[],n=Math.ceil(e/32),i=e%32,o=1;o<=n;o++){var s=Se.Buffer.allocUnsafe(4);s.writeUInt32BE(o);var a=d0(Se.Buffer.concat([t,s]));r.push(o===n&&i?Se.Buffer.from(a).slice(0,i):Se.Buffer.from(a))}return Se.Buffer.concat(r,e)}var rx={__proto__:null,constants:{C1C2C3:0,C1C3C2:1,PC:"04"},generateKeyPair:function(){var t=new ke.BigInteger(Nn.bitLength(),Cs).mod(Nn.subtract(new ke.BigInteger("2"))).add(ke.BigInteger.ONE),e=Tt(t.toString(16),64),r=Ds.multiply(t);return{privateKey:e,publicKey:"04"+Tt(r.getX().toBigInteger().toString(16),64)+Tt(r.getY().toBigInteger().toString(16),64)}},encrypt:function(t,e,r){var n=r||{},i=n.mode,o=i===void 0?1:i,s=n.outputEncoding,a=n.pc;if(typeof t=="string"?t=Se.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=Se.Buffer.from(t)),!Se.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var l=new ke.BigInteger(Nn.bitLength(),Cs).mod(Nn.subtract(ke.BigInteger.ONE)).add(ke.BigInteger.ONE),c=Ds.multiply(l),u=Tt(c.getX().toBigInteger().toString(16),64)+Tt(c.getY().toBigInteger().toString(16),64),x=Bs.decodePointHex(e).multiply(l),h=Tt(x.getX().toBigInteger().toString(16),64),y=Tt(x.getY().toBigInteger().toString(16),64),m=Ss(Se.Buffer.from(h+y,"hex"),t.length),E=Tt(new ke.BigInteger(t.toString("hex"),16).xor(new ke.BigInteger(m.toString("hex"),16)).toString(16),2*t.length),A=d0(h+t.toString("hex")+y,"hex","hex"),R=Se.Buffer.from((a?"04":"")+(o===0?u+E+A:u+A+E),"hex");return s?R.toString(s):pn(R)},decrypt:function(t,e,r){var n=r||{},i=n.mode,o=i===void 0?1:i,s=n.outputEncoding,a=n.pc;if(typeof t=="string"?t=Se.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=Se.Buffer.from(t)),!Se.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var l=(t=a?t.slice(1):t).slice(0,32).toString("hex"),c=t.slice(32,64).toString("hex"),u=Bs.decodePointHex("04"+l+c).multiply(new ke.BigInteger(e,16)),x=Tt(u.getX().toBigInteger().toString(16),64),h=Tt(u.getY().toBigInteger().toString(16),64),y=t.slice(64,96),m=t.slice(96);o===0&&(y=t.slice(t.length-32),m=t.slice(64,t.length-32));var E=Ss(Se.Buffer.from(x+h,"hex"),m.length),A=new ke.BigInteger(m.toString("hex"),16).xor(new ke.BigInteger(E.toString("hex"),16)).toString(16),R=d0(x+A+h,"hex","hex")===y.toString("hex")?Se.Buffer.from(A,"hex"):Se.Buffer.alloc(0);return s?R.toString(s):pn(R)}},Ln=[[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]],kn=[2746333894,1453994832,1736282519,2993693404],nx=[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],Mn=/^[0-9a-f]{32}$/i,hu=function(t){return Ln[(4026531840&t)>>>28][(251658240&t)>>>24]<<24|Ln[(15728640&t)>>>20][(983040&t)>>>16]<<16|Ln[(61440&t)>>>12][(3840&t)>>>8]<<8|Ln[(240&t)>>>4][(15&t)>>>0]<<0},du=function(t){return(e=hu(t))^Ze(e,2)^Ze(e,10)^Ze(e,18)^Ze(e,24);var e},pu=function(t){var e,r=new Array(36);r[0]=t[0]^kn[0],r[1]=t[1]^kn[1],r[2]=t[2]^kn[2],r[3]=t[3]^kn[3];for(var n=new Array(32),i=0;i<32;i++)r[i+4]=r[i]^(e=hu(r[i+1]^r[i+2]^r[i+3]^nx[i]))^Ze(e,13)^Ze(e,23),n[i]=r[i+4];return n},Fs=function(t,e){for(var r=pu(e),n=0;n<32;n++)t[n+4]=t[n]^du(t[n+1]^t[n+2]^t[n+3]^r[n]);return[t[35],t[34],t[33],t[32]]},Rs=function(t,e){for(var r=pu(e).reverse(),n=0;n<32;n++)t[n+4]=t[n]^du(t[n+1]^t[n+2]^t[n+3]^r[n]);return[t[35],t[34],t[33],t[32]]},Un=function(t){return[t.readInt32BE(0),t.readInt32BE(4),t.readInt32BE(8),t.readInt32BE(12)]},$n=function(t){for(var e=Se.Buffer.alloc(16),r=0;r<4;r++)e.writeInt32BE(t[r],4*r);return e},Hr={__proto__:null,constants:{ECB:1,CBC:2},encrypt:function(t,e,r){var n=r||{},i=n.mode,o=n.iv,s=n.outputEncoding;if(typeof t=="string"?t=Se.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=Se.Buffer.from(t)),!Se.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');if(!Mn.test(e))throw new TypeError("Invalid value of cipher `key`");if(e=Se.Buffer.from(e,"hex"),i===2&&!Mn.test(o))throw new TypeError("Invalid value of `iv` option");return function(a,l,c,u){c&&(c=Un(c)),l=Un(l);for(var x=[],h=(a=function(C){var T=16-C.length%16,L=Se.Buffer.alloc(T,T);return Se.Buffer.concat([C,L],C.length+T)}(a)).length/16,y=0;y<h;y++)if(c){var m=16*y,E=[c[0]^a.readInt32BE(m),c[1]^a.readInt32BE(m+4),c[2]^a.readInt32BE(m+8),c[3]^a.readInt32BE(m+12)],A=Fs(E,l);x.push($n(A)),c=A.slice(0)}else{var R=16*y,w=[a.readInt32BE(R),a.readInt32BE(R+4),a.readInt32BE(R+8),a.readInt32BE(R+12)],_=Fs(w,l);x.push($n(_))}var D=Se.Buffer.concat(x,a.length);return u?D.toString(u):pn(D)}(t,e,o=i===2?Se.Buffer.from(o,"hex"):null,s)},decrypt:function(t,e,r){var n=r||{},i=n.mode,o=n.iv,s=n.outputEncoding;if(typeof t=="string"?t=Se.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=Se.Buffer.from(t)),!Se.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');if(!Mn.test(e))throw new TypeError("Invalid value of cipher `key`");if(e=Se.Buffer.from(e,"hex"),i===2&&!Mn.test(o))throw new TypeError("Invalid value of `iv` option");return function(a,l,c,u){c&&(c=Un(c)),l=Un(l);var x=[],h=a.length/16;if(c)for(var y=h-1;y>=0;y--){var m,E=16*y;m=y>0?[a.readInt32BE(E-16),a.readInt32BE(E-16+4),a.readInt32BE(E-16+8),a.readInt32BE(E-16+12)]:c;var A=[a.readInt32BE(E),a.readInt32BE(E+4),a.readInt32BE(E+8),a.readInt32BE(E+12)],R=Rs(A,l);x.unshift($n([R[0]^m[0],R[1]^m[1],R[2]^m[2],R[3]^m[3]]))}else for(var w=0;w<h;w++){var _=16*w,D=[a.readInt32BE(_),a.readInt32BE(_+4),a.readInt32BE(_+8),a.readInt32BE(_+12)],C=Rs(D,l);x.push($n(C))}var T=Se.Buffer.concat(x,a.length-x[x.length-1][15]);return u?T.toString(u):pn(T)}(t,e,o=i===2?Se.Buffer.from(o,"hex"):null,s)}};(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 ix(){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,s,a,l;for(o=r.length,i=0,n="";i<o;){if(s=r.charCodeAt(i++)&255,i==o){n+=t.charAt(s>>2),n+=t.charAt((s&3)<<4),n+="==";break}if(a=r.charCodeAt(i++),i==o){n+=t.charAt(s>>2),n+=t.charAt((s&3)<<4|(a&240)>>4),n+=t.charAt((a&15)<<2),n+="=";break}l=r.charCodeAt(i++),n+=t.charAt(s>>2),n+=t.charAt((s&3)<<4|(a&240)>>4),n+=t.charAt((a&15)<<2|(l&192)>>6),n+=t.charAt(l&63)}return n},this.decode=function(r){var n,i,o,s,a,l,c;for(l=r.length,a=0,c="";a<l;){do n=e[r.charCodeAt(a++)&255];while(a<l&&n==-1);if(n==-1)break;do i=e[r.charCodeAt(a++)&255];while(a<l&&i==-1);if(i==-1)break;c+=String.fromCharCode(n<<2|(i&48)>>4);do{if(o=r.charCodeAt(a++)&255,o==61)return c;o=e[o]}while(a<l&&o==-1);if(o==-1)break;c+=String.fromCharCode((i&15)<<4|(o&60)>>2);do{if(s=r.charCodeAt(a++)&255,s==61)return c;s=e[s]}while(a<l&&s==-1);if(s==-1)break;c+=String.fromCharCode((o&3)<<6|s)}return c},this.utf16to8=function(r){var n,i,o,s;for(n="",o=r.length,i=0;i<o;i++)s=r.charCodeAt(i),s>=1&&s<=127?n+=r.charAt(i):s>2047?(n+=String.fromCharCode(224|s>>12&15),n+=String.fromCharCode(128|s>>6&63),n+=String.fromCharCode(128|s>>0&63)):(n+=String.fromCharCode(192|s>>6&31),n+=String.fromCharCode(128|s>>0&63));return n},this.utf8to16=function(r){var n,i,o,s,a,l;for(n="",o=r.length,i=0;i<o;)switch(s=r.charCodeAt(i++),s>>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:a=r.charCodeAt(i++),n+=String.fromCharCode((s&31)<<6|a&63);break;case 14:a=r.charCodeAt(i++),l=r.charCodeAt(i++),n+=String.fromCharCode((s&15)<<12|(a&63)<<6|(l&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
|
|
35
|
-
`:", ";return n}}function ox(){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 ax(t){if(this.connect=!1,this.ready_func_=null,this.callbacks_=new ox,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 s=JSON.stringify(o);this.connect&&this.ws.send(s)},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},s){this.exec("Arm_WriteFile",[parseInt(e),n,parseInt(r),parseInt(i),o],s)},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},s){this.exec("Arm_ChangePIN",[parseInt(e),o,n,r,parseInt(i)],s)},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},s){this.exec("Arm_RsaPri",[parseInt(e),parseInt(i),parseInt(o),r,n],s)},this.Arm_RsaPub=function({Handle:e,RsaPubKey:r,RsaPub_Flag:n,RsaPubInData:i,RsaPubFileSize:o},s){this.exec("Arm_RsaPub",[parseInt(e),parseInt(o),n,r,r.length,i],s)},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:s,UserPin:a,UserTryCount:l,UpdateRSAPriKey:c},u){this.exec("Arm_GenMotherKey",[parseInt(e),parseInt(r),n,a,parseInt(l),parseInt(s),c,parseInt(o),parseInt(i)],u)},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:s,DataLen:a,DataBuffer:l,UpRSAPubKey:c},u){this.exec("Arm_MakeUpdatePacket",[parseInt(e),r,n,o,parseInt(i),parseInt(s),l,c,parseInt(a)],u)},this.Arm_MakeUpdatePacketFromMother=function({Handle:e,HID:r,Func:n,FileID:i,FileType:o,Offset:s,DataLen:a,DataBuffer:l},c){this.exec("Arm_MakeUpdatePacketFromMother",[parseInt(e),r,n,o,parseInt(i),parseInt(s),l,parseInt(a)],c)},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:s},a){this.exec("Arm_Set_PRIKEY_FILE_ATTR",[n,parseInt(r),parseInt(e),parseInt(i),parseInt(s),parseInt(o)],a)},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},s){this.exec("Arm_Set_EXE_FILE_INFO",[i,parseInt(n),parseInt(e),parseInt(o),r,r.length],s)},this.Arm_Clear_EXE_FILE_INFO=function({InBuffer:e},r){this.exec("Arm_Clear_EXE_FILE_INFO",[e],r)}}const sx={HID:0},Hn={PRODUCT_ID:0,USER_ID:1,HARDWARE_ID:2},Is={USER:0};class xu{constructor(){rr(this,"Base64",new ix);rr(this,"AtlCtrl",null);rr(this,"ArmCount",0);rr(this,"ArmIndex",0);rr(this,"ArmHandle",0);rr(this,"ArmRandom","");try{this.AtlCtrl=new ax("{39E9B272-82A7-4177-A19D-6723C1BDB0CC}")}catch(e){console.error(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=Is.USER,o=this.ArmHandle){if(this.AtlCtrl)return new Promise((s,a)=>{this.AtlCtrl.Arm_ChangePIN({Handle:o,NewPIN:e,OldPIN:r,TryCount:n,PinFlag:i},(l,c)=>{l&&c==0?(this.ArmPin=e,s(c)):a(c)})})}armGenRandom(e=16,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_GenRandom({Handle:r,RandomLen:e},(o,s)=>{o?(this.ArmRandom=s,n(s)):i(s)})})}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,s)=>{o?(this.ArmUKey=s,n(s)):i(s)})})}armGetDongleInfo(e=0,r=Hn.HARDWARE_ID){if(this.AtlCtrl)return this.ArmIndex=e,new Promise((n,i)=>{this.AtlCtrl.Arm_GetDongleInfo({Index:e,DongleInfoNum:r},(o,s)=>{if(o){switch(r){case Hn.USER_ID:this.ArmUid=s;break;case Hn.PRODUCT_ID:this.ArmPid=s;break;case Hn.HARDWARE_ID:this.ArmHid=s;break}n(s)}else i(s)})})}armLEDControl(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_LEDControl({Handle:r,LedFlag:e},(o,s)=>{o&&s==0?n(s):i(s)})})}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,s)=>{if(o&&s.length>0)try{s=this.Base64.decode(s),n(s)}catch(a){console.error(a),n(s)}else i(s)})})}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,s)=>{o&&s==0?n(s):i(s)})})}armSetUserID(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SetUserID({Handle:r,UserID:e},(o,s)=>{o&&s==0?n(s):i(s)})})}armSetDeadline(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SetDeadline({Handle:r,SetDeadTime:e},(o,s)=>{o&&s==0?n(s):i(s)})})}armSwitchProtocol(e=sx.HID,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SwitchProtocol({Handle:r,ProtocolFlag:e},(o,s)=>{o&&s==0?n(s):i(s)})})}armVerifyPIN(e,r=Is.USER,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,o)=>{this.AtlCtrl.Arm_VerifyPIN({Handle:n,UserPin:e,UserType:r},(s,a)=>{s&&a==0?(this.ArmPin=e,i(a)):o(a)})})}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},(s,a)=>{s?(this.ArmData=a,i(a)):o(a)})})}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},(s,a)=>{s&&a==0?i(a):o(a)})})}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,s)=>{o&&s==0?n(s):i(s)})})}}const vu=Symbol(),Xn="el",cx="is-",ir=(t,e,r,n,i)=>{let o=`${t}-${e}`;return r&&(o+=`-${r}`),n&&(o+=`__${n}`),i&&(o+=`--${i}`),o},yu=Symbol("namespaceContextKey"),ux=t=>{const e=t||(P.getCurrentInstance()?P.inject(yu,P.ref(Xn)):P.ref(Xn));return P.computed(()=>P.unref(e)||Xn)},H0=(t,e)=>{const r=ux(e);return{namespace:r,b:(E="")=>ir(r.value,t,E,"",""),e:E=>E?ir(r.value,t,"",E,""):"",m:E=>E?ir(r.value,t,"","",E):"",be:(E,A)=>E&&A?ir(r.value,t,E,A,""):"",em:(E,A)=>E&&A?ir(r.value,t,"",E,A):"",bm:(E,A)=>E&&A?ir(r.value,t,E,"",A):"",bem:(E,A,R)=>E&&A&&R?ir(r.value,t,E,A,R):"",is:(E,...A)=>{const R=A.length>=1?A[0]:!0;return E&&R?`${cx}${E}`:""},cssVar:E=>{const A={};for(const R in E)E[R]&&(A[`--${r.value}-${R}`]=E[R]);return A},cssVarName:E=>`--${r.value}-${E}`,cssVarBlock:E=>{const A={};for(const R in E)E[R]&&(A[`--${r.value}-${t}-${R}`]=E[R]);return A},cssVarBlockName:E=>`--${r.value}-${t}-${E}`}};/**
|
|
34
|
+
*/(function(t){var e=Ai,r=M0,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=w,t.INSPECT_MAX_BYTES=50;var i=2147483647;t.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=o(),!a.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 F=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(F,l),F.foo()===42}catch(d){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(F){if(F>i)throw new RangeError('The value "'+F+'" is invalid for option "size"');var l=new Uint8Array(F);return Object.setPrototypeOf(l,a.prototype),l}function a(F,l,d){if(typeof F=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(F)}return u(F,l,d)}a.poolSize=8192;function u(F,l,d){if(typeof F=="string")return h(F,l);if(ArrayBuffer.isView(F))return m(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(Fe(F,ArrayBuffer)||F&&Fe(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Fe(F,SharedArrayBuffer)||F&&Fe(F.buffer,SharedArrayBuffer)))return E(F,l,d);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var v=F.valueOf&&F.valueOf();if(v!=null&&v!==F)return a.from(v,l,d);var I=A(F);if(I)return I;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return a.from(F[Symbol.toPrimitive]("string"),l,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}a.from=function(F,l,d){return u(F,l,d)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function c(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function f(F,l,d){return c(F),F<=0?s(F):l!==void 0?typeof d=="string"?s(F).fill(l,d):s(F).fill(l):s(F)}a.alloc=function(F,l,d){return f(F,l,d)};function x(F){return c(F),s(F<0?0:R(F)|0)}a.allocUnsafe=function(F){return x(F)},a.allocUnsafeSlow=function(F){return x(F)};function h(F,l){if((typeof l!="string"||l==="")&&(l="utf8"),!a.isEncoding(l))throw new TypeError("Unknown encoding: "+l);var d=_(F,l)|0,v=s(d),I=v.write(F,l);return I!==d&&(v=v.slice(0,I)),v}function y(F){for(var l=F.length<0?0:R(F.length)|0,d=s(l),v=0;v<l;v+=1)d[v]=F[v]&255;return d}function m(F){if(Fe(F,Uint8Array)){var l=new Uint8Array(F);return E(l.buffer,l.byteOffset,l.byteLength)}return y(F)}function E(F,l,d){if(l<0||F.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<l+(d||0))throw new RangeError('"length" is outside of buffer bounds');var v;return l===void 0&&d===void 0?v=new Uint8Array(F):d===void 0?v=new Uint8Array(F,l):v=new Uint8Array(F,l,d),Object.setPrototypeOf(v,a.prototype),v}function A(F){if(a.isBuffer(F)){var l=R(F.length)|0,d=s(l);return d.length===0||F.copy(d,0,0,l),d}if(F.length!==void 0)return typeof F.length!="number"||ze(F.length)?s(0):y(F);if(F.type==="Buffer"&&Array.isArray(F.data))return y(F.data)}function R(F){if(F>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return F|0}function w(F){return+F!=F&&(F=0),a.alloc(+F)}a.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==a.prototype},a.compare=function(l,d){if(Fe(l,Uint8Array)&&(l=a.from(l,l.offset,l.byteLength)),Fe(d,Uint8Array)&&(d=a.from(d,d.offset,d.byteLength)),!a.isBuffer(l)||!a.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===d)return 0;for(var v=l.length,I=d.length,W=0,K=Math.min(v,I);W<K;++W)if(l[W]!==d[W]){v=l[W],I=d[W];break}return v<I?-1:I<v?1:0},a.isEncoding=function(l){switch(String(l).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}},a.concat=function(l,d){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return a.alloc(0);var v;if(d===void 0)for(d=0,v=0;v<l.length;++v)d+=l[v].length;var I=a.allocUnsafe(d),W=0;for(v=0;v<l.length;++v){var K=l[v];if(Fe(K,Uint8Array))W+K.length>I.length?a.from(K).copy(I,W):Uint8Array.prototype.set.call(I,K,W);else if(a.isBuffer(K))K.copy(I,W);else throw new TypeError('"list" argument must be an Array of Buffers');W+=K.length}return I};function _(F,l){if(a.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||Fe(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);var d=F.length,v=arguments.length>2&&arguments[2]===!0;if(!v&&d===0)return 0;for(var I=!1;;)switch(l){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return ve(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return He(F).length;default:if(I)return v?-1:ve(F).length;l=(""+l).toLowerCase(),I=!0}}a.byteLength=_;function B(F,l,d){var v=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,l>>>=0,d<=l))return"";for(F||(F="utf8");;)switch(F){case"hex":return he(this,l,d);case"utf8":case"utf-8":return ee(this,l,d);case"ascii":return oe(this,l,d);case"latin1":case"binary":return ie(this,l,d);case"base64":return X(this,l,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,l,d);default:if(v)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),v=!0}}a.prototype._isBuffer=!0;function D(F,l,d){var v=F[l];F[l]=F[d],F[d]=v}a.prototype.swap16=function(){var l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<l;d+=2)D(this,d,d+1);return this},a.prototype.swap32=function(){var l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<l;d+=4)D(this,d,d+3),D(this,d+1,d+2);return this},a.prototype.swap64=function(){var l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<l;d+=8)D(this,d,d+7),D(this,d+1,d+6),D(this,d+2,d+5),D(this,d+3,d+4);return this},a.prototype.toString=function(){var l=this.length;return l===0?"":arguments.length===0?ee(this,0,l):B.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(l){if(!a.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:a.compare(this,l)===0},a.prototype.inspect=function(){var l="",d=t.INSPECT_MAX_BYTES;return l=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(l+=" ... "),"<Buffer "+l+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(l,d,v,I,W){if(Fe(l,Uint8Array)&&(l=a.from(l,l.offset,l.byteLength)),!a.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(d===void 0&&(d=0),v===void 0&&(v=l?l.length:0),I===void 0&&(I=0),W===void 0&&(W=this.length),d<0||v>l.length||I<0||W>this.length)throw new RangeError("out of range index");if(I>=W&&d>=v)return 0;if(I>=W)return-1;if(d>=v)return 1;if(d>>>=0,v>>>=0,I>>>=0,W>>>=0,this===l)return 0;for(var K=W-I,pe=v-d,_e=Math.min(K,pe),we=this.slice(I,W),Ce=l.slice(d,v),Te=0;Te<_e;++Te)if(we[Te]!==Ce[Te]){K=we[Te],pe=Ce[Te];break}return K<pe?-1:pe<K?1:0};function T(F,l,d,v,I){if(F.length===0)return-1;if(typeof d=="string"?(v=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,ze(d)&&(d=I?0:F.length-1),d<0&&(d=F.length+d),d>=F.length){if(I)return-1;d=F.length-1}else if(d<0)if(I)d=0;else return-1;if(typeof l=="string"&&(l=a.from(l,v)),a.isBuffer(l))return l.length===0?-1:L(F,l,d,v,I);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?I?Uint8Array.prototype.indexOf.call(F,l,d):Uint8Array.prototype.lastIndexOf.call(F,l,d):L(F,[l],d,v,I);throw new TypeError("val must be string, number or Buffer")}function L(F,l,d,v,I){var W=1,K=F.length,pe=l.length;if(v!==void 0&&(v=String(v).toLowerCase(),v==="ucs2"||v==="ucs-2"||v==="utf16le"||v==="utf-16le")){if(F.length<2||l.length<2)return-1;W=2,K/=2,pe/=2,d/=2}function _e(Bt,Dt){return W===1?Bt[Dt]:Bt.readUInt16BE(Dt*W)}var we;if(I){var Ce=-1;for(we=d;we<K;we++)if(_e(F,we)===_e(l,Ce===-1?0:we-Ce)){if(Ce===-1&&(Ce=we),we-Ce+1===pe)return Ce*W}else Ce!==-1&&(we-=we-Ce),Ce=-1}else for(d+pe>K&&(d=K-pe),we=d;we>=0;we--){for(var Te=!0,ut=0;ut<pe;ut++)if(_e(F,we+ut)!==_e(l,ut)){Te=!1;break}if(Te)return we}return-1}a.prototype.includes=function(l,d,v){return this.indexOf(l,d,v)!==-1},a.prototype.indexOf=function(l,d,v){return T(this,l,d,v,!0)},a.prototype.lastIndexOf=function(l,d,v){return T(this,l,d,v,!1)};function z(F,l,d,v){d=Number(d)||0;var I=F.length-d;v?(v=Number(v),v>I&&(v=I)):v=I;var W=l.length;v>W/2&&(v=W/2);for(var K=0;K<v;++K){var pe=parseInt(l.substr(K*2,2),16);if(ze(pe))return K;F[d+K]=pe}return K}function Q(F,l,d,v){return $e(ve(l,F.length-d),F,d,v)}function O(F,l,d,v){return $e(Ae(l),F,d,v)}function k(F,l,d,v){return $e(He(l),F,d,v)}function V(F,l,d,v){return $e(Ie(l,F.length-d),F,d,v)}a.prototype.write=function(l,d,v,I){if(d===void 0)I="utf8",v=this.length,d=0;else if(v===void 0&&typeof d=="string")I=d,v=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(v)?(v=v>>>0,I===void 0&&(I="utf8")):(I=v,v=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var W=this.length-d;if((v===void 0||v>W)&&(v=W),l.length>0&&(v<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");for(var K=!1;;)switch(I){case"hex":return z(this,l,d,v);case"utf8":case"utf-8":return Q(this,l,d,v);case"ascii":case"latin1":case"binary":return O(this,l,d,v);case"base64":return k(this,l,d,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,l,d,v);default:if(K)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),K=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X(F,l,d){return l===0&&d===F.length?e.fromByteArray(F):e.fromByteArray(F.slice(l,d))}function ee(F,l,d){d=Math.min(F.length,d);for(var v=[],I=l;I<d;){var W=F[I],K=null,pe=W>239?4:W>223?3:W>191?2:1;if(I+pe<=d){var _e,we,Ce,Te;switch(pe){case 1:W<128&&(K=W);break;case 2:_e=F[I+1],(_e&192)===128&&(Te=(W&31)<<6|_e&63,Te>127&&(K=Te));break;case 3:_e=F[I+1],we=F[I+2],(_e&192)===128&&(we&192)===128&&(Te=(W&15)<<12|(_e&63)<<6|we&63,Te>2047&&(Te<55296||Te>57343)&&(K=Te));break;case 4:_e=F[I+1],we=F[I+2],Ce=F[I+3],(_e&192)===128&&(we&192)===128&&(Ce&192)===128&&(Te=(W&15)<<18|(_e&63)<<12|(we&63)<<6|Ce&63,Te>65535&&Te<1114112&&(K=Te))}}K===null?(K=65533,pe=1):K>65535&&(K-=65536,v.push(K>>>10&1023|55296),K=56320|K&1023),v.push(K),I+=pe}return Z(v)}var Y=4096;function Z(F){var l=F.length;if(l<=Y)return String.fromCharCode.apply(String,F);for(var d="",v=0;v<l;)d+=String.fromCharCode.apply(String,F.slice(v,v+=Y));return d}function oe(F,l,d){var v="";d=Math.min(F.length,d);for(var I=l;I<d;++I)v+=String.fromCharCode(F[I]&127);return v}function ie(F,l,d){var v="";d=Math.min(F.length,d);for(var I=l;I<d;++I)v+=String.fromCharCode(F[I]);return v}function he(F,l,d){var v=F.length;(!l||l<0)&&(l=0),(!d||d<0||d>v)&&(d=v);for(var I="",W=l;W<d;++W)I+=qe[F[W]];return I}function ue(F,l,d){for(var v=F.slice(l,d),I="",W=0;W<v.length-1;W+=2)I+=String.fromCharCode(v[W]+v[W+1]*256);return I}a.prototype.slice=function(l,d){var v=this.length;l=~~l,d=d===void 0?v:~~d,l<0?(l+=v,l<0&&(l=0)):l>v&&(l=v),d<0?(d+=v,d<0&&(d=0)):d>v&&(d=v),d<l&&(d=l);var I=this.subarray(l,d);return Object.setPrototypeOf(I,a.prototype),I};function H(F,l,d){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+l>d)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(l,d,v){l=l>>>0,d=d>>>0,v||H(l,d,this.length);for(var I=this[l],W=1,K=0;++K<d&&(W*=256);)I+=this[l+K]*W;return I},a.prototype.readUintBE=a.prototype.readUIntBE=function(l,d,v){l=l>>>0,d=d>>>0,v||H(l,d,this.length);for(var I=this[l+--d],W=1;d>0&&(W*=256);)I+=this[l+--d]*W;return I},a.prototype.readUint8=a.prototype.readUInt8=function(l,d){return l=l>>>0,d||H(l,1,this.length),this[l]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(l,d){return l=l>>>0,d||H(l,2,this.length),this[l]|this[l+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(l,d){return l=l>>>0,d||H(l,2,this.length),this[l]<<8|this[l+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(l,d){return l=l>>>0,d||H(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(l,d){return l=l>>>0,d||H(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},a.prototype.readIntLE=function(l,d,v){l=l>>>0,d=d>>>0,v||H(l,d,this.length);for(var I=this[l],W=1,K=0;++K<d&&(W*=256);)I+=this[l+K]*W;return W*=128,I>=W&&(I-=Math.pow(2,8*d)),I},a.prototype.readIntBE=function(l,d,v){l=l>>>0,d=d>>>0,v||H(l,d,this.length);for(var I=d,W=1,K=this[l+--I];I>0&&(W*=256);)K+=this[l+--I]*W;return W*=128,K>=W&&(K-=Math.pow(2,8*d)),K},a.prototype.readInt8=function(l,d){return l=l>>>0,d||H(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},a.prototype.readInt16LE=function(l,d){l=l>>>0,d||H(l,2,this.length);var v=this[l]|this[l+1]<<8;return v&32768?v|4294901760:v},a.prototype.readInt16BE=function(l,d){l=l>>>0,d||H(l,2,this.length);var v=this[l+1]|this[l]<<8;return v&32768?v|4294901760:v},a.prototype.readInt32LE=function(l,d){return l=l>>>0,d||H(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},a.prototype.readInt32BE=function(l,d){return l=l>>>0,d||H(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},a.prototype.readFloatLE=function(l,d){return l=l>>>0,d||H(l,4,this.length),r.read(this,l,!0,23,4)},a.prototype.readFloatBE=function(l,d){return l=l>>>0,d||H(l,4,this.length),r.read(this,l,!1,23,4)},a.prototype.readDoubleLE=function(l,d){return l=l>>>0,d||H(l,8,this.length),r.read(this,l,!0,52,8)},a.prototype.readDoubleBE=function(l,d){return l=l>>>0,d||H(l,8,this.length),r.read(this,l,!1,52,8)};function j(F,l,d,v,I,W){if(!a.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>I||l<W)throw new RangeError('"value" argument is out of bounds');if(d+v>F.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(l,d,v,I){if(l=+l,d=d>>>0,v=v>>>0,!I){var W=Math.pow(2,8*v)-1;j(this,l,d,v,W,0)}var K=1,pe=0;for(this[d]=l&255;++pe<v&&(K*=256);)this[d+pe]=l/K&255;return d+v},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(l,d,v,I){if(l=+l,d=d>>>0,v=v>>>0,!I){var W=Math.pow(2,8*v)-1;j(this,l,d,v,W,0)}var K=v-1,pe=1;for(this[d+K]=l&255;--K>=0&&(pe*=256);)this[d+K]=l/pe&255;return d+v},a.prototype.writeUint8=a.prototype.writeUInt8=function(l,d,v){return l=+l,d=d>>>0,v||j(this,l,d,1,255,0),this[d]=l&255,d+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(l,d,v){return l=+l,d=d>>>0,v||j(this,l,d,2,65535,0),this[d]=l&255,this[d+1]=l>>>8,d+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(l,d,v){return l=+l,d=d>>>0,v||j(this,l,d,2,65535,0),this[d]=l>>>8,this[d+1]=l&255,d+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(l,d,v){return l=+l,d=d>>>0,v||j(this,l,d,4,4294967295,0),this[d+3]=l>>>24,this[d+2]=l>>>16,this[d+1]=l>>>8,this[d]=l&255,d+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(l,d,v){return l=+l,d=d>>>0,v||j(this,l,d,4,4294967295,0),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4},a.prototype.writeIntLE=function(l,d,v,I){if(l=+l,d=d>>>0,!I){var W=Math.pow(2,8*v-1);j(this,l,d,v,W-1,-W)}var K=0,pe=1,_e=0;for(this[d]=l&255;++K<v&&(pe*=256);)l<0&&_e===0&&this[d+K-1]!==0&&(_e=1),this[d+K]=(l/pe>>0)-_e&255;return d+v},a.prototype.writeIntBE=function(l,d,v,I){if(l=+l,d=d>>>0,!I){var W=Math.pow(2,8*v-1);j(this,l,d,v,W-1,-W)}var K=v-1,pe=1,_e=0;for(this[d+K]=l&255;--K>=0&&(pe*=256);)l<0&&_e===0&&this[d+K+1]!==0&&(_e=1),this[d+K]=(l/pe>>0)-_e&255;return d+v},a.prototype.writeInt8=function(l,d,v){return l=+l,d=d>>>0,v||j(this,l,d,1,127,-128),l<0&&(l=255+l+1),this[d]=l&255,d+1},a.prototype.writeInt16LE=function(l,d,v){return l=+l,d=d>>>0,v||j(this,l,d,2,32767,-32768),this[d]=l&255,this[d+1]=l>>>8,d+2},a.prototype.writeInt16BE=function(l,d,v){return l=+l,d=d>>>0,v||j(this,l,d,2,32767,-32768),this[d]=l>>>8,this[d+1]=l&255,d+2},a.prototype.writeInt32LE=function(l,d,v){return l=+l,d=d>>>0,v||j(this,l,d,4,2147483647,-2147483648),this[d]=l&255,this[d+1]=l>>>8,this[d+2]=l>>>16,this[d+3]=l>>>24,d+4},a.prototype.writeInt32BE=function(l,d,v){return l=+l,d=d>>>0,v||j(this,l,d,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4};function re(F,l,d,v,I,W){if(d+v>F.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function J(F,l,d,v,I){return l=+l,d=d>>>0,I||re(F,l,d,4),r.write(F,l,d,v,23,4),d+4}a.prototype.writeFloatLE=function(l,d,v){return J(this,l,d,!0,v)},a.prototype.writeFloatBE=function(l,d,v){return J(this,l,d,!1,v)};function ge(F,l,d,v,I){return l=+l,d=d>>>0,I||re(F,l,d,8),r.write(F,l,d,v,52,8),d+8}a.prototype.writeDoubleLE=function(l,d,v){return ge(this,l,d,!0,v)},a.prototype.writeDoubleBE=function(l,d,v){return ge(this,l,d,!1,v)},a.prototype.copy=function(l,d,v,I){if(!a.isBuffer(l))throw new TypeError("argument should be a Buffer");if(v||(v=0),!I&&I!==0&&(I=this.length),d>=l.length&&(d=l.length),d||(d=0),I>0&&I<v&&(I=v),I===v||l.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(v<0||v>=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),l.length-d<I-v&&(I=l.length-d+v);var W=I-v;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,v,I):Uint8Array.prototype.set.call(l,this.subarray(v,I),d),W},a.prototype.fill=function(l,d,v,I){if(typeof l=="string"){if(typeof d=="string"?(I=d,d=0,v=this.length):typeof v=="string"&&(I=v,v=this.length),I!==void 0&&typeof I!="string")throw new TypeError("encoding must be a string");if(typeof I=="string"&&!a.isEncoding(I))throw new TypeError("Unknown encoding: "+I);if(l.length===1){var W=l.charCodeAt(0);(I==="utf8"&&W<128||I==="latin1")&&(l=W)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(d<0||this.length<d||this.length<v)throw new RangeError("Out of range index");if(v<=d)return this;d=d>>>0,v=v===void 0?this.length:v>>>0,l||(l=0);var K;if(typeof l=="number")for(K=d;K<v;++K)this[K]=l;else{var pe=a.isBuffer(l)?l:a.from(l,I),_e=pe.length;if(_e===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(K=0;K<v-d;++K)this[K+d]=pe[K%_e]}return this};var Ee=/[^+/0-9A-Za-z-_]/g;function Pe(F){if(F=F.split("=")[0],F=F.trim().replace(Ee,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function ve(F,l){l=l||1/0;for(var d,v=F.length,I=null,W=[],K=0;K<v;++K){if(d=F.charCodeAt(K),d>55295&&d<57344){if(!I){if(d>56319){(l-=3)>-1&&W.push(239,191,189);continue}else if(K+1===v){(l-=3)>-1&&W.push(239,191,189);continue}I=d;continue}if(d<56320){(l-=3)>-1&&W.push(239,191,189),I=d;continue}d=(I-55296<<10|d-56320)+65536}else I&&(l-=3)>-1&&W.push(239,191,189);if(I=null,d<128){if((l-=1)<0)break;W.push(d)}else if(d<2048){if((l-=2)<0)break;W.push(d>>6|192,d&63|128)}else if(d<65536){if((l-=3)<0)break;W.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((l-=4)<0)break;W.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return W}function Ae(F){for(var l=[],d=0;d<F.length;++d)l.push(F.charCodeAt(d)&255);return l}function Ie(F,l){for(var d,v,I,W=[],K=0;K<F.length&&!((l-=2)<0);++K)d=F.charCodeAt(K),v=d>>8,I=d%256,W.push(I),W.push(v);return W}function He(F){return e.toByteArray(Pe(F))}function $e(F,l,d,v){for(var I=0;I<v&&!(I+d>=l.length||I>=F.length);++I)l[I+d]=F[I];return I}function Fe(F,l){return F instanceof l||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===l.name}function ze(F){return F!==F}var qe=function(){for(var F="0123456789abcdef",l=new Array(256),d=0;d<16;++d)for(var v=d*16,I=0;I<16;++I)l[v+I]=F[d]+F[I];return l}()})(Se);var Y1=Se.Buffer,X1=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(Y1.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 pn=b0(X1);var fu={exports:{}};(function(t,e){(function(){var r,n=0xdeadbeefcafe,i=(n&16777215)==15715070;function o(p,g,C){p!=null&&(typeof p=="number"?this.fromNumber(p,g,C):g==null&&typeof p!="string"?this.fromString(p,256):this.fromString(p,g))}function s(){return new o(null)}function a(p,g,C,$,ne,se){for(;--se>=0;){var de=g*this[p++]+C[$]+ne;ne=Math.floor(de/67108864),C[$++]=de&67108863}return ne}function u(p,g,C,$,ne,se){for(var de=g&32767,xe=g>>15;--se>=0;){var Me=this[p]&32767,Qe=this[p++]>>15,yt=xe*Me+Qe*de;Me=de*Me+((yt&32767)<<15)+C[$]+(ne&1073741823),ne=(Me>>>30)+(yt>>>15)+xe*Qe+(ne>>>30),C[$++]=Me&1073741823}return ne}function c(p,g,C,$,ne,se){for(var de=g&16383,xe=g>>14;--se>=0;){var Me=this[p]&16383,Qe=this[p++]>>14,yt=xe*Me+Qe*de;Me=de*Me+((yt&16383)<<14)+C[$]+ne,ne=(Me>>28)+(yt>>14)+xe*Qe,C[$++]=Me&268435455}return ne}var f=typeof navigator!="undefined";f&&i&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=u,r=30):f&&i&&navigator.appName!="Netscape"?(o.prototype.am=a,r=26):(o.prototype.am=c,r=28),o.prototype.DB=r,o.prototype.DM=(1<<r)-1,o.prototype.DV=1<<r;var x=52;o.prototype.FV=Math.pow(2,x),o.prototype.F1=x-r,o.prototype.F2=2*r-x;var h="0123456789abcdefghijklmnopqrstuvwxyz",y=new Array,m,E;for(m=48,E=0;E<=9;++E)y[m++]=E;for(m=97,E=10;E<36;++E)y[m++]=E;for(m=65,E=10;E<36;++E)y[m++]=E;function A(p){return h.charAt(p)}function R(p,g){var C=y[p.charCodeAt(g)];return C==null?-1:C}function w(p){for(var g=this.t-1;g>=0;--g)p[g]=this[g];p.t=this.t,p.s=this.s}function _(p){this.t=1,this.s=p<0?-1:0,p>0?this[0]=p:p<-1?this[0]=p+this.DV:this.t=0}function B(p){var g=s();return g.fromInt(p),g}function D(p,g){var C;if(g==16)C=4;else if(g==8)C=3;else if(g==256)C=8;else if(g==2)C=1;else if(g==32)C=5;else if(g==4)C=2;else{this.fromRadix(p,g);return}this.t=0,this.s=0;for(var $=p.length,ne=!1,se=0;--$>=0;){var de=C==8?p[$]&255:R(p,$);if(de<0){p.charAt($)=="-"&&(ne=!0);continue}ne=!1,se==0?this[this.t++]=de:se+C>this.DB?(this[this.t-1]|=(de&(1<<this.DB-se)-1)<<se,this[this.t++]=de>>this.DB-se):this[this.t-1]|=de<<se,se+=C,se>=this.DB&&(se-=this.DB)}C==8&&p[0]&128&&(this.s=-1,se>0&&(this[this.t-1]|=(1<<this.DB-se)-1<<se)),this.clamp(),ne&&o.ZERO.subTo(this,this)}function T(){for(var p=this.s&this.DM;this.t>0&&this[this.t-1]==p;)--this.t}function L(p){if(this.s<0)return"-"+this.negate().toString(p);var g;if(p==16)g=4;else if(p==8)g=3;else if(p==2)g=1;else if(p==32)g=5;else if(p==4)g=2;else return this.toRadix(p);var C=(1<<g)-1,$,ne=!1,se="",de=this.t,xe=this.DB-de*this.DB%g;if(de-- >0)for(xe<this.DB&&($=this[de]>>xe)>0&&(ne=!0,se=A($));de>=0;)xe<g?($=(this[de]&(1<<xe)-1)<<g-xe,$|=this[--de]>>(xe+=this.DB-g)):($=this[de]>>(xe-=g)&C,xe<=0&&(xe+=this.DB,--de)),$>0&&(ne=!0),ne&&(se+=A($));return ne?se:"0"}function z(){var p=s();return o.ZERO.subTo(this,p),p}function Q(){return this.s<0?this.negate():this}function O(p){var g=this.s-p.s;if(g!=0)return g;var C=this.t;if(g=C-p.t,g!=0)return this.s<0?-g:g;for(;--C>=0;)if((g=this[C]-p[C])!=0)return g;return 0}function k(p){var g=1,C;return(C=p>>>16)!=0&&(p=C,g+=16),(C=p>>8)!=0&&(p=C,g+=8),(C=p>>4)!=0&&(p=C,g+=4),(C=p>>2)!=0&&(p=C,g+=2),(C=p>>1)!=0&&(p=C,g+=1),g}function V(){return this.t<=0?0:this.DB*(this.t-1)+k(this[this.t-1]^this.s&this.DM)}function X(p,g){var C;for(C=this.t-1;C>=0;--C)g[C+p]=this[C];for(C=p-1;C>=0;--C)g[C]=0;g.t=this.t+p,g.s=this.s}function ee(p,g){for(var C=p;C<this.t;++C)g[C-p]=this[C];g.t=Math.max(this.t-p,0),g.s=this.s}function Y(p,g){var C=p%this.DB,$=this.DB-C,ne=(1<<$)-1,se=Math.floor(p/this.DB),de=this.s<<C&this.DM,xe;for(xe=this.t-1;xe>=0;--xe)g[xe+se+1]=this[xe]>>$|de,de=(this[xe]&ne)<<C;for(xe=se-1;xe>=0;--xe)g[xe]=0;g[se]=de,g.t=this.t+se+1,g.s=this.s,g.clamp()}function Z(p,g){g.s=this.s;var C=Math.floor(p/this.DB);if(C>=this.t){g.t=0;return}var $=p%this.DB,ne=this.DB-$,se=(1<<$)-1;g[0]=this[C]>>$;for(var de=C+1;de<this.t;++de)g[de-C-1]|=(this[de]&se)<<ne,g[de-C]=this[de]>>$;$>0&&(g[this.t-C-1]|=(this.s&se)<<ne),g.t=this.t-C,g.clamp()}function oe(p,g){for(var C=0,$=0,ne=Math.min(p.t,this.t);C<ne;)$+=this[C]-p[C],g[C++]=$&this.DM,$>>=this.DB;if(p.t<this.t){for($-=p.s;C<this.t;)$+=this[C],g[C++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;C<p.t;)$-=p[C],g[C++]=$&this.DM,$>>=this.DB;$-=p.s}g.s=$<0?-1:0,$<-1?g[C++]=this.DV+$:$>0&&(g[C++]=$),g.t=C,g.clamp()}function ie(p,g){var C=this.abs(),$=p.abs(),ne=C.t;for(g.t=ne+$.t;--ne>=0;)g[ne]=0;for(ne=0;ne<$.t;++ne)g[ne+C.t]=C.am(0,$[ne],g,ne,0,C.t);g.s=0,g.clamp(),this.s!=p.s&&o.ZERO.subTo(g,g)}function he(p){for(var g=this.abs(),C=p.t=2*g.t;--C>=0;)p[C]=0;for(C=0;C<g.t-1;++C){var $=g.am(C,g[C],p,2*C,0,1);(p[C+g.t]+=g.am(C+1,2*g[C],p,2*C+1,$,g.t-C-1))>=g.DV&&(p[C+g.t]-=g.DV,p[C+g.t+1]=1)}p.t>0&&(p[p.t-1]+=g.am(C,g[C],p,2*C,0,1)),p.s=0,p.clamp()}function ue(p,g,C){var $=p.abs();if(!($.t<=0)){var ne=this.abs();if(ne.t<$.t){g!=null&&g.fromInt(0),C!=null&&this.copyTo(C);return}C==null&&(C=s());var se=s(),de=this.s,xe=p.s,Me=this.DB-k($[$.t-1]);Me>0?($.lShiftTo(Me,se),ne.lShiftTo(Me,C)):($.copyTo(se),ne.copyTo(C));var Qe=se.t,yt=se[Qe-1];if(yt!=0){var pt=yt*(1<<this.F1)+(Qe>1?se[Qe-2]>>this.F2:0),__$t__=this.FV/pt,Fn=(1<<this.F1)/pt,At=1<<this.F2,wt=C.t,Rn=wt-Qe,Vt=g==null?s():g;for(se.dlShiftTo(Rn,Vt),C.compareTo(Vt)>=0&&(C[C.t++]=1,C.subTo(Vt,C)),o.ONE.dlShiftTo(Qe,Vt),Vt.subTo(se,se);se.t<Qe;)se[se.t++]=0;for(;--Rn>=0;){var Mi=C[--wt]==yt?this.DM:Math.floor(C[wt]*__$t__+(C[wt-1]+At)*Fn);if((C[wt]+=se.am(0,Mi,C,Rn,0,Qe))<Mi)for(se.dlShiftTo(Rn,Vt),C.subTo(Vt,C);C[wt]<--Mi;)C.subTo(Vt,C)}g!=null&&(C.drShiftTo(Qe,g),de!=xe&&o.ZERO.subTo(g,g)),C.t=Qe,C.clamp(),Me>0&&C.rShiftTo(Me,C),de<0&&o.ZERO.subTo(C,C)}}}function H(p){var g=s();return this.abs().divRemTo(p,null,g),this.s<0&&g.compareTo(o.ZERO)>0&&p.subTo(g,g),g}function j(p){this.m=p}function re(p){return p.s<0||p.compareTo(this.m)>=0?p.mod(this.m):p}function J(p){return p}function ge(p){p.divRemTo(this.m,null,p)}function Ee(p,g,C){p.multiplyTo(g,C),this.reduce(C)}function Pe(p,g){p.squareTo(g),this.reduce(g)}j.prototype.convert=re,j.prototype.revert=J,j.prototype.reduce=ge,j.prototype.mulTo=Ee,j.prototype.sqrTo=Pe;function ve(){if(this.t<1)return 0;var p=this[0];if(!(p&1))return 0;var g=p&3;return g=g*(2-(p&15)*g)&15,g=g*(2-(p&255)*g)&255,g=g*(2-((p&65535)*g&65535))&65535,g=g*(2-p*g%this.DV)%this.DV,g>0?this.DV-g:-g}function Ae(p){this.m=p,this.mp=p.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<p.DB-15)-1,this.mt2=2*p.t}function Ie(p){var g=s();return p.abs().dlShiftTo(this.m.t,g),g.divRemTo(this.m,null,g),p.s<0&&g.compareTo(o.ZERO)>0&&this.m.subTo(g,g),g}function He(p){var g=s();return p.copyTo(g),this.reduce(g),g}function $e(p){for(;p.t<=this.mt2;)p[p.t++]=0;for(var g=0;g<this.m.t;++g){var C=p[g]&32767,$=C*this.mpl+((C*this.mph+(p[g]>>15)*this.mpl&this.um)<<15)&p.DM;for(C=g+this.m.t,p[C]+=this.m.am(0,$,p,g,0,this.m.t);p[C]>=p.DV;)p[C]-=p.DV,p[++C]++}p.clamp(),p.drShiftTo(this.m.t,p),p.compareTo(this.m)>=0&&p.subTo(this.m,p)}function Fe(p,g){p.squareTo(g),this.reduce(g)}function ze(p,g,C){p.multiplyTo(g,C),this.reduce(C)}Ae.prototype.convert=Ie,Ae.prototype.revert=He,Ae.prototype.reduce=$e,Ae.prototype.mulTo=ze,Ae.prototype.sqrTo=Fe;function qe(){return(this.t>0?this[0]&1:this.s)==0}function F(p,g){if(p>4294967295||p<1)return o.ONE;var C=s(),$=s(),ne=g.convert(this),se=k(p)-1;for(ne.copyTo(C);--se>=0;)if(g.sqrTo(C,$),(p&1<<se)>0)g.mulTo($,ne,C);else{var de=C;C=$,$=de}return g.revert(C)}function l(p,g){var C;return p<256||g.isEven()?C=new j(g):C=new Ae(g),this.exp(p,C)}o.prototype.copyTo=w,o.prototype.fromInt=_,o.prototype.fromString=D,o.prototype.clamp=T,o.prototype.dlShiftTo=X,o.prototype.drShiftTo=ee,o.prototype.lShiftTo=Y,o.prototype.rShiftTo=Z,o.prototype.subTo=oe,o.prototype.multiplyTo=ie,o.prototype.squareTo=he,o.prototype.divRemTo=ue,o.prototype.invDigit=ve,o.prototype.isEven=qe,o.prototype.exp=F,o.prototype.toString=L,o.prototype.negate=z,o.prototype.abs=Q,o.prototype.compareTo=O,o.prototype.bitLength=V,o.prototype.mod=H,o.prototype.modPowInt=l,o.ZERO=B(0),o.ONE=B(1);function d(){var p=s();return this.copyTo(p),p}function v(){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 I(){return this.t==0?this.s:this[0]<<24>>24}function W(){return this.t==0?this.s:this[0]<<16>>16}function K(p){return Math.floor(Math.LN2*this.DB/Math.log(p))}function pe(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function _e(p){if(p==null&&(p=10),this.signum()==0||p<2||p>36)return"0";var g=this.chunkSize(p),C=Math.pow(p,g),$=B(C),ne=s(),se=s(),de="";for(this.divRemTo($,ne,se);ne.signum()>0;)de=(C+se.intValue()).toString(p).substr(1)+de,ne.divRemTo($,ne,se);return se.intValue().toString(p)+de}function we(p,g){this.fromInt(0),g==null&&(g=10);for(var C=this.chunkSize(g),$=Math.pow(g,C),ne=!1,se=0,de=0,xe=0;xe<p.length;++xe){var Me=R(p,xe);if(Me<0){p.charAt(xe)=="-"&&this.signum()==0&&(ne=!0);continue}de=g*de+Me,++se>=C&&(this.dMultiply($),this.dAddOffset(de,0),se=0,de=0)}se>0&&(this.dMultiply(Math.pow(g,se)),this.dAddOffset(de,0)),ne&&o.ZERO.subTo(this,this)}function Ce(p,g,C){if(typeof g=="number")if(p<2)this.fromInt(1);else for(this.fromNumber(p,C),this.testBit(p-1)||this.bitwiseTo(o.ONE.shiftLeft(p-1),Ft,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(g);)this.dAddOffset(2,0),this.bitLength()>p&&this.subTo(o.ONE.shiftLeft(p-1),this);else{var $=new Array,ne=p&7;$.length=(p>>3)+1,g.nextBytes($),ne>0?$[0]&=(1<<ne)-1:$[0]=0,this.fromString($,256)}}function Te(){var p=this.t,g=new Array;g[0]=this.s;var C=this.DB-p*this.DB%8,$,ne=0;if(p-- >0)for(C<this.DB&&($=this[p]>>C)!=(this.s&this.DM)>>C&&(g[ne++]=$|this.s<<this.DB-C);p>=0;)C<8?($=(this[p]&(1<<C)-1)<<8-C,$|=this[--p]>>(C+=this.DB-8)):($=this[p]>>(C-=8)&255,C<=0&&(C+=this.DB,--p)),$&128&&($|=-256),ne==0&&(this.s&128)!=($&128)&&++ne,(ne>0||$!=this.s)&&(g[ne++]=$);return g}function ut(p){return this.compareTo(p)==0}function Bt(p){return this.compareTo(p)<0?this:p}function Dt(p){return this.compareTo(p)>0?this:p}function Et(p,g,C){var $,ne,se=Math.min(p.t,this.t);for($=0;$<se;++$)C[$]=g(this[$],p[$]);if(p.t<this.t){for(ne=p.s&this.DM,$=se;$<this.t;++$)C[$]=g(this[$],ne);C.t=this.t}else{for(ne=this.s&this.DM,$=se;$<p.t;++$)C[$]=g(ne,p[$]);C.t=p.t}C.s=g(this.s,p.s),C.clamp()}function St(p,g){return p&g}function yr(p){var g=s();return this.bitwiseTo(p,St,g),g}function Ft(p,g){return p|g}function mr(p){var g=s();return this.bitwiseTo(p,Ft,g),g}function gr(p,g){return p^g}function Qt(p){var g=s();return this.bitwiseTo(p,gr,g),g}function qt(p,g){return p&~g}function Vr(p){var g=s();return this.bitwiseTo(p,qt,g),g}function dt(){for(var p=s(),g=0;g<this.t;++g)p[g]=this.DM&~this[g];return p.t=this.t,p.s=~this.s,p}function Gr(p){var g=s();return p<0?this.rShiftTo(-p,g):this.lShiftTo(p,g),g}function Er(p){var g=s();return p<0?this.lShiftTo(-p,g):this.rShiftTo(p,g),g}function Ar(p){if(p==0)return-1;var g=0;return p&65535||(p>>=16,g+=16),p&255||(p>>=8,g+=8),p&15||(p>>=4,g+=4),p&3||(p>>=2,g+=2),p&1||++g,g}function jr(){for(var p=0;p<this.t;++p)if(this[p]!=0)return p*this.DB+Ar(this[p]);return this.s<0?this.t*this.DB:-1}function Kr(p){for(var g=0;p!=0;)p&=p-1,++g;return g}function wr(){for(var p=0,g=this.s&this.DM,C=0;C<this.t;++C)p+=Kr(this[C]^g);return p}function Yr(p){var g=Math.floor(p/this.DB);return g>=this.t?this.s!=0:(this[g]&1<<p%this.DB)!=0}function Xr(p,g){var C=o.ONE.shiftLeft(p);return this.bitwiseTo(C,g,C),C}function _r(p){return this.changeBit(p,Ft)}function Jr(p){return this.changeBit(p,qt)}function br(p){return this.changeBit(p,gr)}function rt(p,g){for(var C=0,$=0,ne=Math.min(p.t,this.t);C<ne;)$+=this[C]+p[C],g[C++]=$&this.DM,$>>=this.DB;if(p.t<this.t){for($+=p.s;C<this.t;)$+=this[C],g[C++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;C<p.t;)$+=p[C],g[C++]=$&this.DM,$>>=this.DB;$+=p.s}g.s=$<0?-1:0,$>0?g[C++]=$:$<-1&&(g[C++]=this.DV+$),g.t=C,g.clamp()}function vt(p){var g=s();return this.addTo(p,g),g}function Zt(p){var g=s();return this.subTo(p,g),g}function Qr(p){var g=s();return this.multiplyTo(p,g),g}function wi(){var p=s();return this.squareTo(p),p}function _i(p){var g=s();return this.divRemTo(p,g,null),g}function bi(p){var g=s();return this.divRemTo(p,null,g),g}function Ci(p){var g=s(),C=s();return this.divRemTo(p,g,C),new Array(g,C)}function Bi(p){this[this.t]=this.am(0,p-1,this,0,0,this.t),++this.t,this.clamp()}function Di(p,g){if(p!=0){for(;this.t<=g;)this[this.t++]=0;for(this[g]+=p;this[g]>=this.DV;)this[g]-=this.DV,++g>=this.t&&(this[this.t++]=0),++this[g]}}function er(){}function Bn(p){return p}function Si(p,g,C){p.multiplyTo(g,C)}function Fi(p,g){p.squareTo(g)}er.prototype.convert=Bn,er.prototype.revert=Bn,er.prototype.mulTo=Si,er.prototype.sqrTo=Fi;function Ri(p){return this.exp(p,new er)}function Ii(p,g,C){var $=Math.min(this.t+p.t,g);for(C.s=0,C.t=$;$>0;)C[--$]=0;var ne;for(ne=C.t-this.t;$<ne;++$)C[$+this.t]=this.am(0,p[$],C,$,0,this.t);for(ne=Math.min(p.t,g);$<ne;++$)this.am(0,p[$],C,$,0,g-$);C.clamp()}function Ti(p,g,C){--g;var $=C.t=this.t+p.t-g;for(C.s=0;--$>=0;)C[$]=0;for($=Math.max(g-this.t,0);$<p.t;++$)C[this.t+$-g]=this.am(g-$,p[$],C,0,0,this.t+$-g);C.clamp(),C.drShiftTo(1,C)}function Ut(p){this.r2=s(),this.q3=s(),o.ONE.dlShiftTo(2*p.t,this.r2),this.mu=this.r2.divide(p),this.m=p}function Dn(p){if(p.s<0||p.t>2*this.m.t)return p.mod(this.m);if(p.compareTo(this.m)<0)return p;var g=s();return p.copyTo(g),this.reduce(g),g}function tr(p){return p}function Sn(p){for(p.drShiftTo(this.m.t-1,this.r2),p.t>this.m.t+1&&(p.t=this.m.t+1,p.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);p.compareTo(this.r2)<0;)p.dAddOffset(1,this.m.t+1);for(p.subTo(this.r2,p);p.compareTo(this.m)>=0;)p.subTo(this.m,p)}function Wt(p,g){p.squareTo(g),this.reduce(g)}function Oi(p,g,C){p.multiplyTo(g,C),this.reduce(C)}Ut.prototype.convert=Dn,Ut.prototype.revert=tr,Ut.prototype.reduce=Sn,Ut.prototype.mulTo=Oi,Ut.prototype.sqrTo=Wt;function Cr(p,g){var C=p.bitLength(),$,ne=B(1),se;if(C<=0)return ne;C<18?$=1:C<48?$=3:C<144?$=4:C<768?$=5:$=6,C<8?se=new j(g):g.isEven()?se=new Ut(g):se=new Ae(g);var de=new Array,xe=3,Me=$-1,Qe=(1<<$)-1;if(de[1]=se.convert(this),$>1){var yt=s();for(se.sqrTo(de[1],yt);xe<=Qe;)de[xe]=s(),se.mulTo(yt,de[xe-2],de[xe]),xe+=2}var pt=p.t-1,__$t__,Fn=!0,At=s(),wt;for(C=k(p[pt])-1;pt>=0;){for(C>=Me?__$t__=p[pt]>>C-Me&Qe:(__$t__=(p[pt]&(1<<C+1)-1)<<Me-C,pt>0&&(__$t__|=p[pt-1]>>this.DB+C-Me)),xe=$;!(__$t__&1);)__$t__>>=1,--xe;if((C-=xe)<0&&(C+=this.DB,--pt),Fn)de[__$t__].copyTo(ne),Fn=!1;else{for(;xe>1;)se.sqrTo(ne,At),se.sqrTo(At,ne),xe-=2;xe>0?se.sqrTo(ne,At):(wt=ne,ne=At,At=wt),se.mulTo(At,de[__$t__],ne)}for(;pt>=0&&!(p[pt]&1<<C);)se.sqrTo(ne,At),wt=ne,ne=At,At=wt,--C<0&&(C=this.DB-1,--pt)}return se.revert(ne)}function Zr(p){var g=this.s<0?this.negate():this.clone(),C=p.s<0?p.negate():p.clone();if(g.compareTo(C)<0){var $=g;g=C,C=$}var ne=g.getLowestSetBit(),se=C.getLowestSetBit();if(se<0)return g;for(ne<se&&(se=ne),se>0&&(g.rShiftTo(se,g),C.rShiftTo(se,C));g.signum()>0;)(ne=g.getLowestSetBit())>0&&g.rShiftTo(ne,g),(ne=C.getLowestSetBit())>0&&C.rShiftTo(ne,C),g.compareTo(C)>=0?(g.subTo(C,g),g.rShiftTo(1,g)):(C.subTo(g,C),C.rShiftTo(1,C));return se>0&&C.lShiftTo(se,C),C}function Pi(p){if(p<=0)return 0;var g=this.DV%p,C=this.s<0?p-1:0;if(this.t>0)if(g==0)C=this[0]%p;else for(var $=this.t-1;$>=0;--$)C=(g*C+this[$])%p;return C}function Ni(p){var g=p.isEven();if(this.isEven()&&g||p.signum()==0)return o.ZERO;for(var C=p.clone(),$=this.clone(),ne=B(1),se=B(0),de=B(0),xe=B(1);C.signum()!=0;){for(;C.isEven();)C.rShiftTo(1,C),g?((!ne.isEven()||!se.isEven())&&(ne.addTo(this,ne),se.subTo(p,se)),ne.rShiftTo(1,ne)):se.isEven()||se.subTo(p,se),se.rShiftTo(1,se);for(;$.isEven();)$.rShiftTo(1,$),g?((!de.isEven()||!xe.isEven())&&(de.addTo(this,de),xe.subTo(p,xe)),de.rShiftTo(1,de)):xe.isEven()||xe.subTo(p,xe),xe.rShiftTo(1,xe);C.compareTo($)>=0?(C.subTo($,C),g&&ne.subTo(de,ne),se.subTo(xe,se)):($.subTo(C,$),g&&de.subTo(ne,de),xe.subTo(se,xe))}if($.compareTo(o.ONE)!=0)return o.ZERO;if(xe.compareTo(p)>=0)return xe.subtract(p);if(xe.signum()<0)xe.addTo(p,xe);else return xe;return xe.signum()<0?xe.add(p):xe}var Xe=[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],Li=(1<<26)/Xe[Xe.length-1];function ki(p){var g,C=this.abs();if(C.t==1&&C[0]<=Xe[Xe.length-1]){for(g=0;g<Xe.length;++g)if(C[0]==Xe[g])return!0;return!1}if(C.isEven())return!1;for(g=1;g<Xe.length;){for(var $=Xe[g],ne=g+1;ne<Xe.length&&$<Li;)$*=Xe[ne++];for($=C.modInt($);g<ne;)if($%Xe[g++]==0)return!1}return C.millerRabin(p)}function b(p){var g=this.subtract(o.ONE),C=g.getLowestSetBit();if(C<=0)return!1;var $=g.shiftRight(C);p=p+1>>1,p>Xe.length&&(p=Xe.length);for(var ne=s(),se=0;se<p;++se){ne.fromInt(Xe[Math.floor(Math.random()*Xe.length)]);var de=ne.modPow($,this);if(de.compareTo(o.ONE)!=0&&de.compareTo(g)!=0){for(var xe=1;xe++<C&&de.compareTo(g)!=0;)if(de=de.modPowInt(2,this),de.compareTo(o.ONE)==0)return!1;if(de.compareTo(g)!=0)return!1}}return!0}o.prototype.chunkSize=K,o.prototype.toRadix=_e,o.prototype.fromRadix=we,o.prototype.fromNumber=Ce,o.prototype.bitwiseTo=Et,o.prototype.changeBit=Xr,o.prototype.addTo=rt,o.prototype.dMultiply=Bi,o.prototype.dAddOffset=Di,o.prototype.multiplyLowerTo=Ii,o.prototype.multiplyUpperTo=Ti,o.prototype.modInt=Pi,o.prototype.millerRabin=b,o.prototype.clone=d,o.prototype.intValue=v,o.prototype.byteValue=I,o.prototype.shortValue=W,o.prototype.signum=pe,o.prototype.toByteArray=Te,o.prototype.equals=ut,o.prototype.min=Bt,o.prototype.max=Dt,o.prototype.and=yr,o.prototype.or=mr,o.prototype.xor=Qt,o.prototype.andNot=Vr,o.prototype.not=dt,o.prototype.shiftLeft=Gr,o.prototype.shiftRight=Er,o.prototype.getLowestSetBit=jr,o.prototype.bitCount=wr,o.prototype.testBit=Yr,o.prototype.setBit=_r,o.prototype.clearBit=Jr,o.prototype.flipBit=br,o.prototype.add=vt,o.prototype.subtract=Zt,o.prototype.multiply=Qr,o.prototype.divide=_i,o.prototype.remainder=bi,o.prototype.divideAndRemainder=Ci,o.prototype.modPow=Cr,o.prototype.modInverse=Ni,o.prototype.pow=Ri,o.prototype.gcd=Zr,o.prototype.isProbablePrime=ki,o.prototype.square=wi,o.prototype.Barrett=Ut;var N,S,M;function q(p){S[M++]^=p&255,S[M++]^=p>>8&255,S[M++]^=p>>16&255,S[M++]^=p>>24&255,M>=We&&(M-=We)}function U(){q(new Date().getTime())}if(S==null){S=new Array,M=0;var te;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var ae=new Uint8Array(32);for(window.crypto.getRandomValues(ae),te=0;te<32;++te)S[M++]=ae[te]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ce=window.crypto.random(32);for(te=0;te<ce.length;++te)S[M++]=ce.charCodeAt(te)&255}}for(;M<We;)te=Math.floor(65536*Math.random()),S[M++]=te>>>8,S[M++]=te&255;M=0,U()}function fe(){if(N==null){for(U(),N=Ke(),N.init(S),M=0;M<S.length;++M)S[M]=0;M=0}return N.next()}function le(p){var g;for(g=0;g<p.length;++g)p[g]=fe()}function ye(){}ye.prototype.nextBytes=le;function De(){this.i=0,this.j=0,this.S=new Array}function Ne(p){var g,C,$;for(g=0;g<256;++g)this.S[g]=g;for(C=0,g=0;g<256;++g)C=C+this.S[g]+p[g%p.length]&255,$=this.S[g],this.S[g]=this.S[C],this.S[C]=$;this.i=0,this.j=0}function Le(){var p;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,p=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=p,this.S[p+this.S[this.i]&255]}De.prototype.init=Ne,De.prototype.next=Le;function Ke(){return new De}var We=256;t.exports={default:o,BigInteger:o,SecureRandom:ye}}).call(be)})(fu);var ke=fu.exports,J1=ke.BigInteger.prototype.Barrett;function st(t,e){this.x=e,this.q=t}function ft(t,e,r,n){this.curve=t,this.x=e,this.y=r,this.z=n==null?ke.BigInteger.ONE:n,this.zinv=null}function Ot(t,e,r){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(r),this.infinity=new ft(this,null,null),this.reducer=new J1(this.q)}st.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},st.prototype.toBigInteger=function(){return this.x},st.prototype.negate=function(){return new st(this.q,this.x.negate().mod(this.q))},st.prototype.add=function(t){return new st(this.q,this.x.add(t.toBigInteger()).mod(this.q))},st.prototype.subtract=function(t){return new st(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},st.prototype.multiply=function(t){return new st(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},st.prototype.square=function(){return new st(this.q,this.x.square().mod(this.q))},st.prototype.divide=function(t){return new st(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},ft.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)},ft.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)},ft.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(ke.BigInteger.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(ke.BigInteger.ZERO))},ft.prototype.isInfinity=function(){return this.x==null&&this.y==null||this.z.equals(ke.BigInteger.ZERO)&&!this.y.toBigInteger().equals(ke.BigInteger.ZERO)},ft.prototype.negate=function(){return new ft(this.curve,this.x,this.y.negate(),this.z)},ft.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(ke.BigInteger.ZERO.equals(r))return ke.BigInteger.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new ke.BigInteger("3"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),s=(t.x.toBigInteger(),t.y.toBigInteger(),r.square()),a=s.multiply(r),u=i.multiply(s),c=e.square().multiply(this.z),f=c.subtract(u.shiftLeft(1)).multiply(t.z).subtract(a).multiply(r).mod(this.curve.q),x=u.multiply(n).multiply(e).subtract(o.multiply(a)).subtract(c.multiply(e)).multiply(t.z).add(e.multiply(a)).mod(this.curve.q),h=a.multiply(this.z).multiply(t.z).mod(this.curve.q);return new ft(this.curve,this.curve.fromBigInteger(f),this.curve.fromBigInteger(x),h)},ft.prototype.twice=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var t=new ke.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(),s=e.square().multiply(t);ke.BigInteger.ZERO.equals(o)||(s=s.add(this.z.square().multiply(o)));var a=(s=s.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(n).mod(this.curve.q),u=s.multiply(t).multiply(e).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(s.square().multiply(s)).mod(this.curve.q),c=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new ft(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(u),c)},ft.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 ke.BigInteger("3")),i=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var s=n.testBit(e);s!=r.testBit(e)&&(o=o.add(s?this:i))}return o},ft.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},Ot.prototype.getQ=function(){return this.q},Ot.prototype.getA=function(){return this.a},Ot.prototype.getB=function(){return this.b},Ot.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},Ot.prototype.getInfinity=function(){return this.infinity},Ot.prototype.fromBigInteger=function(t){return new st(this.q,t)},Ot.prototype.reduce=function(t){this.reducer.reduce(t)},Ot.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 ft(this,this.fromBigInteger(new ke.BigInteger(r,16)),this.fromBigInteger(new ke.BigInteger(n,16)));default:return null}},Ot.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 Ze=function(t,e){return t<<(e%=32)|t>>>32-e},Tt=function(t,e){var r=e-t.length;return(r>0?"0".repeat(r):"")+t},Q1=function(t){return t<16?2043430169:2055708042},Z1=function(t,e,r,n){return n<16?t^e^r:t&e|t&r|e&r},ex=function(t,e,r,n){return n<16?t^e^r:t&e|~t&r},tx=function(t,e,r){for(var n,i,o,s,a,u=function(w){var _,B=new Array(132);w.forEach(function(L,z){B[z]=L});for(var D=16;D<68;D++)B[D]=(_=B[D-16]^B[D-9]^Ze(B[D-3],15))^Ze(_,15)^Ze(_,23)^Ze(B[D-13],7)^B[D-6];for(var T=0;T<64;T++)B[T+68]=B[T]^B[T+4];return B}(e),c=t[0],f=t[1],x=t[2],h=t[3],y=t[4],m=t[5],E=t[6],A=t[7],R=0;R<64;R++)i=(n=Ze(Ze(c,12)+y+Ze(Q1(R),R),7))^Ze(c,12),o=Z1(c,f,x,R)+h+i+u[R+68],s=ex(y,m,E,R)+A+n+u[R],h=x,x=Ze(f,9),f=c,c=o,A=E,E=Ze(m,19),m=y,y=(a=s)^Ze(a,9)^Ze(a,17);return[c^t[0],f^t[1],x^t[2],h^t[3],y^t[4],m^t[5],E^t[6],A^t[7]]},h0=function(t,e,r){if(typeof t=="string"?t=Se.Buffer.from(t,e||"utf8"):t instanceof ArrayBuffer&&(t=Se.Buffer.from(t)),!Se.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var n,i,o,s,a,u;n=t,i=Se.Buffer.alloc(1,128),s=Se.Buffer.alloc(o=(o=n.length%64)>=56?64-o%56-1:56-o-1,0),a=Se.Buffer.alloc(8),u=8*n.length,a.writeUInt32BE(Math.floor(u/Math.pow(2,32)),0),a.writeUInt32BE(u%Math.pow(2,32),4);for(var c=(t=Se.Buffer.concat([n,i,s,a],n.length+1+o+8)).length/64,f=new Array(c),x=0;x<c;x++){f[x]=new Array(16);for(var h=0;h<16;h++)f[x][h]=t.readUInt32BE(64*x+4*h)}var y=new Array(c);y[0]=[1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214];for(var m=0;m<c;m++)y[m+1]=tx(y[m],f[m]);var E=Se.Buffer.alloc(32);return y[c].forEach(function(A,R){return E.writeInt32BE(A,4*R)}),r?E.toString(r):pn(E)},bs=new ke.SecureRandom,U0=function(){var t=new Ot(new ke.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),new ke.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),new ke.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16)),e=t.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:t,G:e,n:new ke.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}(),Cs=U0.curve,Bs=U0.G,Nn=U0.n;function Ds(t,e){for(var r=[],n=Math.ceil(e/32),i=e%32,o=1;o<=n;o++){var s=Se.Buffer.allocUnsafe(4);s.writeUInt32BE(o);var a=h0(Se.Buffer.concat([t,s]));r.push(o===n&&i?Se.Buffer.from(a).slice(0,i):Se.Buffer.from(a))}return Se.Buffer.concat(r,e)}var rx={__proto__:null,constants:{C1C2C3:0,C1C3C2:1,PC:"04"},generateKeyPair:function(){var t=new ke.BigInteger(Nn.bitLength(),bs).mod(Nn.subtract(new ke.BigInteger("2"))).add(ke.BigInteger.ONE),e=Tt(t.toString(16),64),r=Bs.multiply(t);return{privateKey:e,publicKey:"04"+Tt(r.getX().toBigInteger().toString(16),64)+Tt(r.getY().toBigInteger().toString(16),64)}},encrypt:function(t,e,r){var n=r||{},i=n.mode,o=i===void 0?1:i,s=n.outputEncoding,a=n.pc;if(typeof t=="string"?t=Se.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=Se.Buffer.from(t)),!Se.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var u=new ke.BigInteger(Nn.bitLength(),bs).mod(Nn.subtract(ke.BigInteger.ONE)).add(ke.BigInteger.ONE),c=Bs.multiply(u),f=Tt(c.getX().toBigInteger().toString(16),64)+Tt(c.getY().toBigInteger().toString(16),64),x=Cs.decodePointHex(e).multiply(u),h=Tt(x.getX().toBigInteger().toString(16),64),y=Tt(x.getY().toBigInteger().toString(16),64),m=Ds(Se.Buffer.from(h+y,"hex"),t.length),E=Tt(new ke.BigInteger(t.toString("hex"),16).xor(new ke.BigInteger(m.toString("hex"),16)).toString(16),2*t.length),A=h0(h+t.toString("hex")+y,"hex","hex"),R=Se.Buffer.from((a?"04":"")+(o===0?f+E+A:f+A+E),"hex");return s?R.toString(s):pn(R)},decrypt:function(t,e,r){var n=r||{},i=n.mode,o=i===void 0?1:i,s=n.outputEncoding,a=n.pc;if(typeof t=="string"?t=Se.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=Se.Buffer.from(t)),!Se.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var u=(t=a?t.slice(1):t).slice(0,32).toString("hex"),c=t.slice(32,64).toString("hex"),f=Cs.decodePointHex("04"+u+c).multiply(new ke.BigInteger(e,16)),x=Tt(f.getX().toBigInteger().toString(16),64),h=Tt(f.getY().toBigInteger().toString(16),64),y=t.slice(64,96),m=t.slice(96);o===0&&(y=t.slice(t.length-32),m=t.slice(64,t.length-32));var E=Ds(Se.Buffer.from(x+h,"hex"),m.length),A=new ke.BigInteger(m.toString("hex"),16).xor(new ke.BigInteger(E.toString("hex"),16)).toString(16),R=h0(x+A+h,"hex","hex")===y.toString("hex")?Se.Buffer.from(A,"hex"):Se.Buffer.alloc(0);return s?R.toString(s):pn(R)}},Ln=[[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]],kn=[2746333894,1453994832,1736282519,2993693404],nx=[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],Mn=/^[0-9a-f]{32}$/i,lu=function(t){return Ln[(4026531840&t)>>>28][(251658240&t)>>>24]<<24|Ln[(15728640&t)>>>20][(983040&t)>>>16]<<16|Ln[(61440&t)>>>12][(3840&t)>>>8]<<8|Ln[(240&t)>>>4][(15&t)>>>0]<<0},hu=function(t){return(e=lu(t))^Ze(e,2)^Ze(e,10)^Ze(e,18)^Ze(e,24);var e},du=function(t){var e,r=new Array(36);r[0]=t[0]^kn[0],r[1]=t[1]^kn[1],r[2]=t[2]^kn[2],r[3]=t[3]^kn[3];for(var n=new Array(32),i=0;i<32;i++)r[i+4]=r[i]^(e=lu(r[i+1]^r[i+2]^r[i+3]^nx[i]))^Ze(e,13)^Ze(e,23),n[i]=r[i+4];return n},Ss=function(t,e){for(var r=du(e),n=0;n<32;n++)t[n+4]=t[n]^hu(t[n+1]^t[n+2]^t[n+3]^r[n]);return[t[35],t[34],t[33],t[32]]},Fs=function(t,e){for(var r=du(e).reverse(),n=0;n<32;n++)t[n+4]=t[n]^hu(t[n+1]^t[n+2]^t[n+3]^r[n]);return[t[35],t[34],t[33],t[32]]},Un=function(t){return[t.readInt32BE(0),t.readInt32BE(4),t.readInt32BE(8),t.readInt32BE(12)]},$n=function(t){for(var e=Se.Buffer.alloc(16),r=0;r<4;r++)e.writeInt32BE(t[r],4*r);return e},Hr={__proto__:null,constants:{ECB:1,CBC:2},encrypt:function(t,e,r){var n=r||{},i=n.mode,o=n.iv,s=n.outputEncoding;if(typeof t=="string"?t=Se.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=Se.Buffer.from(t)),!Se.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');if(!Mn.test(e))throw new TypeError("Invalid value of cipher `key`");if(e=Se.Buffer.from(e,"hex"),i===2&&!Mn.test(o))throw new TypeError("Invalid value of `iv` option");return function(a,u,c,f){c&&(c=Un(c)),u=Un(u);for(var x=[],h=(a=function(D){var T=16-D.length%16,L=Se.Buffer.alloc(T,T);return Se.Buffer.concat([D,L],D.length+T)}(a)).length/16,y=0;y<h;y++)if(c){var m=16*y,E=[c[0]^a.readInt32BE(m),c[1]^a.readInt32BE(m+4),c[2]^a.readInt32BE(m+8),c[3]^a.readInt32BE(m+12)],A=Ss(E,u);x.push($n(A)),c=A.slice(0)}else{var R=16*y,w=[a.readInt32BE(R),a.readInt32BE(R+4),a.readInt32BE(R+8),a.readInt32BE(R+12)],_=Ss(w,u);x.push($n(_))}var B=Se.Buffer.concat(x,a.length);return f?B.toString(f):pn(B)}(t,e,o=i===2?Se.Buffer.from(o,"hex"):null,s)},decrypt:function(t,e,r){var n=r||{},i=n.mode,o=n.iv,s=n.outputEncoding;if(typeof t=="string"?t=Se.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=Se.Buffer.from(t)),!Se.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');if(!Mn.test(e))throw new TypeError("Invalid value of cipher `key`");if(e=Se.Buffer.from(e,"hex"),i===2&&!Mn.test(o))throw new TypeError("Invalid value of `iv` option");return function(a,u,c,f){c&&(c=Un(c)),u=Un(u);var x=[],h=a.length/16;if(c)for(var y=h-1;y>=0;y--){var m,E=16*y;m=y>0?[a.readInt32BE(E-16),a.readInt32BE(E-16+4),a.readInt32BE(E-16+8),a.readInt32BE(E-16+12)]:c;var A=[a.readInt32BE(E),a.readInt32BE(E+4),a.readInt32BE(E+8),a.readInt32BE(E+12)],R=Fs(A,u);x.unshift($n([R[0]^m[0],R[1]^m[1],R[2]^m[2],R[3]^m[3]]))}else for(var w=0;w<h;w++){var _=16*w,B=[a.readInt32BE(_),a.readInt32BE(_+4),a.readInt32BE(_+8),a.readInt32BE(_+12)],D=Fs(B,u);x.push($n(D))}var T=Se.Buffer.concat(x,a.length-x[x.length-1][15]);return f?T.toString(f):pn(T)}(t,e,o=i===2?Se.Buffer.from(o,"hex"):null,s)}};(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 ix(){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,s,a,u;for(o=r.length,i=0,n="";i<o;){if(s=r.charCodeAt(i++)&255,i==o){n+=t.charAt(s>>2),n+=t.charAt((s&3)<<4),n+="==";break}if(a=r.charCodeAt(i++),i==o){n+=t.charAt(s>>2),n+=t.charAt((s&3)<<4|(a&240)>>4),n+=t.charAt((a&15)<<2),n+="=";break}u=r.charCodeAt(i++),n+=t.charAt(s>>2),n+=t.charAt((s&3)<<4|(a&240)>>4),n+=t.charAt((a&15)<<2|(u&192)>>6),n+=t.charAt(u&63)}return n},this.decode=function(r){var n,i,o,s,a,u,c;for(u=r.length,a=0,c="";a<u;){do n=e[r.charCodeAt(a++)&255];while(a<u&&n==-1);if(n==-1)break;do i=e[r.charCodeAt(a++)&255];while(a<u&&i==-1);if(i==-1)break;c+=String.fromCharCode(n<<2|(i&48)>>4);do{if(o=r.charCodeAt(a++)&255,o==61)return c;o=e[o]}while(a<u&&o==-1);if(o==-1)break;c+=String.fromCharCode((i&15)<<4|(o&60)>>2);do{if(s=r.charCodeAt(a++)&255,s==61)return c;s=e[s]}while(a<u&&s==-1);if(s==-1)break;c+=String.fromCharCode((o&3)<<6|s)}return c},this.utf16to8=function(r){var n,i,o,s;for(n="",o=r.length,i=0;i<o;i++)s=r.charCodeAt(i),s>=1&&s<=127?n+=r.charAt(i):s>2047?(n+=String.fromCharCode(224|s>>12&15),n+=String.fromCharCode(128|s>>6&63),n+=String.fromCharCode(128|s>>0&63)):(n+=String.fromCharCode(192|s>>6&31),n+=String.fromCharCode(128|s>>0&63));return n},this.utf8to16=function(r){var n,i,o,s,a,u;for(n="",o=r.length,i=0;i<o;)switch(s=r.charCodeAt(i++),s>>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:a=r.charCodeAt(i++),n+=String.fromCharCode((s&31)<<6|a&63);break;case 14:a=r.charCodeAt(i++),u=r.charCodeAt(i++),n+=String.fromCharCode((s&15)<<12|(a&63)<<6|(u&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
|
|
35
|
+
`:", ";return n}}function ox(){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 ax(t){if(this.connect=!1,this.ready_func_=null,this.callbacks_=new ox,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 s=JSON.stringify(o);this.connect&&this.ws.send(s)},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},s){this.exec("Arm_WriteFile",[parseInt(e),n,parseInt(r),parseInt(i),o],s)},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},s){this.exec("Arm_ChangePIN",[parseInt(e),o,n,r,parseInt(i)],s)},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},s){this.exec("Arm_RsaPri",[parseInt(e),parseInt(i),parseInt(o),r,n],s)},this.Arm_RsaPub=function({Handle:e,RsaPubKey:r,RsaPub_Flag:n,RsaPubInData:i,RsaPubFileSize:o},s){this.exec("Arm_RsaPub",[parseInt(e),parseInt(o),n,r,r.length,i],s)},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:s,UserPin:a,UserTryCount:u,UpdateRSAPriKey:c},f){this.exec("Arm_GenMotherKey",[parseInt(e),parseInt(r),n,a,parseInt(u),parseInt(s),c,parseInt(o),parseInt(i)],f)},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:s,DataLen:a,DataBuffer:u,UpRSAPubKey:c},f){this.exec("Arm_MakeUpdatePacket",[parseInt(e),r,n,o,parseInt(i),parseInt(s),u,c,parseInt(a)],f)},this.Arm_MakeUpdatePacketFromMother=function({Handle:e,HID:r,Func:n,FileID:i,FileType:o,Offset:s,DataLen:a,DataBuffer:u},c){this.exec("Arm_MakeUpdatePacketFromMother",[parseInt(e),r,n,o,parseInt(i),parseInt(s),u,parseInt(a)],c)},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:s},a){this.exec("Arm_Set_PRIKEY_FILE_ATTR",[n,parseInt(r),parseInt(e),parseInt(i),parseInt(s),parseInt(o)],a)},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},s){this.exec("Arm_Set_EXE_FILE_INFO",[i,parseInt(n),parseInt(e),parseInt(o),r,r.length],s)},this.Arm_Clear_EXE_FILE_INFO=function({InBuffer:e},r){this.exec("Arm_Clear_EXE_FILE_INFO",[e],r)}}const sx={HID:0},Hn={PRODUCT_ID:0,USER_ID:1,HARDWARE_ID:2},Rs={USER:0};class pu{constructor(){rr(this,"Base64",new ix);rr(this,"AtlCtrl",null);rr(this,"ArmCount",0);rr(this,"ArmIndex",0);rr(this,"ArmHandle",0);rr(this,"ArmRandom","");try{this.AtlCtrl=new ax("{39E9B272-82A7-4177-A19D-6723C1BDB0CC}")}catch(e){console.error(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((s,a)=>{this.AtlCtrl.Arm_ChangePIN({Handle:o,NewPIN:e,OldPIN:r,TryCount:n,PinFlag:i},(u,c)=>{u&&c==0?(this.ArmPin=e,s(c)):a(c)})})}armGenRandom(e=16,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_GenRandom({Handle:r,RandomLen:e},(o,s)=>{o?(this.ArmRandom=s,n(s)):i(s)})})}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,s)=>{o?(this.ArmUKey=s,n(s)):i(s)})})}armGetDongleInfo(e=0,r=Hn.HARDWARE_ID){if(this.AtlCtrl)return this.ArmIndex=e,new Promise((n,i)=>{this.AtlCtrl.Arm_GetDongleInfo({Index:e,DongleInfoNum:r},(o,s)=>{if(o){switch(r){case Hn.USER_ID:this.ArmUid=s;break;case Hn.PRODUCT_ID:this.ArmPid=s;break;case Hn.HARDWARE_ID:this.ArmHid=s;break}n(s)}else i(s)})})}armLEDControl(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_LEDControl({Handle:r,LedFlag:e},(o,s)=>{o&&s==0?n(s):i(s)})})}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,s)=>{if(o&&s.length>0)try{s=this.Base64.decode(s),n(s)}catch(a){console.error(a),n(s)}else i(s)})})}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,s)=>{o&&s==0?n(s):i(s)})})}armSetUserID(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SetUserID({Handle:r,UserID:e},(o,s)=>{o&&s==0?n(s):i(s)})})}armSetDeadline(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SetDeadline({Handle:r,SetDeadTime:e},(o,s)=>{o&&s==0?n(s):i(s)})})}armSwitchProtocol(e=sx.HID,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SwitchProtocol({Handle:r,ProtocolFlag:e},(o,s)=>{o&&s==0?n(s):i(s)})})}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},(s,a)=>{s&&a==0?(this.ArmPin=e,i(a)):o(a)})})}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},(s,a)=>{s?(this.ArmData=a,i(a)):o(a)})})}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},(s,a)=>{s&&a==0?i(a):o(a)})})}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,s)=>{o&&s==0?n(s):i(s)})})}}const xu=Symbol(),Xn="el",cx="is-",ir=(t,e,r,n,i)=>{let o=`${t}-${e}`;return r&&(o+=`-${r}`),n&&(o+=`__${n}`),i&&(o+=`--${i}`),o},vu=Symbol("namespaceContextKey"),ux=t=>{const e=t||(P.getCurrentInstance()?P.inject(vu,P.ref(Xn)):P.ref(Xn));return P.computed(()=>P.unref(e)||Xn)},$0=(t,e)=>{const r=ux(e);return{namespace:r,b:(E="")=>ir(r.value,t,E,"",""),e:E=>E?ir(r.value,t,"",E,""):"",m:E=>E?ir(r.value,t,"","",E):"",be:(E,A)=>E&&A?ir(r.value,t,E,A,""):"",em:(E,A)=>E&&A?ir(r.value,t,"",E,A):"",bm:(E,A)=>E&&A?ir(r.value,t,E,"",A):"",bem:(E,A,R)=>E&&A&&R?ir(r.value,t,E,A,R):"",is:(E,...A)=>{const R=A.length>=1?A[0]:!0;return E&&R?`${cx}${E}`:""},cssVar:E=>{const A={};for(const R in E)E[R]&&(A[`--${r.value}-${R}`]=E[R]);return A},cssVarName:E=>`--${r.value}-${E}`,cssVarBlock:E=>{const A={};for(const R in E)E[R]&&(A[`--${r.value}-${t}-${R}`]=E[R]);return A},cssVarBlockName:E=>`--${r.value}-${t}-${E}`}};/**
|
|
36
36
|
* @vue/shared v3.5.33
|
|
37
37
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
38
38
|
* @license MIT
|
|
39
|
-
**/process.env.NODE_ENV!=="production"&&Object.freeze({});process.env.NODE_ENV!=="production"&&Object.freeze([]);const fx=Object.prototype.hasOwnProperty,
|
|
40
|
-
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:n,currentZIndex:i,nextZIndex:o}};var Tx={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Ox=t=>(e,r)=>Px(e,r,P.unref(t)),Px=(t,e,r)=>b0.get(r,t,t).replace(/\{(\w+)\}/g,(n,i)=>{var o;return`${(o=e==null?void 0:e[i])!=null?o:`{${i}}`}`}),Nx=t=>{const e=P.computed(()=>P.unref(t).name),r=P.isRef(t)?t:P.ref(t);return{lang:e,locale:r,t:Ox(t)}},_u=Symbol("localeContextKey"),Lx=t=>{const e=t||P.inject(_u,P.ref());return Nx(P.computed(()=>e.value||Tx))},bu="__epPropKey",lt=t=>t,kx=t=>mu(t)&&!!t[bu],Cu=(t,e)=>{if(!mu(t)||kx(t))return t;const{values:r,required:n,default:i,type:o,validator:s}=t,l={type:o,required:!!n,validator:r||s?c=>{let u=!1,x=[];if(r&&(x=Array.from(r),p0(t,"default")&&x.push(i),u||(u=x.includes(c))),s&&(u||(u=s(c))),!u&&x.length>0){const h=[...new Set(x)].map(y=>JSON.stringify(y)).join(", ");P.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[bu]:!0};return p0(t,"default")&&(l.default=i),l},Cn=t=>b0.fromPairs(Object.entries(t).map(([e,r])=>[e,Cu(r,e)])),Mx=["","default","small","large"],Ux=Cu({type:String,values:Mx,required:!1}),$x=Symbol("size"),Hx=Symbol("emptyValuesContextKey"),zx=Cn({emptyValues:Array,valueOnClear:{type:lt([String,Number,Boolean,Function]),default:void 0,validator:t=>(t=ni(t)?t():t,lx(t)?t.every(e=>!e):!t)}}),zs=t=>Object.keys(t),ii=P.ref();function Bu(t,e=void 0){return P.getCurrentInstance()?P.inject(vu,ii):ii}function qx(t,e){const r=Bu(),n=H0(t,P.computed(()=>{var a;return((a=r.value)==null?void 0:a.namespace)||Xn})),i=Lx(P.computed(()=>{var a;return(a=r.value)==null?void 0:a.locale})),o=Ix(P.computed(()=>{var a;return((a=r.value)==null?void 0:a.zIndex)||Au})),s=P.computed(()=>{var a;return P.unref(e)||((a=r.value)==null?void 0:a.size)||""});return Du(P.computed(()=>P.unref(r)||{})),{ns:n,locale:i,zIndex:o,size:s}}const Du=(t,e,r=!1)=>{var n;const i=!!P.getCurrentInstance(),o=i?Bu():void 0,s=(n=void 0)!=null?n:i?P.provide:void 0;if(!s){bn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const a=P.computed(()=>{const l=P.unref(t);return o!=null&&o.value?Wx(o.value,l):l});return s(vu,a),s(_u,P.computed(()=>a.value.locale)),s(yu,P.computed(()=>a.value.namespace)),s(wu,P.computed(()=>a.value.zIndex)),s($x,{size:P.computed(()=>a.value.size||"")}),s(Hx,P.computed(()=>({emptyValues:a.value.emptyValues,valueOnClear:a.value.valueOnClear}))),(r||!ii.value)&&(ii.value=a.value),a},Wx=(t,e)=>{const r=[...new Set([...zs(t),...zs(e)])],n={};for(const i of r)n[i]=e[i]!==void 0?e[i]:t[i];return n};var W0=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r};const Vx="utils/dom/style";function x0(t,e="px"){if(!t&&t!==0)return"";if(lr(t)||dx(t))return`${t}${e}`;if(Wr(t))return t;bn(Vx,"binding value must be a string or number")}const Su=(t,e)=>(t.install=r=>{for(const n of[t,...Object.values({})])r.component(n.name,n)},t),Gx=(t,e)=>(t.install=r=>{t._context=r._context,r.config.globalProperties[e]=t},t),jx=Cn({size:{type:lt([Number,String])},color:{type:String}}),Kx=P.defineComponent({name:"ElIcon",inheritAttrs:!1}),Yx=P.defineComponent(Rt(Ue({},Kx),{props:jx,setup(t){const e=t,r=H0("icon"),n=P.computed(()=>{const{size:i,color:o}=e,s=x0(i);return!s&&!o?{}:{fontSize:s,"--color":o}});return(i,o)=>(P.openBlock(),P.createElementBlock("i",P.mergeProps({class:P.unref(r).b(),style:P.unref(n)},i.$attrs),[P.renderSlot(i.$slots,"default")],16))}}));var Xx=W0(Yx,[["__file","icon.vue"]]);const qs=Su(Xx);/*! Element Plus Icons Vue v2.3.2 */var Jx=P.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,r)=>(P.openBlock(),P.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[P.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Qx=Jx,Zx=P.defineComponent({name:"Close",__name:"close",setup(t){return(e,r)=>(P.openBlock(),P.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[P.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),ev=Zx,tv=P.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(e,r)=>(P.openBlock(),P.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[P.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Ws=tv,rv=P.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,r)=>(P.openBlock(),P.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[P.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),nv=rv,iv=P.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,r)=>(P.openBlock(),P.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[P.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),ov=iv;const av=lt([String,Object,Function]),sv={Close:ev},Vs={primary:Ws,success:nv,warning:ov,error:Qx,info:Ws},cv=()=>vr&&/android/i.test(window.navigator.userAgent),uv=t=>t,v0={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},fv=t=>{if(t.code&&t.code!=="Unidentified")return t.code;const e=lv(t);if(e){if(Object.values(v0).includes(e))return e;switch(e){case" ":return v0.space;default:return""}}return""},lv=t=>{let e=t.key&&t.key!=="Unidentified"?t.key:"";if(!e&&t.type==="keyup"&&cv()){const r=t.target;e=r.value.charAt(r.selectionStart-1)}return e},hv=Cn({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:lt([String,Object,Array])},offset:{type:lt(Array),default:[0,0]},badgeClass:{type:String}}),dv=P.defineComponent({name:"ElBadge"}),pv=P.defineComponent(Rt(Ue({},dv),{props:hv,setup(t,{expose:e}){const r=t,n=H0("badge"),i=P.computed(()=>r.isDot?"":lr(r.value)&&lr(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`),o=P.computed(()=>{var s;return[{backgroundColor:r.color,marginRight:x0(-r.offset[0]),marginTop:x0(r.offset[1])},(s=r.badgeStyle)!=null?s:{}]});return e({content:i}),(s,a)=>(P.openBlock(),P.createElementBlock("div",{class:P.normalizeClass(P.unref(n).b())},[P.renderSlot(s.$slots,"default"),P.createVNode(P.Transition,{name:`${P.unref(n).namespace.value}-zoom-in-center`,persisted:""},{default:P.withCtx(()=>[P.withDirectives(P.createElementVNode("sup",{class:P.normalizeClass([P.unref(n).e("content"),P.unref(n).em("content",s.type),P.unref(n).is("fixed",!!s.$slots.default),P.unref(n).is("dot",s.isDot),P.unref(n).is("hide-zero",!s.showZero&&s.value===0),s.badgeClass]),style:P.normalizeStyle(P.unref(o))},[P.renderSlot(s.$slots,"content",{value:P.unref(i)},()=>[P.createTextVNode(P.toDisplayString(P.unref(i)),1)])],6),[[P.vShow,!s.hidden&&(P.unref(i)||s.isDot||s.$slots.content)]])]),_:3},8,["name"])],2))}}));var xv=W0(pv,[["__file","badge.vue"]]);const vv=Su(xv),yv=Cn(Ue({a11y:{type:Boolean,default:!0},locale:{type:lt(Object)},size:Ux,button:{type:lt(Object)},card:{type:lt(Object)},dialog:{type:lt(Object)},link:{type:lt(Object)},experimentalFeatures:{type:lt(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:lt(Object)},zIndex:Number,namespace:{type:String,default:"el"}},zx)),ot={placement:"top"};P.defineComponent({name:"ElConfigProvider",props:yv,setup(t,{slots:e}){const r=Du(t);return P.watch(()=>t.message,n=>{var i,o;Object.assign(ot,(o=(i=r==null?void 0:r.value)==null?void 0:i.message)!=null?o:{},n!=null?n:{})},{immediate:!0,deep:!0}),()=>P.renderSlot(e,"default",{config:r==null?void 0:r.value})}});const Fu=["primary","success","info","warning","error"],Ru=["top","top-left","top-right","bottom","bottom-left","bottom-right"],Lr="top",it=uv({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:vr?document.body:void 0}),mv=Cn({customClass:{type:String,default:it.customClass},dangerouslyUseHTMLString:{type:Boolean,default:it.dangerouslyUseHTMLString},duration:{type:Number,default:it.duration},icon:{type:av,default:it.icon},id:{type:String,default:it.id},message:{type:lt([String,Object,Function]),default:it.message},onClose:{type:lt(Function),default:it.onClose},showClose:{type:Boolean,default:it.showClose},type:{type:String,values:Fu,default:it.type},plain:{type:Boolean,default:it.plain},offset:{type:Number,default:it.offset},placement:{type:String,values:Ru,default:it.placement},zIndex:{type:Number,default:it.zIndex},grouping:{type:Boolean,default:it.grouping},repeatNum:{type:Number,default:it.repeatNum}}),gv={destroy:()=>!0},bt=P.shallowReactive({}),Ev=t=>(bt[t]||(bt[t]=P.shallowReactive([])),bt[t]),Av=(t,e)=>{const r=bt[e]||[],n=r.findIndex(s=>s.id===t),i=r[n];let o;return n>0&&(o=r[n-1]),{current:i,prev:o}},wv=(t,e)=>{const{prev:r}=Av(t,e);return r?r.vm.exposed.bottom.value:0},_v=(t,e,r)=>(bt[r]||[]).findIndex(o=>o.id===t)>0?16:e,bv=P.defineComponent({name:"ElMessage"}),Cv=P.defineComponent(Rt(Ue({},bv),{props:mv,emits:gv,setup(t,{expose:e,emit:r}){const n=t,{Close:i}=sv,o=P.ref(!1),{ns:s,zIndex:a}=qx("message"),{currentZIndex:l,nextZIndex:c}=a,u=P.ref(),x=P.ref(!1),h=P.ref(0);let y;const m=P.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),E=P.computed(()=>{const V=n.type;return{[s.bm("icon",V)]:V&&Vs[V]}}),A=P.computed(()=>n.icon||Vs[n.type]||""),R=P.computed(()=>n.placement||Lr),w=P.computed(()=>wv(n.id,R.value)),_=P.computed(()=>_v(n.id,n.offset,R.value)+w.value),D=P.computed(()=>h.value+_.value),C=P.computed(()=>R.value.includes("left")?s.is("left"):R.value.includes("right")?s.is("right"):s.is("center")),T=P.computed(()=>R.value.startsWith("top")?"top":"bottom"),L=P.computed(()=>({[T.value]:`${_.value}px`,zIndex:l.value}));function H(){n.duration!==0&&({stop:y}=mx(()=>{O()},n.duration))}function Z(){y==null||y()}function O(){x.value=!1,P.nextTick(()=>{var V;o.value||((V=n.onClose)==null||V.call(n),r("destroy"))})}function k(V){fv(V)===v0.esc&&O()}return P.onMounted(()=>{H(),c(),x.value=!0}),P.watch(()=>n.repeatNum,()=>{Z(),H()}),gx(document,"keydown",k),bx(u,()=>{h.value=u.value.getBoundingClientRect().height}),e({visible:x,bottom:D,close:O}),(V,X)=>(P.openBlock(),P.createBlock(P.Transition,{name:P.unref(s).b("fade"),onBeforeEnter:te=>o.value=!0,onBeforeLeave:V.onClose,onAfterLeave:te=>V.$emit("destroy"),persisted:""},{default:P.withCtx(()=>[P.withDirectives(P.createElementVNode("div",{id:V.id,ref_key:"messageRef",ref:u,class:P.normalizeClass([P.unref(s).b(),{[P.unref(s).m(V.type)]:V.type},P.unref(s).is("closable",V.showClose),P.unref(s).is("plain",V.plain),P.unref(s).is("bottom",P.unref(T)==="bottom"),P.unref(C),V.customClass]),style:P.normalizeStyle(P.unref(L)),role:"alert",onMouseenter:Z,onMouseleave:H},[V.repeatNum>1?(P.openBlock(),P.createBlock(P.unref(vv),{key:0,value:V.repeatNum,type:P.unref(m),class:P.normalizeClass(P.unref(s).e("badge"))},null,8,["value","type","class"])):P.createCommentVNode("v-if",!0),P.unref(A)?(P.openBlock(),P.createBlock(P.unref(qs),{key:1,class:P.normalizeClass([P.unref(s).e("icon"),P.unref(E)])},{default:P.withCtx(()=>[(P.openBlock(),P.createBlock(P.resolveDynamicComponent(P.unref(A))))]),_:1},8,["class"])):P.createCommentVNode("v-if",!0),P.renderSlot(V.$slots,"default",{},()=>[V.dangerouslyUseHTMLString?(P.openBlock(),P.createElementBlock(P.Fragment,{key:1},[P.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),P.createElementVNode("p",{class:P.normalizeClass(P.unref(s).e("content")),innerHTML:V.message},null,10,["innerHTML"])],2112)):(P.openBlock(),P.createElementBlock("p",{key:0,class:P.normalizeClass(P.unref(s).e("content"))},P.toDisplayString(V.message),3))]),V.showClose?(P.openBlock(),P.createBlock(P.unref(qs),{key:2,class:P.normalizeClass(P.unref(s).e("closeBtn")),onClick:P.withModifiers(O,["stop"])},{default:P.withCtx(()=>[P.createVNode(P.unref(i))]),_:1},8,["class","onClick"])):P.createCommentVNode("v-if",!0)],46,["id"]),[[P.vShow,x.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}}));var Bv=W0(Cv,[["__file","message.vue"]]);let Dv=1;const Sv=t=>{if(!t.appendTo)t.appendTo=document.body;else if(Wr(t.appendTo)){let r=document.querySelector(t.appendTo);hx(r)||(bn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),r=document.body),t.appendTo=r}},Fv=t=>{!t.placement&&Wr(ot.placement)&&ot.placement&&(t.placement=ot.placement),t.placement||(t.placement=Lr),Ru.includes(t.placement)||(bn("ElMessage",`Invalid placement: ${t.placement}. Falling back to '${Lr}'.`),t.placement=Lr)},Iu=t=>{const e=!t||Wr(t)||P.isVNode(t)||ni(t)?{message:t}:t,r=Ue(Ue({},it),e);return Sv(r),Fv(r),Qo(ot.grouping)&&!r.grouping&&(r.grouping=ot.grouping),lr(ot.duration)&&r.duration===3e3&&(r.duration=ot.duration),lr(ot.offset)&&r.offset===16&&(r.offset=ot.offset),Qo(ot.showClose)&&!r.showClose&&(r.showClose=ot.showClose),Qo(ot.plain)&&!r.plain&&(r.plain=ot.plain),r},Rv=t=>{const e=t.props.placement||Lr,r=bt[e],n=r.indexOf(t);if(n===-1)return;r.splice(n,1);const{handler:i}=t;i.close()},Iv=(n,r)=>{var i=n,{appendTo:t}=i,e=Q0(i,["appendTo"]);const o=`message_${Dv++}`,s=e.onClose,a=document.createElement("div"),l=Rt(Ue({},e),{id:o,onClose:()=>{s==null||s(),Rv(h)},onDestroy:()=>{P.render(null,a)}}),c=P.createVNode(Bv,l,ni(l.message)||P.isVNode(l.message)?{default:ni(l.message)?l.message:()=>l.message}:null);c.appContext=r||hr._context,P.render(c,a),t.appendChild(a.firstElementChild);const u=c.component,h={id:o,vnode:c,vm:u,handler:{close:()=>{u.exposed.close()}},props:c.component.props};return h},hr=(t={},e)=>{if(!vr)return{close:()=>{}};const r=Iu(t),n=Ev(r.placement||Lr);if(r.grouping&&n.length){const o=n.find(({vnode:s})=>{var a;return((a=s.props)==null?void 0:a.message)===r.message});if(o)return o.props.repeatNum+=1,o.props.type=r.type,o.handler}if(lr(ot.max)&&n.length>=ot.max)return{close:()=>{}};const i=Iv(r,e);return n.push(i),i.handler};Fu.forEach(t=>{hr[t]=(e={},r)=>{const n=Iu(e);return hr(Rt(Ue({},n),{type:t}),r)}});function Tv(t){for(const e in bt)if(p0(bt,e)){const r=[...bt[e]];for(const n of r)(!t||t===n.props.type)&&n.handler.close()}}function Ov(t){if(!bt[t])return;[...bt[t]].forEach(r=>r.handler.close())}hr.closeAll=Tv;hr.closeAllByPlacement=Ov;hr._context=null;const Yt=Gx(hr,"$message"),Tu="0123456789abcdeffedcba9876543210",Ou="4b0de988570c3a0f",Pv=window.ENCRYPT;let kr=Pv&&new xu;function Pu(t=16,e="0123456789abcdefghijklmnopqrstuvwxyz"){let r="",n=e.length;for(;t>0;)r+=e[Math.floor(Math.random()*n)],t--;return r}function Nu(){return Be(this,null,function*(){return kr||(kr=new xu),new Promise((t,e)=>{kr.armEnum().then(r=>{t(+r)}).catch(r=>{Yt({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e(r)})})})}b0.throttle(()=>Be(exports,null,function*(){const t=yield Nu(),e={};if(typeof t!="number"||t<=0)Yt({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e.resetToken();else{const r=yield Lv();if(!e.token)return;r.length?r.includes(e.ukeyHid)||(Yt({type:"error",ElMessage:"U盘锁不匹配,请检查U盘锁!"}),e.resetToken()):(Yt({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e.resetToken())}}),5e3,{trailing:!1});function Nv(t=0){return Be(this,null,function*(){return kr?new Promise((e,r)=>{kr.armGetDongleInfo(t).then(n=>{n?e(n):(Yt({type:"warning",ElMessage:"U盘锁信息为空,请检查U盘锁!"}),r(n))}).catch(n=>{r(n)})}):Yt({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"})})}function Lv(){return Be(this,null,function*(){if(!kr)return Yt({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"});const t=yield Nu();let e=[];for(let r=0;r<t;r++){const n=yield Nv(r);e.push(n)}return e})}Pu(16);Pu(16);const Lu=window.meta.app.inspect?Hr.constants.CBC:Hr.constants.ECB;rx.generateKeyPair();function Gs(t,e,r={}){const n=ku(Ou),i=r.mode||Lu;r=i===Hr.constants.ECB?Ue({mode:i,inputEncoding:"utf8",outputEncoding:"hex"},r):Ue({iv:Tu,mode:i,inputEncoding:"utf8",outputEncoding:"hex"},r);let o="";try{o=Hr.encrypt(t,n,r)}catch(s){console.log("err: ",s)}return o}function js(t,e,r={}){const n=ku(Ou),i=r.mode||Lu;return r=i===Hr.constants.ECB?Ue({mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r):Ue({iv:Tu,mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r),Hr.decrypt(t,n,r)}function ku(t){return[...t].map(e=>e.charCodeAt().toString(16)).join("")}const V0={getLocal:t=>{try{let e=window.localStorage.getItem(t);return e=e!==null?js(e):e,JSON.parse(e)}catch(e){console.error(e)}},setLocal:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?Gs(r):r,window.localStorage.setItem(t,r)}catch(r){console.error(r)}},eachLocal:t=>{if(!t||qa(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?js(e):e,JSON.parse(e)}catch(e){console.error(e)}},setSession:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?Gs(r):r,window.sessionStorage.setItem(t,r)}catch(r){console.error(r)}},eachSession:t=>{if(!t||qa(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)}},kv="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1778134039448'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1155'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20512m-500.62222187%200a500.62222187%20500.62222187%200%201%200%201001.24444374%200%20500.62222187%20500.62222187%200%201%200-1001.24444374%200Z'%20fill='%231afa29'%20p-id='1156'%3e%3c/path%3e%3c/svg%3e",Ks="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='1778135587292'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1657'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20512m-500.62222187%200a500.62222187%20500.62222187%200%201%200%201001.24444374%200%20500.62222187%20500.62222187%200%201%200-1001.24444374%200Z'%20fill='%23808080'%20p-id='1658'%3e%3c/path%3e%3c/svg%3e",Mv="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='1778133589331'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='25776'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M377.083%20125.44c74.606-135.314%20195.292-135.314%20269.897%200l346.332%20629.394c74.606%20135.315%209.508%20245.395-145.189%20245.395H175.94c-154.697%200-219.428-109.715-145.188-245.395L377.083%20125.44z'%20fill='%23FF2D16'%20p-id='25777'%3e%3c/path%3e%3cpath%20d='M567.986%20328.046c0-31.086-25.234-55.955-55.954-55.955s-55.954%2025.235-55.954%2055.955v280.137c0%2031.086%2025.234%2055.954%2055.954%2055.954s55.954-25.234%2055.954-55.954V328.046z%20m-111.908%20448h111.908v111.908H456.078z'%20fill='%23FFFFFF'%20p-id='25778'%3e%3c/path%3e%3c/svg%3e";class Uv extends je.Object3D{constructor(e=document.createElement("div")){super(),this.isCSS2DObject=!0,this.element=e,this.element.style.position="absolute",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.center=new je.Vector2(.5,.5),this.addEventListener("removed",function(){this.traverse(function(r){r.element instanceof r.element.ownerDocument.defaultView.Element&&r.element.parentNode!==null&&r.element.remove()})})}copy(e,r){return super.copy(e,r),this.element=e.element.cloneNode(!0),this.center=e.center,this}}new je.Vector3;new je.Matrix4;new je.Matrix4;new je.Vector3;new je.Vector3;const $v={name:"局放测点",label:"局放测点",create:function(t,e){return Be(this,null,function*(){const{transformControls:r}=e,n=document.createElement("div");n.style.position="relative",n.style.gap="20px";const i=document.createElement("img");i.style.objectFit="fill",i.style.width="1.3vw",i.style.height="1.3vw",i.src=Ks,i.style.cursor="pointer",i.style.pointerEvents="auto",i.style.userSelect="none",n.append(i);const o=document.createElement("div");Object.assign(o.style,{position:"absolute",top:"0",left:"1.8vw",display:"none",flexDirection:"column",gap:"10px",padding:"10px",borderRadius:"4px",minWidth:"12vw",border:"1px solid color-mix(in srgb, var(--sc-color-white) 20%, transparent)",backdropFilter:"blur(12px)",background:"color-mix(in srgb, var(--sc-color-black) 20%, transparent)"}),t.valueEleId||(t.valueEleId=l0()),o.innerHTML=`
|
|
39
|
+
**/process.env.NODE_ENV!=="production"&&Object.freeze({});process.env.NODE_ENV!=="production"&&Object.freeze([]);const fx=Object.prototype.hasOwnProperty,d0=(t,e)=>fx.call(t,e),lx=Array.isArray,ni=t=>typeof t=="function",Wr=t=>typeof t=="string",yu=t=>t!==null&&typeof t=="object",Jo=t=>typeof t=="boolean",lr=t=>typeof t=="number",hx=t=>typeof Element=="undefined"?!1:t instanceof Element,dx=t=>Wr(t)?!Number.isNaN(Number(t)):!1;var Is;const vr=typeof window!="undefined",px=t=>typeof t=="string",xx=()=>{};vr&&((Is=window==null?void 0:window.navigator)!=null&&Is.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function H0(t){return typeof t=="function"?t():P.unref(t)}function vx(t){return t}function z0(t){return P.getCurrentScope()?(P.onScopeDispose(t),!0):!1}function yx(t,e=!0){P.getCurrentInstance()?P.onMounted(t):e?t():P.nextTick(t)}function mx(t,e,r={}){const{immediate:n=!0}=r,i=P.ref(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function a(){i.value=!1,s()}function u(...c){s(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...c)},H0(e))}return n&&(i.value=!0,vr&&u()),z0(a),{isPending:P.readonly(i),start:u,stop:a}}function mu(t){var e;const r=H0(t);return(e=r==null?void 0:r.$el)!=null?e:r}const gu=vr?window:void 0;function gx(...t){let e,r,n,i;if(px(t[0])||Array.isArray(t[0])?([r,n,i]=t,e=gu):[e,r,n,i]=t,!e)return xx;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(f=>f()),o.length=0},a=(f,x,h,y)=>(f.addEventListener(x,h,y),()=>f.removeEventListener(x,h,y)),u=P.watch(()=>[mu(e),H0(i)],([f,x])=>{s(),f&&o.push(...r.flatMap(h=>n.map(y=>a(f,h,y,x))))},{immediate:!0,flush:"post"}),c=()=>{u(),s()};return z0(c),c}function Ex(t,e=!1){const r=P.ref(),n=()=>r.value=!!t();return n(),yx(n,e),r}const Ts=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Os="__vueuse_ssr_handlers__";Ts[Os]=Ts[Os]||{};var Ps=Object.getOwnPropertySymbols,Ax=Object.prototype.hasOwnProperty,wx=Object.prototype.propertyIsEnumerable,_x=(t,e)=>{var r={};for(var n in t)Ax.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Ps)for(var n of Ps(t))e.indexOf(n)<0&&wx.call(t,n)&&(r[n]=t[n]);return r};function bx(t,e,r={}){const n=r,{window:i=gu}=n,o=_x(n,["window"]);let s;const a=Ex(()=>i&&"ResizeObserver"in i),u=()=>{s&&(s.disconnect(),s=void 0)},c=P.watch(()=>mu(t),x=>{u(),a.value&&i&&x&&(s=new ResizeObserver(e),s.observe(x,o))},{immediate:!0,flush:"post"}),f=()=>{u(),c()};return z0(f),{isSupported:a,stop:f}}var Ns;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(Ns||(Ns={}));var Cx=Object.defineProperty,Ls=Object.getOwnPropertySymbols,Bx=Object.prototype.hasOwnProperty,Dx=Object.prototype.propertyIsEnumerable,ks=(t,e,r)=>e in t?Cx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Sx=(t,e)=>{for(var r in e||(e={}))Bx.call(e,r)&&ks(t,r,e[r]);if(Ls)for(var r of Ls(e))Dx.call(e,r)&&ks(t,r,e[r]);return t};const Fx={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Sx({linear:vx},Fx);class Rx extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function bn(t,e){if(typeof process!="undefined"&&process.env.NODE_ENV!=="production"){const r=Wr(t)?new Rx(`[${t}] ${e}`):t;console.warn(r)}}const Ms={current:0},Us=P.ref(0),Eu=2e3,$s=Symbol("elZIndexContextKey"),Au=Symbol("zIndexContextKey"),Ix=t=>{const e=P.getCurrentInstance()?P.inject($s,Ms):Ms,r=t||(P.getCurrentInstance()?P.inject(Au,void 0):void 0),n=P.computed(()=>{const s=P.unref(r);return lr(s)?s:Eu}),i=P.computed(()=>n.value+Us.value),o=()=>(e.current++,Us.value=e.current,i.value);return!vr&&!P.inject($s)&&bn("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
40
|
+
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:n,currentZIndex:i,nextZIndex:o}};var Tx={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Ox=t=>(e,r)=>Px(e,r,P.unref(t)),Px=(t,e,r)=>_0.get(r,t,t).replace(/\{(\w+)\}/g,(n,i)=>{var o;return`${(o=e==null?void 0:e[i])!=null?o:`{${i}}`}`}),Nx=t=>{const e=P.computed(()=>P.unref(t).name),r=P.isRef(t)?t:P.ref(t);return{lang:e,locale:r,t:Ox(t)}},wu=Symbol("localeContextKey"),Lx=t=>{const e=t||P.inject(wu,P.ref());return Nx(P.computed(()=>e.value||Tx))},_u="__epPropKey",lt=t=>t,kx=t=>yu(t)&&!!t[_u],bu=(t,e)=>{if(!yu(t)||kx(t))return t;const{values:r,required:n,default:i,type:o,validator:s}=t,u={type:o,required:!!n,validator:r||s?c=>{let f=!1,x=[];if(r&&(x=Array.from(r),d0(t,"default")&&x.push(i),f||(f=x.includes(c))),s&&(f||(f=s(c))),!f&&x.length>0){const h=[...new Set(x)].map(y=>JSON.stringify(y)).join(", ");P.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return f}:void 0,[_u]:!0};return d0(t,"default")&&(u.default=i),u},Cn=t=>_0.fromPairs(Object.entries(t).map(([e,r])=>[e,bu(r,e)])),Mx=["","default","small","large"],Ux=bu({type:String,values:Mx,required:!1}),$x=Symbol("size"),Hx=Symbol("emptyValuesContextKey"),zx=Cn({emptyValues:Array,valueOnClear:{type:lt([String,Number,Boolean,Function]),default:void 0,validator:t=>(t=ni(t)?t():t,lx(t)?t.every(e=>!e):!t)}}),Hs=t=>Object.keys(t),ii=P.ref();function Cu(t,e=void 0){return P.getCurrentInstance()?P.inject(xu,ii):ii}function qx(t,e){const r=Cu(),n=$0(t,P.computed(()=>{var a;return((a=r.value)==null?void 0:a.namespace)||Xn})),i=Lx(P.computed(()=>{var a;return(a=r.value)==null?void 0:a.locale})),o=Ix(P.computed(()=>{var a;return((a=r.value)==null?void 0:a.zIndex)||Eu})),s=P.computed(()=>{var a;return P.unref(e)||((a=r.value)==null?void 0:a.size)||""});return Bu(P.computed(()=>P.unref(r)||{})),{ns:n,locale:i,zIndex:o,size:s}}const Bu=(t,e,r=!1)=>{var n;const i=!!P.getCurrentInstance(),o=i?Cu():void 0,s=(n=void 0)!=null?n:i?P.provide:void 0;if(!s){bn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const a=P.computed(()=>{const u=P.unref(t);return o!=null&&o.value?Wx(o.value,u):u});return s(xu,a),s(wu,P.computed(()=>a.value.locale)),s(vu,P.computed(()=>a.value.namespace)),s(Au,P.computed(()=>a.value.zIndex)),s($x,{size:P.computed(()=>a.value.size||"")}),s(Hx,P.computed(()=>({emptyValues:a.value.emptyValues,valueOnClear:a.value.valueOnClear}))),(r||!ii.value)&&(ii.value=a.value),a},Wx=(t,e)=>{const r=[...new Set([...Hs(t),...Hs(e)])],n={};for(const i of r)n[i]=e[i]!==void 0?e[i]:t[i];return n};var q0=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r};const Vx="utils/dom/style";function p0(t,e="px"){if(!t&&t!==0)return"";if(lr(t)||dx(t))return`${t}${e}`;if(Wr(t))return t;bn(Vx,"binding value must be a string or number")}const Du=(t,e)=>(t.install=r=>{for(const n of[t,...Object.values({})])r.component(n.name,n)},t),Gx=(t,e)=>(t.install=r=>{t._context=r._context,r.config.globalProperties[e]=t},t),jx=Cn({size:{type:lt([Number,String])},color:{type:String}}),Kx=P.defineComponent({name:"ElIcon",inheritAttrs:!1}),Yx=P.defineComponent(Rt(Ue({},Kx),{props:jx,setup(t){const e=t,r=$0("icon"),n=P.computed(()=>{const{size:i,color:o}=e,s=p0(i);return!s&&!o?{}:{fontSize:s,"--color":o}});return(i,o)=>(P.openBlock(),P.createElementBlock("i",P.mergeProps({class:P.unref(r).b(),style:P.unref(n)},i.$attrs),[P.renderSlot(i.$slots,"default")],16))}}));var Xx=q0(Yx,[["__file","icon.vue"]]);const zs=Du(Xx);/*! Element Plus Icons Vue v2.3.2 */var Jx=P.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,r)=>(P.openBlock(),P.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[P.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Qx=Jx,Zx=P.defineComponent({name:"Close",__name:"close",setup(t){return(e,r)=>(P.openBlock(),P.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[P.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),ev=Zx,tv=P.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(e,r)=>(P.openBlock(),P.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[P.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),qs=tv,rv=P.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,r)=>(P.openBlock(),P.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[P.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),nv=rv,iv=P.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,r)=>(P.openBlock(),P.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[P.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),ov=iv;const av=lt([String,Object,Function]),sv={Close:ev},Ws={primary:qs,success:nv,warning:ov,error:Qx,info:qs},cv=()=>vr&&/android/i.test(window.navigator.userAgent),uv=t=>t,x0={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},fv=t=>{if(t.code&&t.code!=="Unidentified")return t.code;const e=lv(t);if(e){if(Object.values(x0).includes(e))return e;switch(e){case" ":return x0.space;default:return""}}return""},lv=t=>{let e=t.key&&t.key!=="Unidentified"?t.key:"";if(!e&&t.type==="keyup"&&cv()){const r=t.target;e=r.value.charAt(r.selectionStart-1)}return e},hv=Cn({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:lt([String,Object,Array])},offset:{type:lt(Array),default:[0,0]},badgeClass:{type:String}}),dv=P.defineComponent({name:"ElBadge"}),pv=P.defineComponent(Rt(Ue({},dv),{props:hv,setup(t,{expose:e}){const r=t,n=$0("badge"),i=P.computed(()=>r.isDot?"":lr(r.value)&&lr(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`),o=P.computed(()=>{var s;return[{backgroundColor:r.color,marginRight:p0(-r.offset[0]),marginTop:p0(r.offset[1])},(s=r.badgeStyle)!=null?s:{}]});return e({content:i}),(s,a)=>(P.openBlock(),P.createElementBlock("div",{class:P.normalizeClass(P.unref(n).b())},[P.renderSlot(s.$slots,"default"),P.createVNode(P.Transition,{name:`${P.unref(n).namespace.value}-zoom-in-center`,persisted:""},{default:P.withCtx(()=>[P.withDirectives(P.createElementVNode("sup",{class:P.normalizeClass([P.unref(n).e("content"),P.unref(n).em("content",s.type),P.unref(n).is("fixed",!!s.$slots.default),P.unref(n).is("dot",s.isDot),P.unref(n).is("hide-zero",!s.showZero&&s.value===0),s.badgeClass]),style:P.normalizeStyle(P.unref(o))},[P.renderSlot(s.$slots,"content",{value:P.unref(i)},()=>[P.createTextVNode(P.toDisplayString(P.unref(i)),1)])],6),[[P.vShow,!s.hidden&&(P.unref(i)||s.isDot||s.$slots.content)]])]),_:3},8,["name"])],2))}}));var xv=q0(pv,[["__file","badge.vue"]]);const vv=Du(xv),yv=Cn(Ue({a11y:{type:Boolean,default:!0},locale:{type:lt(Object)},size:Ux,button:{type:lt(Object)},card:{type:lt(Object)},dialog:{type:lt(Object)},link:{type:lt(Object)},experimentalFeatures:{type:lt(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:lt(Object)},zIndex:Number,namespace:{type:String,default:"el"}},zx)),ot={placement:"top"};P.defineComponent({name:"ElConfigProvider",props:yv,setup(t,{slots:e}){const r=Bu(t);return P.watch(()=>t.message,n=>{var i,o;Object.assign(ot,(o=(i=r==null?void 0:r.value)==null?void 0:i.message)!=null?o:{},n!=null?n:{})},{immediate:!0,deep:!0}),()=>P.renderSlot(e,"default",{config:r==null?void 0:r.value})}});const Su=["primary","success","info","warning","error"],Fu=["top","top-left","top-right","bottom","bottom-left","bottom-right"],Lr="top",it=uv({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:vr?document.body:void 0}),mv=Cn({customClass:{type:String,default:it.customClass},dangerouslyUseHTMLString:{type:Boolean,default:it.dangerouslyUseHTMLString},duration:{type:Number,default:it.duration},icon:{type:av,default:it.icon},id:{type:String,default:it.id},message:{type:lt([String,Object,Function]),default:it.message},onClose:{type:lt(Function),default:it.onClose},showClose:{type:Boolean,default:it.showClose},type:{type:String,values:Su,default:it.type},plain:{type:Boolean,default:it.plain},offset:{type:Number,default:it.offset},placement:{type:String,values:Fu,default:it.placement},zIndex:{type:Number,default:it.zIndex},grouping:{type:Boolean,default:it.grouping},repeatNum:{type:Number,default:it.repeatNum}}),gv={destroy:()=>!0},bt=P.shallowReactive({}),Ev=t=>(bt[t]||(bt[t]=P.shallowReactive([])),bt[t]),Av=(t,e)=>{const r=bt[e]||[],n=r.findIndex(s=>s.id===t),i=r[n];let o;return n>0&&(o=r[n-1]),{current:i,prev:o}},wv=(t,e)=>{const{prev:r}=Av(t,e);return r?r.vm.exposed.bottom.value:0},_v=(t,e,r)=>(bt[r]||[]).findIndex(o=>o.id===t)>0?16:e,bv=P.defineComponent({name:"ElMessage"}),Cv=P.defineComponent(Rt(Ue({},bv),{props:mv,emits:gv,setup(t,{expose:e,emit:r}){const n=t,{Close:i}=sv,o=P.ref(!1),{ns:s,zIndex:a}=qx("message"),{currentZIndex:u,nextZIndex:c}=a,f=P.ref(),x=P.ref(!1),h=P.ref(0);let y;const m=P.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),E=P.computed(()=>{const V=n.type;return{[s.bm("icon",V)]:V&&Ws[V]}}),A=P.computed(()=>n.icon||Ws[n.type]||""),R=P.computed(()=>n.placement||Lr),w=P.computed(()=>wv(n.id,R.value)),_=P.computed(()=>_v(n.id,n.offset,R.value)+w.value),B=P.computed(()=>h.value+_.value),D=P.computed(()=>R.value.includes("left")?s.is("left"):R.value.includes("right")?s.is("right"):s.is("center")),T=P.computed(()=>R.value.startsWith("top")?"top":"bottom"),L=P.computed(()=>({[T.value]:`${_.value}px`,zIndex:u.value}));function z(){n.duration!==0&&({stop:y}=mx(()=>{O()},n.duration))}function Q(){y==null||y()}function O(){x.value=!1,P.nextTick(()=>{var V;o.value||((V=n.onClose)==null||V.call(n),r("destroy"))})}function k(V){fv(V)===x0.esc&&O()}return P.onMounted(()=>{z(),c(),x.value=!0}),P.watch(()=>n.repeatNum,()=>{Q(),z()}),gx(document,"keydown",k),bx(f,()=>{h.value=f.value.getBoundingClientRect().height}),e({visible:x,bottom:B,close:O}),(V,X)=>(P.openBlock(),P.createBlock(P.Transition,{name:P.unref(s).b("fade"),onBeforeEnter:ee=>o.value=!0,onBeforeLeave:V.onClose,onAfterLeave:ee=>V.$emit("destroy"),persisted:""},{default:P.withCtx(()=>[P.withDirectives(P.createElementVNode("div",{id:V.id,ref_key:"messageRef",ref:f,class:P.normalizeClass([P.unref(s).b(),{[P.unref(s).m(V.type)]:V.type},P.unref(s).is("closable",V.showClose),P.unref(s).is("plain",V.plain),P.unref(s).is("bottom",P.unref(T)==="bottom"),P.unref(D),V.customClass]),style:P.normalizeStyle(P.unref(L)),role:"alert",onMouseenter:Q,onMouseleave:z},[V.repeatNum>1?(P.openBlock(),P.createBlock(P.unref(vv),{key:0,value:V.repeatNum,type:P.unref(m),class:P.normalizeClass(P.unref(s).e("badge"))},null,8,["value","type","class"])):P.createCommentVNode("v-if",!0),P.unref(A)?(P.openBlock(),P.createBlock(P.unref(zs),{key:1,class:P.normalizeClass([P.unref(s).e("icon"),P.unref(E)])},{default:P.withCtx(()=>[(P.openBlock(),P.createBlock(P.resolveDynamicComponent(P.unref(A))))]),_:1},8,["class"])):P.createCommentVNode("v-if",!0),P.renderSlot(V.$slots,"default",{},()=>[V.dangerouslyUseHTMLString?(P.openBlock(),P.createElementBlock(P.Fragment,{key:1},[P.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),P.createElementVNode("p",{class:P.normalizeClass(P.unref(s).e("content")),innerHTML:V.message},null,10,["innerHTML"])],2112)):(P.openBlock(),P.createElementBlock("p",{key:0,class:P.normalizeClass(P.unref(s).e("content"))},P.toDisplayString(V.message),3))]),V.showClose?(P.openBlock(),P.createBlock(P.unref(zs),{key:2,class:P.normalizeClass(P.unref(s).e("closeBtn")),onClick:P.withModifiers(O,["stop"])},{default:P.withCtx(()=>[P.createVNode(P.unref(i))]),_:1},8,["class","onClick"])):P.createCommentVNode("v-if",!0)],46,["id"]),[[P.vShow,x.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}}));var Bv=q0(Cv,[["__file","message.vue"]]);let Dv=1;const Sv=t=>{if(!t.appendTo)t.appendTo=document.body;else if(Wr(t.appendTo)){let r=document.querySelector(t.appendTo);hx(r)||(bn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),r=document.body),t.appendTo=r}},Fv=t=>{!t.placement&&Wr(ot.placement)&&ot.placement&&(t.placement=ot.placement),t.placement||(t.placement=Lr),Fu.includes(t.placement)||(bn("ElMessage",`Invalid placement: ${t.placement}. Falling back to '${Lr}'.`),t.placement=Lr)},Ru=t=>{const e=!t||Wr(t)||P.isVNode(t)||ni(t)?{message:t}:t,r=Ue(Ue({},it),e);return Sv(r),Fv(r),Jo(ot.grouping)&&!r.grouping&&(r.grouping=ot.grouping),lr(ot.duration)&&r.duration===3e3&&(r.duration=ot.duration),lr(ot.offset)&&r.offset===16&&(r.offset=ot.offset),Jo(ot.showClose)&&!r.showClose&&(r.showClose=ot.showClose),Jo(ot.plain)&&!r.plain&&(r.plain=ot.plain),r},Rv=t=>{const e=t.props.placement||Lr,r=bt[e],n=r.indexOf(t);if(n===-1)return;r.splice(n,1);const{handler:i}=t;i.close()},Iv=(n,r)=>{var i=n,{appendTo:t}=i,e=J0(i,["appendTo"]);const o=`message_${Dv++}`,s=e.onClose,a=document.createElement("div"),u=Rt(Ue({},e),{id:o,onClose:()=>{s==null||s(),Rv(h)},onDestroy:()=>{P.render(null,a)}}),c=P.createVNode(Bv,u,ni(u.message)||P.isVNode(u.message)?{default:ni(u.message)?u.message:()=>u.message}:null);c.appContext=r||hr._context,P.render(c,a),t.appendChild(a.firstElementChild);const f=c.component,h={id:o,vnode:c,vm:f,handler:{close:()=>{f.exposed.close()}},props:c.component.props};return h},hr=(t={},e)=>{if(!vr)return{close:()=>{}};const r=Ru(t),n=Ev(r.placement||Lr);if(r.grouping&&n.length){const o=n.find(({vnode:s})=>{var a;return((a=s.props)==null?void 0:a.message)===r.message});if(o)return o.props.repeatNum+=1,o.props.type=r.type,o.handler}if(lr(ot.max)&&n.length>=ot.max)return{close:()=>{}};const i=Iv(r,e);return n.push(i),i.handler};Su.forEach(t=>{hr[t]=(e={},r)=>{const n=Ru(e);return hr(Rt(Ue({},n),{type:t}),r)}});function Tv(t){for(const e in bt)if(d0(bt,e)){const r=[...bt[e]];for(const n of r)(!t||t===n.props.type)&&n.handler.close()}}function Ov(t){if(!bt[t])return;[...bt[t]].forEach(r=>r.handler.close())}hr.closeAll=Tv;hr.closeAllByPlacement=Ov;hr._context=null;const Yt=Gx(hr,"$message"),Iu="0123456789abcdeffedcba9876543210",Tu="4b0de988570c3a0f",Pv=window.ENCRYPT;let kr=Pv&&new pu;function Ou(t=16,e="0123456789abcdefghijklmnopqrstuvwxyz"){let r="",n=e.length;for(;t>0;)r+=e[Math.floor(Math.random()*n)],t--;return r}function Pu(){return Be(this,null,function*(){return kr||(kr=new pu),new Promise((t,e)=>{kr.armEnum().then(r=>{t(+r)}).catch(r=>{Yt({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e(r)})})})}_0.throttle(()=>Be(exports,null,function*(){const t=yield Pu(),e={};if(typeof t!="number"||t<=0)Yt({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e.resetToken();else{const r=yield Lv();if(!e.token)return;r.length?r.includes(e.ukeyHid)||(Yt({type:"error",ElMessage:"U盘锁不匹配,请检查U盘锁!"}),e.resetToken()):(Yt({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e.resetToken())}}),5e3,{trailing:!1});function Nv(t=0){return Be(this,null,function*(){return kr?new Promise((e,r)=>{kr.armGetDongleInfo(t).then(n=>{n?e(n):(Yt({type:"warning",ElMessage:"U盘锁信息为空,请检查U盘锁!"}),r(n))}).catch(n=>{r(n)})}):Yt({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"})})}function Lv(){return Be(this,null,function*(){if(!kr)return Yt({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"});const t=yield Pu();let e=[];for(let r=0;r<t;r++){const n=yield Nv(r);e.push(n)}return e})}Ou(16);Ou(16);const Nu=window.meta.app.inspect?Hr.constants.CBC:Hr.constants.ECB;rx.generateKeyPair();function Vs(t,e,r={}){const n=Lu(Tu),i=r.mode||Nu;r=i===Hr.constants.ECB?Ue({mode:i,inputEncoding:"utf8",outputEncoding:"hex"},r):Ue({iv:Iu,mode:i,inputEncoding:"utf8",outputEncoding:"hex"},r);let o="";try{o=Hr.encrypt(t,n,r)}catch(s){console.log("err: ",s)}return o}function Gs(t,e,r={}){const n=Lu(Tu),i=r.mode||Nu;return r=i===Hr.constants.ECB?Ue({mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r):Ue({iv:Iu,mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r),Hr.decrypt(t,n,r)}function Lu(t){return[...t].map(e=>e.charCodeAt().toString(16)).join("")}const W0={getLocal:t=>{try{let e=window.localStorage.getItem(t);return e=e!==null?Gs(e):e,JSON.parse(e)}catch(e){console.error(e)}},setLocal:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?Vs(r):r,window.localStorage.setItem(t,r)}catch(r){console.error(r)}},eachLocal:t=>{if(!t||za(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?Gs(e):e,JSON.parse(e)}catch(e){console.error(e)}},setSession:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?Vs(r):r,window.sessionStorage.setItem(t,r)}catch(r){console.error(r)}},eachSession:t=>{if(!t||za(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)}},kv="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1778134039448'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1155'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20512m-500.62222187%200a500.62222187%20500.62222187%200%201%200%201001.24444374%200%20500.62222187%20500.62222187%200%201%200-1001.24444374%200Z'%20fill='%231afa29'%20p-id='1156'%3e%3c/path%3e%3c/svg%3e",js="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='1778135587292'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1657'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20512m-500.62222187%200a500.62222187%20500.62222187%200%201%200%201001.24444374%200%20500.62222187%20500.62222187%200%201%200-1001.24444374%200Z'%20fill='%23808080'%20p-id='1658'%3e%3c/path%3e%3c/svg%3e",Mv="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='1778133589331'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='25776'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M377.083%20125.44c74.606-135.314%20195.292-135.314%20269.897%200l346.332%20629.394c74.606%20135.315%209.508%20245.395-145.189%20245.395H175.94c-154.697%200-219.428-109.715-145.188-245.395L377.083%20125.44z'%20fill='%23FF2D16'%20p-id='25777'%3e%3c/path%3e%3cpath%20d='M567.986%20328.046c0-31.086-25.234-55.955-55.954-55.955s-55.954%2025.235-55.954%2055.955v280.137c0%2031.086%2025.234%2055.954%2055.954%2055.954s55.954-25.234%2055.954-55.954V328.046z%20m-111.908%20448h111.908v111.908H456.078z'%20fill='%23FFFFFF'%20p-id='25778'%3e%3c/path%3e%3c/svg%3e";class Uv extends je.Object3D{constructor(e=document.createElement("div")){super(),this.isCSS2DObject=!0,this.element=e,this.element.style.position="absolute",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.center=new je.Vector2(.5,.5),this.addEventListener("removed",function(){this.traverse(function(r){r.element instanceof r.element.ownerDocument.defaultView.Element&&r.element.parentNode!==null&&r.element.remove()})})}copy(e,r){return super.copy(e,r),this.element=e.element.cloneNode(!0),this.center=e.center,this}}new je.Vector3;new je.Matrix4;new je.Matrix4;new je.Vector3;new je.Vector3;const $v={name:"局放测点",label:"局放测点",create:function(t,e){return Be(this,null,function*(){const{transformControls:r}=e,n=document.createElement("div");n.style.position="relative",n.style.gap="20px";const i=document.createElement("img");i.style.objectFit="fill",i.style.width="1.3vw",i.style.height="1.3vw",i.src=js,i.style.cursor="pointer",i.style.pointerEvents="auto",i.style.userSelect="none",n.append(i);const o=document.createElement("div");Object.assign(o.style,{position:"absolute",top:"0",left:"1.8vw",display:"none",flexDirection:"column",gap:"10px",padding:"10px",borderRadius:"4px",minWidth:"12vw",border:"1px solid color-mix(in srgb, var(--sc-color-white) 20%, transparent)",backdropFilter:"blur(12px)",background:"color-mix(in srgb, var(--sc-color-black) 20%, transparent)"}),t.valueEleId||(t.valueEleId=f0()),o.innerHTML=`
|
|
41
41
|
<div style="padding-bottom: 10px; font-size: 16px; color: var(--sc-color-white); border-bottom: 1px solid color-mix(in srgb, var(--sc-color-danger) 70%, transparent);white-space: nowrap;">${t.name}</div>
|
|
42
42
|
<div style="font-size: 14px; color: #cae4ff;">幅值峰值</div>
|
|
43
43
|
<div style="display: flex; align-items: flex-end; gap: 10px; color: color-mix(in srgb, var(--sc-color-danger) 80%, transparent);">
|
|
44
44
|
<span id="${t.valueEleId}" style="font-size: 24px;font-weight: 600;">${t.value}</span>
|
|
45
45
|
<span style="font-size: 14px;">dBm</span>
|
|
46
46
|
</div>
|
|
47
|
-
`;const s=new Uv(n);s.name=t.name,s.dataId=t.id,s.userData.params=t,i.addEventListener("mouseover",()=>{o.style.display="flex"}),i.addEventListener("mouseleave",()=>{o.style.display="none"}),i.addEventListener("click",()=>{
|
|
47
|
+
`;const s=new Uv(n);s.name=t.name,s.dataId=t.id,s.userData.params=t,i.addEventListener("mouseover",()=>{o.style.display="flex"}),i.addEventListener("mouseleave",()=>{o.style.display="none"}),i.addEventListener("click",()=>{l0.emit("three-event",{type:"pd-sensor-click",data:s}),t.preview||setTimeout(()=>{r.attach(s)},100)}),n.append(o);const a=c=>{c===0?i.src=js:c===1?i.src=kv:c===2&&(i.src=Mv)},u=c=>{const f=document.getElementById(t.valueEleId);f&&(f.innerText=c)};return s.changeState=a,s.changeValue=u,setTimeout(()=>{a(t.state),u(t.value)},200),s})},getStorage:function(t){return t.userData.params}};var ku={exports:{}};/*!
|
|
48
48
|
localForage -- Offline Storage, Improved
|
|
49
49
|
Version 1.10.0
|
|
50
50
|
https://localforage.github.io/localForage
|
|
51
51
|
(c) 2013-2017 Mozilla, Apache License 2.0
|
|
52
|
-
*/(function(t,e){(function(r){t.exports=r()})(function(){return function r(n,i,o){function s(c,u){if(!i[c]){if(!n[c]){var x=typeof on=="function"&&on;if(!u&&x)return x(c,!0);if(a)return a(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var y=i[c]={exports:{}};n[c][0].call(y.exports,function(m){var E=n[c][1][m];return s(E||m)},y,y.exports,r,n,i,o)}return i[c].exports}for(var a=typeof on=="function"&&on,l=0;l<o.length;l++)s(o[l]);return s}({1:[function(r,n,i){(function(o){var s=o.MutationObserver||o.WebKitMutationObserver,a;if(s){var l=0,c=new s(m),u=o.document.createTextNode("");c.observe(u,{characterData:!0}),a=function(){u.data=l=++l%2}}else if(!o.setImmediate&&typeof o.MessageChannel!="undefined"){var x=new o.MessageChannel;x.port1.onmessage=m,a=function(){x.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?a=function(){var A=o.document.createElement("script");A.onreadystatechange=function(){m(),A.onreadystatechange=null,A.parentNode.removeChild(A),A=null},o.document.documentElement.appendChild(A)}:a=function(){setTimeout(m,0)};var h,y=[];function m(){h=!0;for(var A,R,w=y.length;w;){for(R=y,y=[],A=-1;++A<w;)R[A]();w=y.length}h=!1}n.exports=E;function E(A){y.push(A)===1&&!h&&a()}}).call(this,typeof be!="undefined"?be:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(r,n,i){var o=r(1);function s(){}var a={},l=["REJECTED"],c=["FULFILLED"],u=["PENDING"];n.exports=x;function x(C){if(typeof C!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,C!==s&&E(this,C)}x.prototype.catch=function(C){return this.then(null,C)},x.prototype.then=function(C,T){if(typeof C!="function"&&this.state===c||typeof T!="function"&&this.state===l)return this;var L=new this.constructor(s);if(this.state!==u){var H=this.state===c?C:T;y(L,H,this.outcome)}else this.queue.push(new h(L,C,T));return L};function h(C,T,L){this.promise=C,typeof T=="function"&&(this.onFulfilled=T,this.callFulfilled=this.otherCallFulfilled),typeof L=="function"&&(this.onRejected=L,this.callRejected=this.otherCallRejected)}h.prototype.callFulfilled=function(C){a.resolve(this.promise,C)},h.prototype.otherCallFulfilled=function(C){y(this.promise,this.onFulfilled,C)},h.prototype.callRejected=function(C){a.reject(this.promise,C)},h.prototype.otherCallRejected=function(C){y(this.promise,this.onRejected,C)};function y(C,T,L){o(function(){var H;try{H=T(L)}catch(Z){return a.reject(C,Z)}H===C?a.reject(C,new TypeError("Cannot resolve promise with itself")):a.resolve(C,H)})}a.resolve=function(C,T){var L=A(m,T);if(L.status==="error")return a.reject(C,L.value);var H=L.value;if(H)E(C,H);else{C.state=c,C.outcome=T;for(var Z=-1,O=C.queue.length;++Z<O;)C.queue[Z].callFulfilled(T)}return C},a.reject=function(C,T){C.state=l,C.outcome=T;for(var L=-1,H=C.queue.length;++L<H;)C.queue[L].callRejected(T);return C};function m(C){var T=C&&C.then;if(C&&(typeof C=="object"||typeof C=="function")&&typeof T=="function")return function(){T.apply(C,arguments)}}function E(C,T){var L=!1;function H(V){L||(L=!0,a.reject(C,V))}function Z(V){L||(L=!0,a.resolve(C,V))}function O(){T(Z,H)}var k=A(O);k.status==="error"&&H(k.value)}function A(C,T){var L={};try{L.value=C(T),L.status="success"}catch(H){L.status="error",L.value=H}return L}x.resolve=R;function R(C){return C instanceof this?C:a.resolve(new this(s),C)}x.reject=w;function w(C){var T=new this(s);return a.reject(T,C)}x.all=_;function _(C){var T=this;if(Object.prototype.toString.call(C)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=C.length,H=!1;if(!L)return this.resolve([]);for(var Z=new Array(L),O=0,k=-1,V=new this(s);++k<L;)X(C[k],k);return V;function X(te,Y){T.resolve(te).then(Q,function(oe){H||(H=!0,a.reject(V,oe))});function Q(oe){Z[Y]=oe,++O===L&&!H&&(H=!0,a.resolve(V,Z))}}}x.race=D;function D(C){var T=this;if(Object.prototype.toString.call(C)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=C.length,H=!1;if(!L)return this.resolve([]);for(var Z=-1,O=new this(s);++Z<L;)k(C[Z]);return O;function k(V){T.resolve(V).then(function(X){H||(H=!0,a.resolve(O,X))},function(X){H||(H=!0,a.reject(O,X))})}}},{1:1}],3:[function(r,n,i){(function(o){typeof o.Promise!="function"&&(o.Promise=r(2))}).call(this,typeof be!="undefined"?be:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(r,n,i){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b};function s(b,N){if(!(b instanceof N))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch(b){return}}var l=a();function c(){try{if(!l||!l.open)return!1;var b=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),N=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!b||N)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(S){return!1}}function u(b,N){b=b||[],N=N||{};try{return new Blob(b,N)}catch(U){if(U.name!=="TypeError")throw U;for(var S=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,M=new S,q=0;q<b.length;q+=1)M.append(b[q]);return M.getBlob(N.type)}}typeof Promise=="undefined"&&r(3);var x=Promise;function h(b,N){N&&b.then(function(S){N(null,S)},function(S){N(S)})}function y(b,N,S){typeof N=="function"&&b.then(N),typeof S=="function"&&b.catch(S)}function m(b){return typeof b!="string"&&(console.warn(b+" used as a key, but it is not a string."),b=String(b)),b}function E(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var A="local-forage-detect-blob-support",R=void 0,w={},_=Object.prototype.toString,D="readonly",C="readwrite";function T(b){for(var N=b.length,S=new ArrayBuffer(N),M=new Uint8Array(S),q=0;q<N;q++)M[q]=b.charCodeAt(q);return S}function L(b){return new x(function(N){var S=b.transaction(A,C),M=u([""]);S.objectStore(A).put(M,"key"),S.onabort=function(q){q.preventDefault(),q.stopPropagation(),N(!1)},S.oncomplete=function(){var q=navigator.userAgent.match(/Chrome\/(\d+)/),U=navigator.userAgent.match(/Edge\//);N(U||!q||parseInt(q[1],10)>=43)}}).catch(function(){return!1})}function H(b){return typeof R=="boolean"?x.resolve(R):L(b).then(function(N){return R=N,R})}function Z(b){var N=w[b.name],S={};S.promise=new x(function(M,q){S.resolve=M,S.reject=q}),N.deferredOperations.push(S),N.dbReady?N.dbReady=N.dbReady.then(function(){return S.promise}):N.dbReady=S.promise}function O(b){var N=w[b.name],S=N.deferredOperations.pop();if(S)return S.resolve(),S.promise}function k(b,N){var S=w[b.name],M=S.deferredOperations.pop();if(M)return M.reject(N),M.promise}function V(b,N){return new x(function(S,M){if(w[b.name]=w[b.name]||j(),b.db)if(N)Z(b),b.db.close();else return S(b.db);var q=[b.name];N&&q.push(b.version);var U=l.open.apply(l,q);N&&(U.onupgradeneeded=function(ee){var ae=U.result;try{ae.createObjectStore(b.storeName),ee.oldVersion<=1&&ae.createObjectStore(A)}catch(ce){if(ce.name==="ConstraintError")console.warn('The database "'+b.name+'" has been upgraded from version '+ee.oldVersion+" to version "+ee.newVersion+', but the storage "'+b.storeName+'" already exists.');else throw ce}}),U.onerror=function(ee){ee.preventDefault(),M(U.error)},U.onsuccess=function(){var ee=U.result;ee.onversionchange=function(ae){ae.target.close()},S(ee),O(b)}})}function X(b){return V(b,!1)}function te(b){return V(b,!0)}function Y(b,N){if(!b.db)return!0;var S=!b.db.objectStoreNames.contains(b.storeName),M=b.version<b.db.version,q=b.version>b.db.version;if(M&&(b.version!==N&&console.warn('The database "'+b.name+`" can't be downgraded from version `+b.db.version+" to version "+b.version+"."),b.version=b.db.version),q||S){if(S){var U=b.db.version+1;U>b.version&&(b.version=U)}return!0}return!1}function Q(b){return new x(function(N,S){var M=new FileReader;M.onerror=S,M.onloadend=function(q){var U=btoa(q.target.result||"");N({__local_forage_encoded_blob:!0,data:U,type:b.type})},M.readAsBinaryString(b)})}function oe(b){var N=T(atob(b.data));return u([N],{type:b.type})}function ie(b){return b&&b.__local_forage_encoded_blob}function he(b){var N=this,S=N._initReady().then(function(){var M=w[N._dbInfo.name];if(M&&M.dbReady)return M.dbReady});return y(S,b,b),S}function ue(b){Z(b);for(var N=w[b.name],S=N.forages,M=0;M<S.length;M++){var q=S[M];q._dbInfo.db&&(q._dbInfo.db.close(),q._dbInfo.db=null)}return b.db=null,X(b).then(function(U){return b.db=U,Y(b)?te(b):U}).then(function(U){b.db=N.db=U;for(var ee=0;ee<S.length;ee++)S[ee]._dbInfo.db=U}).catch(function(U){throw k(b,U),U})}function z(b,N,S,M){M===void 0&&(M=1);try{var q=b.db.transaction(b.storeName,N);S(null,q)}catch(U){if(M>0&&(!b.db||U.name==="InvalidStateError"||U.name==="NotFoundError"))return x.resolve().then(function(){if(!b.db||U.name==="NotFoundError"&&!b.db.objectStoreNames.contains(b.storeName)&&b.version<=b.db.version)return b.db&&(b.version=b.db.version+1),te(b)}).then(function(){return ue(b).then(function(){z(b,N,S,M-1)})}).catch(S);S(U)}}function j(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function re(b){var N=this,S={db:null};if(b)for(var M in b)S[M]=b[M];var q=w[S.name];q||(q=j(),w[S.name]=q),q.forages.push(N),N._initReady||(N._initReady=N.ready,N.ready=he);var U=[];function ee(){return x.resolve()}for(var ae=0;ae<q.forages.length;ae++){var ce=q.forages[ae];ce!==N&&U.push(ce._initReady().catch(ee))}var fe=q.forages.slice(0);return x.all(U).then(function(){return S.db=q.db,X(S)}).then(function(le){return S.db=le,Y(S,N._defaultConfig.version)?te(S):le}).then(function(le){S.db=q.db=le,N._dbInfo=S;for(var ye=0;ye<fe.length;ye++){var De=fe[ye];De!==N&&(De._dbInfo.db=S.db,De._dbInfo.version=S.version)}})}function J(b,N){var S=this;b=m(b);var M=new x(function(q,U){S.ready().then(function(){z(S._dbInfo,D,function(ee,ae){if(ee)return U(ee);try{var ce=ae.objectStore(S._dbInfo.storeName),fe=ce.get(b);fe.onsuccess=function(){var le=fe.result;le===void 0&&(le=null),ie(le)&&(le=oe(le)),q(le)},fe.onerror=function(){U(fe.error)}}catch(le){U(le)}})}).catch(U)});return h(M,N),M}function ge(b,N){var S=this,M=new x(function(q,U){S.ready().then(function(){z(S._dbInfo,D,function(ee,ae){if(ee)return U(ee);try{var ce=ae.objectStore(S._dbInfo.storeName),fe=ce.openCursor(),le=1;fe.onsuccess=function(){var ye=fe.result;if(ye){var De=ye.value;ie(De)&&(De=oe(De));var Ne=b(De,ye.key,le++);Ne!==void 0?q(Ne):ye.continue()}else q()},fe.onerror=function(){U(fe.error)}}catch(ye){U(ye)}})}).catch(U)});return h(M,N),M}function Ee(b,N,S){var M=this;b=m(b);var q=new x(function(U,ee){var ae;M.ready().then(function(){return ae=M._dbInfo,_.call(N)==="[object Blob]"?H(ae.db).then(function(ce){return ce?N:Q(N)}):N}).then(function(ce){z(M._dbInfo,C,function(fe,le){if(fe)return ee(fe);try{var ye=le.objectStore(M._dbInfo.storeName);ce===null&&(ce=void 0);var De=ye.put(ce,b);le.oncomplete=function(){ce===void 0&&(ce=null),U(ce)},le.onabort=le.onerror=function(){var Ne=De.error?De.error:De.transaction.error;ee(Ne)}}catch(Ne){ee(Ne)}})}).catch(ee)});return h(q,S),q}function Pe(b,N){var S=this;b=m(b);var M=new x(function(q,U){S.ready().then(function(){z(S._dbInfo,C,function(ee,ae){if(ee)return U(ee);try{var ce=ae.objectStore(S._dbInfo.storeName),fe=ce.delete(b);ae.oncomplete=function(){q()},ae.onerror=function(){U(fe.error)},ae.onabort=function(){var le=fe.error?fe.error:fe.transaction.error;U(le)}}catch(le){U(le)}})}).catch(U)});return h(M,N),M}function ve(b){var N=this,S=new x(function(M,q){N.ready().then(function(){z(N._dbInfo,C,function(U,ee){if(U)return q(U);try{var ae=ee.objectStore(N._dbInfo.storeName),ce=ae.clear();ee.oncomplete=function(){M()},ee.onabort=ee.onerror=function(){var fe=ce.error?ce.error:ce.transaction.error;q(fe)}}catch(fe){q(fe)}})}).catch(q)});return h(S,b),S}function Ae(b){var N=this,S=new x(function(M,q){N.ready().then(function(){z(N._dbInfo,D,function(U,ee){if(U)return q(U);try{var ae=ee.objectStore(N._dbInfo.storeName),ce=ae.count();ce.onsuccess=function(){M(ce.result)},ce.onerror=function(){q(ce.error)}}catch(fe){q(fe)}})}).catch(q)});return h(S,b),S}function Ie(b,N){var S=this,M=new x(function(q,U){if(b<0){q(null);return}S.ready().then(function(){z(S._dbInfo,D,function(ee,ae){if(ee)return U(ee);try{var ce=ae.objectStore(S._dbInfo.storeName),fe=!1,le=ce.openKeyCursor();le.onsuccess=function(){var ye=le.result;if(!ye){q(null);return}b===0||fe?q(ye.key):(fe=!0,ye.advance(b))},le.onerror=function(){U(le.error)}}catch(ye){U(ye)}})}).catch(U)});return h(M,N),M}function He(b){var N=this,S=new x(function(M,q){N.ready().then(function(){z(N._dbInfo,D,function(U,ee){if(U)return q(U);try{var ae=ee.objectStore(N._dbInfo.storeName),ce=ae.openKeyCursor(),fe=[];ce.onsuccess=function(){var le=ce.result;if(!le){M(fe);return}fe.push(le.key),le.continue()},ce.onerror=function(){q(ce.error)}}catch(le){q(le)}})}).catch(q)});return h(S,b),S}function $e(b,N){N=E.apply(this,arguments);var S=this.config();b=typeof b!="function"&&b||{},b.name||(b.name=b.name||S.name,b.storeName=b.storeName||S.storeName);var M=this,q;if(!b.name)q=x.reject("Invalid arguments");else{var U=b.name===S.name&&M._dbInfo.db,ee=U?x.resolve(M._dbInfo.db):X(b).then(function(ae){var ce=w[b.name],fe=ce.forages;ce.db=ae;for(var le=0;le<fe.length;le++)fe[le]._dbInfo.db=ae;return ae});b.storeName?q=ee.then(function(ae){if(ae.objectStoreNames.contains(b.storeName)){var ce=ae.version+1;Z(b);var fe=w[b.name],le=fe.forages;ae.close();for(var ye=0;ye<le.length;ye++){var De=le[ye];De._dbInfo.db=null,De._dbInfo.version=ce}var Ne=new x(function(Le,Ke){var We=l.open(b.name,ce);We.onerror=function(p){var g=We.result;g.close(),Ke(p)},We.onupgradeneeded=function(){var p=We.result;p.deleteObjectStore(b.storeName)},We.onsuccess=function(){var p=We.result;p.close(),Le(p)}});return Ne.then(function(Le){fe.db=Le;for(var Ke=0;Ke<le.length;Ke++){var We=le[Ke];We._dbInfo.db=Le,O(We._dbInfo)}}).catch(function(Le){throw(k(b,Le)||x.resolve()).catch(function(){}),Le})}}):q=ee.then(function(ae){Z(b);var ce=w[b.name],fe=ce.forages;ae.close();for(var le=0;le<fe.length;le++){var ye=fe[le];ye._dbInfo.db=null}var De=new x(function(Ne,Le){var Ke=l.deleteDatabase(b.name);Ke.onerror=function(){var We=Ke.result;We&&We.close(),Le(Ke.error)},Ke.onblocked=function(){console.warn('dropInstance blocked for database "'+b.name+'" until all open connections are closed')},Ke.onsuccess=function(){var We=Ke.result;We&&We.close(),Ne(We)}});return De.then(function(Ne){ce.db=Ne;for(var Le=0;Le<fe.length;Le++){var Ke=fe[Le];O(Ke._dbInfo)}}).catch(function(Ne){throw(k(b,Ne)||x.resolve()).catch(function(){}),Ne})})}return h(q,N),q}var Fe={_driver:"asyncStorage",_initStorage:re,_support:c(),iterate:ge,getItem:J,setItem:Ee,removeItem:Pe,clear:ve,length:Ae,key:Ie,keys:He,dropInstance:$e};function ze(){return typeof openDatabase=="function"}var qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F="~~local_forage_type~",f=/^~~local_forage_type~([^~]+)~/,d="__lfsc__:",v=d.length,I="arbf",W="blob",K="si08",pe="ui08",_e="uic8",we="si16",Ce="si32",Te="ur16",ut="ui32",Bt="fl32",Dt="fl64",Et=v+I.length,St=Object.prototype.toString;function yr(b){var N=b.length*.75,S=b.length,M,q=0,U,ee,ae,ce;b[b.length-1]==="="&&(N--,b[b.length-2]==="="&&N--);var fe=new ArrayBuffer(N),le=new Uint8Array(fe);for(M=0;M<S;M+=4)U=qe.indexOf(b[M]),ee=qe.indexOf(b[M+1]),ae=qe.indexOf(b[M+2]),ce=qe.indexOf(b[M+3]),le[q++]=U<<2|ee>>4,le[q++]=(ee&15)<<4|ae>>2,le[q++]=(ae&3)<<6|ce&63;return fe}function Ft(b){var N=new Uint8Array(b),S="",M;for(M=0;M<N.length;M+=3)S+=qe[N[M]>>2],S+=qe[(N[M]&3)<<4|N[M+1]>>4],S+=qe[(N[M+1]&15)<<2|N[M+2]>>6],S+=qe[N[M+2]&63];return N.length%3===2?S=S.substring(0,S.length-1)+"=":N.length%3===1&&(S=S.substring(0,S.length-2)+"=="),S}function mr(b,N){var S="";if(b&&(S=St.call(b)),b&&(S==="[object ArrayBuffer]"||b.buffer&&St.call(b.buffer)==="[object ArrayBuffer]")){var M,q=d;b instanceof ArrayBuffer?(M=b,q+=I):(M=b.buffer,S==="[object Int8Array]"?q+=K:S==="[object Uint8Array]"?q+=pe:S==="[object Uint8ClampedArray]"?q+=_e:S==="[object Int16Array]"?q+=we:S==="[object Uint16Array]"?q+=Te:S==="[object Int32Array]"?q+=Ce:S==="[object Uint32Array]"?q+=ut:S==="[object Float32Array]"?q+=Bt:S==="[object Float64Array]"?q+=Dt:N(new Error("Failed to get type for BinaryArray"))),N(q+Ft(M))}else if(S==="[object Blob]"){var U=new FileReader;U.onload=function(){var ee=F+b.type+"~"+Ft(this.result);N(d+W+ee)},U.readAsArrayBuffer(b)}else try{N(JSON.stringify(b))}catch(ee){console.error("Couldn't convert value into a JSON string: ",b),N(null,ee)}}function gr(b){if(b.substring(0,v)!==d)return JSON.parse(b);var N=b.substring(Et),S=b.substring(v,Et),M;if(S===W&&f.test(N)){var q=N.match(f);M=q[1],N=N.substring(q[0].length)}var U=yr(N);switch(S){case I:return U;case W:return u([U],{type:M});case K:return new Int8Array(U);case pe:return new Uint8Array(U);case _e:return new Uint8ClampedArray(U);case we:return new Int16Array(U);case Te:return new Uint16Array(U);case Ce:return new Int32Array(U);case ut:return new Uint32Array(U);case Bt:return new Float32Array(U);case Dt:return new Float64Array(U);default:throw new Error("Unkown type: "+S)}}var Qt={serialize:mr,deserialize:gr,stringToBuffer:yr,bufferToString:Ft};function qt(b,N,S,M){b.executeSql("CREATE TABLE IF NOT EXISTS "+N.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],S,M)}function Vr(b){var N=this,S={db:null};if(b)for(var M in b)S[M]=typeof b[M]!="string"?b[M].toString():b[M];var q=new x(function(U,ee){try{S.db=openDatabase(S.name,String(S.version),S.description,S.size)}catch(ae){return ee(ae)}S.db.transaction(function(ae){qt(ae,S,function(){N._dbInfo=S,U()},function(ce,fe){ee(fe)})},ee)});return S.serializer=Qt,q}function pt(b,N,S,M,q,U){b.executeSql(S,M,q,function(ee,ae){ae.code===ae.SYNTAX_ERR?ee.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[N.storeName],function(ce,fe){fe.rows.length?U(ce,ae):qt(ce,N,function(){ce.executeSql(S,M,q,U)},U)},U):U(ee,ae)},U)}function Gr(b,N){var S=this;b=m(b);var M=new x(function(q,U){S.ready().then(function(){var ee=S._dbInfo;ee.db.transaction(function(ae){pt(ae,ee,"SELECT * FROM "+ee.storeName+" WHERE key = ? LIMIT 1",[b],function(ce,fe){var le=fe.rows.length?fe.rows.item(0).value:null;le&&(le=ee.serializer.deserialize(le)),q(le)},function(ce,fe){U(fe)})})}).catch(U)});return h(M,N),M}function Er(b,N){var S=this,M=new x(function(q,U){S.ready().then(function(){var ee=S._dbInfo;ee.db.transaction(function(ae){pt(ae,ee,"SELECT * FROM "+ee.storeName,[],function(ce,fe){for(var le=fe.rows,ye=le.length,De=0;De<ye;De++){var Ne=le.item(De),Le=Ne.value;if(Le&&(Le=ee.serializer.deserialize(Le)),Le=b(Le,Ne.key,De+1),Le!==void 0){q(Le);return}}q()},function(ce,fe){U(fe)})})}).catch(U)});return h(M,N),M}function Ar(b,N,S,M){var q=this;b=m(b);var U=new x(function(ee,ae){q.ready().then(function(){N===void 0&&(N=null);var ce=N,fe=q._dbInfo;fe.serializer.serialize(N,function(le,ye){ye?ae(ye):fe.db.transaction(function(De){pt(De,fe,"INSERT OR REPLACE INTO "+fe.storeName+" (key, value) VALUES (?, ?)",[b,le],function(){ee(ce)},function(Ne,Le){ae(Le)})},function(De){if(De.code===De.QUOTA_ERR){if(M>0){ee(Ar.apply(q,[b,ce,S,M-1]));return}ae(De)}})})}).catch(ae)});return h(U,S),U}function jr(b,N,S){return Ar.apply(this,[b,N,S,1])}function Kr(b,N){var S=this;b=m(b);var M=new x(function(q,U){S.ready().then(function(){var ee=S._dbInfo;ee.db.transaction(function(ae){pt(ae,ee,"DELETE FROM "+ee.storeName+" WHERE key = ?",[b],function(){q()},function(ce,fe){U(fe)})})}).catch(U)});return h(M,N),M}function wr(b){var N=this,S=new x(function(M,q){N.ready().then(function(){var U=N._dbInfo;U.db.transaction(function(ee){pt(ee,U,"DELETE FROM "+U.storeName,[],function(){M()},function(ae,ce){q(ce)})})}).catch(q)});return h(S,b),S}function Yr(b){var N=this,S=new x(function(M,q){N.ready().then(function(){var U=N._dbInfo;U.db.transaction(function(ee){pt(ee,U,"SELECT COUNT(key) as c FROM "+U.storeName,[],function(ae,ce){var fe=ce.rows.item(0).c;M(fe)},function(ae,ce){q(ce)})})}).catch(q)});return h(S,b),S}function Xr(b,N){var S=this,M=new x(function(q,U){S.ready().then(function(){var ee=S._dbInfo;ee.db.transaction(function(ae){pt(ae,ee,"SELECT key FROM "+ee.storeName+" WHERE id = ? LIMIT 1",[b+1],function(ce,fe){var le=fe.rows.length?fe.rows.item(0).key:null;q(le)},function(ce,fe){U(fe)})})}).catch(U)});return h(M,N),M}function _r(b){var N=this,S=new x(function(M,q){N.ready().then(function(){var U=N._dbInfo;U.db.transaction(function(ee){pt(ee,U,"SELECT key FROM "+U.storeName,[],function(ae,ce){for(var fe=[],le=0;le<ce.rows.length;le++)fe.push(ce.rows.item(le).key);M(fe)},function(ae,ce){q(ce)})})}).catch(q)});return h(S,b),S}function Jr(b){return new x(function(N,S){b.transaction(function(M){M.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(q,U){for(var ee=[],ae=0;ae<U.rows.length;ae++)ee.push(U.rows.item(ae).name);N({db:b,storeNames:ee})},function(q,U){S(U)})},function(M){S(M)})})}function br(b,N){N=E.apply(this,arguments);var S=this.config();b=typeof b!="function"&&b||{},b.name||(b.name=b.name||S.name,b.storeName=b.storeName||S.storeName);var M=this,q;return b.name?q=new x(function(U){var ee;b.name===S.name?ee=M._dbInfo.db:ee=openDatabase(b.name,"","",0),b.storeName?U({db:ee,storeNames:[b.storeName]}):U(Jr(ee))}).then(function(U){return new x(function(ee,ae){U.db.transaction(function(ce){function fe(Ne){return new x(function(Le,Ke){ce.executeSql("DROP TABLE IF EXISTS "+Ne,[],function(){Le()},function(We,p){Ke(p)})})}for(var le=[],ye=0,De=U.storeNames.length;ye<De;ye++)le.push(fe(U.storeNames[ye]));x.all(le).then(function(){ee()}).catch(function(Ne){ae(Ne)})},function(ce){ae(ce)})})}):q=x.reject("Invalid arguments"),h(q,N),q}var rt={_driver:"webSQLStorage",_initStorage:Vr,_support:ze(),iterate:Er,getItem:Gr,setItem:jr,removeItem:Kr,clear:wr,length:Yr,key:Xr,keys:_r,dropInstance:br};function vt(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(b){return!1}}function Zt(b,N){var S=b.name+"/";return b.storeName!==N.storeName&&(S+=b.storeName+"/"),S}function Qr(){var b="_localforage_support_test";try{return localStorage.setItem(b,!0),localStorage.removeItem(b),!1}catch(N){return!0}}function wi(){return!Qr()||localStorage.length>0}function _i(b){var N=this,S={};if(b)for(var M in b)S[M]=b[M];return S.keyPrefix=Zt(b,N._defaultConfig),wi()?(N._dbInfo=S,S.serializer=Qt,x.resolve()):x.reject()}function bi(b){var N=this,S=N.ready().then(function(){for(var M=N._dbInfo.keyPrefix,q=localStorage.length-1;q>=0;q--){var U=localStorage.key(q);U.indexOf(M)===0&&localStorage.removeItem(U)}});return h(S,b),S}function Ci(b,N){var S=this;b=m(b);var M=S.ready().then(function(){var q=S._dbInfo,U=localStorage.getItem(q.keyPrefix+b);return U&&(U=q.serializer.deserialize(U)),U});return h(M,N),M}function Bi(b,N){var S=this,M=S.ready().then(function(){for(var q=S._dbInfo,U=q.keyPrefix,ee=U.length,ae=localStorage.length,ce=1,fe=0;fe<ae;fe++){var le=localStorage.key(fe);if(le.indexOf(U)===0){var ye=localStorage.getItem(le);if(ye&&(ye=q.serializer.deserialize(ye)),ye=b(ye,le.substring(ee),ce++),ye!==void 0)return ye}}});return h(M,N),M}function Di(b,N){var S=this,M=S.ready().then(function(){var q=S._dbInfo,U;try{U=localStorage.key(b)}catch(ee){U=null}return U&&(U=U.substring(q.keyPrefix.length)),U});return h(M,N),M}function er(b){var N=this,S=N.ready().then(function(){for(var M=N._dbInfo,q=localStorage.length,U=[],ee=0;ee<q;ee++){var ae=localStorage.key(ee);ae.indexOf(M.keyPrefix)===0&&U.push(ae.substring(M.keyPrefix.length))}return U});return h(S,b),S}function Bn(b){var N=this,S=N.keys().then(function(M){return M.length});return h(S,b),S}function Si(b,N){var S=this;b=m(b);var M=S.ready().then(function(){var q=S._dbInfo;localStorage.removeItem(q.keyPrefix+b)});return h(M,N),M}function Fi(b,N,S){var M=this;b=m(b);var q=M.ready().then(function(){N===void 0&&(N=null);var U=N;return new x(function(ee,ae){var ce=M._dbInfo;ce.serializer.serialize(N,function(fe,le){if(le)ae(le);else try{localStorage.setItem(ce.keyPrefix+b,fe),ee(U)}catch(ye){(ye.name==="QuotaExceededError"||ye.name==="NS_ERROR_DOM_QUOTA_REACHED")&&ae(ye),ae(ye)}})})});return h(q,S),q}function Ri(b,N){if(N=E.apply(this,arguments),b=typeof b!="function"&&b||{},!b.name){var S=this.config();b.name=b.name||S.name,b.storeName=b.storeName||S.storeName}var M=this,q;return b.name?q=new x(function(U){b.storeName?U(Zt(b,M._defaultConfig)):U(b.name+"/")}).then(function(U){for(var ee=localStorage.length-1;ee>=0;ee--){var ae=localStorage.key(ee);ae.indexOf(U)===0&&localStorage.removeItem(ae)}}):q=x.reject("Invalid arguments"),h(q,N),q}var Ii={_driver:"localStorageWrapper",_initStorage:_i,_support:vt(),iterate:Bi,getItem:Ci,setItem:Fi,removeItem:Si,clear:bi,length:Bn,key:Di,keys:er,dropInstance:Ri},Ti=function(N,S){return N===S||typeof N=="number"&&typeof S=="number"&&isNaN(N)&&isNaN(S)},Ut=function(N,S){for(var M=N.length,q=0;q<M;){if(Ti(N[q],S))return!0;q++}return!1},Dn=Array.isArray||function(b){return Object.prototype.toString.call(b)==="[object Array]"},tr={},Sn={},Wt={INDEXEDDB:Fe,WEBSQL:rt,LOCALSTORAGE:Ii},Oi=[Wt.INDEXEDDB._driver,Wt.WEBSQL._driver,Wt.LOCALSTORAGE._driver],Cr=["dropInstance"],Zr=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Cr),Pi={description:"",driver:Oi.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Ni(b,N){b[N]=function(){var S=arguments;return b.ready().then(function(){return b[N].apply(b,S)})}}function Xe(){for(var b=1;b<arguments.length;b++){var N=arguments[b];if(N)for(var S in N)N.hasOwnProperty(S)&&(Dn(N[S])?arguments[0][S]=N[S].slice():arguments[0][S]=N[S])}return arguments[0]}var Li=function(){function b(N){s(this,b);for(var S in Wt)if(Wt.hasOwnProperty(S)){var M=Wt[S],q=M._driver;this[S]=q,tr[q]||this.defineDriver(M)}this._defaultConfig=Xe({},Pi),this._config=Xe({},this._defaultConfig,N),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return b.prototype.config=function(S){if((typeof S=="undefined"?"undefined":o(S))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var M in S){if(M==="storeName"&&(S[M]=S[M].replace(/\W/g,"_")),M==="version"&&typeof S[M]!="number")return new Error("Database version must be a number.");this._config[M]=S[M]}return"driver"in S&&S.driver?this.setDriver(this._config.driver):!0}else return typeof S=="string"?this._config[S]:this._config},b.prototype.defineDriver=function(S,M,q){var U=new x(function(ee,ae){try{var ce=S._driver,fe=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!S._driver){ae(fe);return}for(var le=Zr.concat("_initStorage"),ye=0,De=le.length;ye<De;ye++){var Ne=le[ye],Le=!Ut(Cr,Ne);if((Le||S[Ne])&&typeof S[Ne]!="function"){ae(fe);return}}var Ke=function(){for(var g=function(de){return function(){var xe=new Error("Method "+de+" is not implemented by the current driver"),Me=x.reject(xe);return h(Me,arguments[arguments.length-1]),Me}},B=0,$=Cr.length;B<$;B++){var ne=Cr[B];S[ne]||(S[ne]=g(ne))}};Ke();var We=function(g){tr[ce]&&console.info("Redefining LocalForage driver: "+ce),tr[ce]=S,Sn[ce]=g,ee()};"_support"in S?S._support&&typeof S._support=="function"?S._support().then(We,ae):We(!!S._support):We(!0)}catch(p){ae(p)}});return y(U,M,q),U},b.prototype.driver=function(){return this._driver||null},b.prototype.getDriver=function(S,M,q){var U=tr[S]?x.resolve(tr[S]):x.reject(new Error("Driver not found."));return y(U,M,q),U},b.prototype.getSerializer=function(S){var M=x.resolve(Qt);return y(M,S),M},b.prototype.ready=function(S){var M=this,q=M._driverSet.then(function(){return M._ready===null&&(M._ready=M._initDriver()),M._ready});return y(q,S,S),q},b.prototype.setDriver=function(S,M,q){var U=this;Dn(S)||(S=[S]);var ee=this._getSupportedDrivers(S);function ae(){U._config.driver=U.driver()}function ce(ye){return U._extend(ye),ae(),U._ready=U._initStorage(U._config),U._ready}function fe(ye){return function(){var De=0;function Ne(){for(;De<ye.length;){var Le=ye[De];return De++,U._dbInfo=null,U._ready=null,U.getDriver(Le).then(ce).catch(Ne)}ae();var Ke=new Error("No available storage method found.");return U._driverSet=x.reject(Ke),U._driverSet}return Ne()}}var le=this._driverSet!==null?this._driverSet.catch(function(){return x.resolve()}):x.resolve();return this._driverSet=le.then(function(){var ye=ee[0];return U._dbInfo=null,U._ready=null,U.getDriver(ye).then(function(De){U._driver=De._driver,ae(),U._wrapLibraryMethodsWithReady(),U._initDriver=fe(ee)})}).catch(function(){ae();var ye=new Error("No available storage method found.");return U._driverSet=x.reject(ye),U._driverSet}),y(this._driverSet,M,q),this._driverSet},b.prototype.supports=function(S){return!!Sn[S]},b.prototype._extend=function(S){Xe(this,S)},b.prototype._getSupportedDrivers=function(S){for(var M=[],q=0,U=S.length;q<U;q++){var ee=S[q];this.supports(ee)&&M.push(ee)}return M},b.prototype._wrapLibraryMethodsWithReady=function(){for(var S=0,M=Zr.length;S<M;S++)Ni(this,Zr[S])},b.prototype.createInstance=function(S){return new b(S)},b}(),ki=new Li;n.exports=ki},{3:3}]},{},[4])(4)})})(Mu);var Hv=Mu.exports;const nt=C0(Hv);var hc;nt.config(Ue({driver:[nt.INDEXEDDB,nt.LOCALSTORAGE],name:"SGP7000",size:4980736,storeName:"keyvaluepairs",version:1,description:"SGP7000"},((hc=window.meta.storage)==null?void 0:hc.config)||{}));function zv(){return{getKey:m=>Be(this,null,function*(){return yield nt.key(m)}),getKeys:()=>Be(this,null,function*(){return yield nt.keys()}),getItem:m=>Be(this,null,function*(){if(m)return yield nt.getItem(m)}),setItem:(m,E)=>Be(this,null,function*(){if(m)return yield nt.setItem(m,E)}),removeItem:m=>Be(this,null,function*(){if(m)return yield nt.removeItem(m)}),clearItems:()=>Be(this,null,function*(){return yield nt.clear()}),iterateItems:(m,E)=>Be(this,null,function*(){if(m)return yield nt.iterate(m,E)}),getReady:()=>Be(this,null,function*(){return yield nt.ready()}),getLength:()=>Be(this,null,function*(){return yield nt.length()}),getDriver:()=>Be(this,null,function*(){return yield nt.driver()}),setDriver:m=>Be(this,null,function*(){if(m)return yield nt.setDriver(m)}),setConfig:m=>Be(this,null,function*(){if(m)return yield nt.config(m)}),dropInstance:m=>Be(this,null,function*(){if(m)return yield nt.dropInstance(m)}),createInstance:m=>Be(this,null,function*(){if(m)return yield nt.createInstance(m)})}}const qv="THREED_LOG_BUFFER",Wv="THREED_CURRSCENE",Vv="THREED_ACTIVE_MENU",Gv="THREED_PIXEL_RATIO",Jn="THREED_MODEL_DBNAME",y0="THREED_MODEL_DBSTORE",jv="THREED_SCENE_PREVIEW",m0="THREED_MODEL_LOAD_KEY",an="THREED_PREVIEW_URL_KEY",Kv="THREED_ADDON_EDITOR_JSON",Yv="THREED_SCENE_STORAGE_SUFFIX",g0={step:.1},Xv=80,Uu=30,Jv=1e3,Qv=1200,Zv=3e5,ey="三维测试",ty="灯光",ry=1,ny=["环境光","平行光","点光源","聚光灯","半球光","平面光"],$u=new Set(["syncStatus","disposeTargets","statusMaterials","syncPanelPlacement"]),iy=["AxesHelper","GridHelper","Box3Helper","PerspectiveCamera"],Hu=new Set(["GridHelper","AxesHelper","CameraHelper","SpotLightHelper","PointLightHelper","TransformControls","HemisphereLightHelper","DirectionalLightHelper","TransformControlsPlane"]),zu=new Set(["CSS2DObject","CSS3DObject"]),oy=Object.assign({"/src/views/threed/models/pd-sensor.js":$v}),ay=Object.assign({}),sy={环境光:()=>new ht.THREE.AmbientLight(16777215,1),平行光:()=>new ht.THREE.DirectionalLight(16777215,1),点光源:()=>new ht.THREE.PointLight(16777215,1,0,0),聚光灯:()=>new ht.THREE.SpotLight(16777215,1,0,Math.PI/6,0,0),半球光:()=>new ht.THREE.HemisphereLight(16777215,0,1),平面光:()=>new ht.THREE.RectAreaLight(16777215,1,100,100)},cy=[{name:"荧光流动",commonUniforms:!0,vertex:"vUv-material",fragment:`
|
|
52
|
+
*/(function(t,e){(function(r){t.exports=r()})(function(){return function r(n,i,o){function s(c,f){if(!i[c]){if(!n[c]){var x=typeof on=="function"&&on;if(!f&&x)return x(c,!0);if(a)return a(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var y=i[c]={exports:{}};n[c][0].call(y.exports,function(m){var E=n[c][1][m];return s(E||m)},y,y.exports,r,n,i,o)}return i[c].exports}for(var a=typeof on=="function"&&on,u=0;u<o.length;u++)s(o[u]);return s}({1:[function(r,n,i){(function(o){var s=o.MutationObserver||o.WebKitMutationObserver,a;if(s){var u=0,c=new s(m),f=o.document.createTextNode("");c.observe(f,{characterData:!0}),a=function(){f.data=u=++u%2}}else if(!o.setImmediate&&typeof o.MessageChannel!="undefined"){var x=new o.MessageChannel;x.port1.onmessage=m,a=function(){x.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?a=function(){var A=o.document.createElement("script");A.onreadystatechange=function(){m(),A.onreadystatechange=null,A.parentNode.removeChild(A),A=null},o.document.documentElement.appendChild(A)}:a=function(){setTimeout(m,0)};var h,y=[];function m(){h=!0;for(var A,R,w=y.length;w;){for(R=y,y=[],A=-1;++A<w;)R[A]();w=y.length}h=!1}n.exports=E;function E(A){y.push(A)===1&&!h&&a()}}).call(this,typeof be!="undefined"?be:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(r,n,i){var o=r(1);function s(){}var a={},u=["REJECTED"],c=["FULFILLED"],f=["PENDING"];n.exports=x;function x(D){if(typeof D!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,D!==s&&E(this,D)}x.prototype.catch=function(D){return this.then(null,D)},x.prototype.then=function(D,T){if(typeof D!="function"&&this.state===c||typeof T!="function"&&this.state===u)return this;var L=new this.constructor(s);if(this.state!==f){var z=this.state===c?D:T;y(L,z,this.outcome)}else this.queue.push(new h(L,D,T));return L};function h(D,T,L){this.promise=D,typeof T=="function"&&(this.onFulfilled=T,this.callFulfilled=this.otherCallFulfilled),typeof L=="function"&&(this.onRejected=L,this.callRejected=this.otherCallRejected)}h.prototype.callFulfilled=function(D){a.resolve(this.promise,D)},h.prototype.otherCallFulfilled=function(D){y(this.promise,this.onFulfilled,D)},h.prototype.callRejected=function(D){a.reject(this.promise,D)},h.prototype.otherCallRejected=function(D){y(this.promise,this.onRejected,D)};function y(D,T,L){o(function(){var z;try{z=T(L)}catch(Q){return a.reject(D,Q)}z===D?a.reject(D,new TypeError("Cannot resolve promise with itself")):a.resolve(D,z)})}a.resolve=function(D,T){var L=A(m,T);if(L.status==="error")return a.reject(D,L.value);var z=L.value;if(z)E(D,z);else{D.state=c,D.outcome=T;for(var Q=-1,O=D.queue.length;++Q<O;)D.queue[Q].callFulfilled(T)}return D},a.reject=function(D,T){D.state=u,D.outcome=T;for(var L=-1,z=D.queue.length;++L<z;)D.queue[L].callRejected(T);return D};function m(D){var T=D&&D.then;if(D&&(typeof D=="object"||typeof D=="function")&&typeof T=="function")return function(){T.apply(D,arguments)}}function E(D,T){var L=!1;function z(V){L||(L=!0,a.reject(D,V))}function Q(V){L||(L=!0,a.resolve(D,V))}function O(){T(Q,z)}var k=A(O);k.status==="error"&&z(k.value)}function A(D,T){var L={};try{L.value=D(T),L.status="success"}catch(z){L.status="error",L.value=z}return L}x.resolve=R;function R(D){return D instanceof this?D:a.resolve(new this(s),D)}x.reject=w;function w(D){var T=new this(s);return a.reject(T,D)}x.all=_;function _(D){var T=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=D.length,z=!1;if(!L)return this.resolve([]);for(var Q=new Array(L),O=0,k=-1,V=new this(s);++k<L;)X(D[k],k);return V;function X(ee,Y){T.resolve(ee).then(Z,function(oe){z||(z=!0,a.reject(V,oe))});function Z(oe){Q[Y]=oe,++O===L&&!z&&(z=!0,a.resolve(V,Q))}}}x.race=B;function B(D){var T=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=D.length,z=!1;if(!L)return this.resolve([]);for(var Q=-1,O=new this(s);++Q<L;)k(D[Q]);return O;function k(V){T.resolve(V).then(function(X){z||(z=!0,a.resolve(O,X))},function(X){z||(z=!0,a.reject(O,X))})}}},{1:1}],3:[function(r,n,i){(function(o){typeof o.Promise!="function"&&(o.Promise=r(2))}).call(this,typeof be!="undefined"?be:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(r,n,i){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b};function s(b,N){if(!(b instanceof N))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch(b){return}}var u=a();function c(){try{if(!u||!u.open)return!1;var b=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),N=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!b||N)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(S){return!1}}function f(b,N){b=b||[],N=N||{};try{return new Blob(b,N)}catch(U){if(U.name!=="TypeError")throw U;for(var S=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,M=new S,q=0;q<b.length;q+=1)M.append(b[q]);return M.getBlob(N.type)}}typeof Promise=="undefined"&&r(3);var x=Promise;function h(b,N){N&&b.then(function(S){N(null,S)},function(S){N(S)})}function y(b,N,S){typeof N=="function"&&b.then(N),typeof S=="function"&&b.catch(S)}function m(b){return typeof b!="string"&&(console.warn(b+" used as a key, but it is not a string."),b=String(b)),b}function E(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var A="local-forage-detect-blob-support",R=void 0,w={},_=Object.prototype.toString,B="readonly",D="readwrite";function T(b){for(var N=b.length,S=new ArrayBuffer(N),M=new Uint8Array(S),q=0;q<N;q++)M[q]=b.charCodeAt(q);return S}function L(b){return new x(function(N){var S=b.transaction(A,D),M=f([""]);S.objectStore(A).put(M,"key"),S.onabort=function(q){q.preventDefault(),q.stopPropagation(),N(!1)},S.oncomplete=function(){var q=navigator.userAgent.match(/Chrome\/(\d+)/),U=navigator.userAgent.match(/Edge\//);N(U||!q||parseInt(q[1],10)>=43)}}).catch(function(){return!1})}function z(b){return typeof R=="boolean"?x.resolve(R):L(b).then(function(N){return R=N,R})}function Q(b){var N=w[b.name],S={};S.promise=new x(function(M,q){S.resolve=M,S.reject=q}),N.deferredOperations.push(S),N.dbReady?N.dbReady=N.dbReady.then(function(){return S.promise}):N.dbReady=S.promise}function O(b){var N=w[b.name],S=N.deferredOperations.pop();if(S)return S.resolve(),S.promise}function k(b,N){var S=w[b.name],M=S.deferredOperations.pop();if(M)return M.reject(N),M.promise}function V(b,N){return new x(function(S,M){if(w[b.name]=w[b.name]||j(),b.db)if(N)Q(b),b.db.close();else return S(b.db);var q=[b.name];N&&q.push(b.version);var U=u.open.apply(u,q);N&&(U.onupgradeneeded=function(te){var ae=U.result;try{ae.createObjectStore(b.storeName),te.oldVersion<=1&&ae.createObjectStore(A)}catch(ce){if(ce.name==="ConstraintError")console.warn('The database "'+b.name+'" has been upgraded from version '+te.oldVersion+" to version "+te.newVersion+', but the storage "'+b.storeName+'" already exists.');else throw ce}}),U.onerror=function(te){te.preventDefault(),M(U.error)},U.onsuccess=function(){var te=U.result;te.onversionchange=function(ae){ae.target.close()},S(te),O(b)}})}function X(b){return V(b,!1)}function ee(b){return V(b,!0)}function Y(b,N){if(!b.db)return!0;var S=!b.db.objectStoreNames.contains(b.storeName),M=b.version<b.db.version,q=b.version>b.db.version;if(M&&(b.version!==N&&console.warn('The database "'+b.name+`" can't be downgraded from version `+b.db.version+" to version "+b.version+"."),b.version=b.db.version),q||S){if(S){var U=b.db.version+1;U>b.version&&(b.version=U)}return!0}return!1}function Z(b){return new x(function(N,S){var M=new FileReader;M.onerror=S,M.onloadend=function(q){var U=btoa(q.target.result||"");N({__local_forage_encoded_blob:!0,data:U,type:b.type})},M.readAsBinaryString(b)})}function oe(b){var N=T(atob(b.data));return f([N],{type:b.type})}function ie(b){return b&&b.__local_forage_encoded_blob}function he(b){var N=this,S=N._initReady().then(function(){var M=w[N._dbInfo.name];if(M&&M.dbReady)return M.dbReady});return y(S,b,b),S}function ue(b){Q(b);for(var N=w[b.name],S=N.forages,M=0;M<S.length;M++){var q=S[M];q._dbInfo.db&&(q._dbInfo.db.close(),q._dbInfo.db=null)}return b.db=null,X(b).then(function(U){return b.db=U,Y(b)?ee(b):U}).then(function(U){b.db=N.db=U;for(var te=0;te<S.length;te++)S[te]._dbInfo.db=U}).catch(function(U){throw k(b,U),U})}function H(b,N,S,M){M===void 0&&(M=1);try{var q=b.db.transaction(b.storeName,N);S(null,q)}catch(U){if(M>0&&(!b.db||U.name==="InvalidStateError"||U.name==="NotFoundError"))return x.resolve().then(function(){if(!b.db||U.name==="NotFoundError"&&!b.db.objectStoreNames.contains(b.storeName)&&b.version<=b.db.version)return b.db&&(b.version=b.db.version+1),ee(b)}).then(function(){return ue(b).then(function(){H(b,N,S,M-1)})}).catch(S);S(U)}}function j(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function re(b){var N=this,S={db:null};if(b)for(var M in b)S[M]=b[M];var q=w[S.name];q||(q=j(),w[S.name]=q),q.forages.push(N),N._initReady||(N._initReady=N.ready,N.ready=he);var U=[];function te(){return x.resolve()}for(var ae=0;ae<q.forages.length;ae++){var ce=q.forages[ae];ce!==N&&U.push(ce._initReady().catch(te))}var fe=q.forages.slice(0);return x.all(U).then(function(){return S.db=q.db,X(S)}).then(function(le){return S.db=le,Y(S,N._defaultConfig.version)?ee(S):le}).then(function(le){S.db=q.db=le,N._dbInfo=S;for(var ye=0;ye<fe.length;ye++){var De=fe[ye];De!==N&&(De._dbInfo.db=S.db,De._dbInfo.version=S.version)}})}function J(b,N){var S=this;b=m(b);var M=new x(function(q,U){S.ready().then(function(){H(S._dbInfo,B,function(te,ae){if(te)return U(te);try{var ce=ae.objectStore(S._dbInfo.storeName),fe=ce.get(b);fe.onsuccess=function(){var le=fe.result;le===void 0&&(le=null),ie(le)&&(le=oe(le)),q(le)},fe.onerror=function(){U(fe.error)}}catch(le){U(le)}})}).catch(U)});return h(M,N),M}function ge(b,N){var S=this,M=new x(function(q,U){S.ready().then(function(){H(S._dbInfo,B,function(te,ae){if(te)return U(te);try{var ce=ae.objectStore(S._dbInfo.storeName),fe=ce.openCursor(),le=1;fe.onsuccess=function(){var ye=fe.result;if(ye){var De=ye.value;ie(De)&&(De=oe(De));var Ne=b(De,ye.key,le++);Ne!==void 0?q(Ne):ye.continue()}else q()},fe.onerror=function(){U(fe.error)}}catch(ye){U(ye)}})}).catch(U)});return h(M,N),M}function Ee(b,N,S){var M=this;b=m(b);var q=new x(function(U,te){var ae;M.ready().then(function(){return ae=M._dbInfo,_.call(N)==="[object Blob]"?z(ae.db).then(function(ce){return ce?N:Z(N)}):N}).then(function(ce){H(M._dbInfo,D,function(fe,le){if(fe)return te(fe);try{var ye=le.objectStore(M._dbInfo.storeName);ce===null&&(ce=void 0);var De=ye.put(ce,b);le.oncomplete=function(){ce===void 0&&(ce=null),U(ce)},le.onabort=le.onerror=function(){var Ne=De.error?De.error:De.transaction.error;te(Ne)}}catch(Ne){te(Ne)}})}).catch(te)});return h(q,S),q}function Pe(b,N){var S=this;b=m(b);var M=new x(function(q,U){S.ready().then(function(){H(S._dbInfo,D,function(te,ae){if(te)return U(te);try{var ce=ae.objectStore(S._dbInfo.storeName),fe=ce.delete(b);ae.oncomplete=function(){q()},ae.onerror=function(){U(fe.error)},ae.onabort=function(){var le=fe.error?fe.error:fe.transaction.error;U(le)}}catch(le){U(le)}})}).catch(U)});return h(M,N),M}function ve(b){var N=this,S=new x(function(M,q){N.ready().then(function(){H(N._dbInfo,D,function(U,te){if(U)return q(U);try{var ae=te.objectStore(N._dbInfo.storeName),ce=ae.clear();te.oncomplete=function(){M()},te.onabort=te.onerror=function(){var fe=ce.error?ce.error:ce.transaction.error;q(fe)}}catch(fe){q(fe)}})}).catch(q)});return h(S,b),S}function Ae(b){var N=this,S=new x(function(M,q){N.ready().then(function(){H(N._dbInfo,B,function(U,te){if(U)return q(U);try{var ae=te.objectStore(N._dbInfo.storeName),ce=ae.count();ce.onsuccess=function(){M(ce.result)},ce.onerror=function(){q(ce.error)}}catch(fe){q(fe)}})}).catch(q)});return h(S,b),S}function Ie(b,N){var S=this,M=new x(function(q,U){if(b<0){q(null);return}S.ready().then(function(){H(S._dbInfo,B,function(te,ae){if(te)return U(te);try{var ce=ae.objectStore(S._dbInfo.storeName),fe=!1,le=ce.openKeyCursor();le.onsuccess=function(){var ye=le.result;if(!ye){q(null);return}b===0||fe?q(ye.key):(fe=!0,ye.advance(b))},le.onerror=function(){U(le.error)}}catch(ye){U(ye)}})}).catch(U)});return h(M,N),M}function He(b){var N=this,S=new x(function(M,q){N.ready().then(function(){H(N._dbInfo,B,function(U,te){if(U)return q(U);try{var ae=te.objectStore(N._dbInfo.storeName),ce=ae.openKeyCursor(),fe=[];ce.onsuccess=function(){var le=ce.result;if(!le){M(fe);return}fe.push(le.key),le.continue()},ce.onerror=function(){q(ce.error)}}catch(le){q(le)}})}).catch(q)});return h(S,b),S}function $e(b,N){N=E.apply(this,arguments);var S=this.config();b=typeof b!="function"&&b||{},b.name||(b.name=b.name||S.name,b.storeName=b.storeName||S.storeName);var M=this,q;if(!b.name)q=x.reject("Invalid arguments");else{var U=b.name===S.name&&M._dbInfo.db,te=U?x.resolve(M._dbInfo.db):X(b).then(function(ae){var ce=w[b.name],fe=ce.forages;ce.db=ae;for(var le=0;le<fe.length;le++)fe[le]._dbInfo.db=ae;return ae});b.storeName?q=te.then(function(ae){if(ae.objectStoreNames.contains(b.storeName)){var ce=ae.version+1;Q(b);var fe=w[b.name],le=fe.forages;ae.close();for(var ye=0;ye<le.length;ye++){var De=le[ye];De._dbInfo.db=null,De._dbInfo.version=ce}var Ne=new x(function(Le,Ke){var We=u.open(b.name,ce);We.onerror=function(p){var g=We.result;g.close(),Ke(p)},We.onupgradeneeded=function(){var p=We.result;p.deleteObjectStore(b.storeName)},We.onsuccess=function(){var p=We.result;p.close(),Le(p)}});return Ne.then(function(Le){fe.db=Le;for(var Ke=0;Ke<le.length;Ke++){var We=le[Ke];We._dbInfo.db=Le,O(We._dbInfo)}}).catch(function(Le){throw(k(b,Le)||x.resolve()).catch(function(){}),Le})}}):q=te.then(function(ae){Q(b);var ce=w[b.name],fe=ce.forages;ae.close();for(var le=0;le<fe.length;le++){var ye=fe[le];ye._dbInfo.db=null}var De=new x(function(Ne,Le){var Ke=u.deleteDatabase(b.name);Ke.onerror=function(){var We=Ke.result;We&&We.close(),Le(Ke.error)},Ke.onblocked=function(){console.warn('dropInstance blocked for database "'+b.name+'" until all open connections are closed')},Ke.onsuccess=function(){var We=Ke.result;We&&We.close(),Ne(We)}});return De.then(function(Ne){ce.db=Ne;for(var Le=0;Le<fe.length;Le++){var Ke=fe[Le];O(Ke._dbInfo)}}).catch(function(Ne){throw(k(b,Ne)||x.resolve()).catch(function(){}),Ne})})}return h(q,N),q}var Fe={_driver:"asyncStorage",_initStorage:re,_support:c(),iterate:ge,getItem:J,setItem:Ee,removeItem:Pe,clear:ve,length:Ae,key:Ie,keys:He,dropInstance:$e};function ze(){return typeof openDatabase=="function"}var qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F="~~local_forage_type~",l=/^~~local_forage_type~([^~]+)~/,d="__lfsc__:",v=d.length,I="arbf",W="blob",K="si08",pe="ui08",_e="uic8",we="si16",Ce="si32",Te="ur16",ut="ui32",Bt="fl32",Dt="fl64",Et=v+I.length,St=Object.prototype.toString;function yr(b){var N=b.length*.75,S=b.length,M,q=0,U,te,ae,ce;b[b.length-1]==="="&&(N--,b[b.length-2]==="="&&N--);var fe=new ArrayBuffer(N),le=new Uint8Array(fe);for(M=0;M<S;M+=4)U=qe.indexOf(b[M]),te=qe.indexOf(b[M+1]),ae=qe.indexOf(b[M+2]),ce=qe.indexOf(b[M+3]),le[q++]=U<<2|te>>4,le[q++]=(te&15)<<4|ae>>2,le[q++]=(ae&3)<<6|ce&63;return fe}function Ft(b){var N=new Uint8Array(b),S="",M;for(M=0;M<N.length;M+=3)S+=qe[N[M]>>2],S+=qe[(N[M]&3)<<4|N[M+1]>>4],S+=qe[(N[M+1]&15)<<2|N[M+2]>>6],S+=qe[N[M+2]&63];return N.length%3===2?S=S.substring(0,S.length-1)+"=":N.length%3===1&&(S=S.substring(0,S.length-2)+"=="),S}function mr(b,N){var S="";if(b&&(S=St.call(b)),b&&(S==="[object ArrayBuffer]"||b.buffer&&St.call(b.buffer)==="[object ArrayBuffer]")){var M,q=d;b instanceof ArrayBuffer?(M=b,q+=I):(M=b.buffer,S==="[object Int8Array]"?q+=K:S==="[object Uint8Array]"?q+=pe:S==="[object Uint8ClampedArray]"?q+=_e:S==="[object Int16Array]"?q+=we:S==="[object Uint16Array]"?q+=Te:S==="[object Int32Array]"?q+=Ce:S==="[object Uint32Array]"?q+=ut:S==="[object Float32Array]"?q+=Bt:S==="[object Float64Array]"?q+=Dt:N(new Error("Failed to get type for BinaryArray"))),N(q+Ft(M))}else if(S==="[object Blob]"){var U=new FileReader;U.onload=function(){var te=F+b.type+"~"+Ft(this.result);N(d+W+te)},U.readAsArrayBuffer(b)}else try{N(JSON.stringify(b))}catch(te){console.error("Couldn't convert value into a JSON string: ",b),N(null,te)}}function gr(b){if(b.substring(0,v)!==d)return JSON.parse(b);var N=b.substring(Et),S=b.substring(v,Et),M;if(S===W&&l.test(N)){var q=N.match(l);M=q[1],N=N.substring(q[0].length)}var U=yr(N);switch(S){case I:return U;case W:return f([U],{type:M});case K:return new Int8Array(U);case pe:return new Uint8Array(U);case _e:return new Uint8ClampedArray(U);case we:return new Int16Array(U);case Te:return new Uint16Array(U);case Ce:return new Int32Array(U);case ut:return new Uint32Array(U);case Bt:return new Float32Array(U);case Dt:return new Float64Array(U);default:throw new Error("Unkown type: "+S)}}var Qt={serialize:mr,deserialize:gr,stringToBuffer:yr,bufferToString:Ft};function qt(b,N,S,M){b.executeSql("CREATE TABLE IF NOT EXISTS "+N.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],S,M)}function Vr(b){var N=this,S={db:null};if(b)for(var M in b)S[M]=typeof b[M]!="string"?b[M].toString():b[M];var q=new x(function(U,te){try{S.db=openDatabase(S.name,String(S.version),S.description,S.size)}catch(ae){return te(ae)}S.db.transaction(function(ae){qt(ae,S,function(){N._dbInfo=S,U()},function(ce,fe){te(fe)})},te)});return S.serializer=Qt,q}function dt(b,N,S,M,q,U){b.executeSql(S,M,q,function(te,ae){ae.code===ae.SYNTAX_ERR?te.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[N.storeName],function(ce,fe){fe.rows.length?U(ce,ae):qt(ce,N,function(){ce.executeSql(S,M,q,U)},U)},U):U(te,ae)},U)}function Gr(b,N){var S=this;b=m(b);var M=new x(function(q,U){S.ready().then(function(){var te=S._dbInfo;te.db.transaction(function(ae){dt(ae,te,"SELECT * FROM "+te.storeName+" WHERE key = ? LIMIT 1",[b],function(ce,fe){var le=fe.rows.length?fe.rows.item(0).value:null;le&&(le=te.serializer.deserialize(le)),q(le)},function(ce,fe){U(fe)})})}).catch(U)});return h(M,N),M}function Er(b,N){var S=this,M=new x(function(q,U){S.ready().then(function(){var te=S._dbInfo;te.db.transaction(function(ae){dt(ae,te,"SELECT * FROM "+te.storeName,[],function(ce,fe){for(var le=fe.rows,ye=le.length,De=0;De<ye;De++){var Ne=le.item(De),Le=Ne.value;if(Le&&(Le=te.serializer.deserialize(Le)),Le=b(Le,Ne.key,De+1),Le!==void 0){q(Le);return}}q()},function(ce,fe){U(fe)})})}).catch(U)});return h(M,N),M}function Ar(b,N,S,M){var q=this;b=m(b);var U=new x(function(te,ae){q.ready().then(function(){N===void 0&&(N=null);var ce=N,fe=q._dbInfo;fe.serializer.serialize(N,function(le,ye){ye?ae(ye):fe.db.transaction(function(De){dt(De,fe,"INSERT OR REPLACE INTO "+fe.storeName+" (key, value) VALUES (?, ?)",[b,le],function(){te(ce)},function(Ne,Le){ae(Le)})},function(De){if(De.code===De.QUOTA_ERR){if(M>0){te(Ar.apply(q,[b,ce,S,M-1]));return}ae(De)}})})}).catch(ae)});return h(U,S),U}function jr(b,N,S){return Ar.apply(this,[b,N,S,1])}function Kr(b,N){var S=this;b=m(b);var M=new x(function(q,U){S.ready().then(function(){var te=S._dbInfo;te.db.transaction(function(ae){dt(ae,te,"DELETE FROM "+te.storeName+" WHERE key = ?",[b],function(){q()},function(ce,fe){U(fe)})})}).catch(U)});return h(M,N),M}function wr(b){var N=this,S=new x(function(M,q){N.ready().then(function(){var U=N._dbInfo;U.db.transaction(function(te){dt(te,U,"DELETE FROM "+U.storeName,[],function(){M()},function(ae,ce){q(ce)})})}).catch(q)});return h(S,b),S}function Yr(b){var N=this,S=new x(function(M,q){N.ready().then(function(){var U=N._dbInfo;U.db.transaction(function(te){dt(te,U,"SELECT COUNT(key) as c FROM "+U.storeName,[],function(ae,ce){var fe=ce.rows.item(0).c;M(fe)},function(ae,ce){q(ce)})})}).catch(q)});return h(S,b),S}function Xr(b,N){var S=this,M=new x(function(q,U){S.ready().then(function(){var te=S._dbInfo;te.db.transaction(function(ae){dt(ae,te,"SELECT key FROM "+te.storeName+" WHERE id = ? LIMIT 1",[b+1],function(ce,fe){var le=fe.rows.length?fe.rows.item(0).key:null;q(le)},function(ce,fe){U(fe)})})}).catch(U)});return h(M,N),M}function _r(b){var N=this,S=new x(function(M,q){N.ready().then(function(){var U=N._dbInfo;U.db.transaction(function(te){dt(te,U,"SELECT key FROM "+U.storeName,[],function(ae,ce){for(var fe=[],le=0;le<ce.rows.length;le++)fe.push(ce.rows.item(le).key);M(fe)},function(ae,ce){q(ce)})})}).catch(q)});return h(S,b),S}function Jr(b){return new x(function(N,S){b.transaction(function(M){M.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(q,U){for(var te=[],ae=0;ae<U.rows.length;ae++)te.push(U.rows.item(ae).name);N({db:b,storeNames:te})},function(q,U){S(U)})},function(M){S(M)})})}function br(b,N){N=E.apply(this,arguments);var S=this.config();b=typeof b!="function"&&b||{},b.name||(b.name=b.name||S.name,b.storeName=b.storeName||S.storeName);var M=this,q;return b.name?q=new x(function(U){var te;b.name===S.name?te=M._dbInfo.db:te=openDatabase(b.name,"","",0),b.storeName?U({db:te,storeNames:[b.storeName]}):U(Jr(te))}).then(function(U){return new x(function(te,ae){U.db.transaction(function(ce){function fe(Ne){return new x(function(Le,Ke){ce.executeSql("DROP TABLE IF EXISTS "+Ne,[],function(){Le()},function(We,p){Ke(p)})})}for(var le=[],ye=0,De=U.storeNames.length;ye<De;ye++)le.push(fe(U.storeNames[ye]));x.all(le).then(function(){te()}).catch(function(Ne){ae(Ne)})},function(ce){ae(ce)})})}):q=x.reject("Invalid arguments"),h(q,N),q}var rt={_driver:"webSQLStorage",_initStorage:Vr,_support:ze(),iterate:Er,getItem:Gr,setItem:jr,removeItem:Kr,clear:wr,length:Yr,key:Xr,keys:_r,dropInstance:br};function vt(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(b){return!1}}function Zt(b,N){var S=b.name+"/";return b.storeName!==N.storeName&&(S+=b.storeName+"/"),S}function Qr(){var b="_localforage_support_test";try{return localStorage.setItem(b,!0),localStorage.removeItem(b),!1}catch(N){return!0}}function wi(){return!Qr()||localStorage.length>0}function _i(b){var N=this,S={};if(b)for(var M in b)S[M]=b[M];return S.keyPrefix=Zt(b,N._defaultConfig),wi()?(N._dbInfo=S,S.serializer=Qt,x.resolve()):x.reject()}function bi(b){var N=this,S=N.ready().then(function(){for(var M=N._dbInfo.keyPrefix,q=localStorage.length-1;q>=0;q--){var U=localStorage.key(q);U.indexOf(M)===0&&localStorage.removeItem(U)}});return h(S,b),S}function Ci(b,N){var S=this;b=m(b);var M=S.ready().then(function(){var q=S._dbInfo,U=localStorage.getItem(q.keyPrefix+b);return U&&(U=q.serializer.deserialize(U)),U});return h(M,N),M}function Bi(b,N){var S=this,M=S.ready().then(function(){for(var q=S._dbInfo,U=q.keyPrefix,te=U.length,ae=localStorage.length,ce=1,fe=0;fe<ae;fe++){var le=localStorage.key(fe);if(le.indexOf(U)===0){var ye=localStorage.getItem(le);if(ye&&(ye=q.serializer.deserialize(ye)),ye=b(ye,le.substring(te),ce++),ye!==void 0)return ye}}});return h(M,N),M}function Di(b,N){var S=this,M=S.ready().then(function(){var q=S._dbInfo,U;try{U=localStorage.key(b)}catch(te){U=null}return U&&(U=U.substring(q.keyPrefix.length)),U});return h(M,N),M}function er(b){var N=this,S=N.ready().then(function(){for(var M=N._dbInfo,q=localStorage.length,U=[],te=0;te<q;te++){var ae=localStorage.key(te);ae.indexOf(M.keyPrefix)===0&&U.push(ae.substring(M.keyPrefix.length))}return U});return h(S,b),S}function Bn(b){var N=this,S=N.keys().then(function(M){return M.length});return h(S,b),S}function Si(b,N){var S=this;b=m(b);var M=S.ready().then(function(){var q=S._dbInfo;localStorage.removeItem(q.keyPrefix+b)});return h(M,N),M}function Fi(b,N,S){var M=this;b=m(b);var q=M.ready().then(function(){N===void 0&&(N=null);var U=N;return new x(function(te,ae){var ce=M._dbInfo;ce.serializer.serialize(N,function(fe,le){if(le)ae(le);else try{localStorage.setItem(ce.keyPrefix+b,fe),te(U)}catch(ye){(ye.name==="QuotaExceededError"||ye.name==="NS_ERROR_DOM_QUOTA_REACHED")&&ae(ye),ae(ye)}})})});return h(q,S),q}function Ri(b,N){if(N=E.apply(this,arguments),b=typeof b!="function"&&b||{},!b.name){var S=this.config();b.name=b.name||S.name,b.storeName=b.storeName||S.storeName}var M=this,q;return b.name?q=new x(function(U){b.storeName?U(Zt(b,M._defaultConfig)):U(b.name+"/")}).then(function(U){for(var te=localStorage.length-1;te>=0;te--){var ae=localStorage.key(te);ae.indexOf(U)===0&&localStorage.removeItem(ae)}}):q=x.reject("Invalid arguments"),h(q,N),q}var Ii={_driver:"localStorageWrapper",_initStorage:_i,_support:vt(),iterate:Bi,getItem:Ci,setItem:Fi,removeItem:Si,clear:bi,length:Bn,key:Di,keys:er,dropInstance:Ri},Ti=function(N,S){return N===S||typeof N=="number"&&typeof S=="number"&&isNaN(N)&&isNaN(S)},Ut=function(N,S){for(var M=N.length,q=0;q<M;){if(Ti(N[q],S))return!0;q++}return!1},Dn=Array.isArray||function(b){return Object.prototype.toString.call(b)==="[object Array]"},tr={},Sn={},Wt={INDEXEDDB:Fe,WEBSQL:rt,LOCALSTORAGE:Ii},Oi=[Wt.INDEXEDDB._driver,Wt.WEBSQL._driver,Wt.LOCALSTORAGE._driver],Cr=["dropInstance"],Zr=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Cr),Pi={description:"",driver:Oi.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Ni(b,N){b[N]=function(){var S=arguments;return b.ready().then(function(){return b[N].apply(b,S)})}}function Xe(){for(var b=1;b<arguments.length;b++){var N=arguments[b];if(N)for(var S in N)N.hasOwnProperty(S)&&(Dn(N[S])?arguments[0][S]=N[S].slice():arguments[0][S]=N[S])}return arguments[0]}var Li=function(){function b(N){s(this,b);for(var S in Wt)if(Wt.hasOwnProperty(S)){var M=Wt[S],q=M._driver;this[S]=q,tr[q]||this.defineDriver(M)}this._defaultConfig=Xe({},Pi),this._config=Xe({},this._defaultConfig,N),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return b.prototype.config=function(S){if((typeof S=="undefined"?"undefined":o(S))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var M in S){if(M==="storeName"&&(S[M]=S[M].replace(/\W/g,"_")),M==="version"&&typeof S[M]!="number")return new Error("Database version must be a number.");this._config[M]=S[M]}return"driver"in S&&S.driver?this.setDriver(this._config.driver):!0}else return typeof S=="string"?this._config[S]:this._config},b.prototype.defineDriver=function(S,M,q){var U=new x(function(te,ae){try{var ce=S._driver,fe=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!S._driver){ae(fe);return}for(var le=Zr.concat("_initStorage"),ye=0,De=le.length;ye<De;ye++){var Ne=le[ye],Le=!Ut(Cr,Ne);if((Le||S[Ne])&&typeof S[Ne]!="function"){ae(fe);return}}var Ke=function(){for(var g=function(de){return function(){var xe=new Error("Method "+de+" is not implemented by the current driver"),Me=x.reject(xe);return h(Me,arguments[arguments.length-1]),Me}},C=0,$=Cr.length;C<$;C++){var ne=Cr[C];S[ne]||(S[ne]=g(ne))}};Ke();var We=function(g){tr[ce]&&console.info("Redefining LocalForage driver: "+ce),tr[ce]=S,Sn[ce]=g,te()};"_support"in S?S._support&&typeof S._support=="function"?S._support().then(We,ae):We(!!S._support):We(!0)}catch(p){ae(p)}});return y(U,M,q),U},b.prototype.driver=function(){return this._driver||null},b.prototype.getDriver=function(S,M,q){var U=tr[S]?x.resolve(tr[S]):x.reject(new Error("Driver not found."));return y(U,M,q),U},b.prototype.getSerializer=function(S){var M=x.resolve(Qt);return y(M,S),M},b.prototype.ready=function(S){var M=this,q=M._driverSet.then(function(){return M._ready===null&&(M._ready=M._initDriver()),M._ready});return y(q,S,S),q},b.prototype.setDriver=function(S,M,q){var U=this;Dn(S)||(S=[S]);var te=this._getSupportedDrivers(S);function ae(){U._config.driver=U.driver()}function ce(ye){return U._extend(ye),ae(),U._ready=U._initStorage(U._config),U._ready}function fe(ye){return function(){var De=0;function Ne(){for(;De<ye.length;){var Le=ye[De];return De++,U._dbInfo=null,U._ready=null,U.getDriver(Le).then(ce).catch(Ne)}ae();var Ke=new Error("No available storage method found.");return U._driverSet=x.reject(Ke),U._driverSet}return Ne()}}var le=this._driverSet!==null?this._driverSet.catch(function(){return x.resolve()}):x.resolve();return this._driverSet=le.then(function(){var ye=te[0];return U._dbInfo=null,U._ready=null,U.getDriver(ye).then(function(De){U._driver=De._driver,ae(),U._wrapLibraryMethodsWithReady(),U._initDriver=fe(te)})}).catch(function(){ae();var ye=new Error("No available storage method found.");return U._driverSet=x.reject(ye),U._driverSet}),y(this._driverSet,M,q),this._driverSet},b.prototype.supports=function(S){return!!Sn[S]},b.prototype._extend=function(S){Xe(this,S)},b.prototype._getSupportedDrivers=function(S){for(var M=[],q=0,U=S.length;q<U;q++){var te=S[q];this.supports(te)&&M.push(te)}return M},b.prototype._wrapLibraryMethodsWithReady=function(){for(var S=0,M=Zr.length;S<M;S++)Ni(this,Zr[S])},b.prototype.createInstance=function(S){return new b(S)},b}(),ki=new Li;n.exports=ki},{3:3}]},{},[4])(4)})})(ku);var Hv=ku.exports;const nt=b0(Hv);var lc;nt.config(Ue({driver:[nt.INDEXEDDB,nt.LOCALSTORAGE],name:"SGP7000",size:4980736,storeName:"keyvaluepairs",version:1,description:"SGP7000"},((lc=window.meta.storage)==null?void 0:lc.config)||{}));function zv(){return{getKey:m=>Be(this,null,function*(){return yield nt.key(m)}),getKeys:()=>Be(this,null,function*(){return yield nt.keys()}),getItem:m=>Be(this,null,function*(){if(m)return yield nt.getItem(m)}),setItem:(m,E)=>Be(this,null,function*(){if(m)return yield nt.setItem(m,E)}),removeItem:m=>Be(this,null,function*(){if(m)return yield nt.removeItem(m)}),clearItems:()=>Be(this,null,function*(){return yield nt.clear()}),iterateItems:(m,E)=>Be(this,null,function*(){if(m)return yield nt.iterate(m,E)}),getReady:()=>Be(this,null,function*(){return yield nt.ready()}),getLength:()=>Be(this,null,function*(){return yield nt.length()}),getDriver:()=>Be(this,null,function*(){return yield nt.driver()}),setDriver:m=>Be(this,null,function*(){if(m)return yield nt.setDriver(m)}),setConfig:m=>Be(this,null,function*(){if(m)return yield nt.config(m)}),dropInstance:m=>Be(this,null,function*(){if(m)return yield nt.dropInstance(m)}),createInstance:m=>Be(this,null,function*(){if(m)return yield nt.createInstance(m)})}}const qv="THREED_LOG_BUFFER",Wv="THREED_CURRSCENE",Vv="THREED_ACTIVE_MENU",Gv="THREED_PIXEL_RATIO",Jn="THREED_MODEL_DBNAME",v0="THREED_MODEL_DBSTORE",jv="THREED_SCENE_PREVIEW",y0="THREED_MODEL_LOAD_KEY",an="THREED_PREVIEW_URL_KEY",Kv="THREED_ADDON_EDITOR_JSON",Yv="THREED_SCENE_STORAGE_SUFFIX",m0={step:.1},Xv=80,Mu=30,Jv=1e3,Qv=1200,Zv=3e5,ey="三维测试",ty="灯光",ry=1,ny=["环境光","平行光","点光源","聚光灯","半球光","平面光"],Uu=new Set(["syncStatus","disposeTargets","statusMaterials","syncPanelPlacement"]),iy=["AxesHelper","GridHelper","Box3Helper","PerspectiveCamera"],$u=new Set(["GridHelper","AxesHelper","CameraHelper","SpotLightHelper","PointLightHelper","TransformControls","HemisphereLightHelper","DirectionalLightHelper","TransformControlsPlane"]),Hu=new Set(["CSS2DObject","CSS3DObject"]),oy=Object.assign({"/src/views/threed/models/pd-sensor.js":$v}),ay=Object.assign({}),sy={环境光:()=>new xt.THREE.AmbientLight(16777215,1),平行光:()=>new xt.THREE.DirectionalLight(16777215,1),点光源:()=>new xt.THREE.PointLight(16777215,1,0,0),聚光灯:()=>new xt.THREE.SpotLight(16777215,1,0,Math.PI/6,0,0),半球光:()=>new xt.THREE.HemisphereLight(16777215,0,1),平面光:()=>new xt.THREE.RectAreaLight(16777215,1,100,100)},cy=[{name:"荧光流动",commonUniforms:!0,vertex:"vUv-material",fragment:`
|
|
53
53
|
vec4 o = gl_FragColor.rgba;
|
|
54
54
|
vec2 u = gl_FragCoord.xy;
|
|
55
55
|
vec2 v = iResolution.xy;
|
|
@@ -87,4 +87,4 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:n,curr
|
|
|
87
87
|
uv *= 2.0 * ( cos(iTime * 2.0) -2.5);
|
|
88
88
|
float anim = sin(iTime * 12.0) * 0.1 + 1.0;
|
|
89
89
|
vec3 col = cheap_star(uv, anim) * vec3(0.35,0.2,0.15);
|
|
90
|
-
`,key:"col",commonFinish:!0,render:"iTime+speed"}];let rn=null,_t=null;const Ys=t=>(t==null?void 0:t.name)||(t==null?void 0:t.label)||"",qu=(t={})=>Object.values(t).filter(e=>e&&(e.label||e.name)),uy=qu(oy),fy=qu(ay),ly=()=>({THREED_GUI_PARAMS:g0,THREED_LOG_BUFFER:qv,THREED_CURRSCENE:Wv,THREED_ACTIVE_MENU:Vv,THREED_PIXEL_RATIO:Gv,THREED_IMPORT_SIZE:Xv,THREED_LIGHT_TYPES:ny,THREED_EXPORT_BATCH:Uu,THREED_RELOAD_DELAY:Jv,THREED_MODEL_DBNAME:Jn,THREED_MODEL_DBSTORE:y0,THREED_SCENE_PREVIEW:jv,THREED_USER_DATA_KEYS:$u,THREED_MODEL_LOAD_KEY:m0,THREED_PREVIEW_URL_KEY:an,THREED_ADDON_EDITOR_JSON:Kv,THREED_EXPORT_NODE_COUNT:Qv,THREED_DEFAULT_SCENE_NAME:ey,THREED_DEFAULT_ACTIVE_MENU:ty,THREED_DEFAULT_PIXEL_RATIO:ry,THREED_EXPORT_VERTEX_COUNT:Zv,THREED_SCENE_EXCLUDE_TYPES:iy,THREED_EXPORT_EXCLUDE_TYPES:Hu,THREED_EXPORT_RUNTIME_TYPES:zu,THREED_SCENE_STORAGE_SUFFIX:Yv});function hy(){const{createInstance:t,dropInstance:e}=zv(),r="/";let n=[];const i=v=>{let I=URL.createObjectURL(v);return n.push(I),I},o=()=>{n.forEach(v=>URL.revokeObjectURL(v)),n=[]},s=()=>Be(this,null,function*(){return yield c(),{clearRequest:a,getAllRequest:m,getRequest:y,status:!0,message:"数据库打开成功",DATABASE:_t}}),a=v=>Be(this,null,function*(){if(!v)return{status:!1,message:"删除失败"};yield c(),yield _t.removeItem(v);const I=h();return I.list=I.list.filter(W=>W.name!==v),{status:!0,message:"删除成功"}}),l=(...I)=>Be(this,[...I],function*(v=Jn){_t=null,rn=null,yield e({name:v,storeName:y0})}),c=()=>Be(this,null,function*(){return _t||(rn||(rn=t({name:Jn,storeName:y0}).then(v=>(_t=v,v))),yield rn)}),u=v=>{if(!v)return!1;const I=String(v.message||"");return v.name==="DataError"||I.includes("in-line keys")},x=()=>Be(this,null,function*(){_t=null,rn=null,yield e({name:Jn}),yield c()}),h=()=>(window.threeEditorDB||(window.threeEditorDB={db:null,list:[]}),window.threeEditorDB),y=v=>Be(this,null,function*(){if(!v)return{status:!1,message:"获取失败"};yield c();const I=yield _t.getItem(v);if(I!=null&&I.blob&&!v)return{status:!0,message:"获取成功",url:i(I.blob)};if(!v)return{status:!1,message:"获取失败"};const W=yield fetch(v).then(Ce=>Ce.blob()),K={blob:W};try{yield _t.setItem(v,K)}catch(Ce){if(!u(Ce))throw Ce;yield x(),yield _t.setItem(v,K)}const pe=h(),_e=Ue({name:v},K),we=pe.list.findIndex(Ce=>Ce.name===v);return we>-1?pe.list.splice(we,1,_e):pe.list.push(_e),{status:!0,message:"文件缓存成功",url:i(W)}}),m=()=>Be(this,null,function*(){const v=h();yield c();const I=[];return yield _t.iterate((W,K)=>{I.push(Rt(Ue({},W||{}),{name:K}))}),v.list=I,{status:!0,message:"获取成功",data:I}}),E=()=>Be(this,null,function*(){const v=yield kt.getApi("/filehandle/scan",{path:su.threeModelPath,extension:"glb,gltf"}),{children:I}=v.res,W=[];if(I!=null&&I.length)for(const K of I)W.push({name:K.name,path:"/"+K.path});return W}),A=()=>window.GUI_PARAMS||g0,R=()=>window.threeEditor||null,w=()=>window.editorJsons||[],_=()=>({width:window.innerWidth||0,height:window.innerHeight||0}),D=()=>uy,C=()=>h(),T=()=>sy||{},L=()=>window[an]||"",H=()=>fy,Z=()=>window.devicePixelRatio||1,O=()=>window[an]||"",k=()=>{const v=D(),I=H();return{modelDesigns:v,componentDesigns:I,modelList:v.map(W=>W.label),componentList:I.map(W=>W.label)}},V=(v,I)=>{var W;return(W=v==null?void 0:v.__DESIGNS__)==null?void 0:W.find(K=>K.label===I)},X=(v=0)=>!Number.isFinite(v)||v<=0?"0 B":v<1024?`${v} B`:v<1024*1024?`${(v/1024).toFixed(1)} KB`:v<1024*1024*1024?`${(v/1024/1024).toFixed(1)} MB`:`${(v/1024/1024/1024).toFixed(2)} GB`,te=v=>{const I=window[m0];typeof I=="function"&&I(v)},Y=v=>!!v&&Number.isFinite(v.x)&&Number.isFinite(v.y)&&Number.isFinite(v.z),Q=v=>{var I,W;return!v||!v.visible||(I=v.userData)!=null&&I.excludeFromExport||v.isTransformControls||v.isHelper||v.isLight||v.isPoints||(W=v.type)!=null&&W.includes("Helper")||Hu.has(v.type)||zu.has(v.type)||v.isCSS2DObject||v.isCSS3DObject?!1:v.isMesh||v.isGroup||v.isObject3D||v.isLine},oe=(v,I)=>v&&Number.isFinite(v.x)&&Number.isFinite(v.y)&&Number.isFinite(v.z)?v:I,ie=v=>v&&Number.isFinite(v.x)&&Number.isFinite(v.y)&&Number.isFinite(v.z)&&Number.isFinite(v.w)?v:{x:0,y:0,z:0,w:1},he=v=>{if(!(v!=null&&v.isObject3D))return;const I=oe(v.position,{x:0,y:0,z:0});v.position.set(I.x,I.y,I.z);const W=oe(v.scale,{x:1,y:1,z:1});v.scale.set(W.x===0?1:W.x,W.y===0?1:W.y,W.z===0?1:W.z);const K=oe(v.up,{x:0,y:1,z:0});v.up.set(K.x,K.y,K.z);const pe=ie(v.quaternion);v.quaternion.set(pe.x,pe.y,pe.z,pe.w),v.pivot&&!Y(v.pivot)&&delete v.pivot,v.updateMatrix(),v.updateMatrixWorld(!1)},ue=(v,I="_blank")=>window.open(v,I),z=(v,I="")=>window.prompt(v,I),j=()=>window.location.reload(),re=()=>document.documentElement.classList.remove("dark"),J=v=>{if(!Array.isArray(v==null?void 0:v.__DESIGNS__))return k();const I=[...D(),...H()],W=new Set(v.__DESIGNS__.map(K=>Ys(K)));return I.forEach(K=>{const pe=Ys(K);!pe||W.has(pe)||(W.add(pe),v.__DESIGNS__.unshift(K))}),k()},ge=v=>{if(!Array.isArray(v==null?void 0:v.__GLSLLIB__))return;const I=new Set(v.__GLSLLIB__.map(W=>W==null?void 0:W.name));cy.forEach(W=>{I.has(W.name)||(I.add(W.name),v.__GLSLLIB__.push(W))})},Ee=(v={})=>{const I={};return Object.entries(v||{}).forEach(([W,K])=>{if(!($u.has(W)||typeof K=="function")){if(!K||["string","number","boolean"].includes(typeof K)){I[W]=K;return}if(Array.isArray(K)){try{I[W]=structuredClone(K)}catch(pe){return}return}if(!(K.isObject3D||K.isMaterial||K.isTexture||K.nodeType))try{I[W]=structuredClone(K)}catch(pe){return}}}),I},Pe=(v=g0)=>{window.GUI_PARAMS=v},ve=v=>{window.threeEditor=v},Ae=v=>{window.threeEditorDB=v},Ie=v=>{window[m0]=v},He=(v="")=>{window[an]=v},$e=(v="")=>{window[an]=v},Fe=v=>{var W;const I=[];return(W=v==null?void 0:v.children)==null||W.forEach(K=>{Q(K)&&I.push(K)}),I},ze=(v=[])=>{const I={rootCount:v.length,nodeCount:0,meshCount:0,vertexCount:0,skippedCount:0};return v.forEach(W=>{W.traverse(K=>{var pe,_e,we;if(Q(K)){I.nodeCount+=1,K.isMesh&&(I.meshCount+=1,I.vertexCount+=((we=(_e=(pe=K.geometry)==null?void 0:pe.attributes)==null?void 0:_e.position)==null?void 0:we.count)||0);return}K!==W&&(I.skippedCount+=1)})}),I},qe=()=>new Promise(v=>requestAnimationFrame(()=>setTimeout(v,0))),F=()=>new Promise(v=>{if(typeof window.requestIdleCallback=="function"){window.requestIdleCallback(()=>v(),{timeout:80});return}setTimeout(v,0)}),f=(v,I)=>Be(this,null,function*(){var pe;if(!Q(v))return null;const W=v.clone(!1);W.userData=Ee(v.userData),Y(v.pivot)?W.pivot=new ht.THREE.Vector3(v.pivot.x,v.pivot.y,v.pivot.z):"pivot"in W&&delete W.pivot,he(W);const K=[{source:v,clone:W}];for(;K.length;){const _e=K.shift();for(const we of _e.source.children){if(!Q(we)){I.skippedCount+=1;continue}const Ce=we.clone(!1);Ce.userData=Ee(we.userData),Y(we.pivot)?Ce.pivot=new ht.THREE.Vector3(we.pivot.x,we.pivot.y,we.pivot.z):"pivot"in Ce&&delete Ce.pivot,he(Ce),_e.clone.add(Ce),K.push({source:we,clone:Ce}),I.processedCount+=1,I.processedCount%Uu===0&&(yield(pe=I.onProgress)==null?void 0:pe.call(I,{processedCount:I.processedCount,totalCount:I.totalCount,skippedCount:I.skippedCount,progress:18+Math.min(I.processedCount/Math.max(I.totalCount,1)*54,54)}),yield qe())}}return W});return{baseUrl:r,getModels:E,getRequest:y,reloadPage:j,promptInput:z,waitForIdle:F,waitForPaint:qe,clearRequest:a,getGuiParams:A,setGuiParams:Pe,getAllRequest:m,getEditorJsons:w,getThreeEditor:R,formatFileSize:X,setThreeEditor:ve,removeDarkClass:re,openExternalUrl:ue,getThreedModels:D,getViewportSize:_,buildExportScene:(W,...K)=>Be(this,[W,...K],function*(v,I={}){const pe=Fe(v),_e=ze(pe),we=new ht.THREE.Scene,Ce={totalCount:_e.nodeCount,processedCount:0,skippedCount:0,onProgress:I.onProgress};for(const Te of pe){const ut=yield f(Te,Ce);ut&&we.add(ut),yield F()}return we.updateMatrixWorld(!0),_e.skippedCount+=Ce.skippedCount,{exportScene:we,exportObjects:pe,stats:_e}}),createModelDbApi:s,getEditorPreviewSceneUrl:O,getThreeEditorDB:C,sanitizeUserData:Ee,setThreeEditorDB:Ae,findThreedDesign:V,getThreedLightMap:T,collectExportStats:ze,getPreviewSceneUrl:L,setEditorPreviewSceneUrl:$e,setPreviewSceneUrl:He,setModelLoadHander:Ie,isExportableObject:Q,deleteThreeEditorDB:l,ensureThreeEditorDB:h,getDevicePixelRatio:Z,getThreedComponents:H,collectExportObjects:Fe,resetModelDbInstance:x,ensureModelDbInstance:c,getLocalDesignMenuData:k,invokeModelLoadHandler:te,isLegacyInlineKeyError:u,ensureThreedShaderLibrary:ge,ensureThreedDesignRegistry:J,createBlobUrl:i,revokeModelObjectUrls:o}}const{THREED_LOG_BUFFER:G0,THREED_CURRSCENE:oi,THREED_ACTIVE_MENU:j0,THREED_PIXEL_RATIO:K0,THREED_SCENE_PREVIEW:Y0,THREED_ADDON_EDITOR_JSON:ai,THREED_DEFAULT_SCENE_NAME:dy,THREED_DEFAULT_ACTIVE_MENU:E0,THREED_DEFAULT_PIXEL_RATIO:A0,THREED_SCENE_STORAGE_SUFFIX:Xs}=ly(),py=[G0,oi,j0,K0,Y0,ai],jt=(t,e)=>{const r=V0.getLocal(t);return r==null?e:r},Gt=(t,e)=>{t&&V0.setLocal(t,e)},Zo=t=>{t&&V0.removeLocal(t)},xy=(t,e)=>{var n,i;const r=(n=t==null?void 0:t.trim)==null?void 0:n.call(t);return r&&e.some(o=>o.name===r)?r:((i=e[0])==null?void 0:i.name)||dy},w0=(t=[])=>Array.isArray(t)?t.filter(e=>typeof e=="string"&&e):[],Js=()=>{const t=[],e=jt(oi,{name:"",path:""}),r=Number.parseFloat(jt(K0,A0));return{taskState:{busy:!1,type:"",title:"",message:"",description:"",progress:0},currScene:e,sceneList:t,previewScene:!!jt(Y0,!1),activeMenuTitle:jt(j0,E0)||E0,pixelRatio:Number.isFinite(r)&&r>0?r:A0,logarithmicDepthBuffer:jt(G0,!0)!==!1,addonEditorJson:w0(jt(ai,[]))}},Wu=_0.defineStore("threed",{state:()=>Js(),actions:{getSceneList(){return Be(this,null,function*(){var e;const t=yield kt.getCommonApi("threedfloorplan",{limit:1e4,ordering:"-create_time"});(e=t==null?void 0:t.data)!=null&&e.length?(this.sceneList=t.data,this.currScene.path?this.sceneList.find(n=>n.id===this.currScene.id)||this.setCurrScene({name:"",path:""}):this.setCurrScene(this.sceneList[0])):(this.sceneList=[],this.setCurrScene({name:"",path:""}))})},setSceneList(t){this.sceneList=t},setSceneName(t){this.sceneName=xy(t,this.sceneList),Gt(oi,this.sceneName)},createScene(t,e=""){return Be(this,null,function*(){var a,l;const r=(a=t==null?void 0:t.trim)==null?void 0:a.call(t);if(!r||this.sceneList.some(c=>c.name===r))return!1;const n=su.threeSavePath+"/"+l0()+".json",i=l0();if(!(yield kt.postCommonApi("query/threedfloorplan/create",{data:[{name:r,path:n,guid:i}]})).success)return!1;if(yield p1(n,e)){const c=yield kt.postCommonApi("threedfloorplan",{guid:i});if((l=c==null?void 0:c.data)!=null&&l.length)return this.sceneList=[...this.sceneList,c.data[0]],c.data[0]}return!0})},deleteScene(t){return Be(this,null,function*(){var n;if(!t)return;if(!(yield kt.postCommonApi("query/threedfloorplan/delete",{data:[t]})).success)return!1;const r=this.sceneList.findIndex(i=>i.id===t);return r===-1?!1:(this.sceneList.splice(r,1),((n=this.currScene)==null?void 0:n.id)===t&&this.setCurrScene(this.sceneList[0]||{name:"",path:""}),!0)})},setCurrScene(t){return Be(this,null,function*(){this.currScene=t,Gt(oi,this.currScene)})},setPreviewMode(t){this.previewScene=!!t,Gt(Y0,this.previewScene)},setActiveMenuTitle(t){this.activeMenuTitle=t||E0,Gt(j0,this.activeMenuTitle)},setPixelRatio(t){const e=Number.parseFloat(t);this.pixelRatio=Number.isFinite(e)&&e>0?e:A0,Gt(K0,this.pixelRatio)},setLogarithmicDepthBuffer(t){this.logarithmicDepthBuffer=!!t,Gt(G0,this.logarithmicDepthBuffer)},getSceneStorageKey(t){return`${t||this.sceneName}${Xs}`},getSceneStorageParams(t,e=null){return jt(this.getSceneStorageKey(t),e)},setSceneStorageParams(t,e){t&&Gt(this.getSceneStorageKey(t),e)},removeSceneStorageParams(t){t&&Zo(this.getSceneStorageKey(t))},resetTaskState(){return Be(this,null,function*(){yield new Promise(t=>setTimeout(t,120)),this.taskState={busy:!1,type:"",title:"",message:"",description:"",progress:0}})},getAddonEditorJson(){return this.addonEditorJson=w0(jt(ai,this.addonEditorJson)),this.addonEditorJson},setAddonEditorJson(t){this.addonEditorJson=w0(t),Gt(ai,this.addonEditorJson)},clearThreedStorage(){py.forEach(e=>Zo(e)),Object.keys(window.localStorage).filter(e=>e.endsWith(Xs)).forEach(e=>Zo(e));const t=Js();this.currScene=t.currScene,this.sceneList=t.sceneList,this.previewScene=t.previewScene,this.activeMenuTitle=t.activeMenuTitle,this.pixelRatio=t.pixelRatio,this.logarithmicDepthBuffer=t.logarithmicDepthBuffer,this.addonEditorJson=t.addonEditorJson}}}),hn=t=>{const{onClose:e,customClass:r}=t;return Yt(Rt(Ue({},t),{center:!0,customClass:`sy-message ${r||""}`,onClose:i=>{e&&e(i)}}))};["success","warning","info","error"].forEach(t=>{hn[t]=e=>hn(typeof e=="string"?{type:t,message:e}:Rt(Ue({},e),{type:t}))});const vy={backgroundBlurriness:0,backgroundIntensity:1,backgroundUrls:null,environmentEnabled:!1},yy={fov:50,near:.1,far:1e5,zoom:1,layers:{mask:1},filmOffset:0,filmGauge:35,position:{x:247.72931803058157,y:715.3890430349733,z:789.6794984861216}},my={outputColorSpace:"srgb",toneMapping:0,toneMappingExposure:1,shadowMap:{enabled:!1,type:1},color:0,opacity:0,sortObjects:!0,localClippingEnabled:!1,autoClear:!0,autoClearColor:!0,renderListCompare:[{name:"stats",enabled:!0},{name:"controls",enabled:!0},{name:"scene",enabled:!0},{name:"css3DRender",enabled:!0},{name:"css2DRender",enabled:!0}]},gy={autoRotate:!1,autoRotateSpeed:2,enableDamping:!0,dampingFactor:.05,minDistance:.01,maxDistance:1e6,maxAzimuthAngle:null,minAzimuthAngle:null,maxPolarAngle:3.141592653589793,minPolarAngle:0,maxTargetRadius:null,minTargetRadius:0,enablePan:!0,panSpeed:1,enableRotate:!0,rotateSpeed:1,enableZoom:!0,zoomSpeed:1,zoomToCursor:!1,target:{x:-38.59603927643809,y:-48.97202695679889,z:-49.19814250541991}},Ey={mode:"translate",space:"world",size:1,showX:!0,showY:!0,showZ:!0,translationSnap:null,rotationSnap:null,scaleSnap:null},Ay={renderWay:"effectComposer",fxaaPass:{enabled:!0,order:60,multPixel:1},outlinePass:{enabled:!0,order:40,edgeStrength:3,edgeGlow:0,edgeThickness:1,pulsePeriod:0,usePatternTexture:!1,visibleEdgeColor:16449071,hiddenEdgeColor:16449071,overlayMaterial:{blending:5,blendEquation:100,blendSrc:201,blendDst:205}},outputPass:{enabled:!0,order:50},saoPass:{enabled:!1,order:10,saoBias:.5,saoIntensity:.01,saoScale:100,saoKernelRadius:100,saoMinResolution:0,saoBlur:!0,saoBlurRadius:8,saoBlurStdDev:4,saoBlurDepthCutoff:.01},screenMaskPass:{enabled:!1,order:70,intensity:1,maskColor:16777215,R:.2,sr:1.2},ssrPass:{enabled:!1,order:30,maxDistance:.01,distanceAttenuation:!0,opacity:.5,thickness:.018,fresnel:!0,infiniteThick:!1,bouncing:!1},unrealBloomPass:{enabled:!1,order:20,strength:1.5,radius:.4,threshold:.85}},wy={mode:"transform",openKeyEnable:!0,rightClickMenusEnable:!0,selectChildEnabled:!1,selectChildLevel:1,stats:{showStats:!1,statsMode:0},helpers:{axes:{showAxes:!0,axesLength:1e3},grid:{showGrid:!0,size:1e3,divisions:15,colorCenterLine:4473924,colorGrid:8947848},box3:{useBox3:!0,color:16776960}}},_y=[],by=[],Cy=[],By=[],Dy=[],Sy=[],Fy={},Ry=[],Iy={viewAngleList:[],clipping:{size:20,clipList:[]}},Ty={scene:vy,perspectiveCamera:yy,webglRenderer:my,orbitControls:gy,transformControls:Ey,effectComposer:Ay,handler:wy,lightCores:_y,innerCores:by,modelCores:Cy,drawCores:By,textCores:Dy,particleCores:Sy,geoCores:Fy,designCores:Ry,other:Iy};class Oy extends je.Scene{constructor(){super();const e=new je.BoxGeometry;e.deleteAttribute("uv");const r=new je.MeshStandardMaterial({side:je.BackSide}),n=new je.MeshStandardMaterial,i=new je.PointLight(16777215,900,28,2);i.position.set(.418,16.199,.3),this.add(i);const o=new je.Mesh(e,r);o.position.set(-.757,13.219,.717),o.scale.set(31.713,28.305,28.591),this.add(o);const s=new je.InstancedMesh(e,n,6),a=new je.Object3D;a.position.set(-10.906,2.009,1.846),a.rotation.set(0,-.195,0),a.scale.set(2.328,7.905,4.651),a.updateMatrix(),s.setMatrixAt(0,a.matrix),a.position.set(-5.607,-.754,-.758),a.rotation.set(0,.994,0),a.scale.set(1.97,1.534,3.955),a.updateMatrix(),s.setMatrixAt(1,a.matrix),a.position.set(6.167,.857,7.803),a.rotation.set(0,.561,0),a.scale.set(3.927,6.285,3.687),a.updateMatrix(),s.setMatrixAt(2,a.matrix),a.position.set(-2.017,.018,6.124),a.rotation.set(0,.333,0),a.scale.set(2.002,4.566,2.064),a.updateMatrix(),s.setMatrixAt(3,a.matrix),a.position.set(2.291,-.756,-2.621),a.rotation.set(0,-.286,0),a.scale.set(1.546,1.552,1.496),a.updateMatrix(),s.setMatrixAt(4,a.matrix),a.position.set(-2.193,-.369,-5.547),a.rotation.set(0,.516,0),a.scale.set(3.875,3.487,2.986),a.updateMatrix(),s.setMatrixAt(5,a.matrix),this.add(s);const l=new je.Mesh(e,Ir(50));l.position.set(-16.116,14.37,8.208),l.scale.set(.1,2.428,2.739),this.add(l);const c=new je.Mesh(e,Ir(50));c.position.set(-16.109,18.021,-8.207),c.scale.set(.1,2.425,2.751),this.add(c);const u=new je.Mesh(e,Ir(17));u.position.set(14.904,12.198,-1.832),u.scale.set(.15,4.265,6.331),this.add(u);const x=new je.Mesh(e,Ir(43));x.position.set(-.462,8.89,14.52),x.scale.set(4.38,5.441,.088),this.add(x);const h=new je.Mesh(e,Ir(20));h.position.set(3.235,11.486,-12.541),h.scale.set(2.5,2,.1),this.add(h);const y=new je.Mesh(e,Ir(100));y.position.set(0,20,0),y.scale.set(1,.1,1),this.add(y)}dispose(){const e=new Set;this.traverse(r=>{r.isMesh&&(e.add(r.geometry),e.add(r.material))});for(const r of e)r.dispose()}}function Ir(t){return new je.MeshLambertMaterial({color:0,emissive:16777215,emissiveIntensity:t})}const Vu=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},Py=Object.assign({name:"ThreedEditor"},{__name:"editor",props:{data:{type:Object,default:()=>({})},preview:{type:Boolean,default:!1}},emits:["emit-three-editor","graph-event"],setup(t,{expose:e,emit:r}){const n=t,i=Wu(),{currScene:o}=_0.storeToRefs(i),s=r;try{ht.ThreeEditor.dracoPath=new URL("./draco/",typeof document=="undefined"?require("url").pathToFileURL(__filename).href:zi&&zi.tagName.toUpperCase()==="SCRIPT"&&zi.src||new URL("sy-threed-graph.cjs",document.baseURI).href).href}catch(C){console.error("无法获取 draco 路径",C),ht.ThreeEditor.dracoPath="/draco/"}let a=null,l=null;const c=P.ref(null),{setGuiParams:u,getDevicePixelRatio:x,getThreeEditorDB:h,createBlobUrl:y,revokeModelObjectUrls:m,ensureThreedDesignRegistry:E}=hy();E(ht.ThreeEditor),u({step:.1});const A=()=>{var C;return(C=a==null?void 0:a.renderSceneResize)==null?void 0:C.call(a)},R=()=>Be(this,null,function*(){var T,L;let C=Ty;try{if(n.data&&Object.keys(n.data).length)C=n.data;else if((T=o.value)!=null&&T.path){const H=yield kt.getApi((L=o.value)==null?void 0:L.path).catch(()=>({}));console.log("初始化三维场景:",H),H.res&&(C=H.res)}a?a.resetEditorStorage(C):a=new ht.ThreeEditor(c.value,{fps:null,pixelRatio:x()*i.pixelRatio,webglRenderParams:{antialias:!0,alpha:!0,logarithmicDepthBuffer:i.logarithmicDepthBuffer},sceneParams:w(C)})}catch(H){console.error("三维图纸初始化失败",H),a==null||a.resetEditorStorage(C)}finally{n.preview&&a&&setTimeout(()=>{a.handler.mode="none",a.handler.helpers.axes.showAxes=!1,a.handler.helpers.box3.useBox3=!1,a.handler.helpers.grid.showGrid=!1},200),_()}s("emit-three-editor",a),window.addEventListener("resize",A)}),w=C=>{m(),C.designCores.forEach(Z=>{Z.preview=n.preview});const T=h(),L=T.list||[],H=structuredClone(C||{});return H.modelCores=(H.modelCores||[]).filter(Z=>{const O=Z.modelInfo.originPath;if(O){const k=L.find(X=>X.name===O);if(!k){const X=T.db.getRequest(O);Z.modelInfo.url=X.url;return}const V=y(k.blob);Z.modelInfo.url=V}return!0}),H},_=()=>{a!=null&&a.renderer&&(l=new ht.THREE.PMREMGenerator(a.renderer),l.compileEquirectangularShader(),a.scene.environment=l.fromScene(new Oy).texture)},D=()=>a;return P.watch(()=>o.value.path,()=>Be(this,null,function*(){R()})),P.watch(()=>n.data,()=>{R()},{deep:!0}),P.onMounted(()=>{R()}),P.onUnmounted(()=>{window.removeEventListener("resize",A),m(),a==null||a.destroySceneRender(),i.setCurrScene({name:"",path:""})}),e({getEditorInstance:D}),(C,T)=>(P.openBlock(),P.createElementBlock("div",{ref_key:"editorRef",ref:c,class:"threed-editor",onDragover:T[0]||(T[0]=P.withModifiers(()=>{},["prevent"])),onDrop:T[1]||(T[1]=P.withModifiers(()=>{},["prevent"]))},null,544))}}),Ny=Vu(Py,[["__scopeId","data-v-7c55b0c5"]]),Ly={class:"threed-preview"},ky={__name:"preview",props:{data:{type:Object,default:null},url:{type:String,default:""},id:{type:String,default:""},token:{type:String,default:""},socketUrl:{type:String,default:""}},emits:["loaded","graph-event"],setup(t,{expose:e,emit:r}){const n=t,i=r;let o=P.shallowRef({});const s=P.ref(),a=Wu(),l={};let c=null;const u=R=>{var _,D,C;if(!R)return;if((_=R==null?void 0:R.includes)!=null&&_.call(R,"token 必传"))return hn({message:R,type:"warning"});const w=typeof R=="string"?JSON.parse(R):R;if((w==null?void 0:w.data)==="服务错误"||(C=(D=w==null?void 0:w.data)==null?void 0:D.includes)!=null&&C.call(D,"token is expired"))return hn({message:w.data,type:"warning"});switch(w.action){case Ha.ACPOINT.YCVALUE:case Ha.ACPOINT.YXVALUE:console.warn("遥测信息");break}},x=()=>{try{c=new d1({socketUrl:n.socketUrl,token:n.token,onMessage:u})}catch(R){console.warn("三维场景消息处理失败",R)}},h=R=>Be(this,null,function*(){var _;const w=yield kt.postCommonApi("queryrealtimepoint",{point_id:R.join(",")});if((_=w==null?void 0:w.data)!=null&&_.length){w.data.forEach(C=>{l[C.guid]=C.value_disp||C.value});const D=A();R.forEach(C=>{const T=D.scene.getObjectByProperty("dataId",C);T&&(T.userData.params.state=l[C],T.userData.params.value=l[C])})}}),y=R=>{console.log("🚀 ~ handleGraphEvent:",R),i("graph-event",R)},m=R=>{var D;if(!R)return;console.log("🚀 ~ handleEditorReady:",R),n.socketUrl&&x();const w=R.saveSceneEdit();let _=[];(D=w==null?void 0:w.designCores)==null||D.forEach(C=>{C.designType==="局放测点"&&C.id&&_.push(C.id)}),_!=null&&_.length&&h(_),i("loaded",R)},E=()=>Be(this,null,function*(){if(o.value&&Object.keys(o.value).length)return;const R=l1(),w=n.url||R.url;if(w){const C=yield kt.getApi(w).catch(()=>({}));C.res&&(o.value=C.res);return}if(!(n.id||R.id)){console.warn("三维场景渲染失败,场景id为空!");return}const D=yield kt.getCommonApi("threedfloorplan",{guid:n.id});D.data.length?a.setCurrScene(D.data[0]):console.warn("三维场景渲染失败,场景id为:"+n.id+"不存在!")}),A=()=>s.value?s.value.getEditorInstance():null;return P.watch(()=>n.data,R=>{o.value=R,E()},{deep:!0,immediate:!0}),P.watch(()=>n.id,()=>{E()},{deep:!0,immediate:!0}),P.onMounted(()=>{h0.on("three-event",y)}),P.onUnmounted(()=>{c&&c.destroy(),h0.off("three-event",y)}),e({getEditorInstance:A}),(R,w)=>(P.openBlock(),P.createElementBlock("div",Ly,[P.createVNode(Ny,{ref_key:"threedEditorRef",ref:s,data:P.unref(o),preview:"",onGraphEvent:y,onEmitThreeEditor:m},null,8,["data"])]))}},xn=Vu(ky,[["__scopeId","data-v-46ac6fc4"]]);xn.name||(xn.name="SyThreedGraph");const My=t=>{t.component(xn.name||"SyThreedGraph",xn)},Uy={install:My};exports.SyThreedGraph=xn;exports.default=Uy;
|
|
90
|
+
`,key:"col",commonFinish:!0,render:"iTime+speed"}];let rn=null,_t=null;const Ks=t=>(t==null?void 0:t.name)||(t==null?void 0:t.label)||"",zu=(t={})=>Object.values(t).filter(e=>e&&(e.label||e.name)),uy=zu(oy),fy=zu(ay),ly=()=>({THREED_GUI_PARAMS:m0,THREED_LOG_BUFFER:qv,THREED_CURRSCENE:Wv,THREED_ACTIVE_MENU:Vv,THREED_PIXEL_RATIO:Gv,THREED_IMPORT_SIZE:Xv,THREED_LIGHT_TYPES:ny,THREED_EXPORT_BATCH:Mu,THREED_RELOAD_DELAY:Jv,THREED_MODEL_DBNAME:Jn,THREED_MODEL_DBSTORE:v0,THREED_SCENE_PREVIEW:jv,THREED_USER_DATA_KEYS:Uu,THREED_MODEL_LOAD_KEY:y0,THREED_PREVIEW_URL_KEY:an,THREED_ADDON_EDITOR_JSON:Kv,THREED_EXPORT_NODE_COUNT:Qv,THREED_DEFAULT_SCENE_NAME:ey,THREED_DEFAULT_ACTIVE_MENU:ty,THREED_DEFAULT_PIXEL_RATIO:ry,THREED_EXPORT_VERTEX_COUNT:Zv,THREED_SCENE_EXCLUDE_TYPES:iy,THREED_EXPORT_EXCLUDE_TYPES:$u,THREED_EXPORT_RUNTIME_TYPES:Hu,THREED_SCENE_STORAGE_SUFFIX:Yv});function hy(){const{createInstance:t,dropInstance:e}=zv(),r="/";let n=[];const i=v=>{let I=URL.createObjectURL(v);return n.push(I),I},o=()=>{n.forEach(v=>URL.revokeObjectURL(v)),n=[]},s=()=>Be(this,null,function*(){return yield c(),{clearRequest:a,getAllRequest:m,getRequest:y,status:!0,message:"数据库打开成功",DATABASE:_t}}),a=v=>Be(this,null,function*(){if(!v)return{status:!1,message:"删除失败"};yield c(),yield _t.removeItem(v);const I=h();return I.list=I.list.filter(W=>W.name!==v),{status:!0,message:"删除成功"}}),u=(...I)=>Be(this,[...I],function*(v=Jn){_t=null,rn=null,yield e({name:v,storeName:v0})}),c=()=>Be(this,null,function*(){return _t||(rn||(rn=t({name:Jn,storeName:v0}).then(v=>(_t=v,v))),yield rn)}),f=v=>{if(!v)return!1;const I=String(v.message||"");return v.name==="DataError"||I.includes("in-line keys")},x=()=>Be(this,null,function*(){_t=null,rn=null,yield e({name:Jn}),yield c()}),h=()=>(window.threeEditorDB||(window.threeEditorDB={db:null,list:[]}),window.threeEditorDB),y=v=>Be(this,null,function*(){if(!v)return{status:!1,message:"获取失败"};yield c();const I=yield _t.getItem(v);if(I!=null&&I.blob&&!v)return{status:!0,message:"获取成功",url:i(I.blob)};if(!v)return{status:!1,message:"获取失败"};const W=yield fetch(v).then(Ce=>Ce.blob()),K={blob:W};try{yield _t.setItem(v,K)}catch(Ce){if(!f(Ce))throw Ce;yield x(),yield _t.setItem(v,K)}const pe=h(),_e=Ue({name:v},K),we=pe.list.findIndex(Ce=>Ce.name===v);return we>-1?pe.list.splice(we,1,_e):pe.list.push(_e),{status:!0,message:"文件缓存成功",url:i(W)}}),m=()=>Be(this,null,function*(){const v=h();yield c();const I=[];return yield _t.iterate((W,K)=>{I.push(Rt(Ue({},W||{}),{name:K}))}),v.list=I,{status:!0,message:"获取成功",data:I}}),E=()=>Be(this,null,function*(){const v=yield kt.getApi("/filehandle/scan",{path:au.threeModelPath,extension:"glb,gltf"}),{children:I}=v.res,W=[];if(I!=null&&I.length)for(const K of I)W.push({name:K.name,path:"/"+K.path});return W}),A=()=>window.GUI_PARAMS||m0,R=()=>window.threeEditor||null,w=()=>window.editorJsons||[],_=()=>({width:window.innerWidth||0,height:window.innerHeight||0}),B=()=>uy,D=()=>h(),T=()=>sy||{},L=()=>window[an]||"",z=()=>fy,Q=()=>window.devicePixelRatio||1,O=()=>window[an]||"",k=()=>{const v=B(),I=z();return{modelDesigns:v,componentDesigns:I,modelList:v.map(W=>W.label),componentList:I.map(W=>W.label)}},V=(v,I)=>{var W;return(W=v==null?void 0:v.__DESIGNS__)==null?void 0:W.find(K=>K.label===I)},X=(v=0)=>!Number.isFinite(v)||v<=0?"0 B":v<1024?`${v} B`:v<1024*1024?`${(v/1024).toFixed(1)} KB`:v<1024*1024*1024?`${(v/1024/1024).toFixed(1)} MB`:`${(v/1024/1024/1024).toFixed(2)} GB`,ee=v=>{const I=window[y0];typeof I=="function"&&I(v)},Y=v=>!!v&&Number.isFinite(v.x)&&Number.isFinite(v.y)&&Number.isFinite(v.z),Z=v=>{var I,W;return!v||!v.visible||(I=v.userData)!=null&&I.excludeFromExport||v.isTransformControls||v.isHelper||v.isLight||v.isPoints||(W=v.type)!=null&&W.includes("Helper")||$u.has(v.type)||Hu.has(v.type)||v.isCSS2DObject||v.isCSS3DObject?!1:v.isMesh||v.isGroup||v.isObject3D||v.isLine},oe=(v,I)=>v&&Number.isFinite(v.x)&&Number.isFinite(v.y)&&Number.isFinite(v.z)?v:I,ie=v=>v&&Number.isFinite(v.x)&&Number.isFinite(v.y)&&Number.isFinite(v.z)&&Number.isFinite(v.w)?v:{x:0,y:0,z:0,w:1},he=v=>{if(!(v!=null&&v.isObject3D))return;const I=oe(v.position,{x:0,y:0,z:0});v.position.set(I.x,I.y,I.z);const W=oe(v.scale,{x:1,y:1,z:1});v.scale.set(W.x===0?1:W.x,W.y===0?1:W.y,W.z===0?1:W.z);const K=oe(v.up,{x:0,y:1,z:0});v.up.set(K.x,K.y,K.z);const pe=ie(v.quaternion);v.quaternion.set(pe.x,pe.y,pe.z,pe.w),v.pivot&&!Y(v.pivot)&&delete v.pivot,v.updateMatrix(),v.updateMatrixWorld(!1)},ue=(v,I="_blank")=>window.open(v,I),H=(v,I="")=>window.prompt(v,I),j=()=>window.location.reload(),re=()=>document.documentElement.classList.remove("dark"),J=v=>{if(!Array.isArray(v==null?void 0:v.__DESIGNS__))return k();const I=[...B(),...z()],W=new Set(v.__DESIGNS__.map(K=>Ks(K)));return I.forEach(K=>{const pe=Ks(K);!pe||W.has(pe)||(W.add(pe),v.__DESIGNS__.unshift(K))}),k()},ge=v=>{if(!Array.isArray(v==null?void 0:v.__GLSLLIB__))return;const I=new Set(v.__GLSLLIB__.map(W=>W==null?void 0:W.name));cy.forEach(W=>{I.has(W.name)||(I.add(W.name),v.__GLSLLIB__.push(W))})},Ee=(v={})=>{const I={};return Object.entries(v||{}).forEach(([W,K])=>{if(!(Uu.has(W)||typeof K=="function")){if(!K||["string","number","boolean"].includes(typeof K)){I[W]=K;return}if(Array.isArray(K)){try{I[W]=structuredClone(K)}catch(pe){return}return}if(!(K.isObject3D||K.isMaterial||K.isTexture||K.nodeType))try{I[W]=structuredClone(K)}catch(pe){return}}}),I},Pe=(v=m0)=>{window.GUI_PARAMS=v},ve=v=>{window.threeEditor=v},Ae=v=>{window.threeEditorDB=v},Ie=v=>{window[y0]=v},He=(v="")=>{window[an]=v},$e=(v="")=>{window[an]=v},Fe=v=>{var W;const I=[];return(W=v==null?void 0:v.children)==null||W.forEach(K=>{Z(K)&&I.push(K)}),I},ze=(v=[])=>{const I={rootCount:v.length,nodeCount:0,meshCount:0,vertexCount:0,skippedCount:0};return v.forEach(W=>{W.traverse(K=>{var pe,_e,we;if(Z(K)){I.nodeCount+=1,K.isMesh&&(I.meshCount+=1,I.vertexCount+=((we=(_e=(pe=K.geometry)==null?void 0:pe.attributes)==null?void 0:_e.position)==null?void 0:we.count)||0);return}K!==W&&(I.skippedCount+=1)})}),I},qe=()=>new Promise(v=>requestAnimationFrame(()=>setTimeout(v,0))),F=()=>new Promise(v=>{if(typeof window.requestIdleCallback=="function"){window.requestIdleCallback(()=>v(),{timeout:80});return}setTimeout(v,0)}),l=(v,I)=>Be(this,null,function*(){var pe;if(!Z(v))return null;const W=v.clone(!1);W.userData=Ee(v.userData),Y(v.pivot)?W.pivot=new xt.THREE.Vector3(v.pivot.x,v.pivot.y,v.pivot.z):"pivot"in W&&delete W.pivot,he(W);const K=[{source:v,clone:W}];for(;K.length;){const _e=K.shift();for(const we of _e.source.children){if(!Z(we)){I.skippedCount+=1;continue}const Ce=we.clone(!1);Ce.userData=Ee(we.userData),Y(we.pivot)?Ce.pivot=new xt.THREE.Vector3(we.pivot.x,we.pivot.y,we.pivot.z):"pivot"in Ce&&delete Ce.pivot,he(Ce),_e.clone.add(Ce),K.push({source:we,clone:Ce}),I.processedCount+=1,I.processedCount%Mu===0&&(yield(pe=I.onProgress)==null?void 0:pe.call(I,{processedCount:I.processedCount,totalCount:I.totalCount,skippedCount:I.skippedCount,progress:18+Math.min(I.processedCount/Math.max(I.totalCount,1)*54,54)}),yield qe())}}return W});return{baseUrl:r,getModels:E,getRequest:y,reloadPage:j,promptInput:H,waitForIdle:F,waitForPaint:qe,clearRequest:a,getGuiParams:A,setGuiParams:Pe,getAllRequest:m,getEditorJsons:w,getThreeEditor:R,formatFileSize:X,setThreeEditor:ve,removeDarkClass:re,openExternalUrl:ue,getThreedModels:B,getViewportSize:_,buildExportScene:(W,...K)=>Be(this,[W,...K],function*(v,I={}){const pe=Fe(v),_e=ze(pe),we=new xt.THREE.Scene,Ce={totalCount:_e.nodeCount,processedCount:0,skippedCount:0,onProgress:I.onProgress};for(const Te of pe){const ut=yield l(Te,Ce);ut&&we.add(ut),yield F()}return we.updateMatrixWorld(!0),_e.skippedCount+=Ce.skippedCount,{exportScene:we,exportObjects:pe,stats:_e}}),createModelDbApi:s,getEditorPreviewSceneUrl:O,getThreeEditorDB:D,sanitizeUserData:Ee,setThreeEditorDB:Ae,findThreedDesign:V,getThreedLightMap:T,collectExportStats:ze,getPreviewSceneUrl:L,setEditorPreviewSceneUrl:$e,setPreviewSceneUrl:He,setModelLoadHander:Ie,isExportableObject:Z,deleteThreeEditorDB:u,ensureThreeEditorDB:h,getDevicePixelRatio:Q,getThreedComponents:z,collectExportObjects:Fe,resetModelDbInstance:x,ensureModelDbInstance:c,getLocalDesignMenuData:k,invokeModelLoadHandler:ee,isLegacyInlineKeyError:f,ensureThreedShaderLibrary:ge,ensureThreedDesignRegistry:J,createBlobUrl:i,revokeModelObjectUrls:o}}const{THREED_LOG_BUFFER:V0,THREED_CURRSCENE:oi,THREED_ACTIVE_MENU:G0,THREED_PIXEL_RATIO:j0,THREED_SCENE_PREVIEW:K0,THREED_ADDON_EDITOR_JSON:ai,THREED_DEFAULT_SCENE_NAME:dy,THREED_DEFAULT_ACTIVE_MENU:g0,THREED_DEFAULT_PIXEL_RATIO:E0,THREED_SCENE_STORAGE_SUFFIX:Ys}=ly(),py=[V0,oi,G0,j0,K0,ai],jt=(t,e)=>{const r=W0.getLocal(t);return r==null?e:r},Gt=(t,e)=>{t&&W0.setLocal(t,e)},Qo=t=>{t&&W0.removeLocal(t)},xy=(t,e)=>{var n,i;const r=(n=t==null?void 0:t.trim)==null?void 0:n.call(t);return r&&e.some(o=>o.name===r)?r:((i=e[0])==null?void 0:i.name)||dy},A0=(t=[])=>Array.isArray(t)?t.filter(e=>typeof e=="string"&&e):[],Xs=()=>{const t=[],e=jt(oi,{name:"",path:""}),r=Number.parseFloat(jt(j0,E0));return{taskState:{busy:!1,type:"",title:"",message:"",description:"",progress:0},currScene:e,sceneList:t,previewScene:!!jt(K0,!1),activeMenuTitle:jt(G0,g0)||g0,pixelRatio:Number.isFinite(r)&&r>0?r:E0,logarithmicDepthBuffer:jt(V0,!0)!==!1,addonEditorJson:A0(jt(ai,[]))}},qu=w0.defineStore("threed",{state:()=>Xs(),actions:{getSceneList(){return Be(this,null,function*(){var e;const t=yield kt.getCommonApi("threedfloorplan",{limit:1e4,ordering:"-create_time"});(e=t==null?void 0:t.data)!=null&&e.length?(this.sceneList=t.data,this.currScene.path?this.sceneList.find(n=>n.id===this.currScene.id)||this.setCurrScene({name:"",path:""}):this.setCurrScene(this.sceneList[0])):(this.sceneList=[],this.setCurrScene({name:"",path:""}))})},setSceneList(t){this.sceneList=t},setSceneName(t){this.sceneName=xy(t,this.sceneList),Gt(oi,this.sceneName)},createScene(t,e=""){return Be(this,null,function*(){var a,u;const r=(a=t==null?void 0:t.trim)==null?void 0:a.call(t);if(!r||this.sceneList.some(c=>c.name===r))return!1;const n=au.threeSavePath+"/"+f0()+".json",i=f0();if(!(yield kt.postCommonApi("query/threedfloorplan/create",{data:[{name:r,path:n,guid:i}]})).success)return!1;if(yield p1(n,e)){const c=yield kt.postCommonApi("threedfloorplan",{guid:i});if((u=c==null?void 0:c.data)!=null&&u.length)return this.sceneList=[...this.sceneList,c.data[0]],c.data[0]}return!0})},deleteScene(t){return Be(this,null,function*(){var n;if(!t)return;if(!(yield kt.postCommonApi("query/threedfloorplan/delete",{data:[t]})).success)return!1;const r=this.sceneList.findIndex(i=>i.id===t);return r===-1?!1:(this.sceneList.splice(r,1),((n=this.currScene)==null?void 0:n.id)===t&&this.setCurrScene(this.sceneList[0]||{name:"",path:""}),!0)})},setCurrScene(t){return Be(this,null,function*(){this.currScene=t,Gt(oi,this.currScene)})},setPreviewMode(t){this.previewScene=!!t,Gt(K0,this.previewScene)},setActiveMenuTitle(t){this.activeMenuTitle=t||g0,Gt(G0,this.activeMenuTitle)},setPixelRatio(t){const e=Number.parseFloat(t);this.pixelRatio=Number.isFinite(e)&&e>0?e:E0,Gt(j0,this.pixelRatio)},setLogarithmicDepthBuffer(t){this.logarithmicDepthBuffer=!!t,Gt(V0,this.logarithmicDepthBuffer)},getSceneStorageKey(t){return`${t||this.sceneName}${Ys}`},getSceneStorageParams(t,e=null){return jt(this.getSceneStorageKey(t),e)},setSceneStorageParams(t,e){t&&Gt(this.getSceneStorageKey(t),e)},removeSceneStorageParams(t){t&&Qo(this.getSceneStorageKey(t))},resetTaskState(){return Be(this,null,function*(){yield new Promise(t=>setTimeout(t,120)),this.taskState={busy:!1,type:"",title:"",message:"",description:"",progress:0}})},getAddonEditorJson(){return this.addonEditorJson=A0(jt(ai,this.addonEditorJson)),this.addonEditorJson},setAddonEditorJson(t){this.addonEditorJson=A0(t),Gt(ai,this.addonEditorJson)},clearThreedStorage(){py.forEach(e=>Qo(e)),Object.keys(window.localStorage).filter(e=>e.endsWith(Ys)).forEach(e=>Qo(e));const t=Xs();this.currScene=t.currScene,this.sceneList=t.sceneList,this.previewScene=t.previewScene,this.activeMenuTitle=t.activeMenuTitle,this.pixelRatio=t.pixelRatio,this.logarithmicDepthBuffer=t.logarithmicDepthBuffer,this.addonEditorJson=t.addonEditorJson}}}),hn=t=>{const{onClose:e,customClass:r}=t;return Yt(Rt(Ue({},t),{center:!0,customClass:`sy-message ${r||""}`,onClose:i=>{e&&e(i)}}))};["success","warning","info","error"].forEach(t=>{hn[t]=e=>hn(typeof e=="string"?{type:t,message:e}:Rt(Ue({},e),{type:t}))});const vy={backgroundBlurriness:0,backgroundIntensity:1,backgroundUrls:null,environmentEnabled:!1},yy={fov:50,near:.1,far:1e5,zoom:1,layers:{mask:1},filmOffset:0,filmGauge:35,position:{x:247.72931803058157,y:715.3890430349733,z:789.6794984861216}},my={outputColorSpace:"srgb",toneMapping:0,toneMappingExposure:1,shadowMap:{enabled:!1,type:1},color:0,opacity:0,sortObjects:!0,localClippingEnabled:!1,autoClear:!0,autoClearColor:!0,renderListCompare:[{name:"stats",enabled:!0},{name:"controls",enabled:!0},{name:"scene",enabled:!0},{name:"css3DRender",enabled:!0},{name:"css2DRender",enabled:!0}]},gy={autoRotate:!1,autoRotateSpeed:2,enableDamping:!0,dampingFactor:.05,minDistance:.01,maxDistance:1e6,maxAzimuthAngle:null,minAzimuthAngle:null,maxPolarAngle:3.141592653589793,minPolarAngle:0,maxTargetRadius:null,minTargetRadius:0,enablePan:!0,panSpeed:1,enableRotate:!0,rotateSpeed:1,enableZoom:!0,zoomSpeed:1,zoomToCursor:!1,target:{x:-38.59603927643809,y:-48.97202695679889,z:-49.19814250541991}},Ey={mode:"translate",space:"world",size:1,showX:!0,showY:!0,showZ:!0,translationSnap:null,rotationSnap:null,scaleSnap:null},Ay={renderWay:"effectComposer",fxaaPass:{enabled:!0,order:60,multPixel:1},outlinePass:{enabled:!0,order:40,edgeStrength:3,edgeGlow:0,edgeThickness:1,pulsePeriod:0,usePatternTexture:!1,visibleEdgeColor:16449071,hiddenEdgeColor:16449071,overlayMaterial:{blending:5,blendEquation:100,blendSrc:201,blendDst:205}},outputPass:{enabled:!0,order:50},saoPass:{enabled:!1,order:10,saoBias:.5,saoIntensity:.01,saoScale:100,saoKernelRadius:100,saoMinResolution:0,saoBlur:!0,saoBlurRadius:8,saoBlurStdDev:4,saoBlurDepthCutoff:.01},screenMaskPass:{enabled:!1,order:70,intensity:1,maskColor:16777215,R:.2,sr:1.2},ssrPass:{enabled:!1,order:30,maxDistance:.01,distanceAttenuation:!0,opacity:.5,thickness:.018,fresnel:!0,infiniteThick:!1,bouncing:!1},unrealBloomPass:{enabled:!1,order:20,strength:1.5,radius:.4,threshold:.85}},wy={mode:"transform",openKeyEnable:!0,rightClickMenusEnable:!0,selectChildEnabled:!1,selectChildLevel:1,stats:{showStats:!1,statsMode:0},helpers:{axes:{showAxes:!0,axesLength:1e3},grid:{showGrid:!0,size:1e3,divisions:15,colorCenterLine:4473924,colorGrid:8947848},box3:{useBox3:!0,color:16776960}}},_y=[],by=[],Cy=[],By=[],Dy=[],Sy=[],Fy={},Ry=[],Iy={viewAngleList:[],clipping:{size:20,clipList:[]}},Ty={scene:vy,perspectiveCamera:yy,webglRenderer:my,orbitControls:gy,transformControls:Ey,effectComposer:Ay,handler:wy,lightCores:_y,innerCores:by,modelCores:Cy,drawCores:By,textCores:Dy,particleCores:Sy,geoCores:Fy,designCores:Ry,other:Iy};class Oy extends je.Scene{constructor(){super();const e=new je.BoxGeometry;e.deleteAttribute("uv");const r=new je.MeshStandardMaterial({side:je.BackSide}),n=new je.MeshStandardMaterial,i=new je.PointLight(16777215,900,28,2);i.position.set(.418,16.199,.3),this.add(i);const o=new je.Mesh(e,r);o.position.set(-.757,13.219,.717),o.scale.set(31.713,28.305,28.591),this.add(o);const s=new je.InstancedMesh(e,n,6),a=new je.Object3D;a.position.set(-10.906,2.009,1.846),a.rotation.set(0,-.195,0),a.scale.set(2.328,7.905,4.651),a.updateMatrix(),s.setMatrixAt(0,a.matrix),a.position.set(-5.607,-.754,-.758),a.rotation.set(0,.994,0),a.scale.set(1.97,1.534,3.955),a.updateMatrix(),s.setMatrixAt(1,a.matrix),a.position.set(6.167,.857,7.803),a.rotation.set(0,.561,0),a.scale.set(3.927,6.285,3.687),a.updateMatrix(),s.setMatrixAt(2,a.matrix),a.position.set(-2.017,.018,6.124),a.rotation.set(0,.333,0),a.scale.set(2.002,4.566,2.064),a.updateMatrix(),s.setMatrixAt(3,a.matrix),a.position.set(2.291,-.756,-2.621),a.rotation.set(0,-.286,0),a.scale.set(1.546,1.552,1.496),a.updateMatrix(),s.setMatrixAt(4,a.matrix),a.position.set(-2.193,-.369,-5.547),a.rotation.set(0,.516,0),a.scale.set(3.875,3.487,2.986),a.updateMatrix(),s.setMatrixAt(5,a.matrix),this.add(s);const u=new je.Mesh(e,Ir(50));u.position.set(-16.116,14.37,8.208),u.scale.set(.1,2.428,2.739),this.add(u);const c=new je.Mesh(e,Ir(50));c.position.set(-16.109,18.021,-8.207),c.scale.set(.1,2.425,2.751),this.add(c);const f=new je.Mesh(e,Ir(17));f.position.set(14.904,12.198,-1.832),f.scale.set(.15,4.265,6.331),this.add(f);const x=new je.Mesh(e,Ir(43));x.position.set(-.462,8.89,14.52),x.scale.set(4.38,5.441,.088),this.add(x);const h=new je.Mesh(e,Ir(20));h.position.set(3.235,11.486,-12.541),h.scale.set(2.5,2,.1),this.add(h);const y=new je.Mesh(e,Ir(100));y.position.set(0,20,0),y.scale.set(1,.1,1),this.add(y)}dispose(){const e=new Set;this.traverse(r=>{r.isMesh&&(e.add(r.geometry),e.add(r.material))});for(const r of e)r.dispose()}}function Ir(t){return new je.MeshLambertMaterial({color:0,emissive:16777215,emissiveIntensity:t})}const Wu=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},Py=Object.assign({name:"ThreedEditor"},{__name:"editor",props:{data:{type:Object,default:()=>({})},preview:{type:Boolean,default:!1}},emits:["emit-three-editor","graph-event"],setup(t,{expose:e,emit:r}){const n=t,i=qu(),{currScene:o}=w0.storeToRefs(i),s=r,a=window.__SY_THREED_DRACO_PATH__||"/draco/";xt.ThreeEditor.dracoPath=a.endsWith("/")?a:a+"/";let u=null,c=null;const f=P.ref(null),{setGuiParams:x,getDevicePixelRatio:h,getThreeEditorDB:y,createBlobUrl:m,revokeModelObjectUrls:E,ensureThreedDesignRegistry:A}=hy();A(xt.ThreeEditor),x({step:.1});const R=()=>{var T;return(T=u==null?void 0:u.renderSceneResize)==null?void 0:T.call(u)},w=()=>Be(this,null,function*(){var L,z;let T=Ty;try{if(n.data&&Object.keys(n.data).length)T=n.data;else if((L=o.value)!=null&&L.path){const Q=yield kt.getApi((z=o.value)==null?void 0:z.path).catch(()=>({}));console.log("初始化三维场景:",Q),Q.res&&(T=Q.res)}u?u.resetEditorStorage(T):u=new xt.ThreeEditor(f.value,{fps:null,pixelRatio:h()*i.pixelRatio,webglRenderParams:{antialias:!0,alpha:!0,logarithmicDepthBuffer:i.logarithmicDepthBuffer},sceneParams:_(T)})}catch(Q){console.error("三维图纸初始化失败",Q),u==null||u.resetEditorStorage(T)}finally{n.preview&&u&&setTimeout(()=>{u.handler.mode="none",u.handler.helpers.axes.showAxes=!1,u.handler.helpers.box3.useBox3=!1,u.handler.helpers.grid.showGrid=!1},200),B()}s("emit-three-editor",u),window.addEventListener("resize",R)}),_=T=>{E(),T.designCores.forEach(O=>{O.preview=n.preview});const L=y(),z=L.list||[],Q=structuredClone(T||{});return Q.modelCores=(Q.modelCores||[]).filter(O=>{const k=O.modelInfo.originPath;if(k){const V=z.find(ee=>ee.name===k);if(!V){const ee=L.db.getRequest(k);O.modelInfo.url=ee.url;return}const X=m(V.blob);O.modelInfo.url=X}return!0}),Q},B=()=>{u!=null&&u.renderer&&(c=new xt.THREE.PMREMGenerator(u.renderer),c.compileEquirectangularShader(),u.scene.environment=c.fromScene(new Oy).texture)},D=()=>u;return P.watch(()=>o.value.path,()=>Be(this,null,function*(){w()})),P.watch(()=>n.data,()=>{w()},{deep:!0}),P.onMounted(()=>{w()}),P.onUnmounted(()=>{window.removeEventListener("resize",R),E(),u==null||u.destroySceneRender(),i.setCurrScene({name:"",path:""})}),e({getEditorInstance:D}),(T,L)=>(P.openBlock(),P.createElementBlock("div",{ref_key:"editorRef",ref:f,class:"threed-editor",onDragover:L[0]||(L[0]=P.withModifiers(()=>{},["prevent"])),onDrop:L[1]||(L[1]=P.withModifiers(()=>{},["prevent"]))},null,544))}}),Ny=Wu(Py,[["__scopeId","data-v-cebfdbf8"]]),Ly={class:"threed-preview"},ky={__name:"preview",props:{data:{type:Object,default:null},url:{type:String,default:""},id:{type:String,default:""},token:{type:String,default:""},socketUrl:{type:String,default:""}},emits:["loaded","graph-event"],setup(t,{expose:e,emit:r}){const n=t,i=r;let o=P.shallowRef({});const s=P.ref(),a=qu(),u={};let c=null;const f=R=>{var _,B,D;if(!R)return;if((_=R==null?void 0:R.includes)!=null&&_.call(R,"token 必传"))return hn({message:R,type:"warning"});const w=typeof R=="string"?JSON.parse(R):R;if((w==null?void 0:w.data)==="服务错误"||(D=(B=w==null?void 0:w.data)==null?void 0:B.includes)!=null&&D.call(B,"token is expired"))return hn({message:w.data,type:"warning"});switch(w.action){case $a.ACPOINT.YCVALUE:case $a.ACPOINT.YXVALUE:console.warn("遥测信息");break}},x=()=>{try{c=new d1({socketUrl:n.socketUrl,token:n.token,onMessage:f})}catch(R){console.warn("三维场景消息处理失败",R)}},h=R=>Be(this,null,function*(){var _;const w=yield kt.postCommonApi("queryrealtimepoint",{point_id:R.join(",")});if((_=w==null?void 0:w.data)!=null&&_.length){w.data.forEach(D=>{u[D.guid]=D.value_disp||D.value});const B=A();R.forEach(D=>{const T=B.scene.getObjectByProperty("dataId",D);T&&(T.userData.params.state=u[D],T.userData.params.value=u[D])})}}),y=R=>{console.log("🚀 ~ handleGraphEvent:",R),i("graph-event",R)},m=R=>{var B;if(!R)return;console.log("🚀 ~ handleEditorReady:",R),n.socketUrl&&x();const w=R.saveSceneEdit();let _=[];(B=w==null?void 0:w.designCores)==null||B.forEach(D=>{D.designType==="局放测点"&&D.id&&_.push(D.id)}),_!=null&&_.length&&h(_),i("loaded",R)},E=()=>Be(this,null,function*(){if(o.value&&Object.keys(o.value).length)return;const R=l1(),w=n.url||R.url;if(w){const D=yield kt.getApi(w).catch(()=>({}));D.res&&(o.value=D.res);return}if(!(n.id||R.id)){console.warn("三维场景渲染失败,场景id为空!");return}const B=yield kt.getCommonApi("threedfloorplan",{guid:n.id});B.data.length?a.setCurrScene(B.data[0]):console.warn("三维场景渲染失败,场景id为:"+n.id+"不存在!")}),A=()=>s.value?s.value.getEditorInstance():null;return P.watch(()=>n.data,R=>{o.value=R,E()},{deep:!0,immediate:!0}),P.watch(()=>n.id,()=>{E()},{deep:!0,immediate:!0}),P.onMounted(()=>{l0.on("three-event",y)}),P.onUnmounted(()=>{c&&c.destroy(),l0.off("three-event",y)}),e({getEditorInstance:A}),(R,w)=>(P.openBlock(),P.createElementBlock("div",Ly,[P.createVNode(Ny,{ref_key:"threedEditorRef",ref:s,data:P.unref(o),preview:"",onGraphEvent:y,onEmitThreeEditor:m},null,8,["data"])]))}},xn=Wu(ky,[["__scopeId","data-v-46ac6fc4"]]);xn.name||(xn.name="SyThreedGraph");const Vu=t=>{t&&(window.__SY_THREED_DRACO_PATH__=t.endsWith("/")?t:t+"/")},My=t=>{t.component(xn.name||"SyThreedGraph",xn)},Uy={install:My,setDracoPath:Vu};exports.SyThreedGraph=xn;exports.default=Uy;exports.setDracoPath=Vu;
|