@syhr/sy-threed-graph 1.0.0-bate5 → 1.0.0-bate6
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 +24 -28
- package/lib-threed/sy-threed-graph.mjs +8221 -17206
- package/lib-threed/sy-threed-graph.umd.js +25 -29
- 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 Qf=Object.defineProperty,td=Object.defineProperties;var ed=Object.getOwnPropertyDescriptors;var Vi=Object.getOwnPropertySymbols;var ac=Object.prototype.hasOwnProperty,cc=Object.prototype.propertyIsEnumerable;var mn=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n),rd=n=>{throw TypeError(n)},uc=Math.pow,bo=(n,t,e)=>t in n?Qf(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Lt=(n,t)=>{for(var e in t||(t={}))ac.call(t,e)&&bo(n,e,t[e]);if(Vi)for(var e of Vi(t))cc.call(t,e)&&bo(n,e,t[e]);return n},ze=(n,t)=>td(n,ed(t));var lc=(n,t)=>{var e={};for(var r in n)ac.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&Vi)for(var r of Vi(n))t.indexOf(r)<0&&cc.call(n,r)&&(e[r]=n[r]);return e};var Nr=(n,t,e)=>bo(n,typeof t!="symbol"?t+"":t,e);var Ct=(n,t,e)=>new Promise((r,i)=>{var s=u=>{try{a(e.next(u))}catch(c){i(c)}},o=u=>{try{a(e.throw(u))}catch(c){i(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(s,o);a((e=e.apply(n,t)).next())}),Lr=function(n,t){this[0]=n,this[1]=t},Ao=(n,t,e)=>{var r=(o,a,u,c)=>{try{var l=e[o](a),f=(a=l.value)instanceof Lr,h=l.done;Promise.resolve(f?a[0]:a).then(p=>f?r(o==="return"?o:"next",a[1]?{done:p.done,value:p.value}:p,u,c):u({value:p,done:h})).catch(p=>r("throw",p,u,c))}catch(p){c(p)}},i=o=>s[o]=a=>new Promise((u,c)=>r(o,a,u,c)),s={};return e=e.apply(n,t),s[mn("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},_o=n=>{var t=n[mn("asyncIterator")],e=!1,r,i={};return t==null?(t=n[mn("iterator")](),r=s=>i[s]=o=>t[s](o)):(t=t.call(n),r=s=>i[s]=o=>{if(e){if(e=!1,s==="throw")throw o;return o}return e=!0,{done:!1,value:new Lr(new Promise(a=>{var u=t[s](o);u instanceof Object||rd("Object expected"),a(u)}),1)}}),i[mn("iterator")]=()=>i,r("next"),"throw"in t?r("throw"):i.throw=s=>{throw s},"return"in t&&r("return"),i},hc=(n,t,e)=>(t=n[mn("asyncIterator")])?t.call(n):(n=n[mn("iterator")](),t={},e=(r,i)=>(i=n[r])&&(t[r]=s=>new Promise((o,a,u)=>(s=i.call(n,s),u=s.done,Promise.resolve(s.value).then(c=>o({value:c,done:u}),a)))),e("next"),e("return"),t);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const P=require("vue"),R0=require("pinia"),I0=require("lodash-es"),Ce=require("three-edit-cores");var _t=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function O0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function nd(n){if(n.__esModule)return n;var t=n.default;if(typeof t=="function"){var e=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),e}var jn=TypeError;const id={},sd=Object.freeze(Object.defineProperty({__proto__:null,default:id},Symbol.toStringTag,{value:"Module"})),lh=nd(sd);var P0=typeof Map=="function"&&Map.prototype,Co=Object.getOwnPropertyDescriptor&&P0?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Rs=P0&&Co&&typeof Co.get=="function"?Co.get:null,fc=P0&&Map.prototype.forEach,z0=typeof Set=="function"&&Set.prototype,So=Object.getOwnPropertyDescriptor&&z0?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Is=z0&&So&&typeof So.get=="function"?So.get:null,dc=z0&&Set.prototype.forEach,od=typeof WeakMap=="function"&&WeakMap.prototype,gi=od?WeakMap.prototype.has:null,ad=typeof WeakSet=="function"&&WeakSet.prototype,vi=ad?WeakSet.prototype.has:null,cd=typeof WeakRef=="function"&&WeakRef.prototype,pc=cd?WeakRef.prototype.deref:null,ud=Boolean.prototype.valueOf,ld=Object.prototype.toString,hd=Function.prototype.toString,fd=String.prototype.match,k0=String.prototype.slice,Dr=String.prototype.replace,dd=String.prototype.toUpperCase,xc=String.prototype.toLowerCase,hh=RegExp.prototype.test,mc=Array.prototype.concat,tr=Array.prototype.join,pd=Array.prototype.slice,yc=Math.floor,a0=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Bo=Object.getOwnPropertySymbols,c0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Hn=typeof Symbol=="function"&&typeof Symbol.iterator=="object",wi=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Hn||!0)?Symbol.toStringTag:null,fh=Object.prototype.propertyIsEnumerable,gc=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function vc(n,t){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||hh.call(/e/,t))return t;var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var r=n<0?-yc(-n):yc(n);if(r!==n){var i=String(r),s=k0.call(t,i.length+1);return Dr.call(i,e,"$&_")+"."+Dr.call(Dr.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Dr.call(t,e,"$&_")}var u0=lh,wc=u0.custom,Ec=xh(wc)?wc:null,dh={__proto__:null,double:'"',single:"'"},xd={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},$s=function n(t,e,r,i){var s=e||{};if(hr(s,"quoteStyle")&&!hr(dh,s.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(hr(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=hr(s,"customInspect")?s.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(hr(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(hr(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=s.numericSeparator;if(typeof t=="undefined")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return yh(t,s);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return a?vc(t,u):u}if(typeof t=="bigint"){var c=String(t)+"n";return a?vc(t,c):c}var l=typeof s.depth=="undefined"?5:s.depth;if(typeof r=="undefined"&&(r=0),r>=l&&l>0&&typeof t=="object")return l0(t)?"[Array]":"[Object]";var f=Id(s,r);if(typeof i=="undefined")i=[];else if(mh(i,t)>=0)return"[Circular]";function h(j,J,G){if(J&&(i=pd.call(i),i.push(J)),G){var Q={depth:s.depth};return hr(s,"quoteStyle")&&(Q.quoteStyle=s.quoteStyle),n(j,Q,r+1,i)}return n(j,s,r+1,i)}if(typeof t=="function"&&!bc(t)){var p=_d(t),x=ji(t,h);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(x.length>0?" { "+tr.call(x,", ")+" }":"")}if(xh(t)){var y=Hn?Dr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):c0.call(t);return typeof t=="object"&&!Hn?ii(y):y}if(Md(t)){for(var g="<"+xc.call(String(t.nodeName)),A=t.attributes||[],w=0;w<A.length;w++)g+=" "+A[w].name+"="+ph(md(A[w].value),"double",s);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+xc.call(String(t.nodeName))+">",g}if(l0(t)){if(t.length===0)return"[]";var E=ji(t,h);return f&&!Rd(E)?"["+h0(E,f)+"]":"[ "+tr.call(E,", ")+" ]"}if(gd(t)){var _=ji(t,h);return!("cause"in Error.prototype)&&"cause"in t&&!fh.call(t,"cause")?"{ ["+String(t)+"] "+tr.call(mc.call("[cause]: "+h(t.cause),_),", ")+" }":_.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+tr.call(_,", ")+" }"}if(typeof t=="object"&&o){if(Ec&&typeof t[Ec]=="function"&&u0)return u0(t,{depth:l-r});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Cd(t)){var C=[];return fc&&fc.call(t,function(j,J){C.push(h(J,t,!0)+" => "+h(j,t))}),Ac("Map",Rs.call(t),C,f)}if(Fd(t)){var T=[];return dc&&dc.call(t,function(j){T.push(h(j,t))}),Ac("Set",Is.call(t),T,f)}if(Sd(t))return Fo("WeakMap");if(Dd(t))return Fo("WeakSet");if(Bd(t))return Fo("WeakRef");if(wd(t))return ii(h(Number(t)));if(bd(t))return ii(h(a0.call(t)));if(Ed(t))return ii(ud.call(t));if(vd(t))return ii(h(String(t)));if(typeof window!="undefined"&&t===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&t===globalThis||typeof _t!="undefined"&&t===_t)return"{ [object globalThis] }";if(!yd(t)&&!bc(t)){var R=ji(t,h),N=gc?gc(t)===Object.prototype:t instanceof Object||t.constructor===Object,Y=t instanceof Object?"":"null prototype",I=!N&&wi&&Object(t)===t&&wi in t?k0.call(Rr(t),8,-1):Y?"Object":"",O=N||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",q=O+(I||Y?"["+tr.call(mc.call([],I||[],Y||[]),": ")+"] ":"");return R.length===0?q+"{}":f?q+"{"+h0(R,f)+"}":q+"{ "+tr.call(R,", ")+" }"}return String(t)};function ph(n,t,e){var r=e.quoteStyle||t,i=dh[r];return i+n+i}function md(n){return Dr.call(String(n),/"/g,""")}function en(n){return!wi||!(typeof n=="object"&&(wi in n||typeof n[wi]!="undefined"))}function l0(n){return Rr(n)==="[object Array]"&&en(n)}function yd(n){return Rr(n)==="[object Date]"&&en(n)}function bc(n){return Rr(n)==="[object RegExp]"&&en(n)}function gd(n){return Rr(n)==="[object Error]"&&en(n)}function vd(n){return Rr(n)==="[object String]"&&en(n)}function wd(n){return Rr(n)==="[object Number]"&&en(n)}function Ed(n){return Rr(n)==="[object Boolean]"&&en(n)}function xh(n){if(Hn)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!c0)return!1;try{return c0.call(n),!0}catch(t){}return!1}function bd(n){if(!n||typeof n!="object"||!a0)return!1;try{return a0.call(n),!0}catch(t){}return!1}var Ad=Object.prototype.hasOwnProperty||function(n){return n in this};function hr(n,t){return Ad.call(n,t)}function Rr(n){return ld.call(n)}function _d(n){if(n.name)return n.name;var t=fd.call(hd.call(n),/^function\s*([\w$]+)/);return t?t[1]:null}function mh(n,t){if(n.indexOf)return n.indexOf(t);for(var e=0,r=n.length;e<r;e++)if(n[e]===t)return e;return-1}function Cd(n){if(!Rs||!n||typeof n!="object")return!1;try{Rs.call(n);try{Is.call(n)}catch(t){return!0}return n instanceof Map}catch(t){}return!1}function Sd(n){if(!gi||!n||typeof n!="object")return!1;try{gi.call(n,gi);try{vi.call(n,vi)}catch(t){return!0}return n instanceof WeakMap}catch(t){}return!1}function Bd(n){if(!pc||!n||typeof n!="object")return!1;try{return pc.call(n),!0}catch(t){}return!1}function Fd(n){if(!Is||!n||typeof n!="object")return!1;try{Is.call(n);try{Rs.call(n)}catch(t){return!0}return n instanceof Set}catch(t){}return!1}function Dd(n){if(!vi||!n||typeof n!="object")return!1;try{vi.call(n,vi);try{gi.call(n,gi)}catch(t){return!0}return n instanceof WeakSet}catch(t){}return!1}function Md(n){return!n||typeof n!="object"?!1:typeof HTMLElement!="undefined"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function yh(n,t){if(n.length>t.maxStringLength){var e=n.length-t.maxStringLength,r="... "+e+" more character"+(e>1?"s":"");return yh(k0.call(n,0,t.maxStringLength),t)+r}var i=xd[t.quoteStyle||"single"];i.lastIndex=0;var s=Dr.call(Dr.call(n,i,"\\$1"),/[\x00-\x1f]/g,Td);return ph(s,"single",t)}function Td(n){var t=n.charCodeAt(0),e={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return e?"\\"+e:"\\x"+(t<16?"0":"")+dd.call(t.toString(16))}function ii(n){return"Object("+n+")"}function Fo(n){return n+" { ? }"}function Ac(n,t,e,r){var i=r?h0(e,r):tr.call(e,", ");return n+" ("+t+") {"+i+"}"}function Rd(n){for(var t=0;t<n.length;t++)if(mh(n[t],`
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
3
|
-
`+
|
|
4
|
-
`+t.prev}function ji(n,t){var e=l0(n),r=[];if(e){r.length=n.length;for(var i=0;i<n.length;i++)r[i]=hr(n,i)?t(n[i],n):""}var s=typeof Bo=="function"?Bo(n):[],o;if(Hn){o={};for(var a=0;a<s.length;a++)o["$"+s[a]]=s[a]}for(var u in n)hr(n,u)&&(e&&String(Number(u))===u&&u<n.length||Hn&&o["$"+u]instanceof Symbol||(hh.call(/[^\w$]/,u)?r.push(t(u,n)+": "+t(n[u],n)):r.push(u+": "+t(n[u],n))));if(typeof Bo=="function")for(var c=0;c<s.length;c++)fh.call(n,s[c])&&r.push("["+t(s[c])+"]: "+t(n[s[c]],n));return r}var Od=$s,Pd=jn,Hs=function(n,t,e){for(var r=n,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,e||(i.next=n.next,n.next=i),i},zd=function(n,t){if(n){var e=Hs(n,t);return e&&e.value}},kd=function(n,t,e){var r=Hs(n,t);r?r.value=e:n.next={key:t,next:n.next,value:e}},Nd=function(n,t){return n?!!Hs(n,t):!1},Ld=function(n,t){if(n)return Hs(n,t,!0)},Ud=function(){var t,e={assert:function(r){if(!e.has(r))throw new Pd("Side channel does not contain "+Od(r))},delete:function(r){var i=t&&t.next,s=Ld(t,r);return s&&i&&i===s&&(t=void 0),!!s},get:function(r){return zd(t,r)},has:function(r){return Nd(t,r)},set:function(r,i){t||(t={next:void 0}),kd(t,r,i)}};return e},gh=Object,$d=Error,Hd=EvalError,qd=RangeError,Wd=ReferenceError,Vd=SyntaxError,jd=URIError,Gd=Math.abs,Xd=Math.floor,Yd=Math.max,Kd=Math.min,Jd=Math.pow,Zd=Math.round,Qd=Number.isNaN||function(t){return t!==t},tp=Qd,ep=function(t){return tp(t)||t===0?t:t<0?-1:1},rp=Object.getOwnPropertyDescriptor,Es=rp;if(Es)try{Es([],"length")}catch(n){Es=null}var vh=Es,bs=Object.defineProperty||!1;if(bs)try{bs({},"a",{value:1})}catch(n){bs=!1}var np=bs,Do,_c;function ip(){return _c||(_c=1,Do=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},e=Symbol("test"),r=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[e]=i;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,e);if(a.value!==i||a.enumerable!==!0)return!1}return!0}),Do}var Mo,Cc;function sp(){if(Cc)return Mo;Cc=1;var n=typeof Symbol!="undefined"&&Symbol,t=ip();return Mo=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Mo}var To,Sc;function wh(){return Sc||(Sc=1,To=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),To}var Ro,Bc;function Eh(){if(Bc)return Ro;Bc=1;var n=gh;return Ro=n.getPrototypeOf||null,Ro}var Io,Fc;function op(){if(Fc)return Io;Fc=1;var n="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,e=Math.max,r="[object Function]",i=function(u,c){for(var l=[],f=0;f<u.length;f+=1)l[f]=u[f];for(var h=0;h<c.length;h+=1)l[h+u.length]=c[h];return l},s=function(u,c){for(var l=[],f=c,h=0;f<u.length;f+=1,h+=1)l[h]=u[f];return l},o=function(a,u){for(var c="",l=0;l<a.length;l+=1)c+=a[l],l+1<a.length&&(c+=u);return c};return Io=function(u){var c=this;if(typeof c!="function"||t.apply(c)!==r)throw new TypeError(n+c);for(var l=s(arguments,1),f,h=function(){if(this instanceof f){var A=c.apply(this,i(l,arguments));return Object(A)===A?A:this}return c.apply(u,i(l,arguments))},p=e(0,c.length-l.length),x=[],y=0;y<p;y++)x[y]="$"+y;if(f=Function("binder","return function ("+o(x,",")+"){ return binder.apply(this,arguments); }")(h),c.prototype){var g=function(){};g.prototype=c.prototype,f.prototype=new g,g.prototype=null}return f},Io}var Oo,Dc;function qs(){if(Dc)return Oo;Dc=1;var n=op();return Oo=Function.prototype.bind||n,Oo}var Po,Mc;function N0(){return Mc||(Mc=1,Po=Function.prototype.call),Po}var zo,Tc;function bh(){return Tc||(Tc=1,zo=Function.prototype.apply),zo}var ap=typeof Reflect!="undefined"&&Reflect&&Reflect.apply,cp=qs(),up=bh(),lp=N0(),hp=ap,fp=hp||cp.call(lp,up),dp=qs(),pp=jn,xp=N0(),mp=fp,Ah=function(t){if(t.length<1||typeof t[0]!="function")throw new pp("a function is required");return mp(dp,xp,t)},ko,Rc;function yp(){if(Rc)return ko;Rc=1;var n=Ah,t=vh,e;try{e=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var r=!!e&&t&&t(Object.prototype,"__proto__"),i=Object,s=i.getPrototypeOf;return ko=r&&typeof r.get=="function"?n([r.get]):typeof s=="function"?function(a){return s(a==null?a:i(a))}:!1,ko}var No,Ic;function gp(){if(Ic)return No;Ic=1;var n=wh(),t=Eh(),e=yp();return No=n?function(i){return n(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:e?function(i){return e(i)}:null,No}var Lo,Oc;function vp(){if(Oc)return Lo;Oc=1;var n=Function.prototype.call,t=Object.prototype.hasOwnProperty,e=qs();return Lo=e.call(n,t),Lo}var Dt,wp=gh,Ep=$d,bp=Hd,Ap=qd,_p=Wd,qn=Vd,Nn=jn,Cp=jd,Sp=Gd,Bp=Xd,Fp=Yd,Dp=Kd,Mp=Jd,Tp=Zd,Rp=ep,_h=Function,Uo=function(n){try{return _h('"use strict"; return ('+n+").constructor;")()}catch(t){}},_i=vh,Ip=np,$o=function(){throw new Nn},Op=_i?function(){try{return arguments.callee,$o}catch(n){try{return _i(arguments,"callee").get}catch(t){return $o}}}():$o,yn=sp()(),se=gp(),Pp=Eh(),zp=wh(),Ch=bh(),Bi=N0(),Pn={},kp=typeof Uint8Array=="undefined"||!se?Dt:se(Uint8Array),Yr={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Dt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Dt:ArrayBuffer,"%ArrayIteratorPrototype%":yn&&se?se([][Symbol.iterator]()):Dt,"%AsyncFromSyncIteratorPrototype%":Dt,"%AsyncFunction%":Pn,"%AsyncGenerator%":Pn,"%AsyncGeneratorFunction%":Pn,"%AsyncIteratorPrototype%":Pn,"%Atomics%":typeof Atomics=="undefined"?Dt:Atomics,"%BigInt%":typeof BigInt=="undefined"?Dt:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Dt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Dt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Dt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ep,"%eval%":eval,"%EvalError%":bp,"%Float16Array%":typeof Float16Array=="undefined"?Dt:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Dt:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Dt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Dt:FinalizationRegistry,"%Function%":_h,"%GeneratorFunction%":Pn,"%Int8Array%":typeof Int8Array=="undefined"?Dt:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Dt:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Dt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":yn&&se?se(se([][Symbol.iterator]())):Dt,"%JSON%":typeof JSON=="object"?JSON:Dt,"%Map%":typeof Map=="undefined"?Dt:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!yn||!se?Dt:se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":wp,"%Object.getOwnPropertyDescriptor%":_i,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Dt:Promise,"%Proxy%":typeof Proxy=="undefined"?Dt:Proxy,"%RangeError%":Ap,"%ReferenceError%":_p,"%Reflect%":typeof Reflect=="undefined"?Dt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Dt:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!yn||!se?Dt:se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Dt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":yn&&se?se(""[Symbol.iterator]()):Dt,"%Symbol%":yn?Symbol:Dt,"%SyntaxError%":qn,"%ThrowTypeError%":Op,"%TypedArray%":kp,"%TypeError%":Nn,"%Uint8Array%":typeof Uint8Array=="undefined"?Dt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Dt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Dt:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Dt:Uint32Array,"%URIError%":Cp,"%WeakMap%":typeof WeakMap=="undefined"?Dt:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Dt:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Dt:WeakSet,"%Function.prototype.call%":Bi,"%Function.prototype.apply%":Ch,"%Object.defineProperty%":Ip,"%Object.getPrototypeOf%":Pp,"%Math.abs%":Sp,"%Math.floor%":Bp,"%Math.max%":Fp,"%Math.min%":Dp,"%Math.pow%":Mp,"%Math.round%":Tp,"%Math.sign%":Rp,"%Reflect.getPrototypeOf%":zp};if(se)try{null.error}catch(n){var Np=se(se(n));Yr["%Error.prototype%"]=Np}var Lp=function n(t){var e;if(t==="%AsyncFunction%")e=Uo("async function () {}");else if(t==="%GeneratorFunction%")e=Uo("function* () {}");else if(t==="%AsyncGeneratorFunction%")e=Uo("async function* () {}");else if(t==="%AsyncGenerator%"){var r=n("%AsyncGeneratorFunction%");r&&(e=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=n("%AsyncGenerator%");i&&se&&(e=se(i.prototype))}return Yr[t]=e,e},Pc={__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"]},Fi=qs(),Os=vp(),Up=Fi.call(Bi,Array.prototype.concat),$p=Fi.call(Ch,Array.prototype.splice),zc=Fi.call(Bi,String.prototype.replace),Ps=Fi.call(Bi,String.prototype.slice),Hp=Fi.call(Bi,RegExp.prototype.exec),qp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Wp=/\\(\\)?/g,Vp=function(t){var e=Ps(t,0,1),r=Ps(t,-1);if(e==="%"&&r!=="%")throw new qn("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&e!=="%")throw new qn("invalid intrinsic syntax, expected opening `%`");var i=[];return zc(t,qp,function(s,o,a,u){i[i.length]=a?zc(u,Wp,"$1"):o||s}),i},jp=function(t,e){var r=t,i;if(Os(Pc,r)&&(i=Pc[r],r="%"+i[0]+"%"),Os(Yr,r)){var s=Yr[r];if(s===Pn&&(s=Lp(r)),typeof s=="undefined"&&!e)throw new Nn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:s}}throw new qn("intrinsic "+t+" does not exist!")},L0=function(t,e){if(typeof t!="string"||t.length===0)throw new Nn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof e!="boolean")throw new Nn('"allowMissing" argument must be a boolean');if(Hp(/^%?[^%]*%?$/,t)===null)throw new qn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Vp(t),i=r.length>0?r[0]:"",s=jp("%"+i+"%",e),o=s.name,a=s.value,u=!1,c=s.alias;c&&(i=c[0],$p(r,Up([0,1],c)));for(var l=1,f=!0;l<r.length;l+=1){var h=r[l],p=Ps(h,0,1),x=Ps(h,-1);if((p==='"'||p==="'"||p==="`"||x==='"'||x==="'"||x==="`")&&p!==x)throw new qn("property names with quotes must have matching quotes");if((h==="constructor"||!f)&&(u=!0),i+="."+h,o="%"+i+"%",Os(Yr,o))a=Yr[o];else if(a!=null){if(!(h in a)){if(!e)throw new Nn("base intrinsic for "+t+" exists, but the property is not available.");return}if(_i&&l+1>=r.length){var y=_i(a,h);f=!!y,f&&"get"in y&&!("originalValue"in y.get)?a=y.get:a=a[h]}else f=Os(a,h),a=a[h];f&&!u&&(Yr[o]=a)}}return a},Sh=L0,Bh=Ah,Gp=Bh([Sh("%String.prototype.indexOf%")]),Fh=function(t,e){var r=Sh(t,!!e);return typeof r=="function"&&Gp(t,".prototype.")>-1?Bh([r]):r},Xp=L0,Di=Fh,Yp=$s,Kp=jn,kc=Xp("%Map%",!0),Jp=Di("Map.prototype.get",!0),Zp=Di("Map.prototype.set",!0),Qp=Di("Map.prototype.has",!0),tx=Di("Map.prototype.delete",!0),ex=Di("Map.prototype.size",!0),Dh=!!kc&&function(){var t,e={assert:function(r){if(!e.has(r))throw new Kp("Side channel does not contain "+Yp(r))},delete:function(r){if(t){var i=tx(t,r);return ex(t)===0&&(t=void 0),i}return!1},get:function(r){if(t)return Jp(t,r)},has:function(r){return t?Qp(t,r):!1},set:function(r,i){t||(t=new kc),Zp(t,r,i)}};return e},rx=L0,Ws=Fh,nx=$s,Gi=Dh,ix=jn,gn=rx("%WeakMap%",!0),sx=Ws("WeakMap.prototype.get",!0),ox=Ws("WeakMap.prototype.set",!0),ax=Ws("WeakMap.prototype.has",!0),cx=Ws("WeakMap.prototype.delete",!0),ux=gn?function(){var t,e,r={assert:function(i){if(!r.has(i))throw new ix("Side channel does not contain "+nx(i))},delete:function(i){if(gn&&i&&(typeof i=="object"||typeof i=="function")){if(t)return cx(t,i)}else if(Gi&&e)return e.delete(i);return!1},get:function(i){return gn&&i&&(typeof i=="object"||typeof i=="function")&&t?sx(t,i):e&&e.get(i)},has:function(i){return gn&&i&&(typeof i=="object"||typeof i=="function")&&t?ax(t,i):!!e&&e.has(i)},set:function(i,s){gn&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new gn),ox(t,i,s)):Gi&&(e||(e=Gi()),e.set(i,s))}};return r}:Gi,lx=jn,hx=$s,fx=Ud,dx=Dh,px=ux,xx=px||dx||fx,Mh=function(){var t,e={assert:function(r){if(!e.has(r))throw new lx("Side channel does not contain "+hx(r))},delete:function(r){return!!t&&t.delete(r)},get:function(r){return t&&t.get(r)},has:function(r){return!!t&&t.has(r)},set:function(r,i){t||(t=xx()),t.set(r,i)}};return e},mx=String.prototype.replace,yx=/%20/g,Ho={RFC1738:"RFC1738",RFC3986:"RFC3986"},U0={default:Ho.RFC3986,formatters:{RFC1738:function(n){return mx.call(n,yx,"+")},RFC3986:function(n){return String(n)}},RFC1738:Ho.RFC1738,RFC3986:Ho.RFC3986},gx=U0,vx=Mh,qo=Object.prototype.hasOwnProperty,Vr=Array.isArray,Vs=vx(),kn=function(t,e){return Vs.set(t,e),t},jr=function(t){return Vs.has(t)},xi=function(t){return Vs.get(t)},f0=function(t,e){Vs.set(t,e)},Ke=function(){for(var n=[],t=0;t<256;++t)n[n.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return n}(),wx=function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(Vr(r)){for(var i=[],s=0;s<r.length;++s)typeof r[s]!="undefined"&&(i[i.length]=r[s]);e.obj[e.prop]=i}}},Ei=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},i=0;i<t.length;++i)typeof t[i]!="undefined"&&(r[i]=t[i]);return r},Ex=function n(t,e,r){if(!e)return t;if(typeof e!="object"&&typeof e!="function"){if(Vr(t)){var i=t.length;if(r&&typeof r.arrayLimit=="number"&&i>r.arrayLimit)return kn(Ei(t.concat(e),r),i);t[i]=e}else if(t&&typeof t=="object")if(jr(t)){var s=xi(t)+1;t[s]=e,f0(t,s)}else{if(r&&r.strictMerge)return[t,e];(r&&(r.plainObjects||r.allowPrototypes)||!qo.call(Object.prototype,e))&&(t[e]=!0)}else return[t,e];return t}if(!t||typeof t!="object"){if(jr(e)){for(var o=Object.keys(e),a=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},u=0;u<o.length;u++){var c=parseInt(o[u],10);a[c+1]=e[o[u]]}return kn(a,xi(e)+1)}var l=[t].concat(e);return r&&typeof r.arrayLimit=="number"&&l.length>r.arrayLimit?kn(Ei(l,r),l.length-1):l}var f=t;return Vr(t)&&!Vr(e)&&(f=Ei(t,r)),Vr(t)&&Vr(e)?(e.forEach(function(h,p){if(qo.call(t,p)){var x=t[p];x&&typeof x=="object"&&h&&typeof h=="object"?t[p]=n(x,h,r):t[t.length]=h}else t[p]=h}),t):Object.keys(e).reduce(function(h,p){var x=e[p];if(qo.call(h,p)?h[p]=n(h[p],x,r):h[p]=x,jr(e)&&!jr(h)&&kn(h,xi(e)),jr(h)){var y=parseInt(p,10);String(y)===p&&y>=0&&y>xi(h)&&f0(h,y)}return h},f)},bx=function(t,e){return Object.keys(e).reduce(function(r,i){return r[i]=e[i],r},t)},Ax=function(n,t,e){var r=n.replace(/\+/g," ");if(e==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},Wo=1024,_x=function(t,e,r,i,s){if(t.length===0)return t;var o=t;if(typeof t=="symbol"?o=Symbol.prototype.toString.call(t):typeof t!="string"&&(o=String(t)),r==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(p){return"%26%23"+parseInt(p.slice(2),16)+"%3B"});for(var a="",u=0;u<o.length;u+=Wo){for(var c=o.length>=Wo?o.slice(u,u+Wo):o,l=[],f=0;f<c.length;++f){var h=c.charCodeAt(f);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||s===gx.RFC1738&&(h===40||h===41)){l[l.length]=c.charAt(f);continue}if(h<128){l[l.length]=Ke[h];continue}if(h<2048){l[l.length]=Ke[192|h>>6]+Ke[128|h&63];continue}if(h<55296||h>=57344){l[l.length]=Ke[224|h>>12]+Ke[128|h>>6&63]+Ke[128|h&63];continue}f+=1,h=65536+((h&1023)<<10|c.charCodeAt(f)&1023),l[l.length]=Ke[240|h>>18]+Ke[128|h>>12&63]+Ke[128|h>>6&63]+Ke[128|h&63]}a+=l.join("")}return a},Cx=function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],i=0;i<e.length;++i)for(var s=e[i],o=s.obj[s.prop],a=Object.keys(o),u=0;u<a.length;++u){var c=a[u],l=o[c];typeof l=="object"&&l!==null&&r.indexOf(l)===-1&&(e[e.length]={obj:o,prop:c},r[r.length]=l)}return wx(e),t},Sx=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Bx=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Fx=function(t,e,r,i){if(jr(t)){var s=xi(t)+1;return t[s]=e,f0(t,s),t}var o=[].concat(t,e);return o.length>r?kn(Ei(o,{plainObjects:i}),o.length-1):o},Dx=function(t,e){if(Vr(t)){for(var r=[],i=0;i<t.length;i+=1)r[r.length]=e(t[i]);return r}return e(t)},Th={arrayToObject:Ei,assign:bx,combine:Fx,compact:Cx,decode:Ax,encode:_x,isBuffer:Bx,isOverflow:jr,isRegExp:Sx,markOverflow:kn,maybeMap:Dx,merge:Ex},Rh=Mh,As=Th,bi=U0,Mx=Object.prototype.hasOwnProperty,Ih={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},Qe=Array.isArray,Tx=Array.prototype.push,Oh=function(n,t){Tx.apply(n,Qe(t)?t:[t])},Rx=Date.prototype.toISOString,Nc=bi.default,ee={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:As.encode,encodeValuesOnly:!1,filter:void 0,format:Nc,formatter:bi.formatters[Nc],indices:!1,serializeDate:function(t){return Rx.call(t)},skipNulls:!1,strictNullHandling:!1},Ix=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Vo={},Ox=function n(t,e,r,i,s,o,a,u,c,l,f,h,p,x,y,g,A,w){for(var E=t,_=w,C=0,T=!1;(_=_.get(Vo))!==void 0&&!T;){var R=_.get(t);if(C+=1,typeof R!="undefined"){if(R===C)throw new RangeError("Cyclic object value");T=!0}typeof _.get(Vo)=="undefined"&&(C=0)}if(typeof l=="function"?E=l(e,E):E instanceof Date?E=p(E):r==="comma"&&Qe(E)&&(E=As.maybeMap(E,function(at){return at instanceof Date?p(at):at})),E===null){if(o)return c&&!g?c(e,ee.encoder,A,"key",x):e;E=""}if(Ix(E)||As.isBuffer(E)){if(c){var N=g?e:c(e,ee.encoder,A,"key",x);return[y(N)+"="+y(c(E,ee.encoder,A,"value",x))]}return[y(e)+"="+y(String(E))]}var Y=[];if(typeof E=="undefined")return Y;var I;if(r==="comma"&&Qe(E))g&&c&&(E=As.maybeMap(E,c)),I=[{value:E.length>0?E.join(",")||null:void 0}];else if(Qe(l))I=l;else{var O=Object.keys(E);I=f?O.sort(f):O}var q=u?String(e).replace(/\./g,"%2E"):String(e),j=i&&Qe(E)&&E.length===1?q+"[]":q;if(s&&Qe(E)&&E.length===0)return j+"[]";for(var J=0;J<I.length;++J){var G=I[J],Q=typeof G=="object"&&G&&typeof G.value!="undefined"?G.value:E[G];if(!(a&&Q===null)){var ot=h&&u?String(G).replace(/\./g,"%2E"):String(G),it=Qe(E)?typeof r=="function"?r(j,ot):j:j+(h?"."+ot:"["+ot+"]");w.set(t,C);var ut=Rh();ut.set(Vo,w),Oh(Y,n(Q,it,r,i,s,o,a,u,r==="comma"&&g&&Qe(E)?null:c,l,f,h,p,x,y,g,A,ut))}}return Y},Px=function(t){if(!t)return ee;if(typeof t.allowEmptyArrays!="undefined"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys!="undefined"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder!="undefined"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var e=t.charset||ee.charset;if(typeof t.charset!="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=bi.default;if(typeof t.format!="undefined"){if(!Mx.call(bi.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var i=bi.formatters[r],s=ee.filter;(typeof t.filter=="function"||Qe(t.filter))&&(s=t.filter);var o;if(t.arrayFormat in Ih?o=t.arrayFormat:"indices"in t?o=t.indices?"indices":"repeat":o=ee.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof t.allowDots=="undefined"?t.encodeDotInKeys===!0?!0:ee.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:ee.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:ee.allowEmptyArrays,arrayFormat:o,charset:e,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ee.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter=="undefined"?ee.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:ee.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:ee.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:ee.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:ee.encodeValuesOnly,filter:s,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:ee.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:ee.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ee.strictNullHandling}},zx=function(n,t){var e=n,r=Px(t),i,s;typeof r.filter=="function"?(s=r.filter,e=s("",e)):Qe(r.filter)&&(s=r.filter,i=s);var o=[];if(typeof e!="object"||e===null)return"";var a=Ih[r.arrayFormat],u=a==="comma"&&r.commaRoundTrip;i||(i=Object.keys(e)),r.sort&&i.sort(r.sort);for(var c=Rh(),l=0;l<i.length;++l){var f=i[l],h=e[f];r.skipNulls&&h===null||Oh(o,Ox(h,f,a,u,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var p=o.join(r.delimiter),x=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),p.length>0?x+p:""},nr=Th,_s=Object.prototype.hasOwnProperty,jo=Array.isArray,Gt={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:nr.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},kx=function(n){return n.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})},Ph=function(n,t,e){if(n&&typeof n=="string"&&t.comma&&n.indexOf(",")>-1)return n.split(",");if(t.throwOnLimitExceeded&&e>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");return n},Nx="utf8=%26%2310003%3B",Lx="utf8=%E2%9C%93",Ux=function(t,e){var r={__proto__:null},i=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=e.parameterLimit===1/0?void 0:e.parameterLimit,o=i.split(e.delimiter,e.throwOnLimitExceeded&&typeof s!="undefined"?s+1:s);if(e.throwOnLimitExceeded&&typeof s!="undefined"&&o.length>s)throw new RangeError("Parameter limit exceeded. Only "+s+" parameter"+(s===1?"":"s")+" allowed.");var a=-1,u,c=e.charset;if(e.charsetSentinel)for(u=0;u<o.length;++u)o[u].indexOf("utf8=")===0&&(o[u]===Lx?c="utf-8":o[u]===Nx&&(c="iso-8859-1"),a=u,u=o.length);for(u=0;u<o.length;++u)if(u!==a){var l=o[u],f=l.indexOf("]="),h=f===-1?l.indexOf("="):f+1,p,x;if(h===-1?(p=e.decoder(l,Gt.decoder,c,"key"),x=e.strictNullHandling?null:""):(p=e.decoder(l.slice(0,h),Gt.decoder,c,"key"),p!==null&&(x=nr.maybeMap(Ph(l.slice(h+1),e,jo(r[p])?r[p].length:0),function(g){return e.decoder(g,Gt.decoder,c,"value")}))),x&&e.interpretNumericEntities&&c==="iso-8859-1"&&(x=kx(String(x))),l.indexOf("[]=")>-1&&(x=jo(x)?[x]:x),e.comma&&jo(x)&&x.length>e.arrayLimit){if(e.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");x=nr.combine([],x,e.arrayLimit,e.plainObjects)}if(p!==null){var y=_s.call(r,p);y&&(e.duplicates==="combine"||l.indexOf("[]=")>-1)?r[p]=nr.combine(r[p],x,e.arrayLimit,e.plainObjects):(!y||e.duplicates==="last")&&(r[p]=x)}}return r},$x=function(n,t,e,r){var i=0;if(n.length>0&&n[n.length-1]==="[]"){var s=n.slice(0,-1).join("");i=Array.isArray(t)&&t[s]?t[s].length:0}for(var o=r?t:Ph(t,e,i),a=n.length-1;a>=0;--a){var u,c=n[a];if(c==="[]"&&e.parseArrays)nr.isOverflow(o)?u=o:u=e.allowEmptyArrays&&(o===""||e.strictNullHandling&&o===null)?[]:nr.combine([],o,e.arrayLimit,e.plainObjects);else{u=e.plainObjects?{__proto__:null}:{};var l=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,f=e.decodeDotInKeys?l.replace(/%2E/g,"."):l,h=parseInt(f,10),p=!isNaN(h)&&c!==f&&String(h)===f&&h>=0&&e.parseArrays;if(!e.parseArrays&&f==="")u={0:o};else if(p&&h<e.arrayLimit)u=[],u[h]=o;else{if(p&&e.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");p?(u[h]=o,nr.markOverflow(u,h)):f!=="__proto__"&&(u[f]=o)}}o=u}return o},Hx=function(t,e){var r=e.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t;if(e.depth<=0)return!e.plainObjects&&_s.call(Object.prototype,r)&&!e.allowPrototypes?void 0:[r];var i=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,o=i.exec(r),a=o?r.slice(0,o.index):r,u=[];if(a){if(!e.plainObjects&&_s.call(Object.prototype,a)&&!e.allowPrototypes)return;u[u.length]=a}for(var c=0;(o=s.exec(r))!==null&&c<e.depth;){c+=1;var l=o[1].slice(1,-1);if(!e.plainObjects&&_s.call(Object.prototype,l)&&!e.allowPrototypes)return;u[u.length]=o[1]}if(o){if(e.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+e.depth+" and strictDepth is true");u[u.length]="["+r.slice(o.index)+"]"}return u},qx=function(t,e,r,i){if(t){var s=Hx(t,r);if(s)return $x(s,e,r,i)}},Wx=function(t){if(!t)return Gt;if(typeof t.allowEmptyArrays!="undefined"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys!="undefined"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder!="undefined"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset!="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof t.throwOnLimitExceeded!="undefined"&&typeof t.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=typeof t.charset=="undefined"?Gt.charset:t.charset,r=typeof t.duplicates=="undefined"?Gt.duplicates:t.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots=="undefined"?t.decodeDotInKeys===!0?!0:Gt.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Gt.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Gt.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Gt.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Gt.arrayLimit,charset:e,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Gt.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Gt.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Gt.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Gt.decoder,delimiter:typeof t.delimiter=="string"||nr.isRegExp(t.delimiter)?t.delimiter:Gt.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Gt.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Gt.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Gt.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Gt.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Gt.strictDepth,strictMerge:typeof t.strictMerge=="boolean"?!!t.strictMerge:Gt.strictMerge,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Gt.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded=="boolean"?t.throwOnLimitExceeded:!1}},Vx=function(n,t){var e=Wx(t);if(n===""||n===null||typeof n=="undefined")return e.plainObjects?{__proto__:null}:{};for(var r=typeof n=="string"?Ux(n,e):n,i=e.plainObjects?{__proto__:null}:{},s=Object.keys(r),o=0;o<s.length;++o){var a=s[o],u=qx(a,r[a],e,typeof n=="string");i=nr.merge(i,u,e)}return e.allowSparse===!0?i:nr.compact(i)},jx=zx,Gx=Vx,Xx=U0,Yx={formats:Xx,parse:Gx,stringify:jx};const Kx=O0(Yx);function zh(n,t){return function(){return n.apply(t,arguments)}}const{toString:Jx}=Object.prototype,{getPrototypeOf:js}=Object,{iterator:Gs,toStringTag:kh}=Symbol,Xs=(n=>t=>{const e=Jx.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ve=n=>(n=n.toLowerCase(),t=>Xs(t)===n),Ys=n=>t=>typeof t===n,{isArray:Gn}=Array,Wn=Ys("undefined");function Mi(n){return n!==null&&!Wn(n)&&n.constructor!==null&&!Wn(n.constructor)&&ve(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Nh=Ve("ArrayBuffer");function Zx(n){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Nh(n.buffer),t}const Qx=Ys("string"),ve=Ys("function"),Lh=Ys("number"),Ti=n=>n!==null&&typeof n=="object",t1=n=>n===!0||n===!1,Cs=n=>{if(Xs(n)!=="object")return!1;const t=js(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(kh in n)&&!(Gs in n)},e1=n=>{if(!Ti(n)||Mi(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch(t){return!1}},r1=Ve("Date"),n1=Ve("File"),i1=n=>!!(n&&typeof n.uri!="undefined"),s1=n=>n&&typeof n.getParts!="undefined",o1=Ve("Blob"),a1=Ve("FileList"),c1=n=>Ti(n)&&ve(n.pipe);function u1(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const Lc=u1(),Uc=typeof Lc.FormData!="undefined"?Lc.FormData:void 0,l1=n=>{if(!n)return!1;if(Uc&&n instanceof Uc)return!0;const t=js(n);if(!t||t===Object.prototype||!ve(n.append))return!1;const e=Xs(n);return e==="formdata"||e==="object"&&ve(n.toString)&&n.toString()==="[object FormData]"},h1=Ve("URLSearchParams"),[f1,d1,p1,x1]=["ReadableStream","Request","Response","Headers"].map(Ve),m1=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ri(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n=="undefined")return;let r,i;if(typeof n!="object"&&(n=[n]),Gn(n))for(r=0,i=n.length;r<i;r++)t.call(null,n[r],r,n);else{if(Mi(n))return;const s=e?Object.getOwnPropertyNames(n):Object.keys(n),o=s.length;let a;for(r=0;r<o;r++)a=s[r],t.call(null,n[a],a,n)}}function Uh(n,t){if(Mi(n))return null;t=t.toLowerCase();const e=Object.keys(n);let r=e.length,i;for(;r-- >0;)if(i=e[r],t===i.toLowerCase())return i;return null}const Gr=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,$h=n=>!Wn(n)&&n!==Gr;function d0(...n){const{caseless:t,skipUndefined:e}=$h(this)&&this||{},r={},i=(s,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const a=t&&Uh(r,o)||o,u=p0(r,a)?r[a]:void 0;Cs(u)&&Cs(s)?r[a]=d0(u,s):Cs(s)?r[a]=d0({},s):Gn(s)?r[a]=s.slice():(!e||!Wn(s))&&(r[a]=s)};for(let s=0,o=n.length;s<o;s++)n[s]&&Ri(n[s],i);return r}const y1=(n,t,e,{allOwnKeys:r}={})=>(Ri(t,(i,s)=>{e&&ve(i)?Object.defineProperty(n,s,{__proto__:null,value:zh(i,e),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,s,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),n),g1=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),v1=(n,t,e,r)=>{n.prototype=Object.create(t.prototype,r),Object.defineProperty(n.prototype,"constructor",{__proto__:null,value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{__proto__:null,value:t.prototype}),e&&Object.assign(n.prototype,e)},w1=(n,t,e,r)=>{let i,s,o;const a={};if(t=t||{},n==null)return t;do{for(i=Object.getOwnPropertyNames(n),s=i.length;s-- >0;)o=i[s],(!r||r(o,n,t))&&!a[o]&&(t[o]=n[o],a[o]=!0);n=e!==!1&&js(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},E1=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const r=n.indexOf(t,e);return r!==-1&&r===e},b1=n=>{if(!n)return null;if(Gn(n))return n;let t=n.length;if(!Lh(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},A1=(n=>t=>n&&t instanceof n)(typeof Uint8Array!="undefined"&&js(Uint8Array)),_1=(n,t)=>{const r=(n&&n[Gs]).call(n);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(n,s[0],s[1])}},C1=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},S1=Ve("HTMLFormElement"),B1=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,r,i){return r.toUpperCase()+i}),p0=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),F1=Ve("RegExp"),Hh=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};Ri(e,(i,s)=>{let o;(o=t(i,s,n))!==!1&&(r[s]=o||i)}),Object.defineProperties(n,r)},D1=n=>{Hh(n,(t,e)=>{if(ve(n)&&["arguments","caller","callee"].includes(e))return!1;const r=n[e];if(ve(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},M1=(n,t)=>{const e={},r=i=>{i.forEach(s=>{e[s]=!0})};return Gn(n)?r(n):r(String(n).split(t)),e},T1=()=>{},R1=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function I1(n){return!!(n&&ve(n.append)&&n[kh]==="FormData"&&n[Gs])}const O1=n=>{const t=new Array(10),e=(r,i)=>{if(Ti(r)){if(t.indexOf(r)>=0)return;if(Mi(r))return r;if(!("toJSON"in r)){t[i]=r;const s=Gn(r)?[]:{};return Ri(r,(o,a)=>{const u=e(o,i+1);!Wn(u)&&(s[a]=u)}),t[i]=void 0,s}}return r};return e(n,0)},P1=Ve("AsyncFunction"),z1=n=>n&&(Ti(n)||ve(n))&&ve(n.then)&&ve(n.catch),qh=((n,t)=>n?setImmediate:t?((e,r)=>(Gr.addEventListener("message",({source:i,data:s})=>{i===Gr&&s===e&&r.length&&r.shift()()},!1),i=>{r.push(i),Gr.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ve(Gr.postMessage)),k1=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Gr):typeof process!="undefined"&&process.nextTick||qh,N1=n=>n!=null&&ve(n[Gs]),V={isArray:Gn,isArrayBuffer:Nh,isBuffer:Mi,isFormData:l1,isArrayBufferView:Zx,isString:Qx,isNumber:Lh,isBoolean:t1,isObject:Ti,isPlainObject:Cs,isEmptyObject:e1,isReadableStream:f1,isRequest:d1,isResponse:p1,isHeaders:x1,isUndefined:Wn,isDate:r1,isFile:n1,isReactNativeBlob:i1,isReactNative:s1,isBlob:o1,isRegExp:F1,isFunction:ve,isStream:c1,isURLSearchParams:h1,isTypedArray:A1,isFileList:a1,forEach:Ri,merge:d0,extend:y1,trim:m1,stripBOM:g1,inherits:v1,toFlatObject:w1,kindOf:Xs,kindOfTest:Ve,endsWith:E1,toArray:b1,forEachEntry:_1,matchAll:C1,isHTMLForm:S1,hasOwnProperty:p0,hasOwnProp:p0,reduceDescriptors:Hh,freezeMethods:D1,toObjectSet:M1,toCamelCase:B1,noop:T1,toFiniteNumber:R1,findKey:Uh,global:Gr,isContextDefined:$h,isSpecCompliantForm:I1,toJSONObject:O1,isAsyncFn:P1,isThenable:z1,setImmediate:qh,asap:k1,isIterable:N1},L1=V.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"]),U1=n=>{const t={};let e,r,i;return n&&n.split(`
|
|
5
|
-
`).forEach(function(
|
|
6
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[$c]=this[$c]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=si(o);r[a]||(G1(i,o),r[a]=!0)}return V.isArray(t)?t.forEach(s):s(t),this}};xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(xe.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}});V.freezeMethods(xe);const X1="[REDACTED ****]";function Y1(n){if(V.hasOwnProp(n,"toJSON"))return!0;let t=Object.getPrototypeOf(n);for(;t&&t!==Object.prototype;){if(V.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function K1(n,t){const e=new Set(t.map(s=>String(s).toLowerCase())),r=[],i=s=>{if(s===null||typeof s!="object"||V.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof xe&&(s=s.toJSON()),r.push(s);let o;if(V.isArray(s))o=[],s.forEach((a,u)=>{const c=i(a);V.isUndefined(c)||(o[u]=c)});else{if(!V.isPlainObject(s)&&Y1(s))return r.pop(),s;o=Object.create(null);for(const[a,u]of Object.entries(s)){const c=e.has(a.toLowerCase())?X1:i(u);V.isUndefined(c)||(o[a]=c)}}return r.pop(),o};return i(n)}let vt=class Wh extends Error{static from(t,e,r,i,s,o){const a=new Wh(t.message,e||t.code,r,i,s);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),o&&Object.assign(a,o),a}constructor(t,e,r,i,s){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,e&&(this.code=e),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,e=t&&V.hasOwnProp(t,"redact")?t.redact:void 0,r=V.isArray(e)&&e.length>0?K1(t,e):V.toJSONObject(t);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:r,code:this.code,status:this.status}}};vt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";vt.ERR_BAD_OPTION="ERR_BAD_OPTION";vt.ECONNABORTED="ECONNABORTED";vt.ETIMEDOUT="ETIMEDOUT";vt.ECONNREFUSED="ECONNREFUSED";vt.ERR_NETWORK="ERR_NETWORK";vt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";vt.ERR_DEPRECATED="ERR_DEPRECATED";vt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";vt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";vt.ERR_CANCELED="ERR_CANCELED";vt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";vt.ERR_INVALID_URL="ERR_INVALID_URL";vt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const J1=null;function x0(n){return V.isPlainObject(n)||V.isArray(n)}function Vh(n){return V.endsWith(n,"[]")?n.slice(0,-2):n}function Xo(n,t,e){return n?n.concat(t).map(function(i,s){return i=Vh(i),!e&&s?"["+i+"]":i}).join(e?".":""):t}function Z1(n){return V.isArray(n)&&!n.some(x0)}const Q1=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function Ks(n,t,e){if(!V.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=V.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,A){return!V.isUndefined(A[g])});const r=e.metaTokens,i=e.visitor||f,s=e.dots,o=e.indexes,a=e.Blob||typeof Blob!="undefined"&&Blob,u=e.maxDepth===void 0?100:e.maxDepth,c=a&&V.isSpecCompliantForm(t);if(!V.isFunction(i))throw new TypeError("visitor must be a function");function l(y){if(y===null)return"";if(V.isDate(y))return y.toISOString();if(V.isBoolean(y))return y.toString();if(!c&&V.isBlob(y))throw new vt("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(y)||V.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,g,A){let w=y;if(V.isReactNative(t)&&V.isReactNativeBlob(y))return t.append(Xo(A,g,s),l(y)),!1;if(y&&!A&&typeof y=="object"){if(V.endsWith(g,"{}"))g=r?g:g.slice(0,-2),y=JSON.stringify(y);else if(V.isArray(y)&&Z1(y)||(V.isFileList(y)||V.endsWith(g,"[]"))&&(w=V.toArray(y)))return g=Vh(g),w.forEach(function(_,C){!(V.isUndefined(_)||_===null)&&t.append(o===!0?Xo([g],C,s):o===null?g:g+"[]",l(_))}),!1}return x0(y)?!0:(t.append(Xo(A,g,s),l(y)),!1)}const h=[],p=Object.assign(Q1,{defaultVisitor:f,convertValue:l,isVisitable:x0});function x(y,g,A=0){if(!V.isUndefined(y)){if(A>u)throw new vt("Object is too deeply nested ("+A+" levels). Max depth: "+u,vt.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(y),V.forEach(y,function(E,_){(!(V.isUndefined(E)||E===null)&&i.call(t,E,V.isString(_)?_.trim():_,g,p))===!0&&x(E,g?g.concat(_):[_],A+1)}),h.pop()}}if(!V.isObject(n))throw new TypeError("data must be an object");return x(n),t}function Hc(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(n).replace(/[!'()~]|%20/g,function(r){return t[r]})}function $0(n,t){this._pairs=[],n&&Ks(n,this,t)}const jh=$0.prototype;jh.append=function(t,e){this._pairs.push([t,e])};jh.toString=function(t){const e=t?function(r){return t.call(this,r,Hc)}:Hc;return this._pairs.map(function(i){return e(i[0])+"="+e(i[1])},"").join("&")};function tm(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Gh(n,t,e){if(!t)return n;const r=e&&e.encode||tm,i=V.isFunction(e)?{serialize:e}:e,s=i&&i.serialize;let o;if(s?o=s(t,i):o=V.isURLSearchParams(t)?t.toString():new $0(t,i).toString(r),o){const a=n.indexOf("#");a!==-1&&(n=n.slice(0,a)),n+=(n.indexOf("?")===-1?"?":"&")+o}return n}class qc{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){V.forEach(this.handlers,function(r){r!==null&&t(r)})}}const H0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},em=typeof URLSearchParams!="undefined"?URLSearchParams:$0,rm=typeof FormData!="undefined"?FormData:null,nm=typeof Blob!="undefined"?Blob:null,im={isBrowser:!0,classes:{URLSearchParams:em,FormData:rm,Blob:nm},protocols:["http","https","file","blob","url","data"]},q0=typeof window!="undefined"&&typeof document!="undefined",m0=typeof navigator=="object"&&navigator||void 0,sm=q0&&(!m0||["ReactNative","NativeScript","NS"].indexOf(m0.product)<0),om=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",am=q0&&window.location.href||"http://localhost",cm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:q0,hasStandardBrowserEnv:sm,hasStandardBrowserWebWorkerEnv:om,navigator:m0,origin:am},Symbol.toStringTag,{value:"Module"})),de=Lt(Lt({},cm),im);function um(n,t){return Ks(n,new de.classes.URLSearchParams,Lt({visitor:function(e,r,i,s){return de.isNode&&V.isBuffer(e)?(this.append(r,e.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function lm(n){return V.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hm(n){const t={},e=Object.keys(n);let r;const i=e.length;let s;for(r=0;r<i;r++)s=e[r],t[s]=n[s];return t}function Xh(n){function t(e,r,i,s){let o=e[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),u=s>=e.length;return o=!o&&V.isArray(i)?i.length:o,u?(V.hasOwnProp(i,o)?i[o]=V.isArray(i[o])?i[o].concat(r):[i[o],r]:i[o]=r,!a):((!i[o]||!V.isObject(i[o]))&&(i[o]=[]),t(e,r,i[o],s)&&V.isArray(i[o])&&(i[o]=hm(i[o])),!a)}if(V.isFormData(n)&&V.isFunction(n.entries)){const e={};return V.forEachEntry(n,(r,i)=>{t(lm(r),i,e,0)}),e}return null}const vn=(n,t)=>n!=null&&V.hasOwnProp(n,t)?n[t]:void 0;function fm(n,t,e){if(V.isString(n))try{return(t||JSON.parse)(n),V.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const Ii={transitional:H0,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",i=r.indexOf("application/json")>-1,s=V.isObject(t);if(s&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return i?JSON.stringify(Xh(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t)||V.isReadableStream(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){const u=vn(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return um(t,u).toString();if((a=V.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=vn(this,"env"),l=c&&c.FormData;return Ks(a?{"files[]":t}:t,l&&new l,u)}}return s||i?(e.setContentType("application/json",!1),fm(t)):t}],transformResponse:[function(t){const e=vn(this,"transitional")||Ii.transitional,r=e&&e.forcedJSONParsing,i=vn(this,"responseType"),s=i==="json";if(V.isResponse(t)||V.isReadableStream(t))return t;if(t&&V.isString(t)&&(r&&!i||s)){const a=!(e&&e.silentJSONParsing)&&s;try{return JSON.parse(t,vn(this,"parseReviver"))}catch(u){if(a)throw u.name==="SyntaxError"?vt.from(u,vt.ERR_BAD_RESPONSE,this,null,vn(this,"response")):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:de.classes.FormData,Blob:de.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch","query"],n=>{Ii.headers[n]={}});function Yo(n,t){const e=this||Ii,r=t||e,i=xe.from(r.headers);let s=r.data;return V.forEach(n,function(a){s=a.call(e,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Yh(n){return!!(n&&n.__CANCEL__)}let Oi=class extends vt{constructor(t,e,r){super(t==null?"canceled":t,vt.ERR_CANCELED,e,r),this.name="CanceledError",this.__CANCEL__=!0}};function Kh(n,t,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?n(e):t(new vt("Request failed with status code "+e.status,e.status>=400&&e.status<500?vt.ERR_BAD_REQUEST:vt.ERR_BAD_RESPONSE,e.config,e.request,e))}function dm(n){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n);return t&&t[1]||""}function pm(n,t){n=n||10;const e=new Array(n),r=new Array(n);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),l=r[s];o||(o=c),e[i]=u,r[i]=c;let f=s,h=0;for(;f!==i;)h+=e[f++],f=f%n;if(i=(i+1)%n,i===s&&(s=(s+1)%n),c-o<t)return;const p=l&&c-l;return p?Math.round(h*1e3/p):void 0}}function xm(n,t){let e=0,r=1e3/t,i,s;const o=(c,l=Date.now())=>{e=l,i=null,s&&(clearTimeout(s),s=null),n(...c)};return[(...c)=>{const l=Date.now(),f=l-e;f>=r?o(c,l):(i=c,s||(s=setTimeout(()=>{s=null,o(i)},r-f)))},()=>i&&o(i)]}const zs=(n,t,e=3)=>{let r=0;const i=pm(50,250);return xm(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,u=a!=null?Math.min(o,a):o,c=Math.max(0,u-r),l=i(c);r=Math.max(r,u);const f={loaded:u,total:a,progress:a?u/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a?(a-u)/l:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};n(f)},e)},Wc=(n,t)=>{const e=n!=null;return[r=>t[0]({lengthComputable:e,total:n,loaded:r}),t[1]]},Vc=n=>(...t)=>V.asap(()=>n(...t)),mm=de.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,de.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(de.origin),de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent)):()=>!0,ym=de.hasStandardBrowserEnv?{write(n,t,e,r,i,s,o){if(typeof document=="undefined")return;const a=[`${n}=${encodeURIComponent(t)}`];V.isNumber(e)&&a.push(`expires=${new Date(e).toUTCString()}`),V.isString(r)&&a.push(`path=${r}`),V.isString(i)&&a.push(`domain=${i}`),s===!0&&a.push("secure"),V.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(n){if(typeof document=="undefined")return null;const t=document.cookie.split(";");for(let e=0;e<t.length;e++){const r=t[e].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===n)return decodeURIComponent(r.slice(i+1))}return null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function gm(n){return typeof n!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function vm(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function Jh(n,t,e){let r=!gm(t);return n&&(r||e===!1)?vm(n,t):t}const jc=n=>n instanceof xe?Lt({},n):n;function Zr(n,t){t=t||{};const e=Object.create(null);Object.defineProperty(e,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(c,l,f,h){return V.isPlainObject(c)&&V.isPlainObject(l)?V.merge.call({caseless:h},c,l):V.isPlainObject(l)?V.merge({},l):V.isArray(l)?l.slice():l}function i(c,l,f,h){if(V.isUndefined(l)){if(!V.isUndefined(c))return r(void 0,c,f,h)}else return r(c,l,f,h)}function s(c,l){if(!V.isUndefined(l))return r(void 0,l)}function o(c,l){if(V.isUndefined(l)){if(!V.isUndefined(c))return r(void 0,c)}else return r(void 0,l)}function a(c,l,f){if(V.hasOwnProp(t,f))return r(c,l);if(V.hasOwnProp(n,f))return r(void 0,c)}const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:a,headers:(c,l,f)=>i(jc(c),jc(l),f,!0)};return V.forEach(Object.keys(Lt(Lt({},n),t)),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const f=V.hasOwnProp(u,l)?u[l]:i,h=V.hasOwnProp(n,l)?n[l]:void 0,p=V.hasOwnProp(t,l)?t[l]:void 0,x=f(h,p,l);V.isUndefined(x)&&f!==a||(e[l]=x)}),e}const wm=["content-type","content-length"];function Em(n,t,e){if(e!=="content-only"){n.set(t);return}Object.entries(t).forEach(([r,i])=>{wm.includes(r.toLowerCase())&&n.set(r,i)})}const bm=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(t,e)=>String.fromCharCode(parseInt(e,16))),Zh=n=>{const t=Zr({},n),e=h=>V.hasOwnProp(t,h)?t[h]:void 0,r=e("data");let i=e("withXSRFToken");const s=e("xsrfHeaderName"),o=e("xsrfCookieName");let a=e("headers");const u=e("auth"),c=e("baseURL"),l=e("allowAbsoluteUrls"),f=e("url");if(t.headers=a=xe.from(a),t.url=Gh(Jh(c,f,l),n.params,n.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?bm(u.password):""))),V.isFormData(r)&&(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):V.isFunction(r.getHeaders)&&Em(a,r.getHeaders(),e("formDataHeaderPolicy"))),de.hasStandardBrowserEnv&&(V.isFunction(i)&&(i=i(t)),i===!0||i==null&&mm(t.url))){const p=s&&o&&ym.read(o);p&&a.set(s,p)}return t},Am=typeof XMLHttpRequest!="undefined",_m=Am&&function(n){return new Promise(function(e,r){const i=Zh(n);let s=i.data;const o=xe.from(i.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=i,l,f,h,p,x;function y(){p&&p(),x&&x(),i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function A(){if(!g)return;const E=xe.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),C={data:!a||a==="text"||a==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:E,config:n,request:g};Kh(function(R){e(R),y()},function(R){r(R),y()},C),g=null}"onloadend"in g?g.onloadend=A:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.startsWith("file:"))||setTimeout(A)},g.onabort=function(){g&&(r(new vt("Request aborted",vt.ECONNABORTED,n,g)),y(),g=null)},g.onerror=function(_){const C=_&&_.message?_.message:"Network Error",T=new vt(C,vt.ERR_NETWORK,n,g);T.event=_||null,r(T),y(),g=null},g.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||H0;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new vt(_,C.clarifyTimeoutError?vt.ETIMEDOUT:vt.ECONNABORTED,n,g)),y(),g=null},s===void 0&&o.setContentType(null),"setRequestHeader"in g&&V.forEach(o.toJSON(),function(_,C){g.setRequestHeader(C,_)}),V.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),a&&a!=="json"&&(g.responseType=i.responseType),c&&([h,x]=zs(c,!0),g.addEventListener("progress",h)),u&&g.upload&&([f,p]=zs(u),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(l=E=>{g&&(r(!E||E.type?new Oi(null,n,g):E),g.abort(),y(),g=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const w=dm(i.url);if(w&&!de.protocols.includes(w)){r(new vt("Unsupported protocol "+w+":",vt.ERR_BAD_REQUEST,n));return}g.send(s||null)})},Cm=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let r=new AbortController,i;const s=function(c){if(!i){i=!0,a();const l=c instanceof Error?c:this.reason;r.abort(l instanceof vt?l:new Oi(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,s(new vt(`timeout of ${t}ms exceeded`,vt.ETIMEDOUT))},t);const a=()=>{n&&(o&&clearTimeout(o),o=null,n.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),n=null)};n.forEach(c=>c.addEventListener("abort",s));const{signal:u}=r;return u.unsubscribe=()=>V.asap(a),u}},Sm=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let r=0,i;for(;r<e;)i=r+t,yield n.slice(r,i),r=i},Bm=function(n,t){return Ao(this,null,function*(){try{for(var e=hc(Fm(n)),r,i,s;r=!(i=yield new Lr(e.next())).done;r=!1){const o=i.value;yield*_o(Sm(o,t))}}catch(i){s=[i]}finally{try{r&&(i=e.return)&&(yield new Lr(i.call(e)))}finally{if(s)throw s[0]}}})},Fm=function(n){return Ao(this,null,function*(){if(n[Symbol.asyncIterator]){yield*_o(n);return}const t=n.getReader();try{for(;;){const{done:e,value:r}=yield new Lr(t.read());if(e)break;yield r}}finally{yield new Lr(t.cancel())}})},Gc=(n,t,e,r)=>{const i=Bm(n,t);let s=0,o,a=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({pull(c){return Ct(this,null,function*(){try{const{done:l,value:f}=yield i.next();if(l){a(),c.close();return}let h=f.byteLength;if(e){let p=s+=h;e(p)}c.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}})},cancel(c){return a(c),i.return()}},{highWaterMark:2})};function Dm(n){if(!n||typeof n!="string"||!n.startsWith("data:"))return 0;const t=n.indexOf(",");if(t<0)return 0;const e=n.slice(5,t),r=n.slice(t+1);if(/;base64/i.test(e)){let o=r.length;const a=r.length;for(let p=0;p<a;p++)if(r.charCodeAt(p)===37&&p+2<a){const x=r.charCodeAt(p+1),y=r.charCodeAt(p+2);(x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102)&&(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102)&&(o-=2,p+=2)}let u=0,c=a-1;const l=p=>p>=2&&r.charCodeAt(p-2)===37&&r.charCodeAt(p-1)===51&&(r.charCodeAt(p)===68||r.charCodeAt(p)===100);c>=0&&(r.charCodeAt(c)===61?(u++,c--):l(c)&&(u++,c-=3)),u===1&&c>=0&&(r.charCodeAt(c)===61||l(c))&&u++;const h=Math.floor(o/4)*3-(u||0);return h>0?h:0}if(typeof Buffer!="undefined"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let s=0;for(let o=0,a=r.length;o<a;o++){const u=r.charCodeAt(o);if(u<128)s+=1;else if(u<2048)s+=2;else if(u>=55296&&u<=56319&&o+1<a){const c=r.charCodeAt(o+1);c>=56320&&c<=57343?(s+=4,o++):s+=3}else s+=3}return s}const W0="1.16.0",Xc=64*1024,{isFunction:Xi}=V,Yc=(n,...t)=>{try{return!!n(...t)}catch(e){return!1}},Mm=n=>{var A;const t=(A=V.global)!=null?A:globalThis,{ReadableStream:e,TextEncoder:r}=t;n=V.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},n);const{fetch:i,Request:s,Response:o}=n,a=i?Xi(i):typeof fetch=="function",u=Xi(s),c=Xi(o);if(!a)return!1;const l=a&&Xi(e),f=a&&(typeof r=="function"?(w=>E=>w.encode(E))(new r):w=>Ct(exports,null,function*(){return new Uint8Array(yield new s(w).arrayBuffer())})),h=u&&l&&Yc(()=>{let w=!1;const E=new s(de.origin,{body:new e,method:"POST",get duplex(){return w=!0,"half"}}),_=E.headers.has("Content-Type");return E.body!=null&&E.body.cancel(),w&&!_}),p=c&&l&&Yc(()=>V.isReadableStream(new o("").body)),x={stream:p&&(w=>w.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!x[w]&&(x[w]=(E,_)=>{let C=E&&E[w];if(C)return C.call(E);throw new vt(`Response type '${w}' is not supported`,vt.ERR_NOT_SUPPORT,_)})});const y=w=>Ct(exports,null,function*(){if(w==null)return 0;if(V.isBlob(w))return w.size;if(V.isSpecCompliantForm(w))return(yield new s(de.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(V.isArrayBufferView(w)||V.isArrayBuffer(w))return w.byteLength;if(V.isURLSearchParams(w)&&(w=w+""),V.isString(w))return(yield f(w)).byteLength}),g=(w,E)=>Ct(exports,null,function*(){const _=V.toFiniteNumber(w.getContentLength());return _==null?y(E):_});return w=>Ct(exports,null,function*(){let{url:E,method:_,data:C,signal:T,cancelToken:R,timeout:N,onDownloadProgress:Y,onUploadProgress:I,responseType:O,headers:q,withCredentials:j="same-origin",fetchOptions:J,maxContentLength:G,maxBodyLength:Q}=Zh(w);const ot=V.isNumber(G)&&G>-1,it=V.isNumber(Q)&&Q>-1;let ut=i||fetch;O=O?(O+"").toLowerCase():"text";let at=Cm([T,R&&R.toAbortSignal()],N),U=null;const X=at&&at.unsubscribe&&(()=>{at.unsubscribe()});let tt;try{if(ot&&typeof E=="string"&&E.startsWith("data:")&&Dm(E)>G)throw new vt("maxContentLength size of "+G+" exceeded",vt.ERR_BAD_RESPONSE,w,U);if(it&&_!=="get"&&_!=="head"){const bt=yield g(q,C);if(typeof bt=="number"&&isFinite(bt)&&bt>Q)throw new vt("Request body larger than maxBodyLength limit",vt.ERR_BAD_REQUEST,w,U)}if(I&&h&&_!=="get"&&_!=="head"&&(tt=yield g(q,C))!==0){let bt=new s(E,{method:"POST",body:C,duplex:"half"}),Mt;if(V.isFormData(C)&&(Mt=bt.headers.get("content-type"))&&q.setContentType(Mt),bt.body){const[qt,__$t__]=Wc(tt,zs(Vc(I)));C=Gc(bt.body,Xc,qt,__$t__)}}V.isString(j)||(j=j?"include":"omit");const K=u&&"credentials"in s.prototype;if(V.isFormData(C)){const bt=q.getContentType();bt&&/^multipart\/form-data/i.test(bt)&&!/boundary=/i.test(bt)&&q.delete("content-type")}q.set("User-Agent","axios/"+W0,!1);const wt=ze(Lt({},J),{signal:at,method:_.toUpperCase(),headers:q.normalize().toJSON(),body:C,duplex:"half",credentials:K?j:void 0});U=u&&new s(E,wt);let At=yield u?ut(U,J):ut(E,wt);if(ot){const bt=V.toFiniteNumber(At.headers.get("content-length"));if(bt!=null&&bt>G)throw new vt("maxContentLength size of "+G+" exceeded",vt.ERR_BAD_RESPONSE,w,U)}const It=p&&(O==="stream"||O==="response");if(p&&At.body&&(Y||ot||It&&X)){const bt={};["status","statusText","headers"].forEach(Vt=>{bt[Vt]=At[Vt]});const Mt=V.toFiniteNumber(At.headers.get("content-length")),[qt,__$t__]=Y&&Wc(Mt,zs(Vc(Y),!0))||[];let Ft=0;const Wt=Vt=>{if(ot&&(Ft=Vt,Ft>G))throw new vt("maxContentLength size of "+G+" exceeded",vt.ERR_BAD_RESPONSE,w,U);qt&&qt(Vt)};At=new o(Gc(At.body,Xc,Wt,()=>{__$t__&&__$t__(),X&&X()}),bt)}O=O||"text";let yt=yield x[V.findKey(x,O)||"text"](At,w);if(ot&&!p&&!It){let bt;if(yt!=null&&(typeof yt.byteLength=="number"?bt=yt.byteLength:typeof yt.size=="number"?bt=yt.size:typeof yt=="string"&&(bt=typeof r=="function"?new r().encode(yt).byteLength:yt.length)),typeof bt=="number"&&bt>G)throw new vt("maxContentLength size of "+G+" exceeded",vt.ERR_BAD_RESPONSE,w,U)}return!It&&X&&X(),yield new Promise((bt,Mt)=>{Kh(bt,Mt,{data:yt,headers:xe.from(At.headers),status:At.status,statusText:At.statusText,config:w,request:U})})}catch(K){if(X&&X(),at&&at.aborted&&at.reason instanceof vt){const wt=at.reason;throw wt.config=w,U&&(wt.request=U),K!==wt&&(wt.cause=K),wt}throw K&&K.name==="TypeError"&&/Load failed|fetch/i.test(K.message)?Object.assign(new vt("Network Error",vt.ERR_NETWORK,w,U,K&&K.response),{cause:K.cause||K}):vt.from(K,K&&K.code,w,U,K&&K.response)}})},Tm=new Map,Qh=n=>{let t=n&&n.env||{};const{fetch:e,Request:r,Response:i}=t,s=[r,i,e];let o=s.length,a=o,u,c,l=Tm;for(;a--;)u=s[a],c=l.get(u),c===void 0&&l.set(u,c=a?new Map:Mm(t)),l=c;return c};Qh();const V0={http:J1,xhr:_m,fetch:{get:Qh}};V.forEach(V0,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(n,"adapterName",{__proto__:null,value:t})}});const Kc=n=>`- ${n}`,Rm=n=>V.isFunction(n)||n===null||n===!1;function Im(n,t){n=V.isArray(n)?n:[n];const{length:e}=n;let r,i;const s={};for(let o=0;o<e;o++){r=n[o];let a;if(i=r,!Rm(r)&&(i=V0[(a=String(r)).toLowerCase()],i===void 0))throw new vt(`Unknown adapter '${a}'`);if(i&&(V.isFunction(i)||(i=i.get(t))))break;s[a||"#"+o]=i}if(!i){const o=Object.entries(s).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
|
|
7
|
-
`+
|
|
8
|
-
`):" "+
|
|
9
|
-
`);return
|
|
10
|
-
`),a=
|
|
11
|
-
`,
|
|
12
|
-
`+
|
|
1
|
+
"use strict";require('./threed-graph.css');var $u=Object.defineProperty,Hu=Object.defineProperties;var zu=Object.getOwnPropertyDescriptors;var In=Object.getOwnPropertySymbols;var G0=Object.prototype.hasOwnProperty,j0=Object.prototype.propertyIsEnumerable;var Br=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),qu=t=>{throw TypeError(t)};var Ui=(t,e,r)=>e in t?$u(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$e=(t,e)=>{for(var r in e||(e={}))G0.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)=>Hu(t,zu(e));var K0=(t,e)=>{var r={};for(var n in t)G0.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=h=>{try{a(r.next(h))}catch(u){i(u)}},s=h=>{try{a(r.throw(h))}catch(u){i(u)}},a=h=>h.done?n(h.value):Promise.resolve(h.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,h,u)=>{try{var l=r[s](a),x=(a=l.value)instanceof nr,d=l.done;Promise.resolve(x?a[0]:a).then(v=>x?n(s==="return"?s:"next",a[1]?{done:v.done,value:v.value}:v,h,u):h({value:v,done:d})).catch(v=>n("throw",v,h,u))}catch(v){u(v)}},i=s=>o[s]=a=>new Promise((h,u)=>n(s,a,h,u)),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 h=e[o](s);h instanceof Object||qu("Object expected"),a(h)}),1)}}),i[Br("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=o=>{throw o},"return"in e&&n("return"),i},Y0=(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,h)=>(o=i.call(t,o),h=o.done,Promise.resolve(o.value).then(u=>s({value:u,done:h}),a)))),r("next"),r("return"),e);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const T=require("vue"),g0=require("pinia"),E0=require("lodash-es"),Ge=require("three"),pt=require("three-edit-cores");var _e=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function A0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Wu(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 Vu={},Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Vu},Symbol.toStringTag,{value:"Module"})),sc=Wu(Gu);var w0=typeof Map=="function"&&Map.prototype,zi=Object.getOwnPropertyDescriptor&&w0?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Qn=w0&&zi&&typeof zi.get=="function"?zi.get:null,X0=w0&&Map.prototype.forEach,_0=typeof Set=="function"&&Set.prototype,qi=Object.getOwnPropertyDescriptor&&_0?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Zn=_0&&qi&&typeof qi.get=="function"?qi.get:null,J0=_0&&Set.prototype.forEach,ju=typeof WeakMap=="function"&&WeakMap.prototype,sn=ju?WeakMap.prototype.has:null,Ku=typeof WeakSet=="function"&&WeakSet.prototype,cn=Ku?WeakSet.prototype.has:null,Yu=typeof WeakRef=="function"&&WeakRef.prototype,Q0=Yu?WeakRef.prototype.deref:null,Xu=Boolean.prototype.valueOf,Ju=Object.prototype.toString,Qu=Function.prototype.toString,Zu=String.prototype.match,b0=String.prototype.slice,Kt=String.prototype.replace,ef=String.prototype.toUpperCase,Z0=String.prototype.toLowerCase,cc=RegExp.prototype.test,ea=Array.prototype.concat,Nt=Array.prototype.join,tf=Array.prototype.slice,ta=Math.floor,Xo=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Wi=Object.getOwnPropertySymbols,Jo=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,uc=Object.prototype.propertyIsEnumerable,ra=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function na(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||cc.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-ta(-t):ta(t);if(n!==t){var i=String(n),o=b0.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 Qo=sc,ia=Qo.custom,oa=hc(ia)?ia:null,fc={__proto__:null,double:'"',single:"'"},rf={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},si=function t(e,r,n,i){var o=r||{};if(Ht(o,"quoteStyle")&&!Ht(fc,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 pc(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var h=String(e);return a?na(e,h):h}if(typeof e=="bigint"){var u=String(e)+"n";return a?na(e,u):u}var l=typeof o.depth=="undefined"?5:o.depth;if(typeof n=="undefined"&&(n=0),n>=l&&l>0&&typeof e=="object")return Zo(e)?"[Array]":"[Object]";var x=Af(o,n);if(typeof i=="undefined")i=[];else if(dc(i,e)>=0)return"[Circular]";function d(Y,J,j){if(J&&(i=tf.call(i),i.push(J)),j){var Q={depth:o.depth};return Ht(o,"quoteStyle")&&(Q.quoteStyle=o.quoteStyle),t(Y,Q,n+1,i)}return t(Y,o,n+1,i)}if(typeof e=="function"&&!aa(e)){var v=hf(e),m=Tn(e,d);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(m.length>0?" { "+Nt.call(m,", ")+" }":"")}if(hc(e)){var g=Mr?Kt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Jo.call(e);return typeof e=="object"&&!Mr?en(g):g}if(mf(e)){for(var E="<"+Z0.call(String(e.nodeName)),R=e.attributes||[],A=0;A<R.length;A++)E+=" "+R[A].name+"="+lc(nf(R[A].value),"double",o);return E+=">",e.childNodes&&e.childNodes.length&&(E+="..."),E+="</"+Z0.call(String(e.nodeName))+">",E}if(Zo(e)){if(e.length===0)return"[]";var w=Tn(e,d);return x&&!Ef(w)?"["+e0(w,x)+"]":"[ "+Nt.call(w,", ")+" ]"}if(af(e)){var C=Tn(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!uc.call(e,"cause")?"{ ["+String(e)+"] "+Nt.call(ea.call("[cause]: "+d(e.cause),C),", ")+" }":C.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Nt.call(C,", ")+" }"}if(typeof e=="object"&&s){if(oa&&typeof e[oa]=="function"&&Qo)return Qo(e,{depth:l-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(df(e)){var D=[];return X0&&X0.call(e,function(Y,J){D.push(d(J,e,!0)+" => "+d(Y,e))}),sa("Map",Qn.call(e),D,x)}if(vf(e)){var I=[];return J0&&J0.call(e,function(Y){I.push(d(Y,e))}),sa("Set",Zn.call(e),I,x)}if(pf(e))return Vi("WeakMap");if(yf(e))return Vi("WeakSet");if(xf(e))return Vi("WeakRef");if(cf(e))return en(d(Number(e)));if(ff(e))return en(d(Xo.call(e)));if(uf(e))return en(Xu.call(e));if(sf(e))return en(d(String(e)));if(typeof window!="undefined"&&e===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&e===globalThis||typeof _e!="undefined"&&e===_e)return"{ [object globalThis] }";if(!of(e)&&!aa(e)){var L=Tn(e,d),q=ra?ra(e)===Object.prototype:e instanceof Object||e.constructor===Object,Z=e instanceof Object?"":"null prototype",O=!q&&un&&Object(e)===e&&un in e?b0.call(Xt(e),8,-1):Z?"Object":"",k=q||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",W=k+(O||Z?"["+Nt.call(ea.call([],O||[],Z||[]),": ")+"] ":"");return L.length===0?W+"{}":x?W+"{"+e0(L,x)+"}":W+"{ "+Nt.call(L,", ")+" }"}return String(e)};function lc(t,e,r){var n=r.quoteStyle||e,i=fc[n];return i+t+i}function nf(t){return Kt.call(String(t),/"/g,""")}function dr(t){return!un||!(typeof t=="object"&&(un in t||typeof t[un]!="undefined"))}function Zo(t){return Xt(t)==="[object Array]"&&dr(t)}function of(t){return Xt(t)==="[object Date]"&&dr(t)}function aa(t){return Xt(t)==="[object RegExp]"&&dr(t)}function af(t){return Xt(t)==="[object Error]"&&dr(t)}function sf(t){return Xt(t)==="[object String]"&&dr(t)}function cf(t){return Xt(t)==="[object Number]"&&dr(t)}function uf(t){return Xt(t)==="[object Boolean]"&&dr(t)}function hc(t){if(Mr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Jo)return!1;try{return Jo.call(t),!0}catch(e){}return!1}function ff(t){if(!t||typeof t!="object"||!Xo)return!1;try{return Xo.call(t),!0}catch(e){}return!1}var lf=Object.prototype.hasOwnProperty||function(t){return t in this};function Ht(t,e){return lf.call(t,e)}function Xt(t){return Ju.call(t)}function hf(t){if(t.name)return t.name;var e=Zu.call(Qu.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function dc(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 df(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 pf(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 xf(t){if(!Q0||!t||typeof t!="object")return!1;try{return Q0.call(t),!0}catch(e){}return!1}function vf(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 yf(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 mf(t){return!t||typeof t!="object"?!1:typeof HTMLElement!="undefined"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function pc(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return pc(b0.call(t,0,e.maxStringLength),e)+n}var i=rf[e.quoteStyle||"single"];i.lastIndex=0;var o=Kt.call(Kt.call(t,i,"\\$1"),/[\x00-\x1f]/g,gf);return lc(o,"single",e)}function gf(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":"")+ef.call(e.toString(16))}function en(t){return"Object("+t+")"}function Vi(t){return t+" { ? }"}function sa(t,e,r,n){var i=n?e0(r,n):Nt.call(r,", ");return t+" ("+e+") {"+i+"}"}function Ef(t){for(var e=0;e<t.length;e++)if(dc(t[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function Af(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 e0(t,e){if(t.length===0)return"";var r=`
|
|
3
|
+
`+e.prev+e.base;return r+Nt.call(t,","+r)+`
|
|
4
|
+
`+e.prev}function Tn(t,e){var r=Zo(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 h in t)Ht(t,h)&&(r&&String(Number(h))===h&&h<t.length||Mr&&s["$"+h]instanceof Symbol||(cc.call(/[^\w$]/,h)?n.push(e(h,t)+": "+e(t[h],t)):n.push(h+": "+e(t[h],t))));if(typeof Wi=="function")for(var u=0;u<o.length;u++)uc.call(t,o[u])&&n.push("["+e(o[u])+"]: "+e(t[o[u]],t));return n}var wf=si,_f=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},bf=function(t,e){if(t){var r=ci(t,e);return r&&r.value}},Cf=function(t,e,r){var n=ci(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Bf=function(t,e){return t?!!ci(t,e):!1},Df=function(t,e){if(t)return ci(t,e,!0)},Sf=function(){var e,r={assert:function(n){if(!r.has(n))throw new _f("Side channel does not contain "+wf(n))},delete:function(n){var i=e&&e.next,o=Df(e,n);return o&&i&&i===o&&(e=void 0),!!o},get:function(n){return bf(e,n)},has:function(n){return Bf(e,n)},set:function(n,i){e||(e={next:void 0}),Cf(e,n,i)}};return r},xc=Object,Ff=Error,Rf=EvalError,If=RangeError,Tf=ReferenceError,Of=SyntaxError,Pf=URIError,Nf=Math.abs,Lf=Math.floor,kf=Math.max,Mf=Math.min,Uf=Math.pow,$f=Math.round,Hf=Number.isNaN||function(e){return e!==e},zf=Hf,qf=function(e){return zf(e)||e===0?e:e<0?-1:1},Wf=Object.getOwnPropertyDescriptor,zn=Wf;if(zn)try{zn([],"length")}catch(t){zn=null}var vc=zn,qn=Object.defineProperty||!1;if(qn)try{qn({},"a",{value:1})}catch(t){qn=!1}var Vf=qn,Gi,ca;function Gf(){return ca||(ca=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,ua;function jf(){if(ua)return ji;ua=1;var t=typeof Symbol!="undefined"&&Symbol,e=Gf();return ji=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},ji}var Ki,fa;function yc(){return fa||(fa=1,Ki=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),Ki}var Yi,la;function mc(){if(la)return Yi;la=1;var t=xc;return Yi=t.getPrototypeOf||null,Yi}var Kf="Function.prototype.bind called on incompatible ",Yf=Object.prototype.toString,Xf=Math.max,Jf="[object Function]",ha=function(e,r){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var o=0;o<r.length;o+=1)n[o+e.length]=r[o];return n},Qf=function(e,r){for(var n=[],i=r,o=0;i<e.length;i+=1,o+=1)n[o]=e[i];return n},Zf=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},el=function(e){var r=this;if(typeof r!="function"||Yf.apply(r)!==Jf)throw new TypeError(Kf+r);for(var n=Qf(arguments,1),i,o=function(){if(this instanceof i){var l=r.apply(this,ha(n,arguments));return Object(l)===l?l:this}return r.apply(e,ha(n,arguments))},s=Xf(0,r.length-n.length),a=[],h=0;h<s;h++)a[h]="$"+h;if(i=Function("binder","return function ("+Zf(a,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i},tl=el,ui=Function.prototype.bind||tl,C0=Function.prototype.call,Xi,da;function gc(){return da||(da=1,Xi=Function.prototype.apply),Xi}var rl=typeof Reflect!="undefined"&&Reflect&&Reflect.apply,nl=ui,il=gc(),ol=C0,al=rl,sl=al||nl.call(ol,il),cl=ui,ul=zr,fl=C0,ll=sl,Ec=function(e){if(e.length<1||typeof e[0]!="function")throw new ul("a function is required");return ll(cl,fl,e)},Ji,pa;function hl(){if(pa)return Ji;pa=1;var t=Ec,e=vc,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 Ji=n&&typeof n.get=="function"?t([n.get]):typeof o=="function"?function(a){return o(a==null?a:i(a))}:!1,Ji}var Qi,xa;function dl(){if(xa)return Qi;xa=1;var t=yc(),e=mc(),r=hl();return Qi=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,Qi}var Zi,va;function pl(){if(va)return Zi;va=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=ui;return Zi=r.call(t,e),Zi}var Se,xl=xc,vl=Ff,yl=Rf,ml=If,gl=Tf,Ur=Of,Nr=zr,El=Pf,Al=Nf,wl=Lf,_l=kf,bl=Mf,Cl=Uf,Bl=$f,Dl=qf,Ac=Function,eo=function(t){try{return Ac('"use strict"; return ('+t+").constructor;")()}catch(e){}},dn=vc,Sl=Vf,to=function(){throw new Nr},Fl=dn?function(){try{return arguments.callee,to}catch(t){try{return dn(arguments,"callee").get}catch(e){return to}}}():to,Dr=jf()(),et=dl(),Rl=mc(),Il=yc(),wc=gc(),vn=C0,Tr={},Tl=typeof Uint8Array=="undefined"||!et?Se:et(Uint8Array),cr={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Se:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Se:ArrayBuffer,"%ArrayIteratorPrototype%":Dr&&et?et([][Symbol.iterator]()):Se,"%AsyncFromSyncIteratorPrototype%":Se,"%AsyncFunction%":Tr,"%AsyncGenerator%":Tr,"%AsyncGeneratorFunction%":Tr,"%AsyncIteratorPrototype%":Tr,"%Atomics%":typeof Atomics=="undefined"?Se:Atomics,"%BigInt%":typeof BigInt=="undefined"?Se:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Se:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Se:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Se:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":vl,"%eval%":eval,"%EvalError%":yl,"%Float16Array%":typeof Float16Array=="undefined"?Se:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Se:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Se:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Se:FinalizationRegistry,"%Function%":Ac,"%GeneratorFunction%":Tr,"%Int8Array%":typeof Int8Array=="undefined"?Se:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Se:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Se:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Dr&&et?et(et([][Symbol.iterator]())):Se,"%JSON%":typeof JSON=="object"?JSON:Se,"%Map%":typeof Map=="undefined"?Se:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Dr||!et?Se:et(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":xl,"%Object.getOwnPropertyDescriptor%":dn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Se:Promise,"%Proxy%":typeof Proxy=="undefined"?Se:Proxy,"%RangeError%":ml,"%ReferenceError%":gl,"%Reflect%":typeof Reflect=="undefined"?Se:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Se:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Dr||!et?Se:et(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Se:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Dr&&et?et(""[Symbol.iterator]()):Se,"%Symbol%":Dr?Symbol:Se,"%SyntaxError%":Ur,"%ThrowTypeError%":Fl,"%TypedArray%":Tl,"%TypeError%":Nr,"%Uint8Array%":typeof Uint8Array=="undefined"?Se:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Se:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Se:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Se:Uint32Array,"%URIError%":El,"%WeakMap%":typeof WeakMap=="undefined"?Se:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Se:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Se:WeakSet,"%Function.prototype.call%":vn,"%Function.prototype.apply%":wc,"%Object.defineProperty%":Sl,"%Object.getPrototypeOf%":Rl,"%Math.abs%":Al,"%Math.floor%":wl,"%Math.max%":_l,"%Math.min%":bl,"%Math.pow%":Cl,"%Math.round%":Bl,"%Math.sign%":Dl,"%Reflect.getPrototypeOf%":Il};if(et)try{null.error}catch(t){var Ol=et(et(t));cr["%Error.prototype%"]=Ol}var Pl=function t(e){var r;if(e==="%AsyncFunction%")r=eo("async function () {}");else if(e==="%GeneratorFunction%")r=eo("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=eo("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},ya={__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=pl(),Nl=yn.call(vn,Array.prototype.concat),Ll=yn.call(wc,Array.prototype.splice),ma=yn.call(vn,String.prototype.replace),ti=yn.call(vn,String.prototype.slice),kl=yn.call(vn,RegExp.prototype.exec),Ml=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ul=/\\(\\)?/g,$l=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 ma(e,Ml,function(o,s,a,h){i[i.length]=a?ma(h,Ul,"$1"):s||o}),i},Hl=function(e,r){var n=e,i;if(ei(ya,n)&&(i=ya[n],n="%"+i[0]+"%"),ei(cr,n)){var o=cr[n];if(o===Tr&&(o=Pl(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!")},B0=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(kl(/^%?[^%]*%?$/,e)===null)throw new Ur("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=$l(e),i=n.length>0?n[0]:"",o=Hl("%"+i+"%",r),s=o.name,a=o.value,h=!1,u=o.alias;u&&(i=u[0],Ll(n,Nl([0,1],u)));for(var l=1,x=!0;l<n.length;l+=1){var d=n[l],v=ti(d,0,1),m=ti(d,-1);if((v==='"'||v==="'"||v==="`"||m==='"'||m==="'"||m==="`")&&v!==m)throw new Ur("property names with quotes must have matching quotes");if((d==="constructor"||!x)&&(h=!0),i+="."+d,s="%"+i+"%",ei(cr,s))a=cr[s];else if(a!=null){if(!(d in a)){if(!r)throw new Nr("base intrinsic for "+e+" exists, but the property is not available.");return}if(dn&&l+1>=n.length){var g=dn(a,d);x=!!g,x&&"get"in g&&!("originalValue"in g.get)?a=g.get:a=a[d]}else x=ei(a,d),a=a[d];x&&!h&&(cr[s]=a)}}return a},_c=B0,bc=Ec,zl=bc([_c("%String.prototype.indexOf%")]),Cc=function(e,r){var n=_c(e,!!r);return typeof n=="function"&&zl(e,".prototype.")>-1?bc([n]):n},ql=B0,mn=Cc,Wl=si,Vl=zr,ga=ql("%Map%",!0),Gl=mn("Map.prototype.get",!0),jl=mn("Map.prototype.set",!0),Kl=mn("Map.prototype.has",!0),Yl=mn("Map.prototype.delete",!0),Xl=mn("Map.prototype.size",!0),Bc=!!ga&&function(){var e,r={assert:function(n){if(!r.has(n))throw new Vl("Side channel does not contain "+Wl(n))},delete:function(n){if(e){var i=Yl(e,n);return Xl(e)===0&&(e=void 0),i}return!1},get:function(n){if(e)return Gl(e,n)},has:function(n){return e?Kl(e,n):!1},set:function(n,i){e||(e=new ga),jl(e,n,i)}};return r},Jl=B0,fi=Cc,Ql=si,On=Bc,Zl=zr,Sr=Jl("%WeakMap%",!0),eh=fi("WeakMap.prototype.get",!0),th=fi("WeakMap.prototype.set",!0),rh=fi("WeakMap.prototype.has",!0),nh=fi("WeakMap.prototype.delete",!0),ih=Sr?function(){var e,r,n={assert:function(i){if(!n.has(i))throw new Zl("Side channel does not contain "+Ql(i))},delete:function(i){if(Sr&&i&&(typeof i=="object"||typeof i=="function")){if(e)return nh(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?eh(e,i):r&&r.get(i)},has:function(i){return Sr&&i&&(typeof i=="object"||typeof i=="function")&&e?rh(e,i):!!r&&r.has(i)},set:function(i,o){Sr&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Sr),th(e,i,o)):On&&(r||(r=On()),r.set(i,o))}};return n}:On,oh=zr,ah=si,sh=Sf,ch=Bc,uh=ih,fh=uh||ch||sh,Dc=function(){var e,r={assert:function(n){if(!r.has(n))throw new oh("Side channel does not contain "+ah(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=fh()),e.set(n,i)}};return r},lh=String.prototype.replace,hh=/%20/g,ro={RFC1738:"RFC1738",RFC3986:"RFC3986"},D0={default:ro.RFC3986,formatters:{RFC1738:function(t){return lh.call(t,hh,"+")},RFC3986:function(t){return String(t)}},RFC1738:ro.RFC1738,RFC3986:ro.RFC3986},dh=D0,ph=Dc,no=Object.prototype.hasOwnProperty,or=Array.isArray,li=ph(),Pr=function(e,r){return li.set(e,r),e},ar=function(e){return li.has(e)},nn=function(e){return li.get(e)},t0=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}(),xh=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},vh=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,t0(e,o)}else{if(n&&n.strictMerge)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!no.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},h=0;h<s.length;h++){var u=parseInt(s[h],10);a[u+1]=r[s[h]]}return Pr(a,nn(r)+1)}var l=[e].concat(r);return n&&typeof n.arrayLimit=="number"&&l.length>n.arrayLimit?Pr(fn(l,n),l.length-1):l}var x=e;return or(e)&&!or(r)&&(x=fn(e,n)),or(e)&&or(r)?(r.forEach(function(d,v){if(no.call(e,v)){var m=e[v];m&&typeof m=="object"&&d&&typeof d=="object"?e[v]=t(m,d,n):e[e.length]=d}else e[v]=d}),e):Object.keys(r).reduce(function(d,v){var m=r[v];if(no.call(d,v)?d[v]=t(d[v],m,n):d[v]=m,ar(r)&&!ar(d)&&Pr(d,nn(r)),ar(d)){var g=parseInt(v,10);String(g)===v&&g>=0&&g>nn(d)&&t0(d,g)}return d},x)},yh=function(e,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},e)},mh=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}},io=1024,gh=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(v){return"%26%23"+parseInt(v.slice(2),16)+"%3B"});for(var a="",h=0;h<s.length;h+=io){for(var u=s.length>=io?s.slice(h,h+io):s,l=[],x=0;x<u.length;++x){var d=u.charCodeAt(x);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===dh.RFC1738&&(d===40||d===41)){l[l.length]=u.charAt(x);continue}if(d<128){l[l.length]=It[d];continue}if(d<2048){l[l.length]=It[192|d>>6]+It[128|d&63];continue}if(d<55296||d>=57344){l[l.length]=It[224|d>>12]+It[128|d>>6&63]+It[128|d&63];continue}x+=1,d=65536+((d&1023)<<10|u.charCodeAt(x)&1023),l[l.length]=It[240|d>>18]+It[128|d>>12&63]+It[128|d>>6&63]+It[128|d&63]}a+=l.join("")}return a},Eh=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),h=0;h<a.length;++h){var u=a[h],l=s[u];typeof l=="object"&&l!==null&&n.indexOf(l)===-1&&(r[r.length]={obj:s,prop:u},n[n.length]=l)}return xh(r),e},Ah=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},wh=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},_h=function(e,r,n,i){if(ar(e)){var o=nn(e)+1;return e[o]=r,t0(e,o),e}var s=[].concat(e,r);return s.length>n?Pr(fn(s,{plainObjects:i}),s.length-1):s},bh=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)},Sc={arrayToObject:fn,assign:yh,combine:_h,compact:Eh,decode:mh,encode:gh,isBuffer:wh,isOverflow:ar,isRegExp:Ah,markOverflow:Pr,maybeMap:bh,merge:vh},Fc=Dc,Wn=Sc,ln=D0,Ch=Object.prototype.hasOwnProperty,Rc={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},Pt=Array.isArray,Bh=Array.prototype.push,Ic=function(t,e){Bh.apply(t,Pt(e)?e:[e])},Dh=Date.prototype.toISOString,Ea=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:Ea,formatter:ln.formatters[Ea],indices:!1,serializeDate:function(e){return Dh.call(e)},skipNulls:!1,strictNullHandling:!1},Sh=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},oo={},Fh=function t(e,r,n,i,o,s,a,h,u,l,x,d,v,m,g,E,R,A){for(var w=e,C=A,D=0,I=!1;(C=C.get(oo))!==void 0&&!I;){var L=C.get(e);if(D+=1,typeof L!="undefined"){if(L===D)throw new RangeError("Cyclic object value");I=!0}typeof C.get(oo)=="undefined"&&(D=0)}if(typeof l=="function"?w=l(r,w):w instanceof Date?w=v(w):n==="comma"&&Pt(w)&&(w=Wn.maybeMap(w,function(ue){return ue instanceof Date?v(ue):ue})),w===null){if(s)return u&&!E?u(r,Je.encoder,R,"key",m):r;w=""}if(Sh(w)||Wn.isBuffer(w)){if(u){var q=E?r:u(r,Je.encoder,R,"key",m);return[g(q)+"="+g(u(w,Je.encoder,R,"value",m))]}return[g(r)+"="+g(String(w))]}var Z=[];if(typeof w=="undefined")return Z;var O;if(n==="comma"&&Pt(w))E&&u&&(w=Wn.maybeMap(w,u)),O=[{value:w.length>0?w.join(",")||null:void 0}];else if(Pt(l))O=l;else{var k=Object.keys(w);O=x?k.sort(x):k}var W=h?String(r).replace(/\./g,"%2E"):String(r),Y=i&&Pt(w)&&w.length===1?W+"[]":W;if(o&&Pt(w)&&w.length===0)return Y+"[]";for(var J=0;J<O.length;++J){var j=O[J],Q=typeof j=="object"&&j&&typeof j.value!="undefined"?j.value:w[j];if(!(a&&Q===null)){var oe=d&&h?String(j).replace(/\./g,"%2E"):String(j),ie=Pt(w)?typeof n=="function"?n(Y,oe):Y:Y+(d?"."+oe:"["+oe+"]");A.set(e,D);var he=Fc();he.set(oo,A),Ic(Z,t(Q,ie,n,i,o,s,a,h,n==="comma"&&E&&Pt(w)?null:u,l,x,d,v,m,g,E,R,he))}}return Z},Rh=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(!Ch.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 Rc?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}},Ih=function(t,e){var r=t,n=Rh(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=Rc[n.arrayFormat],h=a==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var u=Fc(),l=0;l<i.length;++l){var x=i[l],d=r[x];n.skipNulls&&d===null||Ic(s,Fh(d,x,a,h,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}var v=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&"),v.length>0?m+v:""},Mt=Sc,Vn=Object.prototype.hasOwnProperty,ao=Array.isArray,Ve={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},Th=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Tc=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},Oh="utf8=%26%2310003%3B",Ph="utf8=%E2%9C%93",Nh=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,h,u=r.charset;if(r.charsetSentinel)for(h=0;h<s.length;++h)s[h].indexOf("utf8=")===0&&(s[h]===Ph?u="utf-8":s[h]===Oh&&(u="iso-8859-1"),a=h,h=s.length);for(h=0;h<s.length;++h)if(h!==a){var l=s[h],x=l.indexOf("]="),d=x===-1?l.indexOf("="):x+1,v,m;if(d===-1?(v=r.decoder(l,Ve.decoder,u,"key"),m=r.strictNullHandling?null:""):(v=r.decoder(l.slice(0,d),Ve.decoder,u,"key"),v!==null&&(m=Mt.maybeMap(Tc(l.slice(d+1),r,ao(n[v])?n[v].length:0),function(E){return r.decoder(E,Ve.decoder,u,"value")}))),m&&r.interpretNumericEntities&&u==="iso-8859-1"&&(m=Th(String(m))),l.indexOf("[]=")>-1&&(m=ao(m)?[m]:m),r.comma&&ao(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(v!==null){var g=Vn.call(n,v);g&&(r.duplicates==="combine"||l.indexOf("[]=")>-1)?n[v]=Mt.combine(n[v],m,r.arrayLimit,r.plainObjects):(!g||r.duplicates==="last")&&(n[v]=m)}}return n},Lh=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:Tc(e,r,i),a=t.length-1;a>=0;--a){var h,u=t[a];if(u==="[]"&&r.parseArrays)Mt.isOverflow(s)?h=s:h=r.allowEmptyArrays&&(s===""||r.strictNullHandling&&s===null)?[]:Mt.combine([],s,r.arrayLimit,r.plainObjects);else{h=r.plainObjects?{__proto__:null}:{};var l=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,x=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,d=parseInt(x,10),v=!isNaN(d)&&u!==x&&String(d)===x&&d>=0&&r.parseArrays;if(!r.parseArrays&&x==="")h={0:s};else if(v&&d<r.arrayLimit)h=[],h[d]=s;else{if(v&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");v?(h[d]=s,Mt.markOverflow(h,d)):x!=="__proto__"&&(h[x]=s)}}s=h}return s},kh=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,h=[];if(a){if(!r.plainObjects&&Vn.call(Object.prototype,a)&&!r.allowPrototypes)return;h[h.length]=a}for(var u=0;(s=o.exec(n))!==null&&u<r.depth;){u+=1;var l=s[1].slice(1,-1);if(!r.plainObjects&&Vn.call(Object.prototype,l)&&!r.allowPrototypes)return;h[h.length]=s[1]}if(s){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");h[h.length]="["+n.slice(s.index)+"]"}return h},Mh=function(e,r,n,i){if(e){var o=kh(e,n);if(o)return Lh(o,r,n,i)}},Uh=function(e){if(!e)return Ve;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"?Ve.charset:e.charset,n=typeof e.duplicates=="undefined"?Ve.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:Ve.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Ve.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Ve.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Ve.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Ve.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ve.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Ve.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Ve.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Ve.decoder,delimiter:typeof e.delimiter=="string"||Mt.isRegExp(e.delimiter)?e.delimiter:Ve.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Ve.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Ve.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Ve.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Ve.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Ve.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:Ve.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ve.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},$h=function(t,e){var r=Uh(e);if(t===""||t===null||typeof t=="undefined")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?Nh(t,r):t,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),s=0;s<o.length;++s){var a=o[s],h=Mh(a,n[a],r,typeof t=="string");i=Mt.merge(i,h,r)}return r.allowSparse===!0?i:Mt.compact(i)},Hh=Ih,zh=$h,qh=D0,Wh={formats:qh,parse:zh,stringify:Hh};const Vh=A0(Wh);function Oc(t,e){return function(){return t.apply(e,arguments)}}const{toString:Gh}=Object.prototype,{getPrototypeOf:hi}=Object,{iterator:di,toStringTag:Pc}=Symbol,pi=(t=>e=>{const r=Gh.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)&<(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Nc=Ct("ArrayBuffer");function jh(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Nc(t.buffer),e}const Kh=xi("string"),lt=xi("function"),Lc=xi("number"),En=t=>t!==null&&typeof t=="object",Yh=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)&&!(Pc in t)&&!(di in t)},Xh=t=>{if(!En(t)||gn(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},Jh=Ct("Date"),Qh=Ct("File"),Zh=t=>!!(t&&typeof t.uri!="undefined"),ed=t=>t&&typeof t.getParts!="undefined",td=Ct("Blob"),rd=Ct("FileList"),nd=t=>En(t)&<(t.pipe);function id(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const Aa=id(),wa=typeof Aa.FormData!="undefined"?Aa.FormData:void 0,od=t=>{if(!t)return!1;if(wa&&t instanceof wa)return!0;const e=hi(t);if(!e||e===Object.prototype||!lt(t.append))return!1;const r=pi(t);return r==="formdata"||r==="object"&<(t.toString)&&t.toString()==="[object FormData]"},ad=Ct("URLSearchParams"),[sd,cd,ud,fd]=["ReadableStream","Request","Response","Headers"].map(Ct),ld=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 kc(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,Mc=t=>!$r(t)&&t!==sr;function r0(...t){const{caseless:e,skipUndefined:r}=Mc(this)&&this||{},n={},i=(o,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const a=e&&kc(n,s)||s,h=n0(n,a)?n[a]:void 0;Gn(h)&&Gn(o)?n[a]=r0(h,o):Gn(o)?n[a]=r0({},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 hd=(t,e,r,{allOwnKeys:n}={})=>(An(e,(i,o)=>{r&<(i)?Object.defineProperty(t,o,{__proto__:null,value:Oc(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),dd=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),pd=(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)},xd=(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},vd=(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},yd=t=>{if(!t)return null;if(qr(t))return t;let e=t.length;if(!Lc(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},md=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&hi(Uint8Array)),gd=(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])}},Ed=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Ad=Ct("HTMLFormElement"),wd=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),n0=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),_d=Ct("RegExp"),Uc=(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)},bd=t=>{Uc(t,(e,r)=>{if(lt(t)&&["arguments","caller","callee"].includes(r))return!1;const n=t[r];if(lt(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+"'")})}})},Cd=(t,e)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return qr(t)?n(t):n(String(t).split(e)),r},Bd=()=>{},Dd=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Sd(t){return!!(t&<(t.append)&&t[Pc]==="FormData"&&t[di])}const Fd=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 h=r(s,i+1);!$r(h)&&(o[a]=h)}),e[i]=void 0,o}}return n};return r(t,0)},Rd=Ct("AsyncFunction"),Id=t=>t&&(En(t)||lt(t))&<(t.then)&<(t.catch),$c=((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",lt(sr.postMessage)),Td=typeof queueMicrotask!="undefined"?queueMicrotask.bind(sr):typeof process!="undefined"&&process.nextTick||$c,Od=t=>t!=null&<(t[di]),V={isArray:qr,isArrayBuffer:Nc,isBuffer:gn,isFormData:od,isArrayBufferView:jh,isString:Kh,isNumber:Lc,isBoolean:Yh,isObject:En,isPlainObject:Gn,isEmptyObject:Xh,isReadableStream:sd,isRequest:cd,isResponse:ud,isHeaders:fd,isUndefined:$r,isDate:Jh,isFile:Qh,isReactNativeBlob:Zh,isReactNative:ed,isBlob:td,isRegExp:_d,isFunction:lt,isStream:nd,isURLSearchParams:ad,isTypedArray:md,isFileList:rd,forEach:An,merge:r0,extend:hd,trim:ld,stripBOM:dd,inherits:pd,toFlatObject:xd,kindOf:pi,kindOfTest:Ct,endsWith:vd,toArray:yd,forEachEntry:gd,matchAll:Ed,isHTMLForm:Ad,hasOwnProperty:n0,hasOwnProp:n0,reduceDescriptors:Uc,freezeMethods:bd,toObjectSet:Cd,toCamelCase:wd,noop:Bd,toFiniteNumber:Dd,findKey:kc,global:sr,isContextDefined:Mc,isSpecCompliantForm:Sd,toJSONObject:Fd,isAsyncFn:Rd,isThenable:Id,setImmediate:$c,asap:Td,isIterable:Od},Pd=V.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"]),Nd=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]&&Pd[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},_a=Symbol("internals"),Ld=/[^\x09\x20-\x7E\x80-\xFF]/g;function kd(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 Md(t){return kd(t.replace(Ld,""))}function jn(t){return t===!1||t==null?t:V.isArray(t)?t.map(jn):Md(String(t))}function Ud(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 $d=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function so(t,e,r,n,i){if(V.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!V.isString(e)){if(V.isString(n))return e.indexOf(n)!==-1;if(V.isRegExp(n))return n.test(e)}}function Hd(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function zd(t,e){const r=V.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,h,u){const l=tn(h);if(!l)throw new Error("header name must be a non-empty string");const x=V.findKey(i,l);(!x||i[x]===void 0||u===!0||u===void 0&&i[x]!==!1)&&(i[x||h]=jn(a))}const s=(a,h)=>V.forEach(a,(u,l)=>o(u,l,h));if(V.isPlainObject(e)||e instanceof this.constructor)s(e,r);else if(V.isString(e)&&(e=e.trim())&&!$d(e))s(Nd(e),r);else if(V.isObject(e)&&V.isIterable(e)){let a={},h,u;for(const l of e){if(!V.isArray(l))throw TypeError("Object iterator must return a key-value pair");a[u=l[0]]=(h=a[u])?V.isArray(h)?[...h,l[1]]:[h,l[1]]:l[1]}s(a,r)}else e!=null&&o(r,e,n);return this}get(e,r){if(e=tn(e),e){const n=V.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return Ud(i);if(V.isFunction(r))return r.call(this,i,n);if(V.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=V.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||so(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=V.findKey(n,s);a&&(!r||so(n,n[a],a,r))&&(delete n[a],i=!0)}}return V.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||so(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const r=this,n={};return V.forEach(this,(i,o)=>{const s=V.findKey(n,o);if(s){r[s]=jn(i),delete r[o];return}const a=e?Hd(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 V.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&V.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[_a]=this[_a]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=tn(s);n[a]||(zd(i,s),n[a]=!0)}return V.isArray(e)?e.forEach(o):o(e),this}};ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(ct.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});V.freezeMethods(ct);const qd="[REDACTED ****]";function Wd(t){if(V.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(V.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function Vd(t,e){const r=new Set(e.map(o=>String(o).toLowerCase())),n=[],i=o=>{if(o===null||typeof o!="object"||V.isBuffer(o))return o;if(n.indexOf(o)!==-1)return;o instanceof ct&&(o=o.toJSON()),n.push(o);let s;if(V.isArray(o))s=[],o.forEach((a,h)=>{const u=i(a);V.isUndefined(u)||(s[h]=u)});else{if(!V.isPlainObject(o)&&Wd(o))return n.pop(),o;s=Object.create(null);for(const[a,h]of Object.entries(o)){const u=r.has(a.toLowerCase())?qd:i(h);V.isUndefined(u)||(s[a]=u)}}return n.pop(),s};return i(t)}let me=class Hc extends Error{static from(e,r,n,i,o,s){const a=new Hc(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&&V.hasOwnProp(e,"redact")?e.redact:void 0,n=V.isArray(r)&&r.length>0?Vd(e,r):V.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 Gd=null;function i0(t){return V.isPlainObject(t)||V.isArray(t)}function zc(t){return V.endsWith(t,"[]")?t.slice(0,-2):t}function co(t,e,r){return t?t.concat(e).map(function(i,o){return i=zc(i),!r&&o?"["+i+"]":i}).join(r?".":""):e}function jd(t){return V.isArray(t)&&!t.some(i0)}const Kd=V.toFlatObject(V,{},null,function(e){return/^is[A-Z]/.test(e)});function vi(t,e,r){if(!V.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=V.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,R){return!V.isUndefined(R[E])});const n=r.metaTokens,i=r.visitor||x,o=r.dots,s=r.indexes,a=r.Blob||typeof Blob!="undefined"&&Blob,h=r.maxDepth===void 0?100:r.maxDepth,u=a&&V.isSpecCompliantForm(e);if(!V.isFunction(i))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(V.isDate(g))return g.toISOString();if(V.isBoolean(g))return g.toString();if(!u&&V.isBlob(g))throw new me("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(g)||V.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function x(g,E,R){let A=g;if(V.isReactNative(e)&&V.isReactNativeBlob(g))return e.append(co(R,E,o),l(g)),!1;if(g&&!R&&typeof g=="object"){if(V.endsWith(E,"{}"))E=n?E:E.slice(0,-2),g=JSON.stringify(g);else if(V.isArray(g)&&jd(g)||(V.isFileList(g)||V.endsWith(E,"[]"))&&(A=V.toArray(g)))return E=zc(E),A.forEach(function(C,D){!(V.isUndefined(C)||C===null)&&e.append(s===!0?co([E],D,o):s===null?E:E+"[]",l(C))}),!1}return i0(g)?!0:(e.append(co(R,E,o),l(g)),!1)}const d=[],v=Object.assign(Kd,{defaultVisitor:x,convertValue:l,isVisitable:i0});function m(g,E,R=0){if(!V.isUndefined(g)){if(R>h)throw new me("Object is too deeply nested ("+R+" levels). Max depth: "+h,me.ERR_FORM_DATA_DEPTH_EXCEEDED);if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+E.join("."));d.push(g),V.forEach(g,function(w,C){(!(V.isUndefined(w)||w===null)&&i.call(e,w,V.isString(C)?C.trim():C,E,v))===!0&&m(w,E?E.concat(C):[C],R+1)}),d.pop()}}if(!V.isObject(t))throw new TypeError("data must be an object");return m(t),e}function ba(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function S0(t,e){this._pairs=[],t&&vi(t,this,e)}const qc=S0.prototype;qc.append=function(e,r){this._pairs.push([e,r])};qc.toString=function(e){const r=e?function(n){return e.call(this,n,ba)}:ba;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Yd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Wc(t,e,r){if(!e)return t;const n=r&&r.encode||Yd,i=V.isFunction(r)?{serialize:r}:r,o=i&&i.serialize;let s;if(o?s=o(e,i):s=V.isURLSearchParams(e)?e.toString():new S0(e,i).toString(n),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Ca{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){V.forEach(this.handlers,function(n){n!==null&&e(n)})}}const F0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Xd=typeof URLSearchParams!="undefined"?URLSearchParams:S0,Jd=typeof FormData!="undefined"?FormData:null,Qd=typeof Blob!="undefined"?Blob:null,Zd={isBrowser:!0,classes:{URLSearchParams:Xd,FormData:Jd,Blob:Qd},protocols:["http","https","file","blob","url","data"]},R0=typeof window!="undefined"&&typeof document!="undefined",o0=typeof navigator=="object"&&navigator||void 0,ep=R0&&(!o0||["ReactNative","NativeScript","NS"].indexOf(o0.product)<0),tp=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rp=R0&&window.location.href||"http://localhost",np=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:R0,hasStandardBrowserEnv:ep,hasStandardBrowserWebWorkerEnv:tp,navigator:o0,origin:rp},Symbol.toStringTag,{value:"Module"})),at=$e($e({},np),Zd);function ip(t,e){return vi(t,new at.classes.URLSearchParams,$e({visitor:function(r,n,i,o){return at.isNode&&V.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function op(t){return V.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function ap(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 Vc(t){function e(r,n,i,o){let s=r[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),h=o>=r.length;return s=!s&&V.isArray(i)?i.length:s,h?(V.hasOwnProp(i,s)?i[s]=V.isArray(i[s])?i[s].concat(n):[i[s],n]:i[s]=n,!a):((!i[s]||!V.isObject(i[s]))&&(i[s]=[]),e(r,n,i[s],o)&&V.isArray(i[s])&&(i[s]=ap(i[s])),!a)}if(V.isFormData(t)&&V.isFunction(t.entries)){const r={};return V.forEachEntry(t,(n,i)=>{e(op(n),i,r,0)}),r}return null}const Fr=(t,e)=>t!=null&&V.hasOwnProp(t,e)?t[e]:void 0;function sp(t,e,r){if(V.isString(t))try{return(e||JSON.parse)(t),V.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const wn={transitional:F0,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=V.isObject(e);if(o&&V.isHTMLForm(e)&&(e=new FormData(e)),V.isFormData(e))return i?JSON.stringify(Vc(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){const h=Fr(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return ip(e,h).toString();if((a=V.isFileList(e))||n.indexOf("multipart/form-data")>-1){const u=Fr(this,"env"),l=u&&u.FormData;return vi(a?{"files[]":e}:e,l&&new l,h)}}return o||i?(r.setContentType("application/json",!1),sp(e)):e}],transformResponse:[function(e){const r=Fr(this,"transitional")||wn.transitional,n=r&&r.forcedJSONParsing,i=Fr(this,"responseType"),o=i==="json";if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!i||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e,Fr(this,"parseReviver"))}catch(h){if(a)throw h.name==="SyntaxError"?me.from(h,me.ERR_BAD_RESPONSE,this,null,Fr(this,"response")):h}}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}}};V.forEach(["delete","get","head","post","put","patch","query"],t=>{wn.headers[t]={}});function uo(t,e){const r=this||wn,n=e||r,i=ct.from(n.headers);let o=n.data;return V.forEach(t,function(a){o=a.call(r,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function Gc(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 jc(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 cp(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function up(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(h){const u=Date.now(),l=n[o];s||(s=u),r[i]=h,n[i]=u;let x=o,d=0;for(;x!==i;)d+=r[x++],x=x%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),u-s<e)return;const v=l&&u-l;return v?Math.round(d*1e3/v):void 0}}function fp(t,e){let r=0,n=1e3/e,i,o;const s=(u,l=Date.now())=>{r=l,i=null,o&&(clearTimeout(o),o=null),t(...u)};return[(...u)=>{const l=Date.now(),x=l-r;x>=n?s(u,l):(i=u,o||(o=setTimeout(()=>{o=null,s(i)},n-x)))},()=>i&&s(i)]}const ri=(t,e,r=3)=>{let n=0;const i=up(50,250);return fp(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,h=a!=null?Math.min(s,a):s,u=Math.max(0,h-n),l=i(u);n=Math.max(n,h);const x={loaded:h,total:a,progress:a?h/a:void 0,bytes:u,rate:l||void 0,estimated:l&&a?(a-h)/l:void 0,event:o,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(x)},r)},Ba=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Da=t=>(...e)=>V.asap(()=>t(...e)),lp=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,hp=at.hasStandardBrowserEnv?{write(t,e,r,n,i,o,s){if(typeof document=="undefined")return;const a=[`${t}=${encodeURIComponent(e)}`];V.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),V.isString(n)&&a.push(`path=${n}`),V.isString(i)&&a.push(`domain=${i}`),o===!0&&a.push("secure"),V.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 dp(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function pp(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Kc(t,e,r){let n=!dp(e);return t&&(n||r===!1)?pp(t,e):e}const Sa=t=>t instanceof ct?$e({},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(u,l,x,d){return V.isPlainObject(u)&&V.isPlainObject(l)?V.merge.call({caseless:d},u,l):V.isPlainObject(l)?V.merge({},l):V.isArray(l)?l.slice():l}function i(u,l,x,d){if(V.isUndefined(l)){if(!V.isUndefined(u))return n(void 0,u,x,d)}else return n(u,l,x,d)}function o(u,l){if(!V.isUndefined(l))return n(void 0,l)}function s(u,l){if(V.isUndefined(l)){if(!V.isUndefined(u))return n(void 0,u)}else return n(void 0,l)}function a(u,l,x){if(V.hasOwnProp(e,x))return n(u,l);if(V.hasOwnProp(t,x))return n(void 0,u)}const h={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(u,l,x)=>i(Sa(u),Sa(l),x,!0)};return V.forEach(Object.keys($e($e({},t),e)),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const x=V.hasOwnProp(h,l)?h[l]:i,d=V.hasOwnProp(t,l)?t[l]:void 0,v=V.hasOwnProp(e,l)?e[l]:void 0,m=x(d,v,l);V.isUndefined(m)&&x!==a||(r[l]=m)}),r}const xp=["content-type","content-length"];function vp(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,i])=>{xp.includes(n.toLowerCase())&&t.set(n,i)})}const yp=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),Yc=t=>{const e=fr({},t),r=d=>V.hasOwnProp(e,d)?e[d]:void 0,n=r("data");let i=r("withXSRFToken");const o=r("xsrfHeaderName"),s=r("xsrfCookieName");let a=r("headers");const h=r("auth"),u=r("baseURL"),l=r("allowAbsoluteUrls"),x=r("url");if(e.headers=a=ct.from(a),e.url=Wc(Kc(u,x,l),t.params,t.paramsSerializer),h&&a.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?yp(h.password):""))),V.isFormData(n)&&(at.hasStandardBrowserEnv||at.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):V.isFunction(n.getHeaders)&&vp(a,n.getHeaders(),r("formDataHeaderPolicy"))),at.hasStandardBrowserEnv&&(V.isFunction(i)&&(i=i(e)),i===!0||i==null&&lp(e.url))){const v=o&&s&&hp.read(s);v&&a.set(o,v)}return e},mp=typeof XMLHttpRequest!="undefined",gp=mp&&function(t){return new Promise(function(r,n){const i=Yc(t);let o=i.data;const s=ct.from(i.headers).normalize();let{responseType:a,onUploadProgress:h,onDownloadProgress:u}=i,l,x,d,v,m;function g(){v&&v(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let E=new XMLHttpRequest;E.open(i.method.toUpperCase(),i.url,!0),E.timeout=i.timeout;function R(){if(!E)return;const w=ct.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),D={data:!a||a==="text"||a==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:w,config:t,request:E};jc(function(L){r(L),g()},function(L){n(L),g()},D),E=null}"onloadend"in E?E.onloadend=R:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.startsWith("file:"))||setTimeout(R)},E.onabort=function(){E&&(n(new me("Request aborted",me.ECONNABORTED,t,E)),g(),E=null)},E.onerror=function(C){const D=C&&C.message?C.message:"Network Error",I=new me(D,me.ERR_NETWORK,t,E);I.event=C||null,n(I),g(),E=null},E.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const D=i.transitional||F0;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),n(new me(C,D.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,t,E)),g(),E=null},o===void 0&&s.setContentType(null),"setRequestHeader"in E&&V.forEach(s.toJSON(),function(C,D){E.setRequestHeader(D,C)}),V.isUndefined(i.withCredentials)||(E.withCredentials=!!i.withCredentials),a&&a!=="json"&&(E.responseType=i.responseType),u&&([d,m]=ri(u,!0),E.addEventListener("progress",d)),h&&E.upload&&([x,v]=ri(h),E.upload.addEventListener("progress",x),E.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(l=w=>{E&&(n(!w||w.type?new _n(null,t,E):w),E.abort(),g(),E=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const A=cp(i.url);if(A&&!at.protocols.includes(A)){n(new me("Unsupported protocol "+A+":",me.ERR_BAD_REQUEST,t));return}E.send(o||null)})},Ep=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const o=function(u){if(!i){i=!0,a();const l=u instanceof Error?u:this.reason;n.abort(l instanceof me?l:new _n(l instanceof Error?l.message:l))}};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(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),t=null)};t.forEach(u=>u.addEventListener("abort",o));const{signal:h}=n;return h.unsubscribe=()=>V.asap(a),h}},Ap=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},wp=function(t,e){return $i(this,null,function*(){try{for(var r=Y0(_p(t)),n,i,o;n=!(i=yield new nr(r.next())).done;n=!1){const s=i.value;yield*Hi(Ap(s,e))}}catch(i){o=[i]}finally{try{n&&(i=r.return)&&(yield new nr(i.call(r)))}finally{if(o)throw o[0]}}})},_p=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())}})},Fa=(t,e,r,n)=>{const i=wp(t,e);let o=0,s,a=u=>{s||(s=!0,n&&n(u))};return new ReadableStream({pull(u){return be(this,null,function*(){try{const{done:l,value:x}=yield i.next();if(l){a(),u.close();return}let d=x.byteLength;if(r){let v=o+=d;r(v)}u.enqueue(new Uint8Array(x))}catch(l){throw a(l),l}})},cancel(u){return a(u),i.return()}},{highWaterMark:2})};function bp(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 v=0;v<a;v++)if(n.charCodeAt(v)===37&&v+2<a){const m=n.charCodeAt(v+1),g=n.charCodeAt(v+2);(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(s-=2,v+=2)}let h=0,u=a-1;const l=v=>v>=2&&n.charCodeAt(v-2)===37&&n.charCodeAt(v-1)===51&&(n.charCodeAt(v)===68||n.charCodeAt(v)===100);u>=0&&(n.charCodeAt(u)===61?(h++,u--):l(u)&&(h++,u-=3)),h===1&&u>=0&&(n.charCodeAt(u)===61||l(u))&&h++;const d=Math.floor(s/4)*3-(h||0);return d>0?d: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 h=n.charCodeAt(s);if(h<128)o+=1;else if(h<2048)o+=2;else if(h>=55296&&h<=56319&&s+1<a){const u=n.charCodeAt(s+1);u>=56320&&u<=57343?(o+=4,s++):o+=3}else o+=3}return o}const I0="1.16.0",Ra=64*1024,{isFunction:Pn}=V,Ia=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},Cp=t=>{var R;const e=(R=V.global)!=null?R:globalThis,{ReadableStream:r,TextEncoder:n}=e;t=V.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",h=Pn(o),u=Pn(s);if(!a)return!1;const l=a&&Pn(r),x=a&&(typeof n=="function"?(A=>w=>A.encode(w))(new n):A=>be(exports,null,function*(){return new Uint8Array(yield new o(A).arrayBuffer())})),d=h&&l&&Ia(()=>{let A=!1;const w=new o(at.origin,{body:new r,method:"POST",get duplex(){return A=!0,"half"}}),C=w.headers.has("Content-Type");return w.body!=null&&w.body.cancel(),A&&!C}),v=u&&l&&Ia(()=>V.isReadableStream(new s("").body)),m={stream:v&&(A=>A.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(A=>{!m[A]&&(m[A]=(w,C)=>{let D=w&&w[A];if(D)return D.call(w);throw new me(`Response type '${A}' is not supported`,me.ERR_NOT_SUPPORT,C)})});const g=A=>be(exports,null,function*(){if(A==null)return 0;if(V.isBlob(A))return A.size;if(V.isSpecCompliantForm(A))return(yield new o(at.origin,{method:"POST",body:A}).arrayBuffer()).byteLength;if(V.isArrayBufferView(A)||V.isArrayBuffer(A))return A.byteLength;if(V.isURLSearchParams(A)&&(A=A+""),V.isString(A))return(yield x(A)).byteLength}),E=(A,w)=>be(exports,null,function*(){const C=V.toFiniteNumber(A.getContentLength());return C==null?g(w):C});return A=>be(exports,null,function*(){let{url:w,method:C,data:D,signal:I,cancelToken:L,timeout:q,onDownloadProgress:Z,onUploadProgress:O,responseType:k,headers:W,withCredentials:Y="same-origin",fetchOptions:J,maxContentLength:j,maxBodyLength:Q}=Yc(A);const oe=V.isNumber(j)&&j>-1,ie=V.isNumber(Q)&&Q>-1;let he=i||fetch;k=k?(k+"").toLowerCase():"text";let ue=Ep([I,L&&L.toAbortSignal()],q),H=null;const G=ue&&ue.unsubscribe&&(()=>{ue.unsubscribe()});let te;try{if(oe&&typeof w=="string"&&w.startsWith("data:")&&bp(w)>j)throw new me("maxContentLength size of "+j+" exceeded",me.ERR_BAD_RESPONSE,A,H);if(ie&&C!=="get"&&C!=="head"){const Ae=yield E(W,D);if(typeof Ae=="number"&&isFinite(Ae)&&Ae>Q)throw new me("Request body larger than maxBodyLength limit",me.ERR_BAD_REQUEST,A,H)}if(O&&d&&C!=="get"&&C!=="head"&&(te=yield E(W,D))!==0){let Ae=new o(w,{method:"POST",body:D,duplex:"half"}),Fe;if(V.isFormData(D)&&(Fe=Ae.headers.get("content-type"))&&W.setContentType(Fe),Ae.body){const[He,Me]=Ba(te,ri(Da(O)));D=Fa(Ae.body,Ra,He,Me)}}V.isString(Y)||(Y=Y?"include":"omit");const K=h&&"credentials"in o.prototype;if(V.isFormData(D)){const Ae=W.getContentType();Ae&&/^multipart\/form-data/i.test(Ae)&&!/boundary=/i.test(Ae)&&W.delete("content-type")}W.set("User-Agent","axios/"+I0,!1);const ge=Rt($e({},J),{signal:ue,method:C.toUpperCase(),headers:W.normalize().toJSON(),body:D,duplex:"half",credentials:K?Y:void 0});H=h&&new o(w,ge);let we=yield h?he(H,J):he(w,ge);if(oe){const Ae=V.toFiniteNumber(we.headers.get("content-length"));if(Ae!=null&&Ae>j)throw new me("maxContentLength size of "+j+" exceeded",me.ERR_BAD_RESPONSE,A,H)}const Ie=v&&(k==="stream"||k==="response");if(v&&we.body&&(Z||oe||Ie&&G)){const Ae={};["status","statusText","headers"].forEach(qe=>{Ae[qe]=we[qe]});const Fe=V.toFiniteNumber(we.headers.get("content-length")),[He,Me]=Z&&Ba(Fe,ri(Da(Z),!0))||[];let De=0;const ze=qe=>{if(oe&&(De=qe,De>j))throw new me("maxContentLength size of "+j+" exceeded",me.ERR_BAD_RESPONSE,A,H);He&&He(qe)};we=new s(Fa(we.body,Ra,ze,()=>{Me&&Me(),G&&G()}),Ae)}k=k||"text";let ve=yield m[V.findKey(m,k)||"text"](we,A);if(oe&&!v&&!Ie){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>j)throw new me("maxContentLength size of "+j+" exceeded",me.ERR_BAD_RESPONSE,A,H)}return!Ie&&G&&G(),yield new Promise((Ae,Fe)=>{jc(Ae,Fe,{data:ve,headers:ct.from(we.headers),status:we.status,statusText:we.statusText,config:A,request:H})})}catch(K){if(G&&G(),ue&&ue.aborted&&ue.reason instanceof me){const ge=ue.reason;throw ge.config=A,H&&(ge.request=H),K!==ge&&(ge.cause=K),ge}throw K&&K.name==="TypeError"&&/Load failed|fetch/i.test(K.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,A,H,K&&K.response),{cause:K.cause||K}):me.from(K,K&&K.code,A,H,K&&K.response)}})},Bp=new Map,Xc=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:i}=e,o=[n,i,r];let s=o.length,a=s,h,u,l=Bp;for(;a--;)h=o[a],u=l.get(h),u===void 0&&l.set(h,u=a?new Map:Cp(e)),l=u;return u};Xc();const T0={http:Gd,xhr:gp,fetch:{get:Xc}};V.forEach(T0,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch(r){}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const Ta=t=>`- ${t}`,Dp=t=>V.isFunction(t)||t===null||t===!1;function Sp(t,e){t=V.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,!Dp(n)&&(i=T0[(a=String(n)).toLowerCase()],i===void 0))throw new me(`Unknown adapter '${a}'`);if(i&&(V.isFunction(i)||(i=i.get(e))))break;o[a||"#"+s]=i}if(!i){const s=Object.entries(o).map(([h,u])=>`adapter ${h} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=r?s.length>1?`since :
|
|
7
|
+
`+s.map(Ta).join(`
|
|
8
|
+
`):" "+Ta(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 Jc={getAdapter:Sp,adapters:T0};function fo(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new _n(null,t)}function Oa(t){return fo(t),t.headers=ct.from(t.headers),t.data=uo.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Jc.getAdapter(t.adapter||wn.adapter,t)(t).then(function(n){fo(t),t.response=n;try{n.data=uo.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=ct.from(n.headers),n},function(n){if(!Gc(n)&&(fo(t),n&&n.response)){t.response=n.response;try{n.response.data=uo.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 Pa={};yi.transitional=function(e,r,n){function i(o,s){return"[Axios v"+I0+"] 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&&!Pa[s]&&(Pa[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 Fp(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],h=a===void 0||s(a,o,t);if(h!==!0)throw new me("option "+o+" must be "+h,me.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new me("Unknown option "+o,me.ERR_BAD_OPTION)}}const Kn={assertOptions:Fp,validators:yi},yt=Kn.validators;let ur=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ca,response:new Ca}}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
|
+
`);return s===-1?"":i.stack.slice(s+1)})();try{if(!n.stack)n.stack=o;else if(o){const s=o.indexOf(`
|
|
10
|
+
`),a=s===-1?-1:o.indexOf(`
|
|
11
|
+
`,s+1),h=a===-1?"":o.slice(a+1);String(n.stack).endsWith(h)||(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:yt.transitional(yt.boolean),forcedJSONParsing:yt.transitional(yt.boolean),clarifyTimeoutError:yt.transitional(yt.boolean),legacyInterceptorReqResOrdering:yt.transitional(yt.boolean)},!1),i!=null&&(V.isFunction(i)?r.paramsSerializer={serialize:i}:Kn.assertOptions(i,{encode:yt.function,serialize:yt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Kn.assertOptions(r,{baseUrl:yt.spelling("baseURL"),withXsrfToken:yt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&V.merge(o.common,o[r.method]);o&&V.forEach(["delete","get","head","post","put","patch","query","common"],m=>{delete o[m]}),r.headers=ct.concat(s,o);const a=[];let h=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(r)===!1)return;h=h&&g.synchronous;const E=r.transitional||F0;E&&E.legacyInterceptorReqResOrdering?a.unshift(g.fulfilled,g.rejected):a.push(g.fulfilled,g.rejected)});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let l,x=0,d;if(!h){const m=[Oa.bind(this),void 0];for(m.unshift(...a),m.push(...u),d=m.length,l=Promise.resolve(r);x<d;)l=l.then(m[x++],m[x++]);return l}d=a.length;let v=r;for(;x<d;){const m=a[x++],g=a[x++];try{v=m(v)}catch(E){g.call(this,E);break}}try{l=Oa.call(this,v)}catch(m){return Promise.reject(m)}for(x=0,d=u.length;x<d;)l=l.then(u[x++],u[x++]);return l}getUri(e){e=fr(this.defaults,e);const r=Kc(e.baseURL,e.url,e.allowAbsoluteUrls);return Wc(r,e.params,e.paramsSerializer)}};V.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}))}});V.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 Rp=class Qc{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 Qc(function(i){e=i}),cancel:e}}};function Ip(t){return function(r){return t.apply(null,r)}}function Tp(t){return V.isObject(t)&&t.isAxiosError===!0}const a0={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(a0).forEach(([t,e])=>{a0[e]=t});function Zc(t){const e=new ur(t),r=Oc(ur.prototype.request,e);return V.extend(r,ur.prototype,e,{allOwnKeys:!0}),V.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return Zc(fr(t,i))},r}const Ye=Zc(wn);Ye.Axios=ur;Ye.CanceledError=_n;Ye.CancelToken=Rp;Ye.isCancel=Gc;Ye.VERSION=I0;Ye.toFormData=vi;Ye.AxiosError=me;Ye.Cancel=Ye.CanceledError;Ye.all=function(e){return Promise.all(e)};Ye.spread=Ip;Ye.isAxiosError=Tp;Ye.mergeConfig=fr;Ye.AxiosHeaders=ct;Ye.formToJSON=t=>Vc(V.isHTMLForm(t)?new FormData(t):t);Ye.getAdapter=Jc.getAdapter;Ye.HttpStatusCode=a0;Ye.default=Ye;const{Axios:qy,AxiosError:Wy,CanceledError:Vy,isCancel:Gy,CancelToken:jy,VERSION:Ky,all:Yy,Cancel:Xy,isAxiosError:Jy,spread:Qy,toFormData:Zy,AxiosHeaders:e2,HttpStatusCode:t2,formToJSON:r2,getAdapter:n2,mergeConfig:i2,create:o2}=Ye,zt={NONE:"none",WUJIE:"wujie",QIANKUN:"qiankun",MICROAPP:"microapp"},Na={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(Zs,"__esModule",{value:!0});var zn=typeof window!="undefined"?window.proxy||window:{},nf=function(n){zn!=null&&zn.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),zn.qiankunName&&(window.moudleQiankunAppLifeCycles[zn.qiankunName]=n))};Zs.default=nf;var Fs=Zs.qiankunWindow=zn;Zs.renderWithQiankun=nf;function Nm(){return window.__POWERED_BY_WUJIE__||window.$wujie?dr.WUJIE:window.__POWERED_BY_QIANKUN__||Fs!=null&&Fs.__POWERED_BY_QIANKUN__?dr.QIANKUN:window.__MICRO_APP_ENVIRONMENT__||window.microApp?dr.MICROAPP:dr.NONE}function Lm(){return{microType:Nm()}}const Um="/",{microType:tu}=Lm(),$m=Fs||window;var Yl,Kl;const Qs=tu!==dr.NONE?tu:(Kl=(Yl=$m.meta)==null?void 0:Yl.vite.micro)==null?void 0:Kl.type,Hm=Qs===dr.WUJIE,qm=Qs===dr.QIANKUN,Wm=Qs===dr.MICROAPP,Vm=window.top!==window.self||Qs!==dr.NONE;console.log("🚀 ~ isNested:",Vm,Hm,qm,Wm);const jm=location.origin;var Jl,Zl,Ql,th,eh,rh,nh,ih,sh,oh,ah,ch;const sf={savePath:((Zl=(Jl=window.meta)==null?void 0:Jl.graph)==null?void 0:Zl.savePath)||"/cockpit/drawing",graphPenPath:((th=(Ql=window.meta)==null?void 0:Ql.graph)==null?void 0:th.graphPenPath)||"/cockpit/graph",templatePath:((rh=(eh=window.meta)==null?void 0:eh.graph)==null?void 0:rh.templatePath)||"/cockpit/template",graphImgUploadPath:((ih=(nh=window.meta)==null?void 0:nh.graph)==null?void 0:ih.graphImgUploadPath)||"/cockpit/upload",threeSavePath:((oh=(sh=window.meta)==null?void 0:sh.graph)==null?void 0:oh.threeSavePath)||"/cockpit/threed",threeModelPath:((ch=(ah=window.meta)==null?void 0:ah.graph)==null?void 0:ch.threeModelPath)||"/cockpit/models"},Xt=Jt.create({baseURL:jm,timeout:window.meta.axios.timeout||12e4,withCredentials:!1,paramsSerializer:n=>Kx.stringify(n)});Xt.interceptors.request.use(n=>(n.headers["x-token"]="ewoglCJhbGcilDogpc3",n),n=>Promise.reject(n));Xt.interceptors.response.use(n=>{const{data:t}=n;return Promise.resolve(t)},n=>Promise.reject(n));function Gm(n,t={},e={}){return new Promise(r=>{Xt.get(n,Lt({params:t},e)).then(i=>r({res:i,err:null})).catch(i=>r({res:null,err:i}))})}function Xm(n,t={},e={}){return new Promise(r=>{Xt.post(n,t,e).then(i=>r({res:i,err:null})).catch(i=>r({res:null,err:i}))})}function Ym(n,t={},e={}){return Xt.get(n,Lt({params:t},e))}function Km(n,t={},e={}){return Xt.post(n,t,e)}function Jm(n,t={}){return Xt.get(`/filehandle/${n}`,{params:t})}function Zm(n,t={},e={}){return Xt.post(`/filehandle/${n}`,t,e)}function Qm(n,t={}){return Xt.get(`/user/${n}`,{params:t})}function ty(n,t={},e={}){return Xt.post(`/user/${n}`,t,e)}function ey(n,t={}){return Xt.get(`${n}`,t.local?{params:t,baseURL:Um}:{params:t})}function ry(n,t={}){return Xt.get(`/media/${n}/`,{params:t})}function ny(n,t={},e={}){return Xt.post(`/media/${n}/`,t,e)}function iy(n,t={}){return Xt.get(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${n}/`,{params:t})}function sy(n,t={},e={}){return Xt.post(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${n}/`,t,e)}function oy(n,t={}){return Xt.get(`/history/${n}`,{params:t})}function ay(n,t={},e={}){return Xt.post(`/history/${n}`,t,e)}function cy(n,t={}){return Xt.get(`/scada/${n}`,{params:t})}function uy(n,t={},e={}){return Xt.post(`/scada/${n}`,t,e)}function ly(n,t={}){return Xt.get(`/common/factory/${n}`,{params:t})}function hy(n,t={},e={}){return Xt.post(`/common/factory/${n}`,t,e)}function fy(n,t={}){return Xt.get(`/factory/${n}`,{params:t})}function dy(n,t={},e={}){return Xt.post(`/factory/${n}`,t,e)}const rr={getApi:Gm,postApi:Xm,getFileApi:Jm,postFileApi:Zm,getBaseApi:Ym,postBaseApi:Km,getUserApi:Qm,postUserApi:ty,getGraphApi:ey,getMediaApi:ry,postMediaApi:ny,getScadaApi:cy,postScadaApi:uy,getCommonApi:iy,postCommonApi:sy,getHistoryApi:oy,postHistoryApi:ay,getFactoryApi:fy,postFactoryApi:dy,getCommonFactoryApi:ly,postCommonFactoryApi:hy};var py={exports:{}};(function(n,t){(function(e,r){n.exports=r()})(_t,function(){var e=1e3,r=6e4,i=36e5,s="millisecond",o="second",a="minute",u="hour",c="day",l="week",f="month",h="quarter",p="year",x="date",y="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|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(J){var G=["th","st","nd","rd"],Q=J%100;return"["+J+(G[(Q-20)%10]||G[Q]||G[0])+"]"}},E=function(J,G,Q){var ot=String(J);return!ot||ot.length>=G?J:""+Array(G+1-ot.length).join(Q)+J},_={s:E,z:function(J){var G=-J.utcOffset(),Q=Math.abs(G),ot=Math.floor(Q/60),it=Q%60;return(G<=0?"+":"-")+E(ot,2,"0")+":"+E(it,2,"0")},m:function J(G,Q){if(G.date()<Q.date())return-J(Q,G);var ot=12*(Q.year()-G.year())+(Q.month()-G.month()),it=G.clone().add(ot,f),ut=Q-it<0,at=G.clone().add(ot+(ut?-1:1),f);return+(-(ot+(Q-it)/(ut?it-at:at-it))||0)},a:function(J){return J<0?Math.ceil(J)||0:Math.floor(J)},p:function(J){return{M:f,y:p,w:l,d:c,D:x,h:u,m:a,s:o,ms:s,Q:h}[J]||String(J||"").toLowerCase().replace(/s$/,"")},u:function(J){return J===void 0}},C="en",T={};T[C]=w;var R="$isDayjsObject",N=function(J){return J instanceof q||!(!J||!J[R])},Y=function J(G,Q,ot){var it;if(!G)return C;if(typeof G=="string"){var ut=G.toLowerCase();T[ut]&&(it=ut),Q&&(T[ut]=Q,it=ut);var at=G.split("-");if(!it&&at.length>1)return J(at[0])}else{var U=G.name;T[U]=G,it=U}return!ot&&it&&(C=it),it||!ot&&C},I=function(J,G){if(N(J))return J.clone();var Q=typeof G=="object"?G:{};return Q.date=J,Q.args=arguments,new q(Q)},O=_;O.l=Y,O.i=N,O.w=function(J,G){return I(J,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var q=function(){function J(Q){this.$L=Y(Q.locale,null,!0),this.parse(Q),this.$x=this.$x||Q.x||{},this[R]=!0}var G=J.prototype;return G.parse=function(Q){this.$d=function(ot){var it=ot.date,ut=ot.utc;if(it===null)return new Date(NaN);if(O.u(it))return new Date;if(it instanceof Date)return new Date(it);if(typeof it=="string"&&!/Z$/i.test(it)){var at=it.match(g);if(at){var U=at[2]-1||0,X=(at[7]||"0").substring(0,3);return ut?new Date(Date.UTC(at[1],U,at[3]||1,at[4]||0,at[5]||0,at[6]||0,X)):new Date(at[1],U,at[3]||1,at[4]||0,at[5]||0,at[6]||0,X)}}return new Date(it)}(Q),this.init()},G.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()},G.$utils=function(){return O},G.isValid=function(){return this.$d.toString()!==y},G.isSame=function(Q,ot){var it=I(Q);return this.startOf(ot)<=it&&it<=this.endOf(ot)},G.isAfter=function(Q,ot){return I(Q)<this.startOf(ot)},G.isBefore=function(Q,ot){return this.endOf(ot)<I(Q)},G.$g=function(Q,ot,it){return O.u(Q)?this[ot]:this.set(it,Q)},G.unix=function(){return Math.floor(this.valueOf()/1e3)},G.valueOf=function(){return this.$d.getTime()},G.startOf=function(Q,ot){var it=this,ut=!!O.u(ot)||ot,at=O.p(Q),U=function(bt,Mt){var qt=O.w(it.$u?Date.UTC(it.$y,Mt,bt):new Date(it.$y,Mt,bt),it);return ut?qt:qt.endOf(c)},X=function(bt,Mt){return O.w(it.toDate()[bt].apply(it.toDate("s"),(ut?[0,0,0,0]:[23,59,59,999]).slice(Mt)),it)},tt=this.$W,K=this.$M,wt=this.$D,At="set"+(this.$u?"UTC":"");switch(at){case p:return ut?U(1,0):U(31,11);case f:return ut?U(1,K):U(0,K+1);case l:var It=this.$locale().weekStart||0,yt=(tt<It?tt+7:tt)-It;return U(ut?wt-yt:wt+(6-yt),K);case c:case x:return X(At+"Hours",0);case u:return X(At+"Minutes",1);case a:return X(At+"Seconds",2);case o:return X(At+"Milliseconds",3);default:return this.clone()}},G.endOf=function(Q){return this.startOf(Q,!1)},G.$set=function(Q,ot){var it,ut=O.p(Q),at="set"+(this.$u?"UTC":""),U=(it={},it[c]=at+"Date",it[x]=at+"Date",it[f]=at+"Month",it[p]=at+"FullYear",it[u]=at+"Hours",it[a]=at+"Minutes",it[o]=at+"Seconds",it[s]=at+"Milliseconds",it)[ut],X=ut===c?this.$D+(ot-this.$W):ot;if(ut===f||ut===p){var tt=this.clone().set(x,1);tt.$d[U](X),tt.init(),this.$d=tt.set(x,Math.min(this.$D,tt.daysInMonth())).$d}else U&&this.$d[U](X);return this.init(),this},G.set=function(Q,ot){return this.clone().$set(Q,ot)},G.get=function(Q){return this[O.p(Q)]()},G.add=function(Q,ot){var it,ut=this;Q=Number(Q);var at=O.p(ot),U=function(K){var wt=I(ut);return O.w(wt.date(wt.date()+Math.round(K*Q)),ut)};if(at===f)return this.set(f,this.$M+Q);if(at===p)return this.set(p,this.$y+Q);if(at===c)return U(1);if(at===l)return U(7);var X=(it={},it[a]=r,it[u]=i,it[o]=e,it)[at]||1,tt=this.$d.getTime()+Q*X;return O.w(tt,this)},G.subtract=function(Q,ot){return this.add(-1*Q,ot)},G.format=function(Q){var ot=this,it=this.$locale();if(!this.isValid())return it.invalidDate||y;var ut=Q||"YYYY-MM-DDTHH:mm:ssZ",at=O.z(this),U=this.$H,X=this.$m,tt=this.$M,K=it.weekdays,wt=it.months,At=it.meridiem,It=function(Mt,qt,__$t__,Ft){return Mt&&(Mt[qt]||Mt(ot,ut))||__$t__[qt].slice(0,Ft)},yt=function(Mt){return O.s(U%12||12,Mt,"0")},bt=At||function(Mt,qt,__$t__){var Ft=Mt<12?"AM":"PM";return __$t__?Ft.toLowerCase():Ft};return ut.replace(A,function(Mt,qt){return qt||function(__$t__){switch(__$t__){case"YY":return String(ot.$y).slice(-2);case"YYYY":return O.s(ot.$y,4,"0");case"M":return tt+1;case"MM":return O.s(tt+1,2,"0");case"MMM":return It(it.monthsShort,tt,wt,3);case"MMMM":return It(wt,tt);case"D":return ot.$D;case"DD":return O.s(ot.$D,2,"0");case"d":return String(ot.$W);case"dd":return It(it.weekdaysMin,ot.$W,K,2);case"ddd":return It(it.weekdaysShort,ot.$W,K,3);case"dddd":return K[ot.$W];case"H":return String(U);case"HH":return O.s(U,2,"0");case"h":return yt(1);case"hh":return yt(2);case"a":return bt(U,X,!0);case"A":return bt(U,X,!1);case"m":return String(X);case"mm":return O.s(X,2,"0");case"s":return String(ot.$s);case"ss":return O.s(ot.$s,2,"0");case"SSS":return O.s(ot.$ms,3,"0");case"Z":return at}return null}(Mt)||at.replace(":","")})},G.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},G.diff=function(Q,ot,it){var ut,at=this,U=O.p(ot),X=I(Q),tt=(X.utcOffset()-this.utcOffset())*r,K=this-X,wt=function(){return O.m(at,X)};switch(U){case p:ut=wt()/12;break;case f:ut=wt();break;case h:ut=wt()/3;break;case l:ut=(K-tt)/6048e5;break;case c:ut=(K-tt)/864e5;break;case u:ut=K/i;break;case a:ut=K/r;break;case o:ut=K/e;break;default:ut=K}return it?ut:O.a(ut)},G.daysInMonth=function(){return this.endOf(f).$D},G.$locale=function(){return T[this.$L]},G.locale=function(Q,ot){if(!Q)return this.$L;var it=this.clone(),ut=Y(Q,ot,!0);return ut&&(it.$L=ut),it},G.clone=function(){return O.w(this.$d,this)},G.toDate=function(){return new Date(this.valueOf())},G.toJSON=function(){return this.isValid()?this.toISOString():null},G.toISOString=function(){return this.$d.toISOString()},G.toString=function(){return this.$d.toUTCString()},J}(),j=q.prototype;return I.prototype=j,[["$ms",s],["$s",o],["$m",a],["$H",u],["$W",c],["$M",f],["$y",p],["$D",x]].forEach(function(J){j[J[1]]=function(G){return this.$g(G,J[0],J[1])}}),I.extend=function(J,G){return J.$i||(J(G,q,I),J.$i=!0),I},I.locale=Y,I.isDayjs=N,I.unix=function(J){return I(1e3*J)},I.en=T[C],I.Ls=T,I.p={},I})})(py);const xy=()=>{var r;const n={},t=((r=window.location.href.split("?"))==null?void 0:r[1])||"",e=new URLSearchParams(t);for(const[i,s]of e.entries())n[i]=s;return n};function eu(n){return Object.prototype.toString.call(n).slice(8,-1)}function g0(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,n=>(n^crypto.getRandomValues(new Uint8Array(1))[0]&15>>n/4).toString(16))}function my(n){return{all:n=n||new Map,on:function(t,e){var r=n.get(t);r?r.push(e):n.set(t,[e])},off:function(t,e){var r=n.get(t);r&&(e?r.splice(r.indexOf(e)>>>0,1):n.set(t,[]))},emit:function(t,e){var r=n.get(t);r&&r.slice().map(function(i){i(e)}),(r=n.get("*"))&&r.slice().map(function(i){i(t,e)})}}}const v0=my();class yy{constructor(t={}){this._options=Lt({url:t.socketUrl,onOpen:null,onClose:null,onError:null,onMessage:null},t),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:t,onOpen:e,onClose:r,onError:i,onMessage:s,token:o}=this._options;WebSocket!==void 0?this._client=new WebSocket(t,[o]):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),e&&e(a)},this._client.onclose=a=>{!this._closeClient&&this.retryIntervalStart(),this._isConnect=!1,r&&r(a)},this._client.onerror=a=>{i&&i(a)},this._client.onmessage=a=>{s&&s(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(t){this._isConnect&&this._client.send(t)}destroy(){this._client&&(this._isConnect=!1,this._retryIntervalObj&&clearInterval(this._retryIntervalObj),this._retryIntervalObj=null,this._closeClient=!0,this._client.close(),this._client=null)}}const gy=(n,t)=>new Promise((e,r)=>{rr.postApi("/filehandle/save",{path:n,data:t}).then(i=>{i.res.success?e(!0):r(!1)})});R0.createPinia();var vy={exports:{}};function mi(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Jo={exports:{}},ru;function Rt(){return ru||(ru=1,function(n,t){(function(e,r){n.exports=r()})(_t,function(){var e=e||function(r,i){var s;if(typeof window!="undefined"&&window.crypto&&(s=window.crypto),typeof self!="undefined"&&self.crypto&&(s=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window!="undefined"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof _t!="undefined"&&_t.crypto&&(s=_t.crypto),!s&&typeof mi=="function")try{s=lh}catch(w){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(w){}if(typeof s.randomBytes=="function")try{return s.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(E){var _;return w.prototype=E,_=new w,w.prototype=null,_}}(),u={},c=u.lib={},l=c.Base=function(){return{extend:function(w){var E=a(this);return w&&E.mixIn(w),(!E.hasOwnProperty("init")||this.init===E.init)&&(E.init=function(){E.$super.init.apply(this,arguments)}),E.init.prototype=E,E.$super=this,E},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var E in w)w.hasOwnProperty(E)&&(this[E]=w[E]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=c.WordArray=l.extend({init:function(w,E){w=this.words=w||[],E!=i?this.sigBytes=E:this.sigBytes=w.length*4},toString:function(w){return(w||p).stringify(this)},concat:function(w){var E=this.words,_=w.words,C=this.sigBytes,T=w.sigBytes;if(this.clamp(),C%4)for(var R=0;R<T;R++){var N=_[R>>>2]>>>24-R%4*8&255;E[C+R>>>2]|=N<<24-(C+R)%4*8}else for(var Y=0;Y<T;Y+=4)E[C+Y>>>2]=_[Y>>>2];return this.sigBytes+=T,this},clamp:function(){var w=this.words,E=this.sigBytes;w[E>>>2]&=4294967295<<32-E%4*8,w.length=r.ceil(E/4)},clone:function(){var w=l.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var E=[],_=0;_<w;_+=4)E.push(o());return new f.init(E,w)}}),h=u.enc={},p=h.Hex={stringify:function(w){for(var E=w.words,_=w.sigBytes,C=[],T=0;T<_;T++){var R=E[T>>>2]>>>24-T%4*8&255;C.push((R>>>4).toString(16)),C.push((R&15).toString(16))}return C.join("")},parse:function(w){for(var E=w.length,_=[],C=0;C<E;C+=2)_[C>>>3]|=parseInt(w.substr(C,2),16)<<24-C%8*4;return new f.init(_,E/2)}},x=h.Latin1={stringify:function(w){for(var E=w.words,_=w.sigBytes,C=[],T=0;T<_;T++){var R=E[T>>>2]>>>24-T%4*8&255;C.push(String.fromCharCode(R))}return C.join("")},parse:function(w){for(var E=w.length,_=[],C=0;C<E;C++)_[C>>>2]|=(w.charCodeAt(C)&255)<<24-C%4*8;return new f.init(_,E)}},y=h.Utf8={stringify:function(w){try{return decodeURIComponent(escape(x.stringify(w)))}catch(E){throw new Error("Malformed UTF-8 data")}},parse:function(w){return x.parse(unescape(encodeURIComponent(w)))}},g=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=y.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var E,_=this._data,C=_.words,T=_.sigBytes,R=this.blockSize,N=R*4,Y=T/N;w?Y=r.ceil(Y):Y=r.max((Y|0)-this._minBufferSize,0);var I=Y*R,O=r.min(I*4,T);if(I){for(var q=0;q<I;q+=R)this._doProcessBlock(C,q);E=C.splice(0,I),_.sigBytes-=O}return new f.init(E,O)},clone:function(){var w=l.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});c.Hasher=g.extend({cfg:l.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var E=this._doFinalize();return E},blockSize:16,_createHelper:function(w){return function(E,_){return new w.init(_).finalize(E)}},_createHmacHelper:function(w){return function(E,_){return new A.HMAC.init(w,_).finalize(E)}}});var A=u.algo={};return u}(Math);return e})}(Jo)),Jo.exports}var Zo={exports:{}},nu;function to(){return nu||(nu=1,function(n,t){(function(e,r){n.exports=r(Rt())})(_t,function(e){return function(r){var i=e,s=i.lib,o=s.Base,a=s.WordArray,u=i.x64={};u.Word=o.extend({init:function(c,l){this.high=c,this.low=l}}),u.WordArray=o.extend({init:function(c,l){c=this.words=c||[],l!=r?this.sigBytes=l:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,l=c.length,f=[],h=0;h<l;h++){var p=c[h];f.push(p.high),f.push(p.low)}return a.create(f,this.sigBytes)},clone:function(){for(var c=o.clone.call(this),l=c.words=this.words.slice(0),f=l.length,h=0;h<f;h++)l[h]=l[h].clone();return c}})}(),e})}(Zo)),Zo.exports}var Qo={exports:{}},iu;function wy(){return iu||(iu=1,function(n,t){(function(e,r){n.exports=r(Rt())})(_t,function(e){return function(){if(typeof ArrayBuffer=="function"){var r=e,i=r.lib,s=i.WordArray,o=s.init,a=s.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,l=[],f=0;f<c;f++)l[f>>>2]|=u[f]<<24-f%4*8;o.call(this,l,c)}else o.apply(this,arguments)};a.prototype=s}}(),e.lib.WordArray})}(Qo)),Qo.exports}var ta={exports:{}},su;function Ey(){return su||(su=1,function(n,t){(function(e,r){n.exports=r(Rt())})(_t,function(e){return function(){var r=e,i=r.lib,s=i.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(u){for(var c=u.words,l=u.sigBytes,f=[],h=0;h<l;h+=2){var p=c[h>>>2]>>>16-h%4*8&65535;f.push(String.fromCharCode(p))}return f.join("")},parse:function(u){for(var c=u.length,l=[],f=0;f<c;f++)l[f>>>1]|=u.charCodeAt(f)<<16-f%2*16;return s.create(l,c*2)}},o.Utf16LE={stringify:function(u){for(var c=u.words,l=u.sigBytes,f=[],h=0;h<l;h+=2){var p=a(c[h>>>2]>>>16-h%4*8&65535);f.push(String.fromCharCode(p))}return f.join("")},parse:function(u){for(var c=u.length,l=[],f=0;f<c;f++)l[f>>>1]|=a(u.charCodeAt(f)<<16-f%2*16);return s.create(l,c*2)}};function a(u){return u<<8&4278255360|u>>>8&16711935}}(),e.enc.Utf16})}(ta)),ta.exports}var ea={exports:{}},ou;function rn(){return ou||(ou=1,function(n,t){(function(e,r){n.exports=r(Rt())})(_t,function(e){return function(){var r=e,i=r.lib,s=i.WordArray,o=r.enc;o.Base64={stringify:function(u){var c=u.words,l=u.sigBytes,f=this._map;u.clamp();for(var h=[],p=0;p<l;p+=3)for(var x=c[p>>>2]>>>24-p%4*8&255,y=c[p+1>>>2]>>>24-(p+1)%4*8&255,g=c[p+2>>>2]>>>24-(p+2)%4*8&255,A=x<<16|y<<8|g,w=0;w<4&&p+w*.75<l;w++)h.push(f.charAt(A>>>6*(3-w)&63));var E=f.charAt(64);if(E)for(;h.length%4;)h.push(E);return h.join("")},parse:function(u){var c=u.length,l=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var h=0;h<l.length;h++)f[l.charCodeAt(h)]=h}var p=l.charAt(64);if(p){var x=u.indexOf(p);x!==-1&&(c=x)}return a(u,c,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(u,c,l){for(var f=[],h=0,p=0;p<c;p++)if(p%4){var x=l[u.charCodeAt(p-1)]<<p%4*2,y=l[u.charCodeAt(p)]>>>6-p%4*2,g=x|y;f[h>>>2]|=g<<24-h%4*8,h++}return s.create(f,h)}}(),e.enc.Base64})}(ea)),ea.exports}var ra={exports:{}},au;function by(){return au||(au=1,function(n,t){(function(e,r){n.exports=r(Rt())})(_t,function(e){return function(){var r=e,i=r.lib,s=i.WordArray,o=r.enc;o.Base64url={stringify:function(u,c){c===void 0&&(c=!0);var l=u.words,f=u.sigBytes,h=c?this._safe_map:this._map;u.clamp();for(var p=[],x=0;x<f;x+=3)for(var y=l[x>>>2]>>>24-x%4*8&255,g=l[x+1>>>2]>>>24-(x+1)%4*8&255,A=l[x+2>>>2]>>>24-(x+2)%4*8&255,w=y<<16|g<<8|A,E=0;E<4&&x+E*.75<f;E++)p.push(h.charAt(w>>>6*(3-E)&63));var _=h.charAt(64);if(_)for(;p.length%4;)p.push(_);return p.join("")},parse:function(u,c){c===void 0&&(c=!0);var l=u.length,f=c?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var p=0;p<f.length;p++)h[f.charCodeAt(p)]=p}var x=f.charAt(64);if(x){var y=u.indexOf(x);y!==-1&&(l=y)}return a(u,l,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(u,c,l){for(var f=[],h=0,p=0;p<c;p++)if(p%4){var x=l[u.charCodeAt(p-1)]<<p%4*2,y=l[u.charCodeAt(p)]>>>6-p%4*2,g=x|y;f[h>>>2]|=g<<24-h%4*8,h++}return s.create(f,h)}}(),e.enc.Base64url})}(ra)),ra.exports}var na={exports:{}},cu;function nn(){return cu||(cu=1,function(n,t){(function(e,r){n.exports=r(Rt())})(_t,function(e){return function(r){var i=e,s=i.lib,o=s.WordArray,a=s.Hasher,u=i.algo,c=[];(function(){for(var y=0;y<64;y++)c[y]=r.abs(r.sin(y+1))*4294967296|0})();var l=u.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(y,g){for(var A=0;A<16;A++){var w=g+A,E=y[w];y[w]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}var _=this._hash.words,C=y[g+0],T=y[g+1],R=y[g+2],N=y[g+3],Y=y[g+4],I=y[g+5],O=y[g+6],q=y[g+7],j=y[g+8],J=y[g+9],G=y[g+10],Q=y[g+11],ot=y[g+12],it=y[g+13],ut=y[g+14],at=y[g+15],U=_[0],X=_[1],tt=_[2],K=_[3];U=f(U,X,tt,K,C,7,c[0]),K=f(K,U,X,tt,T,12,c[1]),tt=f(tt,K,U,X,R,17,c[2]),X=f(X,tt,K,U,N,22,c[3]),U=f(U,X,tt,K,Y,7,c[4]),K=f(K,U,X,tt,I,12,c[5]),tt=f(tt,K,U,X,O,17,c[6]),X=f(X,tt,K,U,q,22,c[7]),U=f(U,X,tt,K,j,7,c[8]),K=f(K,U,X,tt,J,12,c[9]),tt=f(tt,K,U,X,G,17,c[10]),X=f(X,tt,K,U,Q,22,c[11]),U=f(U,X,tt,K,ot,7,c[12]),K=f(K,U,X,tt,it,12,c[13]),tt=f(tt,K,U,X,ut,17,c[14]),X=f(X,tt,K,U,at,22,c[15]),U=h(U,X,tt,K,T,5,c[16]),K=h(K,U,X,tt,O,9,c[17]),tt=h(tt,K,U,X,Q,14,c[18]),X=h(X,tt,K,U,C,20,c[19]),U=h(U,X,tt,K,I,5,c[20]),K=h(K,U,X,tt,G,9,c[21]),tt=h(tt,K,U,X,at,14,c[22]),X=h(X,tt,K,U,Y,20,c[23]),U=h(U,X,tt,K,J,5,c[24]),K=h(K,U,X,tt,ut,9,c[25]),tt=h(tt,K,U,X,N,14,c[26]),X=h(X,tt,K,U,j,20,c[27]),U=h(U,X,tt,K,it,5,c[28]),K=h(K,U,X,tt,R,9,c[29]),tt=h(tt,K,U,X,q,14,c[30]),X=h(X,tt,K,U,ot,20,c[31]),U=p(U,X,tt,K,I,4,c[32]),K=p(K,U,X,tt,j,11,c[33]),tt=p(tt,K,U,X,Q,16,c[34]),X=p(X,tt,K,U,ut,23,c[35]),U=p(U,X,tt,K,T,4,c[36]),K=p(K,U,X,tt,Y,11,c[37]),tt=p(tt,K,U,X,q,16,c[38]),X=p(X,tt,K,U,G,23,c[39]),U=p(U,X,tt,K,it,4,c[40]),K=p(K,U,X,tt,C,11,c[41]),tt=p(tt,K,U,X,N,16,c[42]),X=p(X,tt,K,U,O,23,c[43]),U=p(U,X,tt,K,J,4,c[44]),K=p(K,U,X,tt,ot,11,c[45]),tt=p(tt,K,U,X,at,16,c[46]),X=p(X,tt,K,U,R,23,c[47]),U=x(U,X,tt,K,C,6,c[48]),K=x(K,U,X,tt,q,10,c[49]),tt=x(tt,K,U,X,ut,15,c[50]),X=x(X,tt,K,U,I,21,c[51]),U=x(U,X,tt,K,ot,6,c[52]),K=x(K,U,X,tt,N,10,c[53]),tt=x(tt,K,U,X,G,15,c[54]),X=x(X,tt,K,U,T,21,c[55]),U=x(U,X,tt,K,j,6,c[56]),K=x(K,U,X,tt,at,10,c[57]),tt=x(tt,K,U,X,O,15,c[58]),X=x(X,tt,K,U,it,21,c[59]),U=x(U,X,tt,K,Y,6,c[60]),K=x(K,U,X,tt,Q,10,c[61]),tt=x(tt,K,U,X,R,15,c[62]),X=x(X,tt,K,U,J,21,c[63]),_[0]=_[0]+U|0,_[1]=_[1]+X|0,_[2]=_[2]+tt|0,_[3]=_[3]+K|0},_doFinalize:function(){var y=this._data,g=y.words,A=this._nDataBytes*8,w=y.sigBytes*8;g[w>>>5]|=128<<24-w%32;var E=r.floor(A/4294967296),_=A;g[(w+64>>>9<<4)+15]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,g[(w+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,y.sigBytes=(g.length+1)*4,this._process();for(var C=this._hash,T=C.words,R=0;R<4;R++){var N=T[R];T[R]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}return C},clone:function(){var y=a.clone.call(this);return y._hash=this._hash.clone(),y}});function f(y,g,A,w,E,_,C){var T=y+(g&A|~g&w)+E+C;return(T<<_|T>>>32-_)+g}function h(y,g,A,w,E,_,C){var T=y+(g&w|A&~w)+E+C;return(T<<_|T>>>32-_)+g}function p(y,g,A,w,E,_,C){var T=y+(g^A^w)+E+C;return(T<<_|T>>>32-_)+g}function x(y,g,A,w,E,_,C){var T=y+(A^(g|~w))+E+C;return(T<<_|T>>>32-_)+g}i.MD5=a._createHelper(l),i.HmacMD5=a._createHmacHelper(l)}(Math),e.MD5})}(na)),na.exports}var ia={exports:{}},uu;function of(){return uu||(uu=1,function(n,t){(function(e,r){n.exports=r(Rt())})(_t,function(e){return function(){var r=e,i=r.lib,s=i.WordArray,o=i.Hasher,a=r.algo,u=[],c=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,f){for(var h=this._hash.words,p=h[0],x=h[1],y=h[2],g=h[3],A=h[4],w=0;w<80;w++){if(w<16)u[w]=l[f+w]|0;else{var E=u[w-3]^u[w-8]^u[w-14]^u[w-16];u[w]=E<<1|E>>>31}var _=(p<<5|p>>>27)+A+u[w];w<20?_+=(x&y|~x&g)+1518500249:w<40?_+=(x^y^g)+1859775393:w<60?_+=(x&y|x&g|y&g)-1894007588:_+=(x^y^g)-899497514,A=g,g=y,y=x<<30|x>>>2,x=p,p=_}h[0]=h[0]+p|0,h[1]=h[1]+x|0,h[2]=h[2]+y|0,h[3]=h[3]+g|0,h[4]=h[4]+A|0},_doFinalize:function(){var l=this._data,f=l.words,h=this._nDataBytes*8,p=l.sigBytes*8;return f[p>>>5]|=128<<24-p%32,f[(p+64>>>9<<4)+14]=Math.floor(h/4294967296),f[(p+64>>>9<<4)+15]=h,l.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var l=o.clone.call(this);return l._hash=this._hash.clone(),l}});r.SHA1=o._createHelper(c),r.HmacSHA1=o._createHmacHelper(c)}(),e.SHA1})}(ia)),ia.exports}var sa={exports:{}},lu;function j0(){return lu||(lu=1,function(n,t){(function(e,r){n.exports=r(Rt())})(_t,function(e){return function(r){var i=e,s=i.lib,o=s.WordArray,a=s.Hasher,u=i.algo,c=[],l=[];(function(){function p(A){for(var w=r.sqrt(A),E=2;E<=w;E++)if(!(A%E))return!1;return!0}function x(A){return(A-(A|0))*4294967296|0}for(var y=2,g=0;g<64;)p(y)&&(g<8&&(c[g]=x(r.pow(y,1/2))),l[g]=x(r.pow(y,1/3)),g++),y++})();var f=[],h=u.SHA256=a.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(p,x){for(var y=this._hash.words,g=y[0],A=y[1],w=y[2],E=y[3],_=y[4],C=y[5],T=y[6],R=y[7],N=0;N<64;N++){if(N<16)f[N]=p[x+N]|0;else{var Y=f[N-15],I=(Y<<25|Y>>>7)^(Y<<14|Y>>>18)^Y>>>3,O=f[N-2],q=(O<<15|O>>>17)^(O<<13|O>>>19)^O>>>10;f[N]=I+f[N-7]+q+f[N-16]}var j=_&C^~_&T,J=g&A^g&w^A&w,G=(g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22),Q=(_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25),ot=R+Q+j+l[N]+f[N],it=G+J;R=T,T=C,C=_,_=E+ot|0,E=w,w=A,A=g,g=ot+it|0}y[0]=y[0]+g|0,y[1]=y[1]+A|0,y[2]=y[2]+w|0,y[3]=y[3]+E|0,y[4]=y[4]+_|0,y[5]=y[5]+C|0,y[6]=y[6]+T|0,y[7]=y[7]+R|0},_doFinalize:function(){var p=this._data,x=p.words,y=this._nDataBytes*8,g=p.sigBytes*8;return x[g>>>5]|=128<<24-g%32,x[(g+64>>>9<<4)+14]=r.floor(y/4294967296),x[(g+64>>>9<<4)+15]=y,p.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var p=a.clone.call(this);return p._hash=this._hash.clone(),p}});i.SHA256=a._createHelper(h),i.HmacSHA256=a._createHmacHelper(h)}(Math),e.SHA256})}(sa)),sa.exports}var oa={exports:{}},hu;function Ay(){return hu||(hu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),j0())})(_t,function(e){return function(){var r=e,i=r.lib,s=i.WordArray,o=r.algo,a=o.SHA256,u=o.SHA224=a.extend({_doReset:function(){this._hash=new s.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=a._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=a._createHelper(u),r.HmacSHA224=a._createHmacHelper(u)}(),e.SHA224})}(oa)),oa.exports}var aa={exports:{}},fu;function af(){return fu||(fu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),to())})(_t,function(e){return function(){var r=e,i=r.lib,s=i.Hasher,o=r.x64,a=o.Word,u=o.WordArray,c=r.algo;function l(){return a.create.apply(a,arguments)}var f=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],h=[];(function(){for(var x=0;x<80;x++)h[x]=l()})();var p=c.SHA512=s.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(x,y){for(var g=this._hash.words,A=g[0],w=g[1],E=g[2],_=g[3],C=g[4],T=g[5],R=g[6],N=g[7],Y=A.high,I=A.low,O=w.high,q=w.low,j=E.high,J=E.low,G=_.high,Q=_.low,ot=C.high,it=C.low,ut=T.high,at=T.low,U=R.high,X=R.low,tt=N.high,K=N.low,wt=Y,At=I,It=O,yt=q,bt=j,Mt=J,qt=G,__$t__=Q,Ft=ot,Wt=it,Vt=ut,M=at,d=U,m=X,B=tt,k=K,Z=0;Z<80;Z++){var nt,mt,Et=h[Z];if(Z<16)mt=Et.high=x[y+Z*2]|0,nt=Et.low=x[y+Z*2+1]|0;else{var Ot=h[Z-15],kt=Ot.high,Pt=Ot.low,Re=(kt>>>1|Pt<<31)^(kt>>>8|Pt<<24)^kt>>>7,je=(Pt>>>1|kt<<31)^(Pt>>>8|kt<<24)^(Pt>>>7|kt<<25),Ge=h[Z-2],Ie=Ge.high,Xe=Ge.low,an=(Ie>>>19|Xe<<13)^(Ie<<3|Xe>>>29)^Ie>>>6,Ye=(Xe>>>19|Ie<<13)^(Xe<<3|Ie>>>29)^(Xe>>>6|Ie<<26),cn=h[Z-7],un=cn.high,Or=cn.low,gr=h[Z-16],Yn=gr.high,Ee=gr.low;nt=je+Or,mt=Re+un+(nt>>>0<je>>>0?1:0),nt=nt+Ye,mt=mt+an+(nt>>>0<Ye>>>0?1:0),nt=nt+Ee,mt=mt+Yn+(nt>>>0<Ee>>>0?1:0),Et.high=mt,Et.low=nt}var Kn=Ft&Vt^~Ft&d,ln=Wt&M^~Wt&m,hn=wt&It^wt&bt^It&bt,Jn=At&yt^At&Mt^yt&Mt,Zn=(wt>>>28|At<<4)^(wt<<30|At>>>2)^(wt<<25|At>>>7),fn=(At>>>28|wt<<4)^(At<<30|wt>>>2)^(At<<25|wt>>>7),Qn=(Ft>>>14|Wt<<18)^(Ft>>>18|Wt<<14)^(Ft<<23|Wt>>>9),ti=(Wt>>>14|Ft<<18)^(Wt>>>18|Ft<<14)^(Wt<<23|Ft>>>9),dn=f[Z],ei=dn.high,pn=dn.low,ae=k+ti,Se=B+Qn+(ae>>>0<k>>>0?1:0),ae=ae+ln,Se=Se+Kn+(ae>>>0<ln>>>0?1:0),ae=ae+pn,Se=Se+ei+(ae>>>0<pn>>>0?1:0),ae=ae+nt,Se=Se+mt+(ae>>>0<nt>>>0?1:0),Pr=fn+Jn,ri=Zn+hn+(Pr>>>0<fn>>>0?1:0);B=d,k=m,d=Vt,m=M,Vt=Ft,M=Wt,Wt=__$t__+ae|0,Ft=qt+Se+(Wt>>>0<__$t__>>>0?1:0)|0,qt=bt,__$t__=Mt,bt=It,Mt=yt,It=wt,yt=At,At=ae+Pr|0,wt=Se+ri+(At>>>0<ae>>>0?1:0)|0}I=A.low=I+At,A.high=Y+wt+(I>>>0<At>>>0?1:0),q=w.low=q+yt,w.high=O+It+(q>>>0<yt>>>0?1:0),J=E.low=J+Mt,E.high=j+bt+(J>>>0<Mt>>>0?1:0),Q=_.low=Q+__$t__,_.high=G+qt+(Q>>>0<__$t__>>>0?1:0),it=C.low=it+Wt,C.high=ot+Ft+(it>>>0<Wt>>>0?1:0),at=T.low=at+M,T.high=ut+Vt+(at>>>0<M>>>0?1:0),X=R.low=X+m,R.high=U+d+(X>>>0<m>>>0?1:0),K=N.low=K+k,N.high=tt+B+(K>>>0<k>>>0?1:0)},_doFinalize:function(){var x=this._data,y=x.words,g=this._nDataBytes*8,A=x.sigBytes*8;y[A>>>5]|=128<<24-A%32,y[(A+128>>>10<<5)+30]=Math.floor(g/4294967296),y[(A+128>>>10<<5)+31]=g,x.sigBytes=y.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var x=s.clone.call(this);return x._hash=this._hash.clone(),x},blockSize:1024/32});r.SHA512=s._createHelper(p),r.HmacSHA512=s._createHmacHelper(p)}(),e.SHA512})}(aa)),aa.exports}var ca={exports:{}},du;function _y(){return du||(du=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),to(),af())})(_t,function(e){return function(){var r=e,i=r.x64,s=i.Word,o=i.WordArray,a=r.algo,u=a.SHA512,c=a.SHA384=u.extend({_doReset:function(){this._hash=new o.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var l=u._doFinalize.call(this);return l.sigBytes-=16,l}});r.SHA384=u._createHelper(c),r.HmacSHA384=u._createHmacHelper(c)}(),e.SHA384})}(ca)),ca.exports}var ua={exports:{}},pu;function Cy(){return pu||(pu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),to())})(_t,function(e){return function(r){var i=e,s=i.lib,o=s.WordArray,a=s.Hasher,u=i.x64,c=u.Word,l=i.algo,f=[],h=[],p=[];(function(){for(var g=1,A=0,w=0;w<24;w++){f[g+5*A]=(w+1)*(w+2)/2%64;var E=A%5,_=(2*g+3*A)%5;g=E,A=_}for(var g=0;g<5;g++)for(var A=0;A<5;A++)h[g+5*A]=A+(2*g+3*A)%5*5;for(var C=1,T=0;T<24;T++){for(var R=0,N=0,Y=0;Y<7;Y++){if(C&1){var I=(1<<Y)-1;I<32?N^=1<<I:R^=1<<I-32}C&128?C=C<<1^113:C<<=1}p[T]=c.create(R,N)}})();var x=[];(function(){for(var g=0;g<25;g++)x[g]=c.create()})();var y=l.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var g=this._state=[],A=0;A<25;A++)g[A]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(g,A){for(var w=this._state,E=this.blockSize/2,_=0;_<E;_++){var C=g[A+2*_],T=g[A+2*_+1];C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var R=w[_];R.high^=T,R.low^=C}for(var N=0;N<24;N++){for(var Y=0;Y<5;Y++){for(var I=0,O=0,q=0;q<5;q++){var R=w[Y+5*q];I^=R.high,O^=R.low}var j=x[Y];j.high=I,j.low=O}for(var Y=0;Y<5;Y++)for(var J=x[(Y+4)%5],G=x[(Y+1)%5],Q=G.high,ot=G.low,I=J.high^(Q<<1|ot>>>31),O=J.low^(ot<<1|Q>>>31),q=0;q<5;q++){var R=w[Y+5*q];R.high^=I,R.low^=O}for(var it=1;it<25;it++){var I,O,R=w[it],ut=R.high,at=R.low,U=f[it];U<32?(I=ut<<U|at>>>32-U,O=at<<U|ut>>>32-U):(I=at<<U-32|ut>>>64-U,O=ut<<U-32|at>>>64-U);var X=x[h[it]];X.high=I,X.low=O}var tt=x[0],K=w[0];tt.high=K.high,tt.low=K.low;for(var Y=0;Y<5;Y++)for(var q=0;q<5;q++){var it=Y+5*q,R=w[it],wt=x[it],At=x[(Y+1)%5+5*q],It=x[(Y+2)%5+5*q];R.high=wt.high^~At.high&It.high,R.low=wt.low^~At.low&It.low}var R=w[0],yt=p[N];R.high^=yt.high,R.low^=yt.low}},_doFinalize:function(){var g=this._data,A=g.words;this._nDataBytes*8;var w=g.sigBytes*8,E=this.blockSize*32;A[w>>>5]|=1<<24-w%32,A[(r.ceil((w+1)/E)*E>>>5)-1]|=128,g.sigBytes=A.length*4,this._process();for(var _=this._state,C=this.cfg.outputLength/8,T=C/8,R=[],N=0;N<T;N++){var Y=_[N],I=Y.high,O=Y.low;I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,R.push(O),R.push(I)}return new o.init(R,C)},clone:function(){for(var g=a.clone.call(this),A=g._state=this._state.slice(0),w=0;w<25;w++)A[w]=A[w].clone();return g}});i.SHA3=a._createHelper(y),i.HmacSHA3=a._createHmacHelper(y)}(Math),e.SHA3})}(ua)),ua.exports}var la={exports:{}},xu;function Sy(){return xu||(xu=1,function(n,t){(function(e,r){n.exports=r(Rt())})(_t,function(e){/** @preserve
|
|
16
|
+
*/Object.defineProperty(mi,"__esModule",{value:!0});var Or=typeof window!="undefined"?window.proxy||window:{},eu=function(t){Or!=null&&Or.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),Or.qiankunName&&(window.moudleQiankunAppLifeCycles[Or.qiankunName]=t))};mi.default=eu;var Yn=mi.qiankunWindow=Or;mi.renderWithQiankun=eu;function Op(){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 Pp(){return{microType:Op()}}const Np="/",{microType:La}=Pp(),Lp=Yn||window;var Gs,js;const gi=La!==zt.NONE?La:(js=(Gs=Lp.meta)==null?void 0:Gs.vite.micro)==null?void 0:js.type,kp=gi===zt.WUJIE,Mp=gi===zt.QIANKUN,Up=gi===zt.MICROAPP,$p=window.top!==window.self||gi!==zt.NONE;console.log("🚀 ~ isNested:",$p,kp,Mp,Up);const Hp=location.origin;var Ks,Ys,Xs,Js,Qs,Zs,ec,tc,rc,nc,ic,oc;const tu={savePath:((Ys=(Ks=window.meta)==null?void 0:Ks.graph)==null?void 0:Ys.savePath)||"/cockpit/drawing",graphPenPath:((Js=(Xs=window.meta)==null?void 0:Xs.graph)==null?void 0:Js.graphPenPath)||"/cockpit/graph",templatePath:((Zs=(Qs=window.meta)==null?void 0:Qs.graph)==null?void 0:Zs.templatePath)||"/cockpit/template",graphImgUploadPath:((tc=(ec=window.meta)==null?void 0:ec.graph)==null?void 0:tc.graphImgUploadPath)||"/cockpit/upload",threeSavePath:((nc=(rc=window.meta)==null?void 0:rc.graph)==null?void 0:nc.threeSavePath)||"/cockpit/threed",threeModelPath:((oc=(ic=window.meta)==null?void 0:ic.graph)==null?void 0:oc.threeModelPath)||"/cockpit/models"},je=Ye.create({baseURL:Hp,timeout:window.meta.axios.timeout||12e4,withCredentials:!1,paramsSerializer:t=>Vh.stringify(t)});je.interceptors.request.use(t=>(t.headers["x-token"]="ewoglCJhbGcilDogpc3",t),t=>Promise.reject(t));je.interceptors.response.use(t=>{const{data:e}=t;return Promise.resolve(e)},t=>Promise.reject(t));function zp(t,e={},r={}){return new Promise(n=>{je.get(t,$e({params:e},r)).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function qp(t,e={},r={}){return new Promise(n=>{je.post(t,e,r).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function Wp(t,e={},r={}){return je.get(t,$e({params:e},r))}function Vp(t,e={},r={}){return je.post(t,e,r)}function Gp(t,e={}){return je.get(`/filehandle/${t}`,{params:e})}function jp(t,e={},r={}){return je.post(`/filehandle/${t}`,e,r)}function Kp(t,e={}){return je.get(`/user/${t}`,{params:e})}function Yp(t,e={},r={}){return je.post(`/user/${t}`,e,r)}function Xp(t,e={}){return je.get(`${t}`,e.local?{params:e,baseURL:Np}:{params:e})}function Jp(t,e={}){return je.get(`/media/${t}/`,{params:e})}function Qp(t,e={},r={}){return je.post(`/media/${t}/`,e,r)}function Zp(t,e={}){return je.get(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${t}/`,{params:e})}function e1(t,e={},r={}){return je.post(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${t}/`,e,r)}function t1(t,e={}){return je.get(`/history/${t}`,{params:e})}function r1(t,e={},r={}){return je.post(`/history/${t}`,e,r)}function n1(t,e={}){return je.get(`/scada/${t}`,{params:e})}function i1(t,e={},r={}){return je.post(`/scada/${t}`,e,r)}function o1(t,e={}){return je.get(`/common/factory/${t}`,{params:e})}function a1(t,e={},r={}){return je.post(`/common/factory/${t}`,e,r)}function s1(t,e={}){return je.get(`/factory/${t}`,{params:e})}function c1(t,e={},r={}){return je.post(`/factory/${t}`,e,r)}const kt={getApi:zp,postApi:qp,getFileApi:Gp,postFileApi:jp,getBaseApi:Wp,postBaseApi:Vp,getUserApi:Kp,postUserApi:Yp,getGraphApi:Xp,getMediaApi:Jp,postMediaApi:Qp,getScadaApi:n1,postScadaApi:i1,getCommonApi:Zp,postCommonApi:e1,getHistoryApi:t1,postHistoryApi:r1,getFactoryApi:s1,postFactoryApi:c1,getCommonFactoryApi:o1,postCommonFactoryApi:a1};var u1={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(_e,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",a="minute",h="hour",u="day",l="week",x="month",d="quarter",v="year",m="date",g="Invalid Date",E=/^(\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,A={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(J){var j=["th","st","nd","rd"],Q=J%100;return"["+J+(j[(Q-20)%10]||j[Q]||j[0])+"]"}},w=function(J,j,Q){var oe=String(J);return!oe||oe.length>=j?J:""+Array(j+1-oe.length).join(Q)+J},C={s:w,z:function(J){var j=-J.utcOffset(),Q=Math.abs(j),oe=Math.floor(Q/60),ie=Q%60;return(j<=0?"+":"-")+w(oe,2,"0")+":"+w(ie,2,"0")},m:function J(j,Q){if(j.date()<Q.date())return-J(Q,j);var oe=12*(Q.year()-j.year())+(Q.month()-j.month()),ie=j.clone().add(oe,x),he=Q-ie<0,ue=j.clone().add(oe+(he?-1:1),x);return+(-(oe+(Q-ie)/(he?ie-ue:ue-ie))||0)},a:function(J){return J<0?Math.ceil(J)||0:Math.floor(J)},p:function(J){return{M:x,y:v,w:l,d:u,D:m,h,m:a,s,ms:o,Q:d}[J]||String(J||"").toLowerCase().replace(/s$/,"")},u:function(J){return J===void 0}},D="en",I={};I[D]=A;var L="$isDayjsObject",q=function(J){return J instanceof W||!(!J||!J[L])},Z=function J(j,Q,oe){var ie;if(!j)return D;if(typeof j=="string"){var he=j.toLowerCase();I[he]&&(ie=he),Q&&(I[he]=Q,ie=he);var ue=j.split("-");if(!ie&&ue.length>1)return J(ue[0])}else{var H=j.name;I[H]=j,ie=H}return!oe&&ie&&(D=ie),ie||!oe&&D},O=function(J,j){if(q(J))return J.clone();var Q=typeof j=="object"?j:{};return Q.date=J,Q.args=arguments,new W(Q)},k=C;k.l=Z,k.i=q,k.w=function(J,j){return O(J,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var W=function(){function J(Q){this.$L=Z(Q.locale,null,!0),this.parse(Q),this.$x=this.$x||Q.x||{},this[L]=!0}var j=J.prototype;return j.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(E);if(ue){var H=ue[2]-1||0,G=(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,G)):new Date(ue[1],H,ue[3]||1,ue[4]||0,ue[5]||0,ue[6]||0,G)}}return new Date(ie)}(Q),this.init()},j.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()},j.$utils=function(){return k},j.isValid=function(){return this.$d.toString()!==g},j.isSame=function(Q,oe){var ie=O(Q);return this.startOf(oe)<=ie&&ie<=this.endOf(oe)},j.isAfter=function(Q,oe){return O(Q)<this.startOf(oe)},j.isBefore=function(Q,oe){return this.endOf(oe)<O(Q)},j.$g=function(Q,oe,ie){return k.u(Q)?this[oe]:this.set(ie,Q)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(Q,oe){var ie=this,he=!!k.u(oe)||oe,ue=k.p(Q),H=function(Ae,Fe){var He=k.w(ie.$u?Date.UTC(ie.$y,Fe,Ae):new Date(ie.$y,Fe,Ae),ie);return he?He:He.endOf(u)},G=function(Ae,Fe){return k.w(ie.toDate()[Ae].apply(ie.toDate("s"),(he?[0,0,0,0]:[23,59,59,999]).slice(Fe)),ie)},te=this.$W,K=this.$M,ge=this.$D,we="set"+(this.$u?"UTC":"");switch(ue){case v:return he?H(1,0):H(31,11);case x:return he?H(1,K):H(0,K+1);case l:var Ie=this.$locale().weekStart||0,ve=(te<Ie?te+7:te)-Ie;return H(he?ge-ve:ge+(6-ve),K);case u:case m:return G(we+"Hours",0);case h:return G(we+"Minutes",1);case a:return G(we+"Seconds",2);case s:return G(we+"Milliseconds",3);default:return this.clone()}},j.endOf=function(Q){return this.startOf(Q,!1)},j.$set=function(Q,oe){var ie,he=k.p(Q),ue="set"+(this.$u?"UTC":""),H=(ie={},ie[u]=ue+"Date",ie[m]=ue+"Date",ie[x]=ue+"Month",ie[v]=ue+"FullYear",ie[h]=ue+"Hours",ie[a]=ue+"Minutes",ie[s]=ue+"Seconds",ie[o]=ue+"Milliseconds",ie)[he],G=he===u?this.$D+(oe-this.$W):oe;if(he===x||he===v){var te=this.clone().set(m,1);te.$d[H](G),te.init(),this.$d=te.set(m,Math.min(this.$D,te.daysInMonth())).$d}else H&&this.$d[H](G);return this.init(),this},j.set=function(Q,oe){return this.clone().$set(Q,oe)},j.get=function(Q){return this[k.p(Q)]()},j.add=function(Q,oe){var ie,he=this;Q=Number(Q);var ue=k.p(oe),H=function(K){var ge=O(he);return k.w(ge.date(ge.date()+Math.round(K*Q)),he)};if(ue===x)return this.set(x,this.$M+Q);if(ue===v)return this.set(v,this.$y+Q);if(ue===u)return H(1);if(ue===l)return H(7);var G=(ie={},ie[a]=n,ie[h]=i,ie[s]=r,ie)[ue]||1,te=this.$d.getTime()+Q*G;return k.w(te,this)},j.subtract=function(Q,oe){return this.add(-1*Q,oe)},j.format=function(Q){var oe=this,ie=this.$locale();if(!this.isValid())return ie.invalidDate||g;var he=Q||"YYYY-MM-DDTHH:mm:ssZ",ue=k.z(this),H=this.$H,G=this.$m,te=this.$M,K=ie.weekdays,ge=ie.months,we=ie.meridiem,Ie=function(Fe,He,Me,De){return Fe&&(Fe[He]||Fe(oe,he))||Me[He].slice(0,De)},ve=function(Fe){return k.s(H%12||12,Fe,"0")},Ae=we||function(Fe,He,Me){var De=Fe<12?"AM":"PM";return Me?De.toLowerCase():De};return he.replace(R,function(Fe,He){return He||function(Me){switch(Me){case"YY":return String(oe.$y).slice(-2);case"YYYY":return k.s(oe.$y,4,"0");case"M":return te+1;case"MM":return k.s(te+1,2,"0");case"MMM":return Ie(ie.monthsShort,te,ge,3);case"MMMM":return Ie(ge,te);case"D":return oe.$D;case"DD":return k.s(oe.$D,2,"0");case"d":return String(oe.$W);case"dd":return Ie(ie.weekdaysMin,oe.$W,K,2);case"ddd":return Ie(ie.weekdaysShort,oe.$W,K,3);case"dddd":return K[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,G,!0);case"A":return Ae(H,G,!1);case"m":return String(G);case"mm":return k.s(G,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}(Fe)||ue.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(Q,oe,ie){var he,ue=this,H=k.p(oe),G=O(Q),te=(G.utcOffset()-this.utcOffset())*n,K=this-G,ge=function(){return k.m(ue,G)};switch(H){case v:he=ge()/12;break;case x:he=ge();break;case d:he=ge()/3;break;case l:he=(K-te)/6048e5;break;case u:he=(K-te)/864e5;break;case h:he=K/i;break;case a:he=K/n;break;case s:he=K/r;break;default:he=K}return ie?he:k.a(he)},j.daysInMonth=function(){return this.endOf(x).$D},j.$locale=function(){return I[this.$L]},j.locale=function(Q,oe){if(!Q)return this.$L;var ie=this.clone(),he=Z(Q,oe,!0);return he&&(ie.$L=he),ie},j.clone=function(){return k.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},J}(),Y=W.prototype;return O.prototype=Y,[["$ms",o],["$s",s],["$m",a],["$H",h],["$W",u],["$M",x],["$y",v],["$D",m]].forEach(function(J){Y[J[1]]=function(j){return this.$g(j,J[0],J[1])}}),O.extend=function(J,j){return J.$i||(J(j,W,O),J.$i=!0),O},O.locale=Z,O.isDayjs=q,O.unix=function(J){return O(1e3*J)},O.en=I[D],O.Ls=I,O.p={},O})})(u1);const f1=()=>{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 ka(t){return Object.prototype.toString.call(t).slice(8,-1)}function s0(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}function l1(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 c0=l1();class h1{constructor(e={}){this._options=$e({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 d1=(t,e)=>new Promise((r,n)=>{kt.postApi("/filehandle/save",{path:t,data:e}).then(i=>{i.res.success?r(!0):n(!1)})});g0.createPinia();var p1={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 lo={exports:{}},Ma;function Re(){return Ma||(Ma=1,function(t,e){(function(r,n){t.exports=n()})(_e,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 _e!="undefined"&&_e.crypto&&(o=_e.crypto),!o&&typeof on=="function")try{o=sc}catch(A){}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(A){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(A){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function A(){}return function(w){var C;return A.prototype=w,C=new A,A.prototype=null,C}}(),h={},u=h.lib={},l=u.Base=function(){return{extend:function(A){var w=a(this);return A&&w.mixIn(A),(!w.hasOwnProperty("init")||this.init===w.init)&&(w.init=function(){w.$super.init.apply(this,arguments)}),w.init.prototype=w,w.$super=this,w},create:function(){var A=this.extend();return A.init.apply(A,arguments),A},init:function(){},mixIn:function(A){for(var w in A)A.hasOwnProperty(w)&&(this[w]=A[w]);A.hasOwnProperty("toString")&&(this.toString=A.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=u.WordArray=l.extend({init:function(A,w){A=this.words=A||[],w!=i?this.sigBytes=w:this.sigBytes=A.length*4},toString:function(A){return(A||v).stringify(this)},concat:function(A){var w=this.words,C=A.words,D=this.sigBytes,I=A.sigBytes;if(this.clamp(),D%4)for(var L=0;L<I;L++){var q=C[L>>>2]>>>24-L%4*8&255;w[D+L>>>2]|=q<<24-(D+L)%4*8}else for(var Z=0;Z<I;Z+=4)w[D+Z>>>2]=C[Z>>>2];return this.sigBytes+=I,this},clamp:function(){var A=this.words,w=this.sigBytes;A[w>>>2]&=4294967295<<32-w%4*8,A.length=n.ceil(w/4)},clone:function(){var A=l.clone.call(this);return A.words=this.words.slice(0),A},random:function(A){for(var w=[],C=0;C<A;C+=4)w.push(s());return new x.init(w,A)}}),d=h.enc={},v=d.Hex={stringify:function(A){for(var w=A.words,C=A.sigBytes,D=[],I=0;I<C;I++){var L=w[I>>>2]>>>24-I%4*8&255;D.push((L>>>4).toString(16)),D.push((L&15).toString(16))}return D.join("")},parse:function(A){for(var w=A.length,C=[],D=0;D<w;D+=2)C[D>>>3]|=parseInt(A.substr(D,2),16)<<24-D%8*4;return new x.init(C,w/2)}},m=d.Latin1={stringify:function(A){for(var w=A.words,C=A.sigBytes,D=[],I=0;I<C;I++){var L=w[I>>>2]>>>24-I%4*8&255;D.push(String.fromCharCode(L))}return D.join("")},parse:function(A){for(var w=A.length,C=[],D=0;D<w;D++)C[D>>>2]|=(A.charCodeAt(D)&255)<<24-D%4*8;return new x.init(C,w)}},g=d.Utf8={stringify:function(A){try{return decodeURIComponent(escape(m.stringify(A)))}catch(w){throw new Error("Malformed UTF-8 data")}},parse:function(A){return m.parse(unescape(encodeURIComponent(A)))}},E=u.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(A){typeof A=="string"&&(A=g.parse(A)),this._data.concat(A),this._nDataBytes+=A.sigBytes},_process:function(A){var w,C=this._data,D=C.words,I=C.sigBytes,L=this.blockSize,q=L*4,Z=I/q;A?Z=n.ceil(Z):Z=n.max((Z|0)-this._minBufferSize,0);var O=Z*L,k=n.min(O*4,I);if(O){for(var W=0;W<O;W+=L)this._doProcessBlock(D,W);w=D.splice(0,O),C.sigBytes-=k}return new x.init(w,k)},clone:function(){var A=l.clone.call(this);return A._data=this._data.clone(),A},_minBufferSize:0});u.Hasher=E.extend({cfg:l.extend(),init:function(A){this.cfg=this.cfg.extend(A),this.reset()},reset:function(){E.reset.call(this),this._doReset()},update:function(A){return this._append(A),this._process(),this},finalize:function(A){A&&this._append(A);var w=this._doFinalize();return w},blockSize:16,_createHelper:function(A){return function(w,C){return new A.init(C).finalize(w)}},_createHmacHelper:function(A){return function(w,C){return new R.HMAC.init(A,C).finalize(w)}}});var R=h.algo={};return h}(Math);return r})}(lo)),lo.exports}var ho={exports:{}},Ua;function Ei(){return Ua||(Ua=1,function(t,e){(function(r,n){t.exports=n(Re())})(_e,function(r){return function(n){var i=r,o=i.lib,s=o.Base,a=o.WordArray,h=i.x64={};h.Word=s.extend({init:function(u,l){this.high=u,this.low=l}}),h.WordArray=s.extend({init:function(u,l){u=this.words=u||[],l!=n?this.sigBytes=l:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,l=u.length,x=[],d=0;d<l;d++){var v=u[d];x.push(v.high),x.push(v.low)}return a.create(x,this.sigBytes)},clone:function(){for(var u=s.clone.call(this),l=u.words=this.words.slice(0),x=l.length,d=0;d<x;d++)l[d]=l[d].clone();return u}})}(),r})}(ho)),ho.exports}var po={exports:{}},$a;function x1(){return $a||($a=1,function(t,e){(function(r,n){t.exports=n(Re())})(_e,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,i=n.lib,o=i.WordArray,s=o.init,a=o.init=function(h){if(h instanceof ArrayBuffer&&(h=new Uint8Array(h)),(h instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&h instanceof Uint8ClampedArray||h instanceof Int16Array||h instanceof Uint16Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array)&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),h instanceof Uint8Array){for(var u=h.byteLength,l=[],x=0;x<u;x++)l[x>>>2]|=h[x]<<24-x%4*8;s.call(this,l,u)}else s.apply(this,arguments)};a.prototype=o}}(),r.lib.WordArray})}(po)),po.exports}var xo={exports:{}},Ha;function v1(){return Ha||(Ha=1,function(t,e){(function(r,n){t.exports=n(Re())})(_e,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Utf16=s.Utf16BE={stringify:function(h){for(var u=h.words,l=h.sigBytes,x=[],d=0;d<l;d+=2){var v=u[d>>>2]>>>16-d%4*8&65535;x.push(String.fromCharCode(v))}return x.join("")},parse:function(h){for(var u=h.length,l=[],x=0;x<u;x++)l[x>>>1]|=h.charCodeAt(x)<<16-x%2*16;return o.create(l,u*2)}},s.Utf16LE={stringify:function(h){for(var u=h.words,l=h.sigBytes,x=[],d=0;d<l;d+=2){var v=a(u[d>>>2]>>>16-d%4*8&65535);x.push(String.fromCharCode(v))}return x.join("")},parse:function(h){for(var u=h.length,l=[],x=0;x<u;x++)l[x>>>1]|=a(h.charCodeAt(x)<<16-x%2*16);return o.create(l,u*2)}};function a(h){return h<<8&4278255360|h>>>8&16711935}}(),r.enc.Utf16})}(xo)),xo.exports}var vo={exports:{}},za;function pr(){return za||(za=1,function(t,e){(function(r,n){t.exports=n(Re())})(_e,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Base64={stringify:function(h){var u=h.words,l=h.sigBytes,x=this._map;h.clamp();for(var d=[],v=0;v<l;v+=3)for(var m=u[v>>>2]>>>24-v%4*8&255,g=u[v+1>>>2]>>>24-(v+1)%4*8&255,E=u[v+2>>>2]>>>24-(v+2)%4*8&255,R=m<<16|g<<8|E,A=0;A<4&&v+A*.75<l;A++)d.push(x.charAt(R>>>6*(3-A)&63));var w=x.charAt(64);if(w)for(;d.length%4;)d.push(w);return d.join("")},parse:function(h){var u=h.length,l=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var d=0;d<l.length;d++)x[l.charCodeAt(d)]=d}var v=l.charAt(64);if(v){var m=h.indexOf(v);m!==-1&&(u=m)}return a(h,u,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(h,u,l){for(var x=[],d=0,v=0;v<u;v++)if(v%4){var m=l[h.charCodeAt(v-1)]<<v%4*2,g=l[h.charCodeAt(v)]>>>6-v%4*2,E=m|g;x[d>>>2]|=E<<24-d%4*8,d++}return o.create(x,d)}}(),r.enc.Base64})}(vo)),vo.exports}var yo={exports:{}},qa;function y1(){return qa||(qa=1,function(t,e){(function(r,n){t.exports=n(Re())})(_e,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Base64url={stringify:function(h,u){u===void 0&&(u=!0);var l=h.words,x=h.sigBytes,d=u?this._safe_map:this._map;h.clamp();for(var v=[],m=0;m<x;m+=3)for(var g=l[m>>>2]>>>24-m%4*8&255,E=l[m+1>>>2]>>>24-(m+1)%4*8&255,R=l[m+2>>>2]>>>24-(m+2)%4*8&255,A=g<<16|E<<8|R,w=0;w<4&&m+w*.75<x;w++)v.push(d.charAt(A>>>6*(3-w)&63));var C=d.charAt(64);if(C)for(;v.length%4;)v.push(C);return v.join("")},parse:function(h,u){u===void 0&&(u=!0);var l=h.length,x=u?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var v=0;v<x.length;v++)d[x.charCodeAt(v)]=v}var m=x.charAt(64);if(m){var g=h.indexOf(m);g!==-1&&(l=g)}return a(h,l,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(h,u,l){for(var x=[],d=0,v=0;v<u;v++)if(v%4){var m=l[h.charCodeAt(v-1)]<<v%4*2,g=l[h.charCodeAt(v)]>>>6-v%4*2,E=m|g;x[d>>>2]|=E<<24-d%4*8,d++}return o.create(x,d)}}(),r.enc.Base64url})}(yo)),yo.exports}var mo={exports:{}},Wa;function xr(){return Wa||(Wa=1,function(t,e){(function(r,n){t.exports=n(Re())})(_e,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,h=i.algo,u=[];(function(){for(var g=0;g<64;g++)u[g]=n.abs(n.sin(g+1))*4294967296|0})();var l=h.MD5=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,E){for(var R=0;R<16;R++){var A=E+R,w=g[A];g[A]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var C=this._hash.words,D=g[E+0],I=g[E+1],L=g[E+2],q=g[E+3],Z=g[E+4],O=g[E+5],k=g[E+6],W=g[E+7],Y=g[E+8],J=g[E+9],j=g[E+10],Q=g[E+11],oe=g[E+12],ie=g[E+13],he=g[E+14],ue=g[E+15],H=C[0],G=C[1],te=C[2],K=C[3];H=x(H,G,te,K,D,7,u[0]),K=x(K,H,G,te,I,12,u[1]),te=x(te,K,H,G,L,17,u[2]),G=x(G,te,K,H,q,22,u[3]),H=x(H,G,te,K,Z,7,u[4]),K=x(K,H,G,te,O,12,u[5]),te=x(te,K,H,G,k,17,u[6]),G=x(G,te,K,H,W,22,u[7]),H=x(H,G,te,K,Y,7,u[8]),K=x(K,H,G,te,J,12,u[9]),te=x(te,K,H,G,j,17,u[10]),G=x(G,te,K,H,Q,22,u[11]),H=x(H,G,te,K,oe,7,u[12]),K=x(K,H,G,te,ie,12,u[13]),te=x(te,K,H,G,he,17,u[14]),G=x(G,te,K,H,ue,22,u[15]),H=d(H,G,te,K,I,5,u[16]),K=d(K,H,G,te,k,9,u[17]),te=d(te,K,H,G,Q,14,u[18]),G=d(G,te,K,H,D,20,u[19]),H=d(H,G,te,K,O,5,u[20]),K=d(K,H,G,te,j,9,u[21]),te=d(te,K,H,G,ue,14,u[22]),G=d(G,te,K,H,Z,20,u[23]),H=d(H,G,te,K,J,5,u[24]),K=d(K,H,G,te,he,9,u[25]),te=d(te,K,H,G,q,14,u[26]),G=d(G,te,K,H,Y,20,u[27]),H=d(H,G,te,K,ie,5,u[28]),K=d(K,H,G,te,L,9,u[29]),te=d(te,K,H,G,W,14,u[30]),G=d(G,te,K,H,oe,20,u[31]),H=v(H,G,te,K,O,4,u[32]),K=v(K,H,G,te,Y,11,u[33]),te=v(te,K,H,G,Q,16,u[34]),G=v(G,te,K,H,he,23,u[35]),H=v(H,G,te,K,I,4,u[36]),K=v(K,H,G,te,Z,11,u[37]),te=v(te,K,H,G,W,16,u[38]),G=v(G,te,K,H,j,23,u[39]),H=v(H,G,te,K,ie,4,u[40]),K=v(K,H,G,te,D,11,u[41]),te=v(te,K,H,G,q,16,u[42]),G=v(G,te,K,H,k,23,u[43]),H=v(H,G,te,K,J,4,u[44]),K=v(K,H,G,te,oe,11,u[45]),te=v(te,K,H,G,ue,16,u[46]),G=v(G,te,K,H,L,23,u[47]),H=m(H,G,te,K,D,6,u[48]),K=m(K,H,G,te,W,10,u[49]),te=m(te,K,H,G,he,15,u[50]),G=m(G,te,K,H,O,21,u[51]),H=m(H,G,te,K,oe,6,u[52]),K=m(K,H,G,te,q,10,u[53]),te=m(te,K,H,G,j,15,u[54]),G=m(G,te,K,H,I,21,u[55]),H=m(H,G,te,K,Y,6,u[56]),K=m(K,H,G,te,ue,10,u[57]),te=m(te,K,H,G,k,15,u[58]),G=m(G,te,K,H,ie,21,u[59]),H=m(H,G,te,K,Z,6,u[60]),K=m(K,H,G,te,Q,10,u[61]),te=m(te,K,H,G,L,15,u[62]),G=m(G,te,K,H,J,21,u[63]),C[0]=C[0]+H|0,C[1]=C[1]+G|0,C[2]=C[2]+te|0,C[3]=C[3]+K|0},_doFinalize:function(){var g=this._data,E=g.words,R=this._nDataBytes*8,A=g.sigBytes*8;E[A>>>5]|=128<<24-A%32;var w=n.floor(R/4294967296),C=R;E[(A+64>>>9<<4)+15]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,E[(A+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,g.sigBytes=(E.length+1)*4,this._process();for(var D=this._hash,I=D.words,L=0;L<4;L++){var q=I[L];I[L]=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360}return D},clone:function(){var g=a.clone.call(this);return g._hash=this._hash.clone(),g}});function x(g,E,R,A,w,C,D){var I=g+(E&R|~E&A)+w+D;return(I<<C|I>>>32-C)+E}function d(g,E,R,A,w,C,D){var I=g+(E&A|R&~A)+w+D;return(I<<C|I>>>32-C)+E}function v(g,E,R,A,w,C,D){var I=g+(E^R^A)+w+D;return(I<<C|I>>>32-C)+E}function m(g,E,R,A,w,C,D){var I=g+(R^(E|~A))+w+D;return(I<<C|I>>>32-C)+E}i.MD5=a._createHelper(l),i.HmacMD5=a._createHmacHelper(l)}(Math),r.MD5})}(mo)),mo.exports}var go={exports:{}},Va;function ru(){return Va||(Va=1,function(t,e){(function(r,n){t.exports=n(Re())})(_e,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=i.Hasher,a=n.algo,h=[],u=a.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,x){for(var d=this._hash.words,v=d[0],m=d[1],g=d[2],E=d[3],R=d[4],A=0;A<80;A++){if(A<16)h[A]=l[x+A]|0;else{var w=h[A-3]^h[A-8]^h[A-14]^h[A-16];h[A]=w<<1|w>>>31}var C=(v<<5|v>>>27)+R+h[A];A<20?C+=(m&g|~m&E)+1518500249:A<40?C+=(m^g^E)+1859775393:A<60?C+=(m&g|m&E|g&E)-1894007588:C+=(m^g^E)-899497514,R=E,E=g,g=m<<30|m>>>2,m=v,v=C}d[0]=d[0]+v|0,d[1]=d[1]+m|0,d[2]=d[2]+g|0,d[3]=d[3]+E|0,d[4]=d[4]+R|0},_doFinalize:function(){var l=this._data,x=l.words,d=this._nDataBytes*8,v=l.sigBytes*8;return x[v>>>5]|=128<<24-v%32,x[(v+64>>>9<<4)+14]=Math.floor(d/4294967296),x[(v+64>>>9<<4)+15]=d,l.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var l=s.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=s._createHelper(u),n.HmacSHA1=s._createHmacHelper(u)}(),r.SHA1})}(go)),go.exports}var Eo={exports:{}},Ga;function O0(){return Ga||(Ga=1,function(t,e){(function(r,n){t.exports=n(Re())})(_e,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,h=i.algo,u=[],l=[];(function(){function v(R){for(var A=n.sqrt(R),w=2;w<=A;w++)if(!(R%w))return!1;return!0}function m(R){return(R-(R|0))*4294967296|0}for(var g=2,E=0;E<64;)v(g)&&(E<8&&(u[E]=m(n.pow(g,1/2))),l[E]=m(n.pow(g,1/3)),E++),g++})();var x=[],d=h.SHA256=a.extend({_doReset:function(){this._hash=new s.init(u.slice(0))},_doProcessBlock:function(v,m){for(var g=this._hash.words,E=g[0],R=g[1],A=g[2],w=g[3],C=g[4],D=g[5],I=g[6],L=g[7],q=0;q<64;q++){if(q<16)x[q]=v[m+q]|0;else{var Z=x[q-15],O=(Z<<25|Z>>>7)^(Z<<14|Z>>>18)^Z>>>3,k=x[q-2],W=(k<<15|k>>>17)^(k<<13|k>>>19)^k>>>10;x[q]=O+x[q-7]+W+x[q-16]}var Y=C&D^~C&I,J=E&R^E&A^R&A,j=(E<<30|E>>>2)^(E<<19|E>>>13)^(E<<10|E>>>22),Q=(C<<26|C>>>6)^(C<<21|C>>>11)^(C<<7|C>>>25),oe=L+Q+Y+l[q]+x[q],ie=j+J;L=I,I=D,D=C,C=w+oe|0,w=A,A=R,R=E,E=oe+ie|0}g[0]=g[0]+E|0,g[1]=g[1]+R|0,g[2]=g[2]+A|0,g[3]=g[3]+w|0,g[4]=g[4]+C|0,g[5]=g[5]+D|0,g[6]=g[6]+I|0,g[7]=g[7]+L|0},_doFinalize:function(){var v=this._data,m=v.words,g=this._nDataBytes*8,E=v.sigBytes*8;return m[E>>>5]|=128<<24-E%32,m[(E+64>>>9<<4)+14]=n.floor(g/4294967296),m[(E+64>>>9<<4)+15]=g,v.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var v=a.clone.call(this);return v._hash=this._hash.clone(),v}});i.SHA256=a._createHelper(d),i.HmacSHA256=a._createHmacHelper(d)}(Math),r.SHA256})}(Eo)),Eo.exports}var Ao={exports:{}},ja;function m1(){return ja||(ja=1,function(t,e){(function(r,n,i){t.exports=n(Re(),O0())})(_e,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.algo,a=s.SHA256,h=s.SHA224=a.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=a._doFinalize.call(this);return u.sigBytes-=4,u}});n.SHA224=a._createHelper(h),n.HmacSHA224=a._createHmacHelper(h)}(),r.SHA224})}(Ao)),Ao.exports}var wo={exports:{}},Ka;function nu(){return Ka||(Ka=1,function(t,e){(function(r,n,i){t.exports=n(Re(),Ei())})(_e,function(r){return function(){var n=r,i=n.lib,o=i.Hasher,s=n.x64,a=s.Word,h=s.WordArray,u=n.algo;function l(){return a.create.apply(a,arguments)}var x=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],d=[];(function(){for(var m=0;m<80;m++)d[m]=l()})();var v=u.SHA512=o.extend({_doReset:function(){this._hash=new h.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,g){for(var E=this._hash.words,R=E[0],A=E[1],w=E[2],C=E[3],D=E[4],I=E[5],L=E[6],q=E[7],Z=R.high,O=R.low,k=A.high,W=A.low,Y=w.high,J=w.low,j=C.high,Q=C.low,oe=D.high,ie=D.low,he=I.high,ue=I.low,H=L.high,G=L.low,te=q.high,K=q.low,ge=Z,we=O,Ie=k,ve=W,Ae=Y,Fe=J,He=j,Me=Q,De=oe,ze=ie,qe=he,F=ue,c=H,f=G,b=te,N=K,X=0;X<80;X++){var re,xe,Ee=d[X];if(X<16)xe=Ee.high=m[g+X*2]|0,re=Ee.low=m[g+X*2+1]|0;else{var Te=d[X-15],Ne=Te.high,Oe=Te.low,gt=(Ne>>>1|Oe<<31)^(Ne>>>8|Oe<<24)^Ne>>>7,Bt=(Oe>>>1|Ne<<31)^(Oe>>>8|Ne<<24)^(Oe>>>7|Ne<<25),Dt=d[X-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=d[X-7],gr=mr.high,Qt=mr.low,qt=d[X-16],Vr=qt.high,ht=qt.low;re=Bt+Qt,xe=gt+gr+(re>>>0<Bt>>>0?1:0),re=re+Ft,xe=xe+yr+(re>>>0<Ft>>>0?1:0),re=re+ht,xe=xe+Vr+(re>>>0<ht>>>0?1:0),Ee.high=xe,Ee.low=re}var Gr=De&qe^~De&c,Er=ze&F^~ze&f,Ar=ge&Ie^ge&Ae^Ie&Ae,jr=we&ve^we&Fe^ve&Fe,Kr=(ge>>>28|we<<4)^(ge<<30|we>>>2)^(ge<<25|we>>>7),wr=(we>>>28|ge<<4)^(we<<30|ge>>>2)^(we<<25|ge>>>7),Yr=(De>>>14|ze<<18)^(De>>>18|ze<<14)^(De<<23|ze>>>9),Xr=(ze>>>14|De<<18)^(ze>>>18|De<<14)^(ze<<23|De>>>9),_r=x[X],Jr=_r.high,br=_r.low,rt=N+Xr,xt=b+Yr+(rt>>>0<N>>>0?1:0),rt=rt+Er,xt=xt+Gr+(rt>>>0<Er>>>0?1:0),rt=rt+br,xt=xt+Jr+(rt>>>0<br>>>0?1:0),rt=rt+re,xt=xt+xe+(rt>>>0<re>>>0?1:0),Zt=wr+jr,Qr=Kr+Ar+(Zt>>>0<wr>>>0?1:0);b=c,N=f,c=qe,f=F,qe=De,F=ze,ze=Me+rt|0,De=He+xt+(ze>>>0<Me>>>0?1:0)|0,He=Ae,Me=Fe,Ae=Ie,Fe=ve,Ie=ge,ve=we,we=rt+Zt|0,ge=xt+Qr+(we>>>0<rt>>>0?1:0)|0}O=R.low=O+we,R.high=Z+ge+(O>>>0<we>>>0?1:0),W=A.low=W+ve,A.high=k+Ie+(W>>>0<ve>>>0?1:0),J=w.low=J+Fe,w.high=Y+Ae+(J>>>0<Fe>>>0?1:0),Q=C.low=Q+Me,C.high=j+He+(Q>>>0<Me>>>0?1:0),ie=D.low=ie+ze,D.high=oe+De+(ie>>>0<ze>>>0?1:0),ue=I.low=ue+F,I.high=he+qe+(ue>>>0<F>>>0?1:0),G=L.low=G+f,L.high=H+c+(G>>>0<f>>>0?1:0),K=q.low=K+N,q.high=te+b+(K>>>0<N>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,E=this._nDataBytes*8,R=m.sigBytes*8;g[R>>>5]|=128<<24-R%32,g[(R+128>>>10<<5)+30]=Math.floor(E/4294967296),g[(R+128>>>10<<5)+31]=E,m.sigBytes=g.length*4,this._process();var A=this._hash.toX32();return A},clone:function(){var m=o.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});n.SHA512=o._createHelper(v),n.HmacSHA512=o._createHmacHelper(v)}(),r.SHA512})}(wo)),wo.exports}var _o={exports:{}},Ya;function g1(){return Ya||(Ya=1,function(t,e){(function(r,n,i){t.exports=n(Re(),Ei(),nu())})(_e,function(r){return function(){var n=r,i=n.x64,o=i.Word,s=i.WordArray,a=n.algo,h=a.SHA512,u=a.SHA384=h.extend({_doReset:function(){this._hash=new s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var l=h._doFinalize.call(this);return l.sigBytes-=16,l}});n.SHA384=h._createHelper(u),n.HmacSHA384=h._createHmacHelper(u)}(),r.SHA384})}(_o)),_o.exports}var bo={exports:{}},Xa;function E1(){return Xa||(Xa=1,function(t,e){(function(r,n,i){t.exports=n(Re(),Ei())})(_e,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,h=i.x64,u=h.Word,l=i.algo,x=[],d=[],v=[];(function(){for(var E=1,R=0,A=0;A<24;A++){x[E+5*R]=(A+1)*(A+2)/2%64;var w=R%5,C=(2*E+3*R)%5;E=w,R=C}for(var E=0;E<5;E++)for(var R=0;R<5;R++)d[E+5*R]=R+(2*E+3*R)%5*5;for(var D=1,I=0;I<24;I++){for(var L=0,q=0,Z=0;Z<7;Z++){if(D&1){var O=(1<<Z)-1;O<32?q^=1<<O:L^=1<<O-32}D&128?D=D<<1^113:D<<=1}v[I]=u.create(L,q)}})();var m=[];(function(){for(var E=0;E<25;E++)m[E]=u.create()})();var g=l.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var E=this._state=[],R=0;R<25;R++)E[R]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(E,R){for(var A=this._state,w=this.blockSize/2,C=0;C<w;C++){var D=E[R+2*C],I=E[R+2*C+1];D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360;var L=A[C];L.high^=I,L.low^=D}for(var q=0;q<24;q++){for(var Z=0;Z<5;Z++){for(var O=0,k=0,W=0;W<5;W++){var L=A[Z+5*W];O^=L.high,k^=L.low}var Y=m[Z];Y.high=O,Y.low=k}for(var Z=0;Z<5;Z++)for(var J=m[(Z+4)%5],j=m[(Z+1)%5],Q=j.high,oe=j.low,O=J.high^(Q<<1|oe>>>31),k=J.low^(oe<<1|Q>>>31),W=0;W<5;W++){var L=A[Z+5*W];L.high^=O,L.low^=k}for(var ie=1;ie<25;ie++){var O,k,L=A[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 G=m[d[ie]];G.high=O,G.low=k}var te=m[0],K=A[0];te.high=K.high,te.low=K.low;for(var Z=0;Z<5;Z++)for(var W=0;W<5;W++){var ie=Z+5*W,L=A[ie],ge=m[ie],we=m[(Z+1)%5+5*W],Ie=m[(Z+2)%5+5*W];L.high=ge.high^~we.high&Ie.high,L.low=ge.low^~we.low&Ie.low}var L=A[0],ve=v[q];L.high^=ve.high,L.low^=ve.low}},_doFinalize:function(){var E=this._data,R=E.words;this._nDataBytes*8;var A=E.sigBytes*8,w=this.blockSize*32;R[A>>>5]|=1<<24-A%32,R[(n.ceil((A+1)/w)*w>>>5)-1]|=128,E.sigBytes=R.length*4,this._process();for(var C=this._state,D=this.cfg.outputLength/8,I=D/8,L=[],q=0;q<I;q++){var Z=C[q],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,D)},clone:function(){for(var E=a.clone.call(this),R=E._state=this._state.slice(0),A=0;A<25;A++)R[A]=R[A].clone();return E}});i.SHA3=a._createHelper(g),i.HmacSHA3=a._createHmacHelper(g)}(Math),r.SHA3})}(bo)),bo.exports}var Co={exports:{}},Ja;function A1(){return Ja||(Ja=1,function(t,e){(function(r,n){t.exports=n(Re())})(_e,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,38 +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(r){var i=e,s=i.lib,o=s.WordArray,a=s.Hasher,u=i.algo,c=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=o.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]),f=o.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=o.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]),p=o.create([0,1518500249,1859775393,2400959708,2840853838]),x=o.create([1352829926,1548603684,1836072691,2053994217,0]),y=u.RIPEMD160=a.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,R){for(var N=0;N<16;N++){var Y=R+N,I=T[Y];T[Y]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var O=this._hash.words,q=p.words,j=x.words,J=c.words,G=l.words,Q=f.words,ot=h.words,it,ut,at,U,X,tt,K,wt,At,It;tt=it=O[0],K=ut=O[1],wt=at=O[2],At=U=O[3],It=X=O[4];for(var yt,N=0;N<80;N+=1)yt=it+T[R+J[N]]|0,N<16?yt+=g(ut,at,U)+q[0]:N<32?yt+=A(ut,at,U)+q[1]:N<48?yt+=w(ut,at,U)+q[2]:N<64?yt+=E(ut,at,U)+q[3]:yt+=_(ut,at,U)+q[4],yt=yt|0,yt=C(yt,Q[N]),yt=yt+X|0,it=X,X=U,U=C(at,10),at=ut,ut=yt,yt=tt+T[R+G[N]]|0,N<16?yt+=_(K,wt,At)+j[0]:N<32?yt+=E(K,wt,At)+j[1]:N<48?yt+=w(K,wt,At)+j[2]:N<64?yt+=A(K,wt,At)+j[3]:yt+=g(K,wt,At)+j[4],yt=yt|0,yt=C(yt,ot[N]),yt=yt+It|0,tt=It,It=At,At=C(wt,10),wt=K,K=yt;yt=O[1]+at+At|0,O[1]=O[2]+U+It|0,O[2]=O[3]+X+tt|0,O[3]=O[4]+it+K|0,O[4]=O[0]+ut+wt|0,O[0]=yt},_doFinalize:function(){var T=this._data,R=T.words,N=this._nDataBytes*8,Y=T.sigBytes*8;R[Y>>>5]|=128<<24-Y%32,R[(Y+64>>>9<<4)+14]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,T.sigBytes=(R.length+1)*4,this._process();for(var I=this._hash,O=I.words,q=0;q<5;q++){var j=O[q];O[q]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360}return I},clone:function(){var T=a.clone.call(this);return T._hash=this._hash.clone(),T}});function g(T,R,N){return T^R^N}function A(T,R,N){return T&R|~T&N}function w(T,R,N){return(T|~R)^N}function E(T,R,N){return T&N|R&~N}function _(T,R,N){return T^(R|~N)}function C(T,R){return T<<R|T>>>32-R}i.RIPEMD160=a._createHelper(y),i.HmacRIPEMD160=a._createHmacHelper(y)}(),e.RIPEMD160})}(la)),la.exports}var ha={exports:{}},mu;function G0(){return mu||(mu=1,function(n,t){(function(e,r){n.exports=r(Rt())})(_t,function(e){(function(){var r=e,i=r.lib,s=i.Base,o=r.enc,a=o.Utf8,u=r.algo;u.HMAC=s.extend({init:function(c,l){c=this._hasher=new c.init,typeof l=="string"&&(l=a.parse(l));var f=c.blockSize,h=f*4;l.sigBytes>h&&(l=c.finalize(l)),l.clamp();for(var p=this._oKey=l.clone(),x=this._iKey=l.clone(),y=p.words,g=x.words,A=0;A<f;A++)y[A]^=1549556828,g[A]^=909522486;p.sigBytes=x.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 l=this._hasher,f=l.finalize(c);l.reset();var h=l.finalize(this._oKey.clone().concat(f));return h}})})()})}(ha)),ha.exports}var fa={exports:{}},yu;function By(){return yu||(yu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),j0(),G0())})(_t,function(e){return function(){var r=e,i=r.lib,s=i.Base,o=i.WordArray,a=r.algo,u=a.SHA256,c=a.HMAC,l=a.PBKDF2=s.extend({cfg:s.extend({keySize:128/32,hasher:u,iterations:25e4}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,h){for(var p=this.cfg,x=c.create(p.hasher,f),y=o.create(),g=o.create([1]),A=y.words,w=g.words,E=p.keySize,_=p.iterations;A.length<E;){var C=x.update(h).finalize(g);x.reset();for(var T=C.words,R=T.length,N=C,Y=1;Y<_;Y++){N=x.finalize(N),x.reset();for(var I=N.words,O=0;O<R;O++)T[O]^=I[O]}y.concat(C),w[0]++}return y.sigBytes=E*4,y}});r.PBKDF2=function(f,h,p){return l.create(p).compute(f,h)}}(),e.PBKDF2})}(fa)),fa.exports}var da={exports:{}},gu;function Ir(){return gu||(gu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),of(),G0())})(_t,function(e){return function(){var r=e,i=r.lib,s=i.Base,o=i.WordArray,a=r.algo,u=a.MD5,c=a.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:u,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,f){for(var h,p=this.cfg,x=p.hasher.create(),y=o.create(),g=y.words,A=p.keySize,w=p.iterations;g.length<A;){h&&x.update(h),h=x.update(l).finalize(f),x.reset();for(var E=1;E<w;E++)h=x.finalize(h),x.reset();y.concat(h)}return y.sigBytes=A*4,y}});r.EvpKDF=function(l,f,h){return c.create(h).compute(l,f)}}(),e.EvpKDF})}(da)),da.exports}var pa={exports:{}},vu;function oe(){return vu||(vu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),Ir())})(_t,function(e){e.lib.Cipher||function(r){var i=e,s=i.lib,o=s.Base,a=s.WordArray,u=s.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var l=c.Base64,f=i.algo,h=f.EvpKDF,p=s.Cipher=u.extend({cfg:o.extend(),createEncryptor:function(I,O){return this.create(this._ENC_XFORM_MODE,I,O)},createDecryptor:function(I,O){return this.create(this._DEC_XFORM_MODE,I,O)},init:function(I,O,q){this.cfg=this.cfg.extend(q),this._xformMode=I,this._key=O,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var O=this._doFinalize();return O},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function I(O){return typeof O=="string"?Y:T}return function(O){return{encrypt:function(q,j,J){return I(j).encrypt(O,q,j,J)},decrypt:function(q,j,J){return I(j).decrypt(O,q,j,J)}}}}()});s.StreamCipher=p.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1});var x=i.mode={},y=s.BlockCipherMode=o.extend({createEncryptor:function(I,O){return this.Encryptor.create(I,O)},createDecryptor:function(I,O){return this.Decryptor.create(I,O)},init:function(I,O){this._cipher=I,this._iv=O}}),g=x.CBC=function(){var I=y.extend();I.Encryptor=I.extend({processBlock:function(q,j){var J=this._cipher,G=J.blockSize;O.call(this,q,j,G),J.encryptBlock(q,j),this._prevBlock=q.slice(j,j+G)}}),I.Decryptor=I.extend({processBlock:function(q,j){var J=this._cipher,G=J.blockSize,Q=q.slice(j,j+G);J.decryptBlock(q,j),O.call(this,q,j,G),this._prevBlock=Q}});function O(q,j,J){var G,Q=this._iv;Q?(G=Q,this._iv=r):G=this._prevBlock;for(var ot=0;ot<J;ot++)q[j+ot]^=G[ot]}return I}(),A=i.pad={},w=A.Pkcs7={pad:function(I,O){for(var q=O*4,j=q-I.sigBytes%q,J=j<<24|j<<16|j<<8|j,G=[],Q=0;Q<j;Q+=4)G.push(J);var ot=a.create(G,j);I.concat(ot)},unpad:function(I){var O=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=O}};s.BlockCipher=p.extend({cfg:p.cfg.extend({mode:g,padding:w}),reset:function(){var I;p.reset.call(this);var O=this.cfg,q=O.iv,j=O.mode;this._xformMode==this._ENC_XFORM_MODE?I=j.createEncryptor:(I=j.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,q&&q.words):(this._mode=I.call(j,this,q&&q.words),this._mode.__creator=I)},_doProcessBlock:function(I,O){this._mode.processBlock(I,O)},_doFinalize:function(){var I,O=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(O.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),O.unpad(I)),I},blockSize:128/32});var E=s.CipherParams=o.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),_=i.format={},C=_.OpenSSL={stringify:function(I){var O,q=I.ciphertext,j=I.salt;return j?O=a.create([1398893684,1701076831]).concat(j).concat(q):O=q,O.toString(l)},parse:function(I){var O,q=l.parse(I),j=q.words;return j[0]==1398893684&&j[1]==1701076831&&(O=a.create(j.slice(2,4)),j.splice(0,4),q.sigBytes-=16),E.create({ciphertext:q,salt:O})}},T=s.SerializableCipher=o.extend({cfg:o.extend({format:C}),encrypt:function(I,O,q,j){j=this.cfg.extend(j);var J=I.createEncryptor(q,j),G=J.finalize(O),Q=J.cfg;return E.create({ciphertext:G,key:q,iv:Q.iv,algorithm:I,mode:Q.mode,padding:Q.padding,blockSize:I.blockSize,formatter:j.format})},decrypt:function(I,O,q,j){j=this.cfg.extend(j),O=this._parse(O,j.format);var J=I.createDecryptor(q,j).finalize(O.ciphertext);return J},_parse:function(I,O){return typeof I=="string"?O.parse(I,this):I}}),R=i.kdf={},N=R.OpenSSL={execute:function(I,O,q,j,J){if(j||(j=a.random(64/8)),J)var G=h.create({keySize:O+q,hasher:J}).compute(I,j);else var G=h.create({keySize:O+q}).compute(I,j);var Q=a.create(G.words.slice(O),q*4);return G.sigBytes=O*4,E.create({key:G,iv:Q,salt:j})}},Y=s.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:N}),encrypt:function(I,O,q,j){j=this.cfg.extend(j);var J=j.kdf.execute(q,I.keySize,I.ivSize,j.salt,j.hasher);j.iv=J.iv;var G=T.encrypt.call(this,I,O,J.key,j);return G.mixIn(J),G},decrypt:function(I,O,q,j){j=this.cfg.extend(j),O=this._parse(O,j.format);var J=j.kdf.execute(q,I.keySize,I.ivSize,O.salt,j.hasher);j.iv=J.iv;var G=T.decrypt.call(this,I,O,J.key,j);return G}})}()})}(pa)),pa.exports}var xa={exports:{}},wu;function Fy(){return wu||(wu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),oe())})(_t,function(e){return e.mode.CFB=function(){var r=e.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(s,o){var a=this._cipher,u=a.blockSize;i.call(this,s,o,u,a),this._prevBlock=s.slice(o,o+u)}}),r.Decryptor=r.extend({processBlock:function(s,o){var a=this._cipher,u=a.blockSize,c=s.slice(o,o+u);i.call(this,s,o,u,a),this._prevBlock=c}});function i(s,o,a,u){var c,l=this._iv;l?(c=l.slice(0),this._iv=void 0):c=this._prevBlock,u.encryptBlock(c,0);for(var f=0;f<a;f++)s[o+f]^=c[f]}return r}(),e.mode.CFB})}(xa)),xa.exports}var ma={exports:{}},Eu;function Dy(){return Eu||(Eu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),oe())})(_t,function(e){return e.mode.CTR=function(){var r=e.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(s,o){var a=this._cipher,u=a.blockSize,c=this._iv,l=this._counter;c&&(l=this._counter=c.slice(0),this._iv=void 0);var f=l.slice(0);a.encryptBlock(f,0),l[u-1]=l[u-1]+1|0;for(var h=0;h<u;h++)s[o+h]^=f[h]}});return r.Decryptor=i,r}(),e.mode.CTR})}(ma)),ma.exports}var ya={exports:{}},bu;function My(){return bu||(bu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),oe())})(_t,function(e){/** @preserve
|
|
25
|
+
*/return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,h=i.algo,u=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]),l=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]),d=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]),v=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),g=h.RIPEMD160=a.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(I,L){for(var q=0;q<16;q++){var Z=L+q,O=I[Z];I[Z]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}var k=this._hash.words,W=v.words,Y=m.words,J=u.words,j=l.words,Q=x.words,oe=d.words,ie,he,ue,H,G,te,K,ge,we,Ie;te=ie=k[0],K=he=k[1],ge=ue=k[2],we=H=k[3],Ie=G=k[4];for(var ve,q=0;q<80;q+=1)ve=ie+I[L+J[q]]|0,q<16?ve+=E(he,ue,H)+W[0]:q<32?ve+=R(he,ue,H)+W[1]:q<48?ve+=A(he,ue,H)+W[2]:q<64?ve+=w(he,ue,H)+W[3]:ve+=C(he,ue,H)+W[4],ve=ve|0,ve=D(ve,Q[q]),ve=ve+G|0,ie=G,G=H,H=D(ue,10),ue=he,he=ve,ve=te+I[L+j[q]]|0,q<16?ve+=C(K,ge,we)+Y[0]:q<32?ve+=w(K,ge,we)+Y[1]:q<48?ve+=A(K,ge,we)+Y[2]:q<64?ve+=R(K,ge,we)+Y[3]:ve+=E(K,ge,we)+Y[4],ve=ve|0,ve=D(ve,oe[q]),ve=ve+Ie|0,te=Ie,Ie=we,we=D(ge,10),ge=K,K=ve;ve=k[1]+ue+we|0,k[1]=k[2]+H+Ie|0,k[2]=k[3]+G+te|0,k[3]=k[4]+ie+K|0,k[4]=k[0]+he+ge|0,k[0]=ve},_doFinalize:function(){var I=this._data,L=I.words,q=this._nDataBytes*8,Z=I.sigBytes*8;L[Z>>>5]|=128<<24-Z%32,L[(Z+64>>>9<<4)+14]=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360,I.sigBytes=(L.length+1)*4,this._process();for(var O=this._hash,k=O.words,W=0;W<5;W++){var Y=k[W];k[W]=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360}return O},clone:function(){var I=a.clone.call(this);return I._hash=this._hash.clone(),I}});function E(I,L,q){return I^L^q}function R(I,L,q){return I&L|~I&q}function A(I,L,q){return(I|~L)^q}function w(I,L,q){return I&q|L&~q}function C(I,L,q){return I^(L|~q)}function D(I,L){return I<<L|I>>>32-L}i.RIPEMD160=a._createHelper(g),i.HmacRIPEMD160=a._createHmacHelper(g)}(),r.RIPEMD160})}(Co)),Co.exports}var Bo={exports:{}},Qa;function P0(){return Qa||(Qa=1,function(t,e){(function(r,n){t.exports=n(Re())})(_e,function(r){(function(){var n=r,i=n.lib,o=i.Base,s=n.enc,a=s.Utf8,h=n.algo;h.HMAC=o.extend({init:function(u,l){u=this._hasher=new u.init,typeof l=="string"&&(l=a.parse(l));var x=u.blockSize,d=x*4;l.sigBytes>d&&(l=u.finalize(l)),l.clamp();for(var v=this._oKey=l.clone(),m=this._iKey=l.clone(),g=v.words,E=m.words,R=0;R<x;R++)g[R]^=1549556828,E[R]^=909522486;v.sigBytes=m.sigBytes=d,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var l=this._hasher,x=l.finalize(u);l.reset();var d=l.finalize(this._oKey.clone().concat(x));return d}})})()})}(Bo)),Bo.exports}var Do={exports:{}},Za;function w1(){return Za||(Za=1,function(t,e){(function(r,n,i){t.exports=n(Re(),O0(),P0())})(_e,function(r){return function(){var n=r,i=n.lib,o=i.Base,s=i.WordArray,a=n.algo,h=a.SHA256,u=a.HMAC,l=a.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:h,iterations:25e4}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,d){for(var v=this.cfg,m=u.create(v.hasher,x),g=s.create(),E=s.create([1]),R=g.words,A=E.words,w=v.keySize,C=v.iterations;R.length<w;){var D=m.update(d).finalize(E);m.reset();for(var I=D.words,L=I.length,q=D,Z=1;Z<C;Z++){q=m.finalize(q),m.reset();for(var O=q.words,k=0;k<L;k++)I[k]^=O[k]}g.concat(D),A[0]++}return g.sigBytes=w*4,g}});n.PBKDF2=function(x,d,v){return l.create(v).compute(x,d)}}(),r.PBKDF2})}(Do)),Do.exports}var So={exports:{}},es;function Jt(){return es||(es=1,function(t,e){(function(r,n,i){t.exports=n(Re(),ru(),P0())})(_e,function(r){return function(){var n=r,i=n.lib,o=i.Base,s=i.WordArray,a=n.algo,h=a.MD5,u=a.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:h,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,x){for(var d,v=this.cfg,m=v.hasher.create(),g=s.create(),E=g.words,R=v.keySize,A=v.iterations;E.length<R;){d&&m.update(d),d=m.update(l).finalize(x),m.reset();for(var w=1;w<A;w++)d=m.finalize(d),m.reset();g.concat(d)}return g.sigBytes=R*4,g}});n.EvpKDF=function(l,x,d){return u.create(d).compute(l,x)}}(),r.EvpKDF})}(So)),So.exports}var Fo={exports:{}},ts;function tt(){return ts||(ts=1,function(t,e){(function(r,n,i){t.exports=n(Re(),Jt())})(_e,function(r){r.lib.Cipher||function(n){var i=r,o=i.lib,s=o.Base,a=o.WordArray,h=o.BufferedBlockAlgorithm,u=i.enc;u.Utf8;var l=u.Base64,x=i.algo,d=x.EvpKDF,v=o.Cipher=h.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,W){this.cfg=this.cfg.extend(W),this._xformMode=O,this._key=k,this.reset()},reset:function(){h.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:I}return function(k){return{encrypt:function(W,Y,J){return O(Y).encrypt(k,W,Y,J)},decrypt:function(W,Y,J){return O(Y).decrypt(k,W,Y,J)}}}}()});o.StreamCipher=v.extend({_doFinalize:function(){var O=this._process(!0);return O},blockSize:1});var m=i.mode={},g=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}}),E=m.CBC=function(){var O=g.extend();O.Encryptor=O.extend({processBlock:function(W,Y){var J=this._cipher,j=J.blockSize;k.call(this,W,Y,j),J.encryptBlock(W,Y),this._prevBlock=W.slice(Y,Y+j)}}),O.Decryptor=O.extend({processBlock:function(W,Y){var J=this._cipher,j=J.blockSize,Q=W.slice(Y,Y+j);J.decryptBlock(W,Y),k.call(this,W,Y,j),this._prevBlock=Q}});function k(W,Y,J){var j,Q=this._iv;Q?(j=Q,this._iv=n):j=this._prevBlock;for(var oe=0;oe<J;oe++)W[Y+oe]^=j[oe]}return O}(),R=i.pad={},A=R.Pkcs7={pad:function(O,k){for(var W=k*4,Y=W-O.sigBytes%W,J=Y<<24|Y<<16|Y<<8|Y,j=[],Q=0;Q<Y;Q+=4)j.push(J);var oe=a.create(j,Y);O.concat(oe)},unpad:function(O){var k=O.words[O.sigBytes-1>>>2]&255;O.sigBytes-=k}};o.BlockCipher=v.extend({cfg:v.cfg.extend({mode:E,padding:A}),reset:function(){var O;v.reset.call(this);var k=this.cfg,W=k.iv,Y=k.mode;this._xformMode==this._ENC_XFORM_MODE?O=Y.createEncryptor:(O=Y.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==O?this._mode.init(this,W&&W.words):(this._mode=O.call(Y,this,W&&W.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 w=o.CipherParams=s.extend({init:function(O){this.mixIn(O)},toString:function(O){return(O||this.formatter).stringify(this)}}),C=i.format={},D=C.OpenSSL={stringify:function(O){var k,W=O.ciphertext,Y=O.salt;return Y?k=a.create([1398893684,1701076831]).concat(Y).concat(W):k=W,k.toString(l)},parse:function(O){var k,W=l.parse(O),Y=W.words;return Y[0]==1398893684&&Y[1]==1701076831&&(k=a.create(Y.slice(2,4)),Y.splice(0,4),W.sigBytes-=16),w.create({ciphertext:W,salt:k})}},I=o.SerializableCipher=s.extend({cfg:s.extend({format:D}),encrypt:function(O,k,W,Y){Y=this.cfg.extend(Y);var J=O.createEncryptor(W,Y),j=J.finalize(k),Q=J.cfg;return w.create({ciphertext:j,key:W,iv:Q.iv,algorithm:O,mode:Q.mode,padding:Q.padding,blockSize:O.blockSize,formatter:Y.format})},decrypt:function(O,k,W,Y){Y=this.cfg.extend(Y),k=this._parse(k,Y.format);var J=O.createDecryptor(W,Y).finalize(k.ciphertext);return J},_parse:function(O,k){return typeof O=="string"?k.parse(O,this):O}}),L=i.kdf={},q=L.OpenSSL={execute:function(O,k,W,Y,J){if(Y||(Y=a.random(64/8)),J)var j=d.create({keySize:k+W,hasher:J}).compute(O,Y);else var j=d.create({keySize:k+W}).compute(O,Y);var Q=a.create(j.words.slice(k),W*4);return j.sigBytes=k*4,w.create({key:j,iv:Q,salt:Y})}},Z=o.PasswordBasedCipher=I.extend({cfg:I.cfg.extend({kdf:q}),encrypt:function(O,k,W,Y){Y=this.cfg.extend(Y);var J=Y.kdf.execute(W,O.keySize,O.ivSize,Y.salt,Y.hasher);Y.iv=J.iv;var j=I.encrypt.call(this,O,k,J.key,Y);return j.mixIn(J),j},decrypt:function(O,k,W,Y){Y=this.cfg.extend(Y),k=this._parse(k,Y.format);var J=Y.kdf.execute(W,O.keySize,O.ivSize,k.salt,Y.hasher);Y.iv=J.iv;var j=I.decrypt.call(this,O,k,J.key,Y);return j}})}()})}(Fo)),Fo.exports}var Ro={exports:{}},rs;function _1(){return rs||(rs=1,function(t,e){(function(r,n,i){t.exports=n(Re(),tt())})(_e,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,h=a.blockSize;i.call(this,o,s,h,a),this._prevBlock=o.slice(s,s+h)}}),n.Decryptor=n.extend({processBlock:function(o,s){var a=this._cipher,h=a.blockSize,u=o.slice(s,s+h);i.call(this,o,s,h,a),this._prevBlock=u}});function i(o,s,a,h){var u,l=this._iv;l?(u=l.slice(0),this._iv=void 0):u=this._prevBlock,h.encryptBlock(u,0);for(var x=0;x<a;x++)o[s+x]^=u[x]}return n}(),r.mode.CFB})}(Ro)),Ro.exports}var Io={exports:{}},ns;function b1(){return ns||(ns=1,function(t,e){(function(r,n,i){t.exports=n(Re(),tt())})(_e,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,h=a.blockSize,u=this._iv,l=this._counter;u&&(l=this._counter=u.slice(0),this._iv=void 0);var x=l.slice(0);a.encryptBlock(x,0),l[h-1]=l[h-1]+1|0;for(var d=0;d<h;d++)o[s+d]^=x[d]}});return n.Decryptor=i,n}(),r.mode.CTR})}(Io)),Io.exports}var To={exports:{}},is;function C1(){return is||(is=1,function(t,e){(function(r,n,i){t.exports=n(Re(),tt())})(_e,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 e.mode.CTRGladman=function(){var r=e.lib.BlockCipherMode.extend();function i(a){if((a>>24&255)===255){var u=a>>16&255,c=a>>8&255,l=a&255;u===255?(u=0,c===255?(c=0,l===255?l=0:++l):++c):++u,a=0,a+=u<<16,a+=c<<8,a+=l}else a+=1<<24;return a}function s(a){return(a[0]=i(a[0]))===0&&(a[1]=i(a[1])),a}var o=r.Encryptor=r.extend({processBlock:function(a,u){var c=this._cipher,l=c.blockSize,f=this._iv,h=this._counter;f&&(h=this._counter=f.slice(0),this._iv=void 0),s(h);var p=h.slice(0);c.encryptBlock(p,0);for(var x=0;x<l;x++)a[u+x]^=p[x]}});return r.Decryptor=o,r}(),e.mode.CTRGladman})}(ya)),ya.exports}var ga={exports:{}},Au;function Ty(){return Au||(Au=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),oe())})(_t,function(e){return e.mode.OFB=function(){var r=e.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(s,o){var a=this._cipher,u=a.blockSize,c=this._iv,l=this._keystream;c&&(l=this._keystream=c.slice(0),this._iv=void 0),a.encryptBlock(l,0);for(var f=0;f<u;f++)s[o+f]^=l[f]}});return r.Decryptor=i,r}(),e.mode.OFB})}(ga)),ga.exports}var va={exports:{}},_u;function Ry(){return _u||(_u=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),oe())})(_t,function(e){return e.mode.ECB=function(){var r=e.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,s){this._cipher.encryptBlock(i,s)}}),r.Decryptor=r.extend({processBlock:function(i,s){this._cipher.decryptBlock(i,s)}}),r}(),e.mode.ECB})}(va)),va.exports}var wa={exports:{}},Cu;function Iy(){return Cu||(Cu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),oe())})(_t,function(e){return e.pad.AnsiX923={pad:function(r,i){var s=r.sigBytes,o=i*4,a=o-s%o,u=s+a-1;r.clamp(),r.words[u>>>2]|=a<<24-u%4*8,r.sigBytes+=a},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},e.pad.Ansix923})}(wa)),wa.exports}var Ea={exports:{}},Su;function Oy(){return Su||(Su=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),oe())})(_t,function(e){return e.pad.Iso10126={pad:function(r,i){var s=i*4,o=s-r.sigBytes%s;r.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},e.pad.Iso10126})}(Ea)),Ea.exports}var ba={exports:{}},Bu;function Py(){return Bu||(Bu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),oe())})(_t,function(e){return e.pad.Iso97971={pad:function(r,i){r.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(r,i)},unpad:function(r){e.pad.ZeroPadding.unpad(r),r.sigBytes--}},e.pad.Iso97971})}(ba)),ba.exports}var Aa={exports:{}},Fu;function zy(){return Fu||(Fu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),oe())})(_t,function(e){return e.pad.ZeroPadding={pad:function(r,i){var s=i*4;r.clamp(),r.sigBytes+=s-(r.sigBytes%s||s)},unpad:function(r){for(var i=r.words,s=r.sigBytes-1,s=r.sigBytes-1;s>=0;s--)if(i[s>>>2]>>>24-s%4*8&255){r.sigBytes=s+1;break}}},e.pad.ZeroPadding})}(Aa)),Aa.exports}var _a={exports:{}},Du;function ky(){return Du||(Du=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),oe())})(_t,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})}(_a)),_a.exports}var Ca={exports:{}},Mu;function Ny(){return Mu||(Mu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),oe())})(_t,function(e){return function(r){var i=e,s=i.lib,o=s.CipherParams,a=i.enc,u=a.Hex,c=i.format;c.Hex={stringify:function(l){return l.ciphertext.toString(u)},parse:function(l){var f=u.parse(l);return o.create({ciphertext:f})}}}(),e.format.Hex})}(Ca)),Ca.exports}var Sa={exports:{}},Tu;function Ly(){return Tu||(Tu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),rn(),nn(),Ir(),oe())})(_t,function(e){return function(){var r=e,i=r.lib,s=i.BlockCipher,o=r.algo,a=[],u=[],c=[],l=[],f=[],h=[],p=[],x=[],y=[],g=[];(function(){for(var E=[],_=0;_<256;_++)_<128?E[_]=_<<1:E[_]=_<<1^283;for(var C=0,T=0,_=0;_<256;_++){var R=T^T<<1^T<<2^T<<3^T<<4;R=R>>>8^R&255^99,a[C]=R,u[R]=C;var N=E[C],Y=E[N],I=E[Y],O=E[R]*257^R*16843008;c[C]=O<<24|O>>>8,l[C]=O<<16|O>>>16,f[C]=O<<8|O>>>24,h[C]=O;var O=I*16843009^Y*65537^N*257^C*16843008;p[R]=O<<24|O>>>8,x[R]=O<<16|O>>>16,y[R]=O<<8|O>>>24,g[R]=O,C?(C=N^E[E[E[I^N]]],T^=E[E[T]]):C=T=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],w=o.AES=s.extend({_doReset:function(){var E;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,C=_.words,T=_.sigBytes/4,R=this._nRounds=T+6,N=(R+1)*4,Y=this._keySchedule=[],I=0;I<N;I++)I<T?Y[I]=C[I]:(E=Y[I-1],I%T?T>6&&I%T==4&&(E=a[E>>>24]<<24|a[E>>>16&255]<<16|a[E>>>8&255]<<8|a[E&255]):(E=E<<8|E>>>24,E=a[E>>>24]<<24|a[E>>>16&255]<<16|a[E>>>8&255]<<8|a[E&255],E^=A[I/T|0]<<24),Y[I]=Y[I-T]^E);for(var O=this._invKeySchedule=[],q=0;q<N;q++){var I=N-q;if(q%4)var E=Y[I];else var E=Y[I-4];q<4||I<=4?O[q]=E:O[q]=p[a[E>>>24]]^x[a[E>>>16&255]]^y[a[E>>>8&255]]^g[a[E&255]]}}},encryptBlock:function(E,_){this._doCryptBlock(E,_,this._keySchedule,c,l,f,h,a)},decryptBlock:function(E,_){var C=E[_+1];E[_+1]=E[_+3],E[_+3]=C,this._doCryptBlock(E,_,this._invKeySchedule,p,x,y,g,u);var C=E[_+1];E[_+1]=E[_+3],E[_+3]=C},_doCryptBlock:function(E,_,C,T,R,N,Y,I){for(var O=this._nRounds,q=E[_]^C[0],j=E[_+1]^C[1],J=E[_+2]^C[2],G=E[_+3]^C[3],Q=4,ot=1;ot<O;ot++){var it=T[q>>>24]^R[j>>>16&255]^N[J>>>8&255]^Y[G&255]^C[Q++],ut=T[j>>>24]^R[J>>>16&255]^N[G>>>8&255]^Y[q&255]^C[Q++],at=T[J>>>24]^R[G>>>16&255]^N[q>>>8&255]^Y[j&255]^C[Q++],U=T[G>>>24]^R[q>>>16&255]^N[j>>>8&255]^Y[J&255]^C[Q++];q=it,j=ut,J=at,G=U}var it=(I[q>>>24]<<24|I[j>>>16&255]<<16|I[J>>>8&255]<<8|I[G&255])^C[Q++],ut=(I[j>>>24]<<24|I[J>>>16&255]<<16|I[G>>>8&255]<<8|I[q&255])^C[Q++],at=(I[J>>>24]<<24|I[G>>>16&255]<<16|I[q>>>8&255]<<8|I[j&255])^C[Q++],U=(I[G>>>24]<<24|I[q>>>16&255]<<16|I[j>>>8&255]<<8|I[J&255])^C[Q++];E[_]=it,E[_+1]=ut,E[_+2]=at,E[_+3]=U},keySize:256/32});r.AES=s._createHelper(w)}(),e.AES})}(Sa)),Sa.exports}var Ba={exports:{}},Ru;function Uy(){return Ru||(Ru=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),rn(),nn(),Ir(),oe())})(_t,function(e){return function(){var r=e,i=r.lib,s=i.WordArray,o=i.BlockCipher,a=r.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],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{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],p=a.DES=o.extend({_doReset:function(){for(var A=this._key,w=A.words,E=[],_=0;_<56;_++){var C=u[_]-1;E[_]=w[C>>>5]>>>31-C%32&1}for(var T=this._subKeys=[],R=0;R<16;R++){for(var N=T[R]=[],Y=l[R],_=0;_<24;_++)N[_/6|0]|=E[(c[_]-1+Y)%28]<<31-_%6,N[4+(_/6|0)]|=E[28+(c[_+24]-1+Y)%28]<<31-_%6;N[0]=N[0]<<1|N[0]>>>31;for(var _=1;_<7;_++)N[_]=N[_]>>>(_-1)*4+3;N[7]=N[7]<<5|N[7]>>>27}for(var I=this._invSubKeys=[],_=0;_<16;_++)I[_]=T[15-_]},encryptBlock:function(A,w){this._doCryptBlock(A,w,this._subKeys)},decryptBlock:function(A,w){this._doCryptBlock(A,w,this._invSubKeys)},_doCryptBlock:function(A,w,E){this._lBlock=A[w],this._rBlock=A[w+1],x.call(this,4,252645135),x.call(this,16,65535),y.call(this,2,858993459),y.call(this,8,16711935),x.call(this,1,1431655765);for(var _=0;_<16;_++){for(var C=E[_],T=this._lBlock,R=this._rBlock,N=0,Y=0;Y<8;Y++)N|=f[Y][((R^C[Y])&h[Y])>>>0];this._lBlock=R,this._rBlock=T^N}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,x.call(this,1,1431655765),y.call(this,8,16711935),y.call(this,2,858993459),x.call(this,16,65535),x.call(this,4,252645135),A[w]=this._lBlock,A[w+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function x(A,w){var E=(this._lBlock>>>A^this._rBlock)&w;this._rBlock^=E,this._lBlock^=E<<A}function y(A,w){var E=(this._rBlock>>>A^this._lBlock)&w;this._lBlock^=E,this._rBlock^=E<<A}r.DES=o._createHelper(p);var g=a.TripleDES=o.extend({_doReset:function(){var A=this._key,w=A.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 E=w.slice(0,2),_=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=p.createEncryptor(s.create(E)),this._des2=p.createEncryptor(s.create(_)),this._des3=p.createEncryptor(s.create(C))},encryptBlock:function(A,w){this._des1.encryptBlock(A,w),this._des2.decryptBlock(A,w),this._des3.encryptBlock(A,w)},decryptBlock:function(A,w){this._des3.decryptBlock(A,w),this._des2.encryptBlock(A,w),this._des1.decryptBlock(A,w)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=o._createHelper(g)}(),e.TripleDES})}(Ba)),Ba.exports}var Fa={exports:{}},Iu;function $y(){return Iu||(Iu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),rn(),nn(),Ir(),oe())})(_t,function(e){return function(){var r=e,i=r.lib,s=i.StreamCipher,o=r.algo,a=o.RC4=s.extend({_doReset:function(){for(var l=this._key,f=l.words,h=l.sigBytes,p=this._S=[],x=0;x<256;x++)p[x]=x;for(var x=0,y=0;x<256;x++){var g=x%h,A=f[g>>>2]>>>24-g%4*8&255;y=(y+p[x]+A)%256;var w=p[x];p[x]=p[y],p[y]=w}this._i=this._j=0},_doProcessBlock:function(l,f){l[f]^=u.call(this)},keySize:256/32,ivSize:0});function u(){for(var l=this._S,f=this._i,h=this._j,p=0,x=0;x<4;x++){f=(f+1)%256,h=(h+l[f])%256;var y=l[f];l[f]=l[h],l[h]=y,p|=l[(l[f]+l[h])%256]<<24-x*8}return this._i=f,this._j=h,p}r.RC4=s._createHelper(a);var c=o.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var l=this.cfg.drop;l>0;l--)u.call(this)}});r.RC4Drop=s._createHelper(c)}(),e.RC4})}(Fa)),Fa.exports}var Da={exports:{}},Ou;function Hy(){return Ou||(Ou=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),rn(),nn(),Ir(),oe())})(_t,function(e){return function(){var r=e,i=r.lib,s=i.StreamCipher,o=r.algo,a=[],u=[],c=[],l=o.Rabbit=s.extend({_doReset:function(){for(var h=this._key.words,p=this.cfg.iv,x=0;x<4;x++)h[x]=(h[x]<<8|h[x]>>>24)&16711935|(h[x]<<24|h[x]>>>8)&4278255360;var y=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],g=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 x=0;x<4;x++)f.call(this);for(var x=0;x<8;x++)g[x]^=y[x+4&7];if(p){var A=p.words,w=A[0],E=A[1],_=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,C=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,T=_>>>16|C&4294901760,R=C<<16|_&65535;g[0]^=_,g[1]^=T,g[2]^=C,g[3]^=R,g[4]^=_,g[5]^=T,g[6]^=C,g[7]^=R;for(var x=0;x<4;x++)f.call(this)}},_doProcessBlock:function(h,p){var x=this._X;f.call(this),a[0]=x[0]^x[5]>>>16^x[3]<<16,a[1]=x[2]^x[7]>>>16^x[5]<<16,a[2]=x[4]^x[1]>>>16^x[7]<<16,a[3]=x[6]^x[3]>>>16^x[1]<<16;for(var y=0;y<4;y++)a[y]=(a[y]<<8|a[y]>>>24)&16711935|(a[y]<<24|a[y]>>>8)&4278255360,h[p+y]^=a[y]},blockSize:128/32,ivSize:64/32});function f(){for(var h=this._X,p=this._C,x=0;x<8;x++)u[x]=p[x];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<u[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<u[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<u[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<u[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<u[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<u[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<u[6]>>>0?1:0)|0,this._b=p[7]>>>0<u[7]>>>0?1:0;for(var x=0;x<8;x++){var y=h[x]+p[x],g=y&65535,A=y>>>16,w=((g*g>>>17)+g*A>>>15)+A*A,E=((y&4294901760)*y|0)+((y&65535)*y|0);c[x]=w^E}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}r.Rabbit=s._createHelper(l)}(),e.Rabbit})}(Da)),Da.exports}var Ma={exports:{}},Pu;function qy(){return Pu||(Pu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),rn(),nn(),Ir(),oe())})(_t,function(e){return function(){var r=e,i=r.lib,s=i.StreamCipher,o=r.algo,a=[],u=[],c=[],l=o.RabbitLegacy=s.extend({_doReset:function(){var h=this._key.words,p=this.cfg.iv,x=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],y=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 g=0;g<4;g++)f.call(this);for(var g=0;g<8;g++)y[g]^=x[g+4&7];if(p){var A=p.words,w=A[0],E=A[1],_=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,C=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,T=_>>>16|C&4294901760,R=C<<16|_&65535;y[0]^=_,y[1]^=T,y[2]^=C,y[3]^=R,y[4]^=_,y[5]^=T,y[6]^=C,y[7]^=R;for(var g=0;g<4;g++)f.call(this)}},_doProcessBlock:function(h,p){var x=this._X;f.call(this),a[0]=x[0]^x[5]>>>16^x[3]<<16,a[1]=x[2]^x[7]>>>16^x[5]<<16,a[2]=x[4]^x[1]>>>16^x[7]<<16,a[3]=x[6]^x[3]>>>16^x[1]<<16;for(var y=0;y<4;y++)a[y]=(a[y]<<8|a[y]>>>24)&16711935|(a[y]<<24|a[y]>>>8)&4278255360,h[p+y]^=a[y]},blockSize:128/32,ivSize:64/32});function f(){for(var h=this._X,p=this._C,x=0;x<8;x++)u[x]=p[x];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<u[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<u[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<u[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<u[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<u[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<u[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<u[6]>>>0?1:0)|0,this._b=p[7]>>>0<u[7]>>>0?1:0;for(var x=0;x<8;x++){var y=h[x]+p[x],g=y&65535,A=y>>>16,w=((g*g>>>17)+g*A>>>15)+A*A,E=((y&4294901760)*y|0)+((y&65535)*y|0);c[x]=w^E}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}r.RabbitLegacy=s._createHelper(l)}(),e.RabbitLegacy})}(Ma)),Ma.exports}var Ta={exports:{}},zu;function Wy(){return zu||(zu=1,function(n,t){(function(e,r,i){n.exports=r(Rt(),rn(),nn(),Ir(),oe())})(_t,function(e){return function(){var r=e,i=r.lib,s=i.BlockCipher,o=r.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 l={pbox:[],sbox:[]};function f(g,A){let w=A>>24&255,E=A>>16&255,_=A>>8&255,C=A&255,T=g.sbox[0][w]+g.sbox[1][E];return T=T^g.sbox[2][_],T=T+g.sbox[3][C],T}function h(g,A,w){let E=A,_=w,C;for(let T=0;T<a;++T)E=E^g.pbox[T],_=f(g,E)^_,C=E,E=_,_=C;return C=E,E=_,_=C,_=_^g.pbox[a],E=E^g.pbox[a+1],{left:E,right:_}}function p(g,A,w){let E=A,_=w,C;for(let T=a+1;T>1;--T)E=E^g.pbox[T],_=f(g,E)^_,C=E,E=_,_=C;return C=E,E=_,_=C,_=_^g.pbox[1],E=E^g.pbox[0],{left:E,right:_}}function x(g,A,w){for(let R=0;R<4;R++){g.sbox[R]=[];for(let N=0;N<256;N++)g.sbox[R][N]=c[R][N]}let E=0;for(let R=0;R<a+2;R++)g.pbox[R]=u[R]^A[E],E++,E>=w&&(E=0);let _=0,C=0,T=0;for(let R=0;R<a+2;R+=2)T=h(g,_,C),_=T.left,C=T.right,g.pbox[R]=_,g.pbox[R+1]=C;for(let R=0;R<4;R++)for(let N=0;N<256;N+=2)T=h(g,_,C),_=T.left,C=T.right,g.sbox[R][N]=_,g.sbox[R][N+1]=C;return!0}var y=o.Blowfish=s.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var g=this._keyPriorReset=this._key,A=g.words,w=g.sigBytes/4;x(l,A,w)}},encryptBlock:function(g,A){var w=h(l,g[A],g[A+1]);g[A]=w.left,g[A+1]=w.right},decryptBlock:function(g,A){var w=p(l,g[A],g[A+1]);g[A]=w.left,g[A+1]=w.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=s._createHelper(y)}(),e.Blowfish})}(Ta)),Ta.exports}(function(n,t){(function(e,r,i){n.exports=r(Rt(),to(),wy(),Ey(),rn(),by(),nn(),of(),j0(),Ay(),af(),_y(),Cy(),Sy(),G0(),By(),Ir(),oe(),Fy(),Dy(),My(),Ty(),Ry(),Iy(),Oy(),Py(),zy(),ky(),Ny(),Ly(),Uy(),$y(),Hy(),qy(),Wy())})(_t,function(e){return e})})(vy);var Bt={},eo={};eo.byteLength=Gy;eo.toByteArray=Yy;eo.fromByteArray=Zy;var er=[],Me=[],Vy=typeof Uint8Array!="undefined"?Uint8Array:Array,Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var wn=0,jy=Ra.length;wn<jy;++wn)er[wn]=Ra[wn],Me[Ra.charCodeAt(wn)]=wn;Me[45]=62;Me[95]=63;function cf(n){var t=n.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=n.indexOf("=");e===-1&&(e=t);var r=e===t?0:4-e%4;return[e,r]}function Gy(n){var t=cf(n),e=t[0],r=t[1];return(e+r)*3/4-r}function Xy(n,t,e){return(t+e)*3/4-e}function Yy(n){var t,e=cf(n),r=e[0],i=e[1],s=new Vy(Xy(n,r,i)),o=0,a=i>0?r-4:r,u;for(u=0;u<a;u+=4)t=Me[n.charCodeAt(u)]<<18|Me[n.charCodeAt(u+1)]<<12|Me[n.charCodeAt(u+2)]<<6|Me[n.charCodeAt(u+3)],s[o++]=t>>16&255,s[o++]=t>>8&255,s[o++]=t&255;return i===2&&(t=Me[n.charCodeAt(u)]<<2|Me[n.charCodeAt(u+1)]>>4,s[o++]=t&255),i===1&&(t=Me[n.charCodeAt(u)]<<10|Me[n.charCodeAt(u+1)]<<4|Me[n.charCodeAt(u+2)]>>2,s[o++]=t>>8&255,s[o++]=t&255),s}function Ky(n){return er[n>>18&63]+er[n>>12&63]+er[n>>6&63]+er[n&63]}function Jy(n,t,e){for(var r,i=[],s=t;s<e;s+=3)r=(n[s]<<16&16711680)+(n[s+1]<<8&65280)+(n[s+2]&255),i.push(Ky(r));return i.join("")}function Zy(n){for(var t,e=n.length,r=e%3,i=[],s=16383,o=0,a=e-r;o<a;o+=s)i.push(Jy(n,o,o+s>a?a:o+s));return r===1?(t=n[e-1],i.push(er[t>>2]+er[t<<4&63]+"==")):r===2&&(t=(n[e-2]<<8)+n[e-1],i.push(er[t>>10]+er[t>>4&63]+er[t<<2&63]+"=")),i.join("")}var X0={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */X0.read=function(n,t,e,r,i){var s,o,a=i*8-r-1,u=(1<<a)-1,c=u>>1,l=-7,f=e?i-1:0,h=e?-1:1,p=n[t+f];for(f+=h,s=p&(1<<-l)-1,p>>=-l,l+=a;l>0;s=s*256+n[t+f],f+=h,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=r;l>0;o=o*256+n[t+f],f+=h,l-=8);if(s===0)s=1-c;else{if(s===u)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,r),s=s-c}return(p?-1:1)*o*Math.pow(2,s-r)};X0.write=function(n,t,e,r,i,s){var o,a,u,c=s*8-i-1,l=(1<<c)-1,f=l>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:s-1,x=r?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+f>=1?t+=h/u:t+=h*Math.pow(2,1-f),t*u>=2&&(o++,u/=2),o+f>=l?(a=0,o=l):o+f>=1?(a=(t*u-1)*Math.pow(2,i),o=o+f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;n[e+p]=a&255,p+=x,a/=256,i-=8);for(o=o<<i|a,c+=i;c>0;n[e+p]=o&255,p+=x,o/=256,c-=8);n[e+p-x]|=y*128};/*!
|
|
29
|
+
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function i(a){if((a>>24&255)===255){var h=a>>16&255,u=a>>8&255,l=a&255;h===255?(h=0,u===255?(u=0,l===255?l=0:++l):++u):++h,a=0,a+=h<<16,a+=u<<8,a+=l}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,h){var u=this._cipher,l=u.blockSize,x=this._iv,d=this._counter;x&&(d=this._counter=x.slice(0),this._iv=void 0),o(d);var v=d.slice(0);u.encryptBlock(v,0);for(var m=0;m<l;m++)a[h+m]^=v[m]}});return n.Decryptor=s,n}(),r.mode.CTRGladman})}(To)),To.exports}var Oo={exports:{}},os;function B1(){return os||(os=1,function(t,e){(function(r,n,i){t.exports=n(Re(),tt())})(_e,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,h=a.blockSize,u=this._iv,l=this._keystream;u&&(l=this._keystream=u.slice(0),this._iv=void 0),a.encryptBlock(l,0);for(var x=0;x<h;x++)o[s+x]^=l[x]}});return n.Decryptor=i,n}(),r.mode.OFB})}(Oo)),Oo.exports}var Po={exports:{}},as;function D1(){return as||(as=1,function(t,e){(function(r,n,i){t.exports=n(Re(),tt())})(_e,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})}(Po)),Po.exports}var No={exports:{}},ss;function S1(){return ss||(ss=1,function(t,e){(function(r,n,i){t.exports=n(Re(),tt())})(_e,function(r){return r.pad.AnsiX923={pad:function(n,i){var o=n.sigBytes,s=i*4,a=s-o%s,h=o+a-1;n.clamp(),n.words[h>>>2]|=a<<24-h%4*8,n.sigBytes+=a},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Ansix923})}(No)),No.exports}var Lo={exports:{}},cs;function F1(){return cs||(cs=1,function(t,e){(function(r,n,i){t.exports=n(Re(),tt())})(_e,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})}(Lo)),Lo.exports}var ko={exports:{}},us;function R1(){return us||(us=1,function(t,e){(function(r,n,i){t.exports=n(Re(),tt())})(_e,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})}(ko)),ko.exports}var Mo={exports:{}},fs;function I1(){return fs||(fs=1,function(t,e){(function(r,n,i){t.exports=n(Re(),tt())})(_e,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})}(Mo)),Mo.exports}var Uo={exports:{}},ls;function T1(){return ls||(ls=1,function(t,e){(function(r,n,i){t.exports=n(Re(),tt())})(_e,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(Uo)),Uo.exports}var $o={exports:{}},hs;function O1(){return hs||(hs=1,function(t,e){(function(r,n,i){t.exports=n(Re(),tt())})(_e,function(r){return function(n){var i=r,o=i.lib,s=o.CipherParams,a=i.enc,h=a.Hex,u=i.format;u.Hex={stringify:function(l){return l.ciphertext.toString(h)},parse:function(l){var x=h.parse(l);return s.create({ciphertext:x})}}}(),r.format.Hex})}($o)),$o.exports}var Ho={exports:{}},ds;function P1(){return ds||(ds=1,function(t,e){(function(r,n,i){t.exports=n(Re(),pr(),xr(),Jt(),tt())})(_e,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,s=n.algo,a=[],h=[],u=[],l=[],x=[],d=[],v=[],m=[],g=[],E=[];(function(){for(var w=[],C=0;C<256;C++)C<128?w[C]=C<<1:w[C]=C<<1^283;for(var D=0,I=0,C=0;C<256;C++){var L=I^I<<1^I<<2^I<<3^I<<4;L=L>>>8^L&255^99,a[D]=L,h[L]=D;var q=w[D],Z=w[q],O=w[Z],k=w[L]*257^L*16843008;u[D]=k<<24|k>>>8,l[D]=k<<16|k>>>16,x[D]=k<<8|k>>>24,d[D]=k;var k=O*16843009^Z*65537^q*257^D*16843008;v[L]=k<<24|k>>>8,m[L]=k<<16|k>>>16,g[L]=k<<8|k>>>24,E[L]=k,D?(D=q^w[w[w[O^q]]],I^=w[w[I]]):D=I=1}})();var R=[0,1,2,4,8,16,32,64,128,27,54],A=s.AES=o.extend({_doReset:function(){var w;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var C=this._keyPriorReset=this._key,D=C.words,I=C.sigBytes/4,L=this._nRounds=I+6,q=(L+1)*4,Z=this._keySchedule=[],O=0;O<q;O++)O<I?Z[O]=D[O]:(w=Z[O-1],O%I?I>6&&O%I==4&&(w=a[w>>>24]<<24|a[w>>>16&255]<<16|a[w>>>8&255]<<8|a[w&255]):(w=w<<8|w>>>24,w=a[w>>>24]<<24|a[w>>>16&255]<<16|a[w>>>8&255]<<8|a[w&255],w^=R[O/I|0]<<24),Z[O]=Z[O-I]^w);for(var k=this._invKeySchedule=[],W=0;W<q;W++){var O=q-W;if(W%4)var w=Z[O];else var w=Z[O-4];W<4||O<=4?k[W]=w:k[W]=v[a[w>>>24]]^m[a[w>>>16&255]]^g[a[w>>>8&255]]^E[a[w&255]]}}},encryptBlock:function(w,C){this._doCryptBlock(w,C,this._keySchedule,u,l,x,d,a)},decryptBlock:function(w,C){var D=w[C+1];w[C+1]=w[C+3],w[C+3]=D,this._doCryptBlock(w,C,this._invKeySchedule,v,m,g,E,h);var D=w[C+1];w[C+1]=w[C+3],w[C+3]=D},_doCryptBlock:function(w,C,D,I,L,q,Z,O){for(var k=this._nRounds,W=w[C]^D[0],Y=w[C+1]^D[1],J=w[C+2]^D[2],j=w[C+3]^D[3],Q=4,oe=1;oe<k;oe++){var ie=I[W>>>24]^L[Y>>>16&255]^q[J>>>8&255]^Z[j&255]^D[Q++],he=I[Y>>>24]^L[J>>>16&255]^q[j>>>8&255]^Z[W&255]^D[Q++],ue=I[J>>>24]^L[j>>>16&255]^q[W>>>8&255]^Z[Y&255]^D[Q++],H=I[j>>>24]^L[W>>>16&255]^q[Y>>>8&255]^Z[J&255]^D[Q++];W=ie,Y=he,J=ue,j=H}var ie=(O[W>>>24]<<24|O[Y>>>16&255]<<16|O[J>>>8&255]<<8|O[j&255])^D[Q++],he=(O[Y>>>24]<<24|O[J>>>16&255]<<16|O[j>>>8&255]<<8|O[W&255])^D[Q++],ue=(O[J>>>24]<<24|O[j>>>16&255]<<16|O[W>>>8&255]<<8|O[Y&255])^D[Q++],H=(O[j>>>24]<<24|O[W>>>16&255]<<16|O[Y>>>8&255]<<8|O[J&255])^D[Q++];w[C]=ie,w[C+1]=he,w[C+2]=ue,w[C+3]=H},keySize:256/32});n.AES=o._createHelper(A)}(),r.AES})}(Ho)),Ho.exports}var zo={exports:{}},ps;function N1(){return ps||(ps=1,function(t,e){(function(r,n,i){t.exports=n(Re(),pr(),xr(),Jt(),tt())})(_e,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=i.BlockCipher,a=n.algo,h=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],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}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],v=a.DES=s.extend({_doReset:function(){for(var R=this._key,A=R.words,w=[],C=0;C<56;C++){var D=h[C]-1;w[C]=A[D>>>5]>>>31-D%32&1}for(var I=this._subKeys=[],L=0;L<16;L++){for(var q=I[L]=[],Z=l[L],C=0;C<24;C++)q[C/6|0]|=w[(u[C]-1+Z)%28]<<31-C%6,q[4+(C/6|0)]|=w[28+(u[C+24]-1+Z)%28]<<31-C%6;q[0]=q[0]<<1|q[0]>>>31;for(var C=1;C<7;C++)q[C]=q[C]>>>(C-1)*4+3;q[7]=q[7]<<5|q[7]>>>27}for(var O=this._invSubKeys=[],C=0;C<16;C++)O[C]=I[15-C]},encryptBlock:function(R,A){this._doCryptBlock(R,A,this._subKeys)},decryptBlock:function(R,A){this._doCryptBlock(R,A,this._invSubKeys)},_doCryptBlock:function(R,A,w){this._lBlock=R[A],this._rBlock=R[A+1],m.call(this,4,252645135),m.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),m.call(this,1,1431655765);for(var C=0;C<16;C++){for(var D=w[C],I=this._lBlock,L=this._rBlock,q=0,Z=0;Z<8;Z++)q|=x[Z][((L^D[Z])&d[Z])>>>0];this._lBlock=L,this._rBlock=I^q}var O=this._lBlock;this._lBlock=this._rBlock,this._rBlock=O,m.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),R[A]=this._lBlock,R[A+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(R,A){var w=(this._lBlock>>>R^this._rBlock)&A;this._rBlock^=w,this._lBlock^=w<<R}function g(R,A){var w=(this._rBlock>>>R^this._lBlock)&A;this._lBlock^=w,this._rBlock^=w<<R}n.DES=s._createHelper(v);var E=a.TripleDES=s.extend({_doReset:function(){var R=this._key,A=R.words;if(A.length!==2&&A.length!==4&&A.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var w=A.slice(0,2),C=A.length<4?A.slice(0,2):A.slice(2,4),D=A.length<6?A.slice(0,2):A.slice(4,6);this._des1=v.createEncryptor(o.create(w)),this._des2=v.createEncryptor(o.create(C)),this._des3=v.createEncryptor(o.create(D))},encryptBlock:function(R,A){this._des1.encryptBlock(R,A),this._des2.decryptBlock(R,A),this._des3.encryptBlock(R,A)},decryptBlock:function(R,A){this._des3.decryptBlock(R,A),this._des2.encryptBlock(R,A),this._des1.decryptBlock(R,A)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=s._createHelper(E)}(),r.TripleDES})}(zo)),zo.exports}var qo={exports:{}},xs;function L1(){return xs||(xs=1,function(t,e){(function(r,n,i){t.exports=n(Re(),pr(),xr(),Jt(),tt())})(_e,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 l=this._key,x=l.words,d=l.sigBytes,v=this._S=[],m=0;m<256;m++)v[m]=m;for(var m=0,g=0;m<256;m++){var E=m%d,R=x[E>>>2]>>>24-E%4*8&255;g=(g+v[m]+R)%256;var A=v[m];v[m]=v[g],v[g]=A}this._i=this._j=0},_doProcessBlock:function(l,x){l[x]^=h.call(this)},keySize:256/32,ivSize:0});function h(){for(var l=this._S,x=this._i,d=this._j,v=0,m=0;m<4;m++){x=(x+1)%256,d=(d+l[x])%256;var g=l[x];l[x]=l[d],l[d]=g,v|=l[(l[x]+l[d])%256]<<24-m*8}return this._i=x,this._j=d,v}n.RC4=o._createHelper(a);var u=s.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var l=this.cfg.drop;l>0;l--)h.call(this)}});n.RC4Drop=o._createHelper(u)}(),r.RC4})}(qo)),qo.exports}var Wo={exports:{}},vs;function k1(){return vs||(vs=1,function(t,e){(function(r,n,i){t.exports=n(Re(),pr(),xr(),Jt(),tt())})(_e,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,s=n.algo,a=[],h=[],u=[],l=s.Rabbit=o.extend({_doReset:function(){for(var d=this._key.words,v=this.cfg.iv,m=0;m<4;m++)d[m]=(d[m]<<8|d[m]>>>24)&16711935|(d[m]<<24|d[m]>>>8)&4278255360;var g=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],E=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var m=0;m<4;m++)x.call(this);for(var m=0;m<8;m++)E[m]^=g[m+4&7];if(v){var R=v.words,A=R[0],w=R[1],C=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,D=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,I=C>>>16|D&4294901760,L=D<<16|C&65535;E[0]^=C,E[1]^=I,E[2]^=D,E[3]^=L,E[4]^=C,E[5]^=I,E[6]^=D,E[7]^=L;for(var m=0;m<4;m++)x.call(this)}},_doProcessBlock:function(d,v){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 g=0;g<4;g++)a[g]=(a[g]<<8|a[g]>>>24)&16711935|(a[g]<<24|a[g]>>>8)&4278255360,d[v+g]^=a[g]},blockSize:128/32,ivSize:64/32});function x(){for(var d=this._X,v=this._C,m=0;m<8;m++)h[m]=v[m];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<h[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<h[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<h[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<h[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<h[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<h[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<h[6]>>>0?1:0)|0,this._b=v[7]>>>0<h[7]>>>0?1:0;for(var m=0;m<8;m++){var g=d[m]+v[m],E=g&65535,R=g>>>16,A=((E*E>>>17)+E*R>>>15)+R*R,w=((g&4294901760)*g|0)+((g&65535)*g|0);u[m]=A^w}d[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,d[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,d[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,d[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,d[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,d[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,d[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,d[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.Rabbit=o._createHelper(l)}(),r.Rabbit})}(Wo)),Wo.exports}var Vo={exports:{}},ys;function M1(){return ys||(ys=1,function(t,e){(function(r,n,i){t.exports=n(Re(),pr(),xr(),Jt(),tt())})(_e,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,s=n.algo,a=[],h=[],u=[],l=s.RabbitLegacy=o.extend({_doReset:function(){var d=this._key.words,v=this.cfg.iv,m=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],g=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var E=0;E<4;E++)x.call(this);for(var E=0;E<8;E++)g[E]^=m[E+4&7];if(v){var R=v.words,A=R[0],w=R[1],C=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,D=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,I=C>>>16|D&4294901760,L=D<<16|C&65535;g[0]^=C,g[1]^=I,g[2]^=D,g[3]^=L,g[4]^=C,g[5]^=I,g[6]^=D,g[7]^=L;for(var E=0;E<4;E++)x.call(this)}},_doProcessBlock:function(d,v){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 g=0;g<4;g++)a[g]=(a[g]<<8|a[g]>>>24)&16711935|(a[g]<<24|a[g]>>>8)&4278255360,d[v+g]^=a[g]},blockSize:128/32,ivSize:64/32});function x(){for(var d=this._X,v=this._C,m=0;m<8;m++)h[m]=v[m];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<h[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<h[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<h[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<h[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<h[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<h[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<h[6]>>>0?1:0)|0,this._b=v[7]>>>0<h[7]>>>0?1:0;for(var m=0;m<8;m++){var g=d[m]+v[m],E=g&65535,R=g>>>16,A=((E*E>>>17)+E*R>>>15)+R*R,w=((g&4294901760)*g|0)+((g&65535)*g|0);u[m]=A^w}d[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,d[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,d[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,d[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,d[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,d[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,d[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,d[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.RabbitLegacy=o._createHelper(l)}(),r.RabbitLegacy})}(Vo)),Vo.exports}var Go={exports:{}},ms;function U1(){return ms||(ms=1,function(t,e){(function(r,n,i){t.exports=n(Re(),pr(),xr(),Jt(),tt())})(_e,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,s=n.algo;const a=16,h=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],u=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var l={pbox:[],sbox:[]};function x(E,R){let A=R>>24&255,w=R>>16&255,C=R>>8&255,D=R&255,I=E.sbox[0][A]+E.sbox[1][w];return I=I^E.sbox[2][C],I=I+E.sbox[3][D],I}function d(E,R,A){let w=R,C=A,D;for(let I=0;I<a;++I)w=w^E.pbox[I],C=x(E,w)^C,D=w,w=C,C=D;return D=w,w=C,C=D,C=C^E.pbox[a],w=w^E.pbox[a+1],{left:w,right:C}}function v(E,R,A){let w=R,C=A,D;for(let I=a+1;I>1;--I)w=w^E.pbox[I],C=x(E,w)^C,D=w,w=C,C=D;return D=w,w=C,C=D,C=C^E.pbox[1],w=w^E.pbox[0],{left:w,right:C}}function m(E,R,A){for(let L=0;L<4;L++){E.sbox[L]=[];for(let q=0;q<256;q++)E.sbox[L][q]=u[L][q]}let w=0;for(let L=0;L<a+2;L++)E.pbox[L]=h[L]^R[w],w++,w>=A&&(w=0);let C=0,D=0,I=0;for(let L=0;L<a+2;L+=2)I=d(E,C,D),C=I.left,D=I.right,E.pbox[L]=C,E.pbox[L+1]=D;for(let L=0;L<4;L++)for(let q=0;q<256;q+=2)I=d(E,C,D),C=I.left,D=I.right,E.sbox[L][q]=C,E.sbox[L][q+1]=D;return!0}var g=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var E=this._keyPriorReset=this._key,R=E.words,A=E.sigBytes/4;m(l,R,A)}},encryptBlock:function(E,R){var A=d(l,E[R],E[R+1]);E[R]=A.left,E[R+1]=A.right},decryptBlock:function(E,R){var A=v(l,E[R],E[R+1]);E[R]=A.left,E[R+1]=A.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=o._createHelper(g)}(),r.Blowfish})}(Go)),Go.exports}(function(t,e){(function(r,n,i){t.exports=n(Re(),Ei(),x1(),v1(),pr(),y1(),xr(),ru(),O0(),m1(),nu(),g1(),E1(),A1(),P0(),w1(),Jt(),tt(),_1(),b1(),C1(),B1(),D1(),S1(),F1(),R1(),I1(),T1(),O1(),P1(),N1(),L1(),k1(),M1(),U1())})(_e,function(r){return r})})(p1);var Be={},Ai={};Ai.byteLength=z1;Ai.toByteArray=W1;Ai.fromByteArray=j1;var Lt=[],mt=[],$1=typeof Uint8Array!="undefined"?Uint8Array:Array,jo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Rr=0,H1=jo.length;Rr<H1;++Rr)Lt[Rr]=jo[Rr],mt[jo.charCodeAt(Rr)]=Rr;mt[45]=62;mt[95]=63;function iu(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 z1(t){var e=iu(t),r=e[0],n=e[1];return(r+n)*3/4-n}function q1(t,e,r){return(e+r)*3/4-r}function W1(t){var e,r=iu(t),n=r[0],i=r[1],o=new $1(q1(t,n,i)),s=0,a=i>0?n-4:n,h;for(h=0;h<a;h+=4)e=mt[t.charCodeAt(h)]<<18|mt[t.charCodeAt(h+1)]<<12|mt[t.charCodeAt(h+2)]<<6|mt[t.charCodeAt(h+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=mt[t.charCodeAt(h)]<<2|mt[t.charCodeAt(h+1)]>>4,o[s++]=e&255),i===1&&(e=mt[t.charCodeAt(h)]<<10|mt[t.charCodeAt(h+1)]<<4|mt[t.charCodeAt(h+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function V1(t){return Lt[t>>18&63]+Lt[t>>12&63]+Lt[t>>6&63]+Lt[t&63]}function G1(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(V1(n));return i.join("")}function j1(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(G1(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 N0={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */N0.read=function(t,e,r,n,i){var o,s,a=i*8-n-1,h=(1<<a)-1,u=h>>1,l=-7,x=r?i-1:0,d=r?-1:1,v=t[e+x];for(x+=d,o=v&(1<<-l)-1,v>>=-l,l+=a;l>0;o=o*256+t[e+x],x+=d,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=s*256+t[e+x],x+=d,l-=8);if(o===0)o=1-u;else{if(o===h)return s?NaN:(v?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-u}return(v?-1:1)*s*Math.pow(2,o-n)};N0.write=function(t,e,r,n,i,o){var s,a,h,u=o*8-i-1,l=(1<<u)-1,x=l>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:o-1,m=n?1:-1,g=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=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-s))<1&&(s--,h*=2),s+x>=1?e+=d/h:e+=d*Math.pow(2,1-x),e*h>=2&&(s++,h/=2),s+x>=l?(a=0,s=l):s+x>=1?(a=(e*h-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+v]=a&255,v+=m,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;t[r+v]=s&255,v+=m,s/=256,u-=8);t[r+v-m]|=g*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(n){var t=eo,e=X0,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=a,n.SlowBuffer=w,n.INSPECT_MAX_BYTES=50;var i=2147483647;n.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=s(),!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 s(){try{var M=new Uint8Array(1),d={foo:function(){return 42}};return Object.setPrototypeOf(d,Uint8Array.prototype),Object.setPrototypeOf(M,d),M.foo()===42}catch(m){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 o(M){if(M>i)throw new RangeError('The value "'+M+'" is invalid for option "size"');var d=new Uint8Array(M);return Object.setPrototypeOf(d,a.prototype),d}function a(M,d,m){if(typeof M=="number"){if(typeof d=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(M)}return u(M,d,m)}a.poolSize=8192;function u(M,d,m){if(typeof M=="string")return h(M,d);if(ArrayBuffer.isView(M))return x(M);if(M==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);if(Ft(M,ArrayBuffer)||M&&Ft(M.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ft(M,SharedArrayBuffer)||M&&Ft(M.buffer,SharedArrayBuffer)))return y(M,d,m);if(typeof M=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var B=M.valueOf&&M.valueOf();if(B!=null&&B!==M)return a.from(B,d,m);var k=g(M);if(k)return k;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof M[Symbol.toPrimitive]=="function")return a.from(M[Symbol.toPrimitive]("string"),d,m);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M)}a.from=function(M,d,m){return u(M,d,m)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function c(M){if(typeof M!="number")throw new TypeError('"size" argument must be of type number');if(M<0)throw new RangeError('The value "'+M+'" is invalid for option "size"')}function l(M,d,m){return c(M),M<=0?o(M):d!==void 0?typeof m=="string"?o(M).fill(d,m):o(M).fill(d):o(M)}a.alloc=function(M,d,m){return l(M,d,m)};function f(M){return c(M),o(M<0?0:A(M)|0)}a.allocUnsafe=function(M){return f(M)},a.allocUnsafeSlow=function(M){return f(M)};function h(M,d){if((typeof d!="string"||d==="")&&(d="utf8"),!a.isEncoding(d))throw new TypeError("Unknown encoding: "+d);var m=E(M,d)|0,B=o(m),k=B.write(M,d);return k!==m&&(B=B.slice(0,k)),B}function p(M){for(var d=M.length<0?0:A(M.length)|0,m=o(d),B=0;B<d;B+=1)m[B]=M[B]&255;return m}function x(M){if(Ft(M,Uint8Array)){var d=new Uint8Array(M);return y(d.buffer,d.byteOffset,d.byteLength)}return p(M)}function y(M,d,m){if(d<0||M.byteLength<d)throw new RangeError('"offset" is outside of buffer bounds');if(M.byteLength<d+(m||0))throw new RangeError('"length" is outside of buffer bounds');var B;return d===void 0&&m===void 0?B=new Uint8Array(M):m===void 0?B=new Uint8Array(M,d):B=new Uint8Array(M,d,m),Object.setPrototypeOf(B,a.prototype),B}function g(M){if(a.isBuffer(M)){var d=A(M.length)|0,m=o(d);return m.length===0||M.copy(m,0,0,d),m}if(M.length!==void 0)return typeof M.length!="number"||Wt(M.length)?o(0):p(M);if(M.type==="Buffer"&&Array.isArray(M.data))return p(M.data)}function A(M){if(M>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return M|0}function w(M){return+M!=M&&(M=0),a.alloc(+M)}a.isBuffer=function(d){return d!=null&&d._isBuffer===!0&&d!==a.prototype},a.compare=function(d,m){if(Ft(d,Uint8Array)&&(d=a.from(d,d.offset,d.byteLength)),Ft(m,Uint8Array)&&(m=a.from(m,m.offset,m.byteLength)),!a.isBuffer(d)||!a.isBuffer(m))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===m)return 0;for(var B=d.length,k=m.length,Z=0,nt=Math.min(B,k);Z<nt;++Z)if(d[Z]!==m[Z]){B=d[Z],k=m[Z];break}return B<k?-1:k<B?1:0},a.isEncoding=function(d){switch(String(d).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(d,m){if(!Array.isArray(d))throw new TypeError('"list" argument must be an Array of Buffers');if(d.length===0)return a.alloc(0);var B;if(m===void 0)for(m=0,B=0;B<d.length;++B)m+=d[B].length;var k=a.allocUnsafe(m),Z=0;for(B=0;B<d.length;++B){var nt=d[B];if(Ft(nt,Uint8Array))Z+nt.length>k.length?a.from(nt).copy(k,Z):Uint8Array.prototype.set.call(k,nt,Z);else if(a.isBuffer(nt))nt.copy(k,Z);else throw new TypeError('"list" argument must be an Array of Buffers');Z+=nt.length}return k};function E(M,d){if(a.isBuffer(M))return M.length;if(ArrayBuffer.isView(M)||Ft(M,ArrayBuffer))return M.byteLength;if(typeof M!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof M);var m=M.length,B=arguments.length>2&&arguments[2]===!0;if(!B&&m===0)return 0;for(var k=!1;;)switch(d){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return yt(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m*2;case"hex":return m>>>1;case"base64":return qt(M).length;default:if(k)return B?-1:yt(M).length;d=(""+d).toLowerCase(),k=!0}}a.byteLength=E;function _(M,d,m){var B=!1;if((d===void 0||d<0)&&(d=0),d>this.length||((m===void 0||m>this.length)&&(m=this.length),m<=0)||(m>>>=0,d>>>=0,m<=d))return"";for(M||(M="utf8");;)switch(M){case"hex":return ut(this,d,m);case"utf8":case"utf-8":return J(this,d,m);case"ascii":return ot(this,d,m);case"latin1":case"binary":return it(this,d,m);case"base64":return j(this,d,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,d,m);default:if(B)throw new TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),B=!0}}a.prototype._isBuffer=!0;function C(M,d,m){var B=M[d];M[d]=M[m],M[m]=B}a.prototype.swap16=function(){var d=this.length;if(d%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var m=0;m<d;m+=2)C(this,m,m+1);return this},a.prototype.swap32=function(){var d=this.length;if(d%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var m=0;m<d;m+=4)C(this,m,m+3),C(this,m+1,m+2);return this},a.prototype.swap64=function(){var d=this.length;if(d%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var m=0;m<d;m+=8)C(this,m,m+7),C(this,m+1,m+6),C(this,m+2,m+5),C(this,m+3,m+4);return this},a.prototype.toString=function(){var d=this.length;return d===0?"":arguments.length===0?J(this,0,d):_.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(d){if(!a.isBuffer(d))throw new TypeError("Argument must be a Buffer");return this===d?!0:a.compare(this,d)===0},a.prototype.inspect=function(){var d="",m=n.INSPECT_MAX_BYTES;return d=this.toString("hex",0,m).replace(/(.{2})/g,"$1 ").trim(),this.length>m&&(d+=" ... "),"<Buffer "+d+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(d,m,B,k,Z){if(Ft(d,Uint8Array)&&(d=a.from(d,d.offset,d.byteLength)),!a.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(m===void 0&&(m=0),B===void 0&&(B=d?d.length:0),k===void 0&&(k=0),Z===void 0&&(Z=this.length),m<0||B>d.length||k<0||Z>this.length)throw new RangeError("out of range index");if(k>=Z&&m>=B)return 0;if(k>=Z)return-1;if(m>=B)return 1;if(m>>>=0,B>>>=0,k>>>=0,Z>>>=0,this===d)return 0;for(var nt=Z-k,mt=B-m,Et=Math.min(nt,mt),Ot=this.slice(k,Z),kt=d.slice(m,B),Pt=0;Pt<Et;++Pt)if(Ot[Pt]!==kt[Pt]){nt=Ot[Pt],mt=kt[Pt];break}return nt<mt?-1:mt<nt?1:0};function T(M,d,m,B,k){if(M.length===0)return-1;if(typeof m=="string"?(B=m,m=0):m>2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),m=+m,Wt(m)&&(m=k?0:M.length-1),m<0&&(m=M.length+m),m>=M.length){if(k)return-1;m=M.length-1}else if(m<0)if(k)m=0;else return-1;if(typeof d=="string"&&(d=a.from(d,B)),a.isBuffer(d))return d.length===0?-1:R(M,d,m,B,k);if(typeof d=="number")return d=d&255,typeof Uint8Array.prototype.indexOf=="function"?k?Uint8Array.prototype.indexOf.call(M,d,m):Uint8Array.prototype.lastIndexOf.call(M,d,m):R(M,[d],m,B,k);throw new TypeError("val must be string, number or Buffer")}function R(M,d,m,B,k){var Z=1,nt=M.length,mt=d.length;if(B!==void 0&&(B=String(B).toLowerCase(),B==="ucs2"||B==="ucs-2"||B==="utf16le"||B==="utf-16le")){if(M.length<2||d.length<2)return-1;Z=2,nt/=2,mt/=2,m/=2}function Et(je,Ge){return Z===1?je[Ge]:je.readUInt16BE(Ge*Z)}var Ot;if(k){var kt=-1;for(Ot=m;Ot<nt;Ot++)if(Et(M,Ot)===Et(d,kt===-1?0:Ot-kt)){if(kt===-1&&(kt=Ot),Ot-kt+1===mt)return kt*Z}else kt!==-1&&(Ot-=Ot-kt),kt=-1}else for(m+mt>nt&&(m=nt-mt),Ot=m;Ot>=0;Ot--){for(var Pt=!0,Re=0;Re<mt;Re++)if(Et(M,Ot+Re)!==Et(d,Re)){Pt=!1;break}if(Pt)return Ot}return-1}a.prototype.includes=function(d,m,B){return this.indexOf(d,m,B)!==-1},a.prototype.indexOf=function(d,m,B){return T(this,d,m,B,!0)},a.prototype.lastIndexOf=function(d,m,B){return T(this,d,m,B,!1)};function N(M,d,m,B){m=Number(m)||0;var k=M.length-m;B?(B=Number(B),B>k&&(B=k)):B=k;var Z=d.length;B>Z/2&&(B=Z/2);for(var nt=0;nt<B;++nt){var mt=parseInt(d.substr(nt*2,2),16);if(Wt(mt))return nt;M[m+nt]=mt}return nt}function Y(M,d,m,B){return __$t__(yt(d,M.length-m),M,m,B)}function I(M,d,m,B){return __$t__(bt(d),M,m,B)}function O(M,d,m,B){return __$t__(qt(d),M,m,B)}function q(M,d,m,B){return __$t__(Mt(d,M.length-m),M,m,B)}a.prototype.write=function(d,m,B,k){if(m===void 0)k="utf8",B=this.length,m=0;else if(B===void 0&&typeof m=="string")k=m,B=this.length,m=0;else if(isFinite(m))m=m>>>0,isFinite(B)?(B=B>>>0,k===void 0&&(k="utf8")):(k=B,B=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Z=this.length-m;if((B===void 0||B>Z)&&(B=Z),d.length>0&&(B<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");k||(k="utf8");for(var nt=!1;;)switch(k){case"hex":return N(this,d,m,B);case"utf8":case"utf-8":return Y(this,d,m,B);case"ascii":case"latin1":case"binary":return I(this,d,m,B);case"base64":return O(this,d,m,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,d,m,B);default:if(nt)throw new TypeError("Unknown encoding: "+k);k=(""+k).toLowerCase(),nt=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(M,d,m){return d===0&&m===M.length?t.fromByteArray(M):t.fromByteArray(M.slice(d,m))}function J(M,d,m){m=Math.min(M.length,m);for(var B=[],k=d;k<m;){var Z=M[k],nt=null,mt=Z>239?4:Z>223?3:Z>191?2:1;if(k+mt<=m){var Et,Ot,kt,Pt;switch(mt){case 1:Z<128&&(nt=Z);break;case 2:Et=M[k+1],(Et&192)===128&&(Pt=(Z&31)<<6|Et&63,Pt>127&&(nt=Pt));break;case 3:Et=M[k+1],Ot=M[k+2],(Et&192)===128&&(Ot&192)===128&&(Pt=(Z&15)<<12|(Et&63)<<6|Ot&63,Pt>2047&&(Pt<55296||Pt>57343)&&(nt=Pt));break;case 4:Et=M[k+1],Ot=M[k+2],kt=M[k+3],(Et&192)===128&&(Ot&192)===128&&(kt&192)===128&&(Pt=(Z&15)<<18|(Et&63)<<12|(Ot&63)<<6|kt&63,Pt>65535&&Pt<1114112&&(nt=Pt))}}nt===null?(nt=65533,mt=1):nt>65535&&(nt-=65536,B.push(nt>>>10&1023|55296),nt=56320|nt&1023),B.push(nt),k+=mt}return Q(B)}var G=4096;function Q(M){var d=M.length;if(d<=G)return String.fromCharCode.apply(String,M);for(var m="",B=0;B<d;)m+=String.fromCharCode.apply(String,M.slice(B,B+=G));return m}function ot(M,d,m){var B="";m=Math.min(M.length,m);for(var k=d;k<m;++k)B+=String.fromCharCode(M[k]&127);return B}function it(M,d,m){var B="";m=Math.min(M.length,m);for(var k=d;k<m;++k)B+=String.fromCharCode(M[k]);return B}function ut(M,d,m){var B=M.length;(!d||d<0)&&(d=0),(!m||m<0||m>B)&&(m=B);for(var k="",Z=d;Z<m;++Z)k+=Vt[M[Z]];return k}function at(M,d,m){for(var B=M.slice(d,m),k="",Z=0;Z<B.length-1;Z+=2)k+=String.fromCharCode(B[Z]+B[Z+1]*256);return k}a.prototype.slice=function(d,m){var B=this.length;d=~~d,m=m===void 0?B:~~m,d<0?(d+=B,d<0&&(d=0)):d>B&&(d=B),m<0?(m+=B,m<0&&(m=0)):m>B&&(m=B),m<d&&(m=d);var k=this.subarray(d,m);return Object.setPrototypeOf(k,a.prototype),k};function U(M,d,m){if(M%1!==0||M<0)throw new RangeError("offset is not uint");if(M+d>m)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(d,m,B){d=d>>>0,m=m>>>0,B||U(d,m,this.length);for(var k=this[d],Z=1,nt=0;++nt<m&&(Z*=256);)k+=this[d+nt]*Z;return k},a.prototype.readUintBE=a.prototype.readUIntBE=function(d,m,B){d=d>>>0,m=m>>>0,B||U(d,m,this.length);for(var k=this[d+--m],Z=1;m>0&&(Z*=256);)k+=this[d+--m]*Z;return k},a.prototype.readUint8=a.prototype.readUInt8=function(d,m){return d=d>>>0,m||U(d,1,this.length),this[d]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(d,m){return d=d>>>0,m||U(d,2,this.length),this[d]|this[d+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(d,m){return d=d>>>0,m||U(d,2,this.length),this[d]<<8|this[d+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(d,m){return d=d>>>0,m||U(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+this[d+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(d,m){return d=d>>>0,m||U(d,4,this.length),this[d]*16777216+(this[d+1]<<16|this[d+2]<<8|this[d+3])},a.prototype.readIntLE=function(d,m,B){d=d>>>0,m=m>>>0,B||U(d,m,this.length);for(var k=this[d],Z=1,nt=0;++nt<m&&(Z*=256);)k+=this[d+nt]*Z;return Z*=128,k>=Z&&(k-=Math.pow(2,8*m)),k},a.prototype.readIntBE=function(d,m,B){d=d>>>0,m=m>>>0,B||U(d,m,this.length);for(var k=m,Z=1,nt=this[d+--k];k>0&&(Z*=256);)nt+=this[d+--k]*Z;return Z*=128,nt>=Z&&(nt-=Math.pow(2,8*m)),nt},a.prototype.readInt8=function(d,m){return d=d>>>0,m||U(d,1,this.length),this[d]&128?(255-this[d]+1)*-1:this[d]},a.prototype.readInt16LE=function(d,m){d=d>>>0,m||U(d,2,this.length);var B=this[d]|this[d+1]<<8;return B&32768?B|4294901760:B},a.prototype.readInt16BE=function(d,m){d=d>>>0,m||U(d,2,this.length);var B=this[d+1]|this[d]<<8;return B&32768?B|4294901760:B},a.prototype.readInt32LE=function(d,m){return d=d>>>0,m||U(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},a.prototype.readInt32BE=function(d,m){return d=d>>>0,m||U(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},a.prototype.readFloatLE=function(d,m){return d=d>>>0,m||U(d,4,this.length),e.read(this,d,!0,23,4)},a.prototype.readFloatBE=function(d,m){return d=d>>>0,m||U(d,4,this.length),e.read(this,d,!1,23,4)},a.prototype.readDoubleLE=function(d,m){return d=d>>>0,m||U(d,8,this.length),e.read(this,d,!0,52,8)},a.prototype.readDoubleBE=function(d,m){return d=d>>>0,m||U(d,8,this.length),e.read(this,d,!1,52,8)};function X(M,d,m,B,k,Z){if(!a.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>k||d<Z)throw new RangeError('"value" argument is out of bounds');if(m+B>M.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(d,m,B,k){if(d=+d,m=m>>>0,B=B>>>0,!k){var Z=Math.pow(2,8*B)-1;X(this,d,m,B,Z,0)}var nt=1,mt=0;for(this[m]=d&255;++mt<B&&(nt*=256);)this[m+mt]=d/nt&255;return m+B},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(d,m,B,k){if(d=+d,m=m>>>0,B=B>>>0,!k){var Z=Math.pow(2,8*B)-1;X(this,d,m,B,Z,0)}var nt=B-1,mt=1;for(this[m+nt]=d&255;--nt>=0&&(mt*=256);)this[m+nt]=d/mt&255;return m+B},a.prototype.writeUint8=a.prototype.writeUInt8=function(d,m,B){return d=+d,m=m>>>0,B||X(this,d,m,1,255,0),this[m]=d&255,m+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(d,m,B){return d=+d,m=m>>>0,B||X(this,d,m,2,65535,0),this[m]=d&255,this[m+1]=d>>>8,m+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(d,m,B){return d=+d,m=m>>>0,B||X(this,d,m,2,65535,0),this[m]=d>>>8,this[m+1]=d&255,m+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(d,m,B){return d=+d,m=m>>>0,B||X(this,d,m,4,4294967295,0),this[m+3]=d>>>24,this[m+2]=d>>>16,this[m+1]=d>>>8,this[m]=d&255,m+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(d,m,B){return d=+d,m=m>>>0,B||X(this,d,m,4,4294967295,0),this[m]=d>>>24,this[m+1]=d>>>16,this[m+2]=d>>>8,this[m+3]=d&255,m+4},a.prototype.writeIntLE=function(d,m,B,k){if(d=+d,m=m>>>0,!k){var Z=Math.pow(2,8*B-1);X(this,d,m,B,Z-1,-Z)}var nt=0,mt=1,Et=0;for(this[m]=d&255;++nt<B&&(mt*=256);)d<0&&Et===0&&this[m+nt-1]!==0&&(Et=1),this[m+nt]=(d/mt>>0)-Et&255;return m+B},a.prototype.writeIntBE=function(d,m,B,k){if(d=+d,m=m>>>0,!k){var Z=Math.pow(2,8*B-1);X(this,d,m,B,Z-1,-Z)}var nt=B-1,mt=1,Et=0;for(this[m+nt]=d&255;--nt>=0&&(mt*=256);)d<0&&Et===0&&this[m+nt+1]!==0&&(Et=1),this[m+nt]=(d/mt>>0)-Et&255;return m+B},a.prototype.writeInt8=function(d,m,B){return d=+d,m=m>>>0,B||X(this,d,m,1,127,-128),d<0&&(d=255+d+1),this[m]=d&255,m+1},a.prototype.writeInt16LE=function(d,m,B){return d=+d,m=m>>>0,B||X(this,d,m,2,32767,-32768),this[m]=d&255,this[m+1]=d>>>8,m+2},a.prototype.writeInt16BE=function(d,m,B){return d=+d,m=m>>>0,B||X(this,d,m,2,32767,-32768),this[m]=d>>>8,this[m+1]=d&255,m+2},a.prototype.writeInt32LE=function(d,m,B){return d=+d,m=m>>>0,B||X(this,d,m,4,2147483647,-2147483648),this[m]=d&255,this[m+1]=d>>>8,this[m+2]=d>>>16,this[m+3]=d>>>24,m+4},a.prototype.writeInt32BE=function(d,m,B){return d=+d,m=m>>>0,B||X(this,d,m,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[m]=d>>>24,this[m+1]=d>>>16,this[m+2]=d>>>8,this[m+3]=d&255,m+4};function tt(M,d,m,B,k,Z){if(m+B>M.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function K(M,d,m,B,k){return d=+d,m=m>>>0,k||tt(M,d,m,4),e.write(M,d,m,B,23,4),m+4}a.prototype.writeFloatLE=function(d,m,B){return K(this,d,m,!0,B)},a.prototype.writeFloatBE=function(d,m,B){return K(this,d,m,!1,B)};function wt(M,d,m,B,k){return d=+d,m=m>>>0,k||tt(M,d,m,8),e.write(M,d,m,B,52,8),m+8}a.prototype.writeDoubleLE=function(d,m,B){return wt(this,d,m,!0,B)},a.prototype.writeDoubleBE=function(d,m,B){return wt(this,d,m,!1,B)},a.prototype.copy=function(d,m,B,k){if(!a.isBuffer(d))throw new TypeError("argument should be a Buffer");if(B||(B=0),!k&&k!==0&&(k=this.length),m>=d.length&&(m=d.length),m||(m=0),k>0&&k<B&&(k=B),k===B||d.length===0||this.length===0)return 0;if(m<0)throw new RangeError("targetStart out of bounds");if(B<0||B>=this.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("sourceEnd out of bounds");k>this.length&&(k=this.length),d.length-m<k-B&&(k=d.length-m+B);var Z=k-B;return this===d&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(m,B,k):Uint8Array.prototype.set.call(d,this.subarray(B,k),m),Z},a.prototype.fill=function(d,m,B,k){if(typeof d=="string"){if(typeof m=="string"?(k=m,m=0,B=this.length):typeof B=="string"&&(k=B,B=this.length),k!==void 0&&typeof k!="string")throw new TypeError("encoding must be a string");if(typeof k=="string"&&!a.isEncoding(k))throw new TypeError("Unknown encoding: "+k);if(d.length===1){var Z=d.charCodeAt(0);(k==="utf8"&&Z<128||k==="latin1")&&(d=Z)}}else typeof d=="number"?d=d&255:typeof d=="boolean"&&(d=Number(d));if(m<0||this.length<m||this.length<B)throw new RangeError("Out of range index");if(B<=m)return this;m=m>>>0,B=B===void 0?this.length:B>>>0,d||(d=0);var nt;if(typeof d=="number")for(nt=m;nt<B;++nt)this[nt]=d;else{var mt=a.isBuffer(d)?d:a.from(d,k),Et=mt.length;if(Et===0)throw new TypeError('The value "'+d+'" is invalid for argument "value"');for(nt=0;nt<B-m;++nt)this[nt+m]=mt[nt%Et]}return this};var At=/[^+/0-9A-Za-z-_]/g;function It(M){if(M=M.split("=")[0],M=M.trim().replace(At,""),M.length<2)return"";for(;M.length%4!==0;)M=M+"=";return M}function yt(M,d){d=d||1/0;for(var m,B=M.length,k=null,Z=[],nt=0;nt<B;++nt){if(m=M.charCodeAt(nt),m>55295&&m<57344){if(!k){if(m>56319){(d-=3)>-1&&Z.push(239,191,189);continue}else if(nt+1===B){(d-=3)>-1&&Z.push(239,191,189);continue}k=m;continue}if(m<56320){(d-=3)>-1&&Z.push(239,191,189),k=m;continue}m=(k-55296<<10|m-56320)+65536}else k&&(d-=3)>-1&&Z.push(239,191,189);if(k=null,m<128){if((d-=1)<0)break;Z.push(m)}else if(m<2048){if((d-=2)<0)break;Z.push(m>>6|192,m&63|128)}else if(m<65536){if((d-=3)<0)break;Z.push(m>>12|224,m>>6&63|128,m&63|128)}else if(m<1114112){if((d-=4)<0)break;Z.push(m>>18|240,m>>12&63|128,m>>6&63|128,m&63|128)}else throw new Error("Invalid code point")}return Z}function bt(M){for(var d=[],m=0;m<M.length;++m)d.push(M.charCodeAt(m)&255);return d}function Mt(M,d){for(var m,B,k,Z=[],nt=0;nt<M.length&&!((d-=2)<0);++nt)m=M.charCodeAt(nt),B=m>>8,k=m%256,Z.push(k),Z.push(B);return Z}function qt(M){return t.toByteArray(It(M))}function __$t__(M,d,m,B){for(var k=0;k<B&&!(k+m>=d.length||k>=M.length);++k)d[k+m]=M[k];return k}function Ft(M,d){return M instanceof d||M!=null&&M.constructor!=null&&M.constructor.name!=null&&M.constructor.name===d.name}function Wt(M){return M!==M}var Vt=function(){for(var M="0123456789abcdef",d=new Array(256),m=0;m<16;++m)for(var B=m*16,k=0;k<16;++k)d[B+k]=M[m]+M[k];return d}()})(Bt);var Qy=Bt.Buffer,tg=function(n){if(n instanceof Uint8Array){if(n.byteOffset===0&&n.byteLength===n.buffer.byteLength)return n.buffer;if(typeof n.buffer.slice=="function")return n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}if(Qy.isBuffer(n)){for(var t=new Uint8Array(n.length),e=n.length,r=0;r<e;r++)t[r]=n[r];return t.buffer}else throw new Error("Argument must be a Buffer")};const Ci=O0(tg);var uf={exports:{}};(function(n,t){(function(){var e,r=0xdeadbeefcafe,i=(r&16777215)==15715070;function s(v,b,F){v!=null&&(typeof v=="number"?this.fromNumber(v,b,F):b==null&&typeof v!="string"?this.fromString(v,256):this.fromString(v,b))}function o(){return new s(null)}function a(v,b,F,H,st,lt){for(;--lt>=0;){var pt=b*this[v++]+F[H]+st;st=Math.floor(pt/67108864),F[H++]=pt&67108863}return st}function u(v,b,F,H,st,lt){for(var pt=b&32767,xt=b>>15;--lt>=0;){var Ht=this[v]&32767,re=this[v++]>>15,Be=xt*Ht+re*pt;Ht=pt*Ht+((Be&32767)<<15)+F[H]+(st&1073741823),st=(Ht>>>30)+(Be>>>15)+xt*re+(st>>>30),F[H++]=Ht&1073741823}return st}function c(v,b,F,H,st,lt){for(var pt=b&16383,xt=b>>14;--lt>=0;){var Ht=this[v]&16383,re=this[v++]>>14,Be=xt*Ht+re*pt;Ht=pt*Ht+((Be&16383)<<14)+F[H]+st,st=(Ht>>28)+(Be>>14)+xt*re,F[H++]=Ht&268435455}return st}var l=typeof navigator!="undefined";l&&i&&navigator.appName=="Microsoft Internet Explorer"?(s.prototype.am=u,e=30):l&&i&&navigator.appName!="Netscape"?(s.prototype.am=a,e=26):(s.prototype.am=c,e=28),s.prototype.DB=e,s.prototype.DM=(1<<e)-1,s.prototype.DV=1<<e;var f=52;s.prototype.FV=Math.pow(2,f),s.prototype.F1=f-e,s.prototype.F2=2*e-f;var h="0123456789abcdefghijklmnopqrstuvwxyz",p=new Array,x,y;for(x=48,y=0;y<=9;++y)p[x++]=y;for(x=97,y=10;y<36;++y)p[x++]=y;for(x=65,y=10;y<36;++y)p[x++]=y;function g(v){return h.charAt(v)}function A(v,b){var F=p[v.charCodeAt(b)];return F==null?-1:F}function w(v){for(var b=this.t-1;b>=0;--b)v[b]=this[b];v.t=this.t,v.s=this.s}function E(v){this.t=1,this.s=v<0?-1:0,v>0?this[0]=v:v<-1?this[0]=v+this.DV:this.t=0}function _(v){var b=o();return b.fromInt(v),b}function C(v,b){var F;if(b==16)F=4;else if(b==8)F=3;else if(b==256)F=8;else if(b==2)F=1;else if(b==32)F=5;else if(b==4)F=2;else{this.fromRadix(v,b);return}this.t=0,this.s=0;for(var H=v.length,st=!1,lt=0;--H>=0;){var pt=F==8?v[H]&255:A(v,H);if(pt<0){v.charAt(H)=="-"&&(st=!0);continue}st=!1,lt==0?this[this.t++]=pt:lt+F>this.DB?(this[this.t-1]|=(pt&(1<<this.DB-lt)-1)<<lt,this[this.t++]=pt>>this.DB-lt):this[this.t-1]|=pt<<lt,lt+=F,lt>=this.DB&&(lt-=this.DB)}F==8&&v[0]&128&&(this.s=-1,lt>0&&(this[this.t-1]|=(1<<this.DB-lt)-1<<lt)),this.clamp(),st&&s.ZERO.subTo(this,this)}function T(){for(var v=this.s&this.DM;this.t>0&&this[this.t-1]==v;)--this.t}function R(v){if(this.s<0)return"-"+this.negate().toString(v);var b;if(v==16)b=4;else if(v==8)b=3;else if(v==2)b=1;else if(v==32)b=5;else if(v==4)b=2;else return this.toRadix(v);var F=(1<<b)-1,H,st=!1,lt="",pt=this.t,xt=this.DB-pt*this.DB%b;if(pt-- >0)for(xt<this.DB&&(H=this[pt]>>xt)>0&&(st=!0,lt=g(H));pt>=0;)xt<b?(H=(this[pt]&(1<<xt)-1)<<b-xt,H|=this[--pt]>>(xt+=this.DB-b)):(H=this[pt]>>(xt-=b)&F,xt<=0&&(xt+=this.DB,--pt)),H>0&&(st=!0),st&&(lt+=g(H));return st?lt:"0"}function N(){var v=o();return s.ZERO.subTo(this,v),v}function Y(){return this.s<0?this.negate():this}function I(v){var b=this.s-v.s;if(b!=0)return b;var F=this.t;if(b=F-v.t,b!=0)return this.s<0?-b:b;for(;--F>=0;)if((b=this[F]-v[F])!=0)return b;return 0}function O(v){var b=1,F;return(F=v>>>16)!=0&&(v=F,b+=16),(F=v>>8)!=0&&(v=F,b+=8),(F=v>>4)!=0&&(v=F,b+=4),(F=v>>2)!=0&&(v=F,b+=2),(F=v>>1)!=0&&(v=F,b+=1),b}function q(){return this.t<=0?0:this.DB*(this.t-1)+O(this[this.t-1]^this.s&this.DM)}function j(v,b){var F;for(F=this.t-1;F>=0;--F)b[F+v]=this[F];for(F=v-1;F>=0;--F)b[F]=0;b.t=this.t+v,b.s=this.s}function J(v,b){for(var F=v;F<this.t;++F)b[F-v]=this[F];b.t=Math.max(this.t-v,0),b.s=this.s}function G(v,b){var F=v%this.DB,H=this.DB-F,st=(1<<H)-1,lt=Math.floor(v/this.DB),pt=this.s<<F&this.DM,xt;for(xt=this.t-1;xt>=0;--xt)b[xt+lt+1]=this[xt]>>H|pt,pt=(this[xt]&st)<<F;for(xt=lt-1;xt>=0;--xt)b[xt]=0;b[lt]=pt,b.t=this.t+lt+1,b.s=this.s,b.clamp()}function Q(v,b){b.s=this.s;var F=Math.floor(v/this.DB);if(F>=this.t){b.t=0;return}var H=v%this.DB,st=this.DB-H,lt=(1<<H)-1;b[0]=this[F]>>H;for(var pt=F+1;pt<this.t;++pt)b[pt-F-1]|=(this[pt]<)<<st,b[pt-F]=this[pt]>>H;H>0&&(b[this.t-F-1]|=(this.s<)<<st),b.t=this.t-F,b.clamp()}function ot(v,b){for(var F=0,H=0,st=Math.min(v.t,this.t);F<st;)H+=this[F]-v[F],b[F++]=H&this.DM,H>>=this.DB;if(v.t<this.t){for(H-=v.s;F<this.t;)H+=this[F],b[F++]=H&this.DM,H>>=this.DB;H+=this.s}else{for(H+=this.s;F<v.t;)H-=v[F],b[F++]=H&this.DM,H>>=this.DB;H-=v.s}b.s=H<0?-1:0,H<-1?b[F++]=this.DV+H:H>0&&(b[F++]=H),b.t=F,b.clamp()}function it(v,b){var F=this.abs(),H=v.abs(),st=F.t;for(b.t=st+H.t;--st>=0;)b[st]=0;for(st=0;st<H.t;++st)b[st+F.t]=F.am(0,H[st],b,st,0,F.t);b.s=0,b.clamp(),this.s!=v.s&&s.ZERO.subTo(b,b)}function ut(v){for(var b=this.abs(),F=v.t=2*b.t;--F>=0;)v[F]=0;for(F=0;F<b.t-1;++F){var H=b.am(F,b[F],v,2*F,0,1);(v[F+b.t]+=b.am(F+1,2*b[F],v,2*F+1,H,b.t-F-1))>=b.DV&&(v[F+b.t]-=b.DV,v[F+b.t+1]=1)}v.t>0&&(v[v.t-1]+=b.am(F,b[F],v,2*F,0,1)),v.s=0,v.clamp()}function at(v,b,F){var H=v.abs();if(!(H.t<=0)){var st=this.abs();if(st.t<H.t){b!=null&&b.fromInt(0),F!=null&&this.copyTo(F);return}F==null&&(F=o());var lt=o(),pt=this.s,xt=v.s,Ht=this.DB-O(H[H.t-1]);Ht>0?(H.lShiftTo(Ht,lt),st.lShiftTo(Ht,F)):(H.copyTo(lt),st.copyTo(F));var re=lt.t,Be=lt[re-1];if(Be!=0){var be=Be*(1<<this.F1)+(re>1?lt[re-2]>>this.F2:0),sr=this.FV/be,qi=(1<<this.F1)/be,Oe=1<<this.F2,Pe=F.t,Wi=Pe-re,wr=b==null?o():b;for(lt.dlShiftTo(Wi,wr),F.compareTo(wr)>=0&&(F[F.t++]=1,F.subTo(wr,F)),s.ONE.dlShiftTo(re,wr),wr.subTo(lt,lt);lt.t<re;)lt[lt.t++]=0;for(;--Wi>=0;){var Eo=F[--Pe]==Be?this.DM:Math.floor(F[Pe]*sr+(F[Pe-1]+Oe)*qi);if((F[Pe]+=lt.am(0,Eo,F,Wi,0,re))<Eo)for(lt.dlShiftTo(Wi,wr),F.subTo(wr,F);F[Pe]<--Eo;)F.subTo(wr,F)}b!=null&&(F.drShiftTo(re,b),pt!=xt&&s.ZERO.subTo(b,b)),F.t=re,F.clamp(),Ht>0&&F.rShiftTo(Ht,F),pt<0&&s.ZERO.subTo(F,F)}}}function U(v){var b=o();return this.abs().divRemTo(v,null,b),this.s<0&&b.compareTo(s.ZERO)>0&&v.subTo(b,b),b}function X(v){this.m=v}function tt(v){return v.s<0||v.compareTo(this.m)>=0?v.mod(this.m):v}function K(v){return v}function wt(v){v.divRemTo(this.m,null,v)}function At(v,b,F){v.multiplyTo(b,F),this.reduce(F)}function It(v,b){v.squareTo(b),this.reduce(b)}X.prototype.convert=tt,X.prototype.revert=K,X.prototype.reduce=wt,X.prototype.mulTo=At,X.prototype.sqrTo=It;function yt(){if(this.t<1)return 0;var v=this[0];if(!(v&1))return 0;var b=v&3;return b=b*(2-(v&15)*b)&15,b=b*(2-(v&255)*b)&255,b=b*(2-((v&65535)*b&65535))&65535,b=b*(2-v*b%this.DV)%this.DV,b>0?this.DV-b:-b}function bt(v){this.m=v,this.mp=v.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<v.DB-15)-1,this.mt2=2*v.t}function Mt(v){var b=o();return v.abs().dlShiftTo(this.m.t,b),b.divRemTo(this.m,null,b),v.s<0&&b.compareTo(s.ZERO)>0&&this.m.subTo(b,b),b}function qt(v){var b=o();return v.copyTo(b),this.reduce(b),b}function __$t__(v){for(;v.t<=this.mt2;)v[v.t++]=0;for(var b=0;b<this.m.t;++b){var F=v[b]&32767,H=F*this.mpl+((F*this.mph+(v[b]>>15)*this.mpl&this.um)<<15)&v.DM;for(F=b+this.m.t,v[F]+=this.m.am(0,H,v,b,0,this.m.t);v[F]>=v.DV;)v[F]-=v.DV,v[++F]++}v.clamp(),v.drShiftTo(this.m.t,v),v.compareTo(this.m)>=0&&v.subTo(this.m,v)}function Ft(v,b){v.squareTo(b),this.reduce(b)}function Wt(v,b,F){v.multiplyTo(b,F),this.reduce(F)}bt.prototype.convert=Mt,bt.prototype.revert=qt,bt.prototype.reduce=__$t__,bt.prototype.mulTo=Wt,bt.prototype.sqrTo=Ft;function Vt(){return(this.t>0?this[0]&1:this.s)==0}function M(v,b){if(v>4294967295||v<1)return s.ONE;var F=o(),H=o(),st=b.convert(this),lt=O(v)-1;for(st.copyTo(F);--lt>=0;)if(b.sqrTo(F,H),(v&1<<lt)>0)b.mulTo(H,st,F);else{var pt=F;F=H,H=pt}return b.revert(F)}function d(v,b){var F;return v<256||b.isEven()?F=new X(b):F=new bt(b),this.exp(v,F)}s.prototype.copyTo=w,s.prototype.fromInt=E,s.prototype.fromString=C,s.prototype.clamp=T,s.prototype.dlShiftTo=j,s.prototype.drShiftTo=J,s.prototype.lShiftTo=G,s.prototype.rShiftTo=Q,s.prototype.subTo=ot,s.prototype.multiplyTo=it,s.prototype.squareTo=ut,s.prototype.divRemTo=at,s.prototype.invDigit=yt,s.prototype.isEven=Vt,s.prototype.exp=M,s.prototype.toString=R,s.prototype.negate=N,s.prototype.abs=Y,s.prototype.compareTo=I,s.prototype.bitLength=q,s.prototype.mod=U,s.prototype.modPowInt=d,s.ZERO=_(0),s.ONE=_(1);function m(){var v=o();return this.copyTo(v),v}function B(){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 k(){return this.t==0?this.s:this[0]<<24>>24}function Z(){return this.t==0?this.s:this[0]<<16>>16}function nt(v){return Math.floor(Math.LN2*this.DB/Math.log(v))}function mt(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Et(v){if(v==null&&(v=10),this.signum()==0||v<2||v>36)return"0";var b=this.chunkSize(v),F=Math.pow(v,b),H=_(F),st=o(),lt=o(),pt="";for(this.divRemTo(H,st,lt);st.signum()>0;)pt=(F+lt.intValue()).toString(v).substr(1)+pt,st.divRemTo(H,st,lt);return lt.intValue().toString(v)+pt}function Ot(v,b){this.fromInt(0),b==null&&(b=10);for(var F=this.chunkSize(b),H=Math.pow(b,F),st=!1,lt=0,pt=0,xt=0;xt<v.length;++xt){var Ht=A(v,xt);if(Ht<0){v.charAt(xt)=="-"&&this.signum()==0&&(st=!0);continue}pt=b*pt+Ht,++lt>=F&&(this.dMultiply(H),this.dAddOffset(pt,0),lt=0,pt=0)}lt>0&&(this.dMultiply(Math.pow(b,lt)),this.dAddOffset(pt,0)),st&&s.ZERO.subTo(this,this)}function kt(v,b,F){if(typeof b=="number")if(v<2)this.fromInt(1);else for(this.fromNumber(v,F),this.testBit(v-1)||this.bitwiseTo(s.ONE.shiftLeft(v-1),Ye,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(b);)this.dAddOffset(2,0),this.bitLength()>v&&this.subTo(s.ONE.shiftLeft(v-1),this);else{var H=new Array,st=v&7;H.length=(v>>3)+1,b.nextBytes(H),st>0?H[0]&=(1<<st)-1:H[0]=0,this.fromString(H,256)}}function Pt(){var v=this.t,b=new Array;b[0]=this.s;var F=this.DB-v*this.DB%8,H,st=0;if(v-- >0)for(F<this.DB&&(H=this[v]>>F)!=(this.s&this.DM)>>F&&(b[st++]=H|this.s<<this.DB-F);v>=0;)F<8?(H=(this[v]&(1<<F)-1)<<8-F,H|=this[--v]>>(F+=this.DB-8)):(H=this[v]>>(F-=8)&255,F<=0&&(F+=this.DB,--v)),H&128&&(H|=-256),st==0&&(this.s&128)!=(H&128)&&++st,(st>0||H!=this.s)&&(b[st++]=H);return b}function Re(v){return this.compareTo(v)==0}function je(v){return this.compareTo(v)<0?this:v}function Ge(v){return this.compareTo(v)>0?this:v}function Ie(v,b,F){var H,st,lt=Math.min(v.t,this.t);for(H=0;H<lt;++H)F[H]=b(this[H],v[H]);if(v.t<this.t){for(st=v.s&this.DM,H=lt;H<this.t;++H)F[H]=b(this[H],st);F.t=this.t}else{for(st=this.s&this.DM,H=lt;H<v.t;++H)F[H]=b(st,v[H]);F.t=v.t}F.s=b(this.s,v.s),F.clamp()}function Xe(v,b){return v&b}function an(v){var b=o();return this.bitwiseTo(v,Xe,b),b}function Ye(v,b){return v|b}function cn(v){var b=o();return this.bitwiseTo(v,Ye,b),b}function un(v,b){return v^b}function Or(v){var b=o();return this.bitwiseTo(v,un,b),b}function gr(v,b){return v&~b}function Yn(v){var b=o();return this.bitwiseTo(v,gr,b),b}function Ee(){for(var v=o(),b=0;b<this.t;++b)v[b]=this.DM&~this[b];return v.t=this.t,v.s=~this.s,v}function Kn(v){var b=o();return v<0?this.rShiftTo(-v,b):this.lShiftTo(v,b),b}function ln(v){var b=o();return v<0?this.lShiftTo(-v,b):this.rShiftTo(v,b),b}function hn(v){if(v==0)return-1;var b=0;return v&65535||(v>>=16,b+=16),v&255||(v>>=8,b+=8),v&15||(v>>=4,b+=4),v&3||(v>>=2,b+=2),v&1||++b,b}function Jn(){for(var v=0;v<this.t;++v)if(this[v]!=0)return v*this.DB+hn(this[v]);return this.s<0?this.t*this.DB:-1}function Zn(v){for(var b=0;v!=0;)v&=v-1,++b;return b}function fn(){for(var v=0,b=this.s&this.DM,F=0;F<this.t;++F)v+=Zn(this[F]^b);return v}function Qn(v){var b=Math.floor(v/this.DB);return b>=this.t?this.s!=0:(this[b]&1<<v%this.DB)!=0}function ti(v,b){var F=s.ONE.shiftLeft(v);return this.bitwiseTo(F,b,F),F}function dn(v){return this.changeBit(v,Ye)}function ei(v){return this.changeBit(v,gr)}function pn(v){return this.changeBit(v,un)}function ae(v,b){for(var F=0,H=0,st=Math.min(v.t,this.t);F<st;)H+=this[F]+v[F],b[F++]=H&this.DM,H>>=this.DB;if(v.t<this.t){for(H+=v.s;F<this.t;)H+=this[F],b[F++]=H&this.DM,H>>=this.DB;H+=this.s}else{for(H+=this.s;F<v.t;)H+=v[F],b[F++]=H&this.DM,H>>=this.DB;H+=v.s}b.s=H<0?-1:0,H>0?b[F++]=H:H<-1&&(b[F++]=this.DV+H),b.t=F,b.clamp()}function Se(v){var b=o();return this.addTo(v,b),b}function Pr(v){var b=o();return this.subTo(v,b),b}function ri(v){var b=o();return this.multiplyTo(v,b),b}function io(){var v=o();return this.squareTo(v),v}function so(v){var b=o();return this.divRemTo(v,b,null),b}function oo(v){var b=o();return this.divRemTo(v,null,b),b}function ao(v){var b=o(),F=o();return this.divRemTo(v,b,F),new Array(b,F)}function co(v){this[this.t]=this.am(0,v-1,this,0,0,this.t),++this.t,this.clamp()}function uo(v,b){if(v!=0){for(;this.t<=b;)this[this.t++]=0;for(this[b]+=v;this[b]>=this.DV;)this[b]-=this.DV,++b>=this.t&&(this[this.t++]=0),++this[b]}}function zr(){}function Ui(v){return v}function lo(v,b,F){v.multiplyTo(b,F)}function ho(v,b){v.squareTo(b)}zr.prototype.convert=Ui,zr.prototype.revert=Ui,zr.prototype.mulTo=lo,zr.prototype.sqrTo=ho;function fo(v){return this.exp(v,new zr)}function po(v,b,F){var H=Math.min(this.t+v.t,b);for(F.s=0,F.t=H;H>0;)F[--H]=0;var st;for(st=F.t-this.t;H<st;++H)F[H+this.t]=this.am(0,v[H],F,H,0,this.t);for(st=Math.min(v.t,b);H<st;++H)this.am(0,v[H],F,H,0,b-H);F.clamp()}function xo(v,b,F){--b;var H=F.t=this.t+v.t-b;for(F.s=0;--H>=0;)F[H]=0;for(H=Math.max(b-this.t,0);H<v.t;++H)F[this.t+H-b]=this.am(b-H,v[H],F,0,0,this.t+H-b);F.clamp(),F.drShiftTo(1,F)}function ir(v){this.r2=o(),this.q3=o(),s.ONE.dlShiftTo(2*v.t,this.r2),this.mu=this.r2.divide(v),this.m=v}function $i(v){if(v.s<0||v.t>2*this.m.t)return v.mod(this.m);if(v.compareTo(this.m)<0)return v;var b=o();return v.copyTo(b),this.reduce(b),b}function kr(v){return v}function Hi(v){for(v.drShiftTo(this.m.t-1,this.r2),v.t>this.m.t+1&&(v.t=this.m.t+1,v.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);v.compareTo(this.r2)<0;)v.dAddOffset(1,this.m.t+1);for(v.subTo(this.r2,v);v.compareTo(this.m)>=0;)v.subTo(this.m,v)}function vr(v,b){v.squareTo(b),this.reduce(b)}function mo(v,b,F){v.multiplyTo(b,F),this.reduce(F)}ir.prototype.convert=$i,ir.prototype.revert=kr,ir.prototype.reduce=Hi,ir.prototype.mulTo=mo,ir.prototype.sqrTo=vr;function xn(v,b){var F=v.bitLength(),H,st=_(1),lt;if(F<=0)return st;F<18?H=1:F<48?H=3:F<144?H=4:F<768?H=5:H=6,F<8?lt=new X(b):b.isEven()?lt=new ir(b):lt=new bt(b);var pt=new Array,xt=3,Ht=H-1,re=(1<<H)-1;if(pt[1]=lt.convert(this),H>1){var Be=o();for(lt.sqrTo(pt[1],Be);xt<=re;)pt[xt]=o(),lt.mulTo(Be,pt[xt-2],pt[xt]),xt+=2}var be=v.t-1,sr,qi=!0,Oe=o(),Pe;for(F=O(v[be])-1;be>=0;){for(F>=Ht?sr=v[be]>>F-Ht&re:(sr=(v[be]&(1<<F+1)-1)<<Ht-F,be>0&&(sr|=v[be-1]>>this.DB+F-Ht)),xt=H;!(sr&1);)sr>>=1,--xt;if((F-=xt)<0&&(F+=this.DB,--be),qi)pt[sr].copyTo(st),qi=!1;else{for(;xt>1;)lt.sqrTo(st,Oe),lt.sqrTo(Oe,st),xt-=2;xt>0?lt.sqrTo(st,Oe):(Pe=st,st=Oe,Oe=Pe),lt.mulTo(Oe,pt[sr],st)}for(;be>=0&&!(v[be]&1<<F);)lt.sqrTo(st,Oe),Pe=st,st=Oe,Oe=Pe,--F<0&&(F=this.DB-1,--be)}return lt.revert(st)}function ni(v){var b=this.s<0?this.negate():this.clone(),F=v.s<0?v.negate():v.clone();if(b.compareTo(F)<0){var H=b;b=F,F=H}var st=b.getLowestSetBit(),lt=F.getLowestSetBit();if(lt<0)return b;for(st<lt&&(lt=st),lt>0&&(b.rShiftTo(lt,b),F.rShiftTo(lt,F));b.signum()>0;)(st=b.getLowestSetBit())>0&&b.rShiftTo(st,b),(st=F.getLowestSetBit())>0&&F.rShiftTo(st,F),b.compareTo(F)>=0?(b.subTo(F,b),b.rShiftTo(1,b)):(F.subTo(b,F),F.rShiftTo(1,F));return lt>0&&F.lShiftTo(lt,F),F}function yo(v){if(v<=0)return 0;var b=this.DV%v,F=this.s<0?v-1:0;if(this.t>0)if(b==0)F=this[0]%v;else for(var H=this.t-1;H>=0;--H)F=(b*F+this[H])%v;return F}function go(v){var b=v.isEven();if(this.isEven()&&b||v.signum()==0)return s.ZERO;for(var F=v.clone(),H=this.clone(),st=_(1),lt=_(0),pt=_(0),xt=_(1);F.signum()!=0;){for(;F.isEven();)F.rShiftTo(1,F),b?((!st.isEven()||!lt.isEven())&&(st.addTo(this,st),lt.subTo(v,lt)),st.rShiftTo(1,st)):lt.isEven()||lt.subTo(v,lt),lt.rShiftTo(1,lt);for(;H.isEven();)H.rShiftTo(1,H),b?((!pt.isEven()||!xt.isEven())&&(pt.addTo(this,pt),xt.subTo(v,xt)),pt.rShiftTo(1,pt)):xt.isEven()||xt.subTo(v,xt),xt.rShiftTo(1,xt);F.compareTo(H)>=0?(F.subTo(H,F),b&&st.subTo(pt,st),lt.subTo(xt,lt)):(H.subTo(F,H),b&&pt.subTo(st,pt),xt.subTo(lt,xt))}if(H.compareTo(s.ONE)!=0)return s.ZERO;if(xt.compareTo(v)>=0)return xt.subtract(v);if(xt.signum()<0)xt.addTo(v,xt);else return xt;return xt.signum()<0?xt.add(v):xt}var te=[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],vo=(1<<26)/te[te.length-1];function wo(v){var b,F=this.abs();if(F.t==1&&F[0]<=te[te.length-1]){for(b=0;b<te.length;++b)if(F[0]==te[b])return!0;return!1}if(F.isEven())return!1;for(b=1;b<te.length;){for(var H=te[b],st=b+1;st<te.length&&H<vo;)H*=te[st++];for(H=F.modInt(H);b<st;)if(H%te[b++]==0)return!1}return F.millerRabin(v)}function S(v){var b=this.subtract(s.ONE),F=b.getLowestSetBit();if(F<=0)return!1;var H=b.shiftRight(F);v=v+1>>1,v>te.length&&(v=te.length);for(var st=o(),lt=0;lt<v;++lt){st.fromInt(te[Math.floor(Math.random()*te.length)]);var pt=st.modPow(H,this);if(pt.compareTo(s.ONE)!=0&&pt.compareTo(b)!=0){for(var xt=1;xt++<F&&pt.compareTo(b)!=0;)if(pt=pt.modPowInt(2,this),pt.compareTo(s.ONE)==0)return!1;if(pt.compareTo(b)!=0)return!1}}return!0}s.prototype.chunkSize=nt,s.prototype.toRadix=Et,s.prototype.fromRadix=Ot,s.prototype.fromNumber=kt,s.prototype.bitwiseTo=Ie,s.prototype.changeBit=ti,s.prototype.addTo=ae,s.prototype.dMultiply=co,s.prototype.dAddOffset=uo,s.prototype.multiplyLowerTo=po,s.prototype.multiplyUpperTo=xo,s.prototype.modInt=yo,s.prototype.millerRabin=S,s.prototype.clone=m,s.prototype.intValue=B,s.prototype.byteValue=k,s.prototype.shortValue=Z,s.prototype.signum=mt,s.prototype.toByteArray=Pt,s.prototype.equals=Re,s.prototype.min=je,s.prototype.max=Ge,s.prototype.and=an,s.prototype.or=cn,s.prototype.xor=Or,s.prototype.andNot=Yn,s.prototype.not=Ee,s.prototype.shiftLeft=Kn,s.prototype.shiftRight=ln,s.prototype.getLowestSetBit=Jn,s.prototype.bitCount=fn,s.prototype.testBit=Qn,s.prototype.setBit=dn,s.prototype.clearBit=ei,s.prototype.flipBit=pn,s.prototype.add=Se,s.prototype.subtract=Pr,s.prototype.multiply=ri,s.prototype.divide=so,s.prototype.remainder=oo,s.prototype.divideAndRemainder=ao,s.prototype.modPow=xn,s.prototype.modInverse=go,s.prototype.pow=fo,s.prototype.gcd=ni,s.prototype.isProbablePrime=wo,s.prototype.square=io,s.prototype.Barrett=ir;var z,D,L;function W(v){D[L++]^=v&255,D[L++]^=v>>8&255,D[L++]^=v>>16&255,D[L++]^=v>>24&255,L>=jt&&(L-=jt)}function $(){W(new Date().getTime())}if(D==null){D=new Array,L=0;var et;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var ct=new Uint8Array(32);for(window.crypto.getRandomValues(ct),et=0;et<32;++et)D[L++]=ct[et]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ht=window.crypto.random(32);for(et=0;et<ht.length;++et)D[L++]=ht.charCodeAt(et)&255}}for(;L<jt;)et=Math.floor(65536*Math.random()),D[L++]=et>>>8,D[L++]=et&255;L=0,$()}function ft(){if(z==null){for($(),z=Yt(),z.init(D),L=0;L<D.length;++L)D[L]=0;L=0}return z.next()}function dt(v){var b;for(b=0;b<v.length;++b)v[b]=ft()}function gt(){}gt.prototype.nextBytes=dt;function St(){this.i=0,this.j=0,this.S=new Array}function zt(v){var b,F,H;for(b=0;b<256;++b)this.S[b]=b;for(F=0,b=0;b<256;++b)F=F+this.S[b]+v[b%v.length]&255,H=this.S[b],this.S[b]=this.S[F],this.S[F]=H;this.i=0,this.j=0}function Nt(){var v;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,v=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=v,this.S[v+this.S[this.i]&255]}St.prototype.init=zt,St.prototype.next=Nt;function Yt(){return new St}var jt=256;n.exports={default:s,BigInteger:s,SecureRandom:gt}}).call(_t)})(uf);var Ut=uf.exports,eg=Ut.BigInteger.prototype.Barrett;function pe(n,t){this.x=t,this.q=n}function ye(n,t,e,r){this.curve=n,this.x=t,this.y=e,this.z=r==null?Ut.BigInteger.ONE:r,this.zinv=null}function Ze(n,t,e){this.q=n,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(e),this.infinity=new ye(this,null,null),this.reducer=new eg(this.q)}pe.prototype.equals=function(n){return n==this||this.q.equals(n.q)&&this.x.equals(n.x)},pe.prototype.toBigInteger=function(){return this.x},pe.prototype.negate=function(){return new pe(this.q,this.x.negate().mod(this.q))},pe.prototype.add=function(n){return new pe(this.q,this.x.add(n.toBigInteger()).mod(this.q))},pe.prototype.subtract=function(n){return new pe(this.q,this.x.subtract(n.toBigInteger()).mod(this.q))},pe.prototype.multiply=function(n){return new pe(this.q,this.x.multiply(n.toBigInteger()).mod(this.q))},pe.prototype.square=function(){return new pe(this.q,this.x.square().mod(this.q))},pe.prototype.divide=function(n){return new pe(this.q,this.x.multiply(n.toBigInteger().modInverse(this.q)).mod(this.q))},ye.prototype.getX=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var n=this.x.toBigInteger().multiply(this.zinv);return this.curve.reduce(n),this.curve.fromBigInteger(n)},ye.prototype.getY=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var n=this.y.toBigInteger().multiply(this.zinv);return this.curve.reduce(n),this.curve.fromBigInteger(n)},ye.prototype.equals=function(n){return n==this||(this.isInfinity()?n.isInfinity():n.isInfinity()?this.isInfinity():!!n.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(n.z)).mod(this.curve.q).equals(Ut.BigInteger.ZERO)&&n.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(n.z)).mod(this.curve.q).equals(Ut.BigInteger.ZERO))},ye.prototype.isInfinity=function(){return this.x==null&&this.y==null||this.z.equals(Ut.BigInteger.ZERO)&&!this.y.toBigInteger().equals(Ut.BigInteger.ZERO)},ye.prototype.negate=function(){return new ye(this.curve,this.x,this.y.negate(),this.z)},ye.prototype.add=function(n){if(this.isInfinity())return n;if(n.isInfinity())return this;var t=n.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(n.z)).mod(this.curve.q),e=n.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(n.z)).mod(this.curve.q);if(Ut.BigInteger.ZERO.equals(e))return Ut.BigInteger.ZERO.equals(t)?this.twice():this.curve.getInfinity();var r=new Ut.BigInteger("3"),i=this.x.toBigInteger(),s=this.y.toBigInteger(),o=(n.x.toBigInteger(),n.y.toBigInteger(),e.square()),a=o.multiply(e),u=i.multiply(o),c=t.square().multiply(this.z),l=c.subtract(u.shiftLeft(1)).multiply(n.z).subtract(a).multiply(e).mod(this.curve.q),f=u.multiply(r).multiply(t).subtract(s.multiply(a)).subtract(c.multiply(t)).multiply(n.z).add(t.multiply(a)).mod(this.curve.q),h=a.multiply(this.z).multiply(n.z).mod(this.curve.q);return new ye(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(f),h)},ye.prototype.twice=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var n=new Ut.BigInteger("3"),t=this.x.toBigInteger(),e=this.y.toBigInteger(),r=e.multiply(this.z),i=r.multiply(e).mod(this.curve.q),s=this.curve.a.toBigInteger(),o=t.square().multiply(n);Ut.BigInteger.ZERO.equals(s)||(o=o.add(this.z.square().multiply(s)));var a=(o=o.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(r).mod(this.curve.q),u=o.multiply(n).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(o.square().multiply(o)).mod(this.curve.q),c=r.square().multiply(r).shiftLeft(3).mod(this.curve.q);return new ye(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(u),c)},ye.prototype.multiply=function(n){if(this.isInfinity())return this;if(n.signum()==0)return this.curve.getInfinity();var t,e=n,r=e.multiply(new Ut.BigInteger("3")),i=this.negate(),s=this;for(t=r.bitLength()-2;t>0;--t){s=s.twice();var o=r.testBit(t);o!=e.testBit(t)&&(s=s.add(o?this:i))}return s},ye.prototype.multiplyTwo=function(n,t,e){var r;r=n.bitLength()>e.bitLength()?n.bitLength()-1:e.bitLength()-1;for(var i=this.curve.getInfinity(),s=this.add(t);r>=0;)i=i.twice(),n.testBit(r)?i=e.testBit(r)?i.add(s):i.add(this):e.testBit(r)&&(i=i.add(t)),--r;return i},Ze.prototype.getQ=function(){return this.q},Ze.prototype.getA=function(){return this.a},Ze.prototype.getB=function(){return this.b},Ze.prototype.equals=function(n){return n==this||this.q.equals(n.q)&&this.a.equals(n.a)&&this.b.equals(n.b)},Ze.prototype.getInfinity=function(){return this.infinity},Ze.prototype.fromBigInteger=function(n){return new pe(this.q,n)},Ze.prototype.reduce=function(n){this.reducer.reduce(n)},Ze.prototype.decodePointHex=function(n){switch(parseInt(n.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var t=(n.length-2)/2,e=n.substr(2,t),r=n.substr(t+2,t);return new ye(this,this.fromBigInteger(new Ut.BigInteger(e,16)),this.fromBigInteger(new Ut.BigInteger(r,16)));default:return null}},Ze.prototype.encodePointHex=function(n){if(n.isInfinity())return"00";var t=n.getX().toBigInteger().toString(16),e=n.getY().toBigInteger().toString(16),r=this.getQ().toString(16).length;for(r%2!=0&&r++;t.length<r;)t="0"+t;for(;e.length<r;)e="0"+e;return"04"+t+e};var ie=function(n,t){return n<<(t%=32)|n>>>32-t},Je=function(n,t){var e=t-n.length;return(e>0?"0".repeat(e):"")+n},rg=function(n){return n<16?2043430169:2055708042},ng=function(n,t,e,r){return r<16?n^t^e:n&t|n&e|t&e},ig=function(n,t,e,r){return r<16?n^t^e:n&t|~n&e},sg=function(n,t,e){for(var r,i,s,o,a,u=function(w){var E,_=new Array(132);w.forEach(function(R,N){_[N]=R});for(var C=16;C<68;C++)_[C]=(E=_[C-16]^_[C-9]^ie(_[C-3],15))^ie(E,15)^ie(E,23)^ie(_[C-13],7)^_[C-6];for(var T=0;T<64;T++)_[T+68]=_[T]^_[T+4];return _}(t),c=n[0],l=n[1],f=n[2],h=n[3],p=n[4],x=n[5],y=n[6],g=n[7],A=0;A<64;A++)i=(r=ie(ie(c,12)+p+ie(rg(A),A),7))^ie(c,12),s=ng(c,l,f,A)+h+i+u[A+68],o=ig(p,x,y,A)+g+r+u[A],h=f,f=ie(l,9),l=c,c=s,g=y,y=ie(x,19),x=p,p=(a=o)^ie(a,9)^ie(a,17);return[c^n[0],l^n[1],f^n[2],h^n[3],p^n[4],x^n[5],y^n[6],g^n[7]]},w0=function(n,t,e){if(typeof n=="string"?n=Bt.Buffer.from(n,t||"utf8"):n instanceof ArrayBuffer&&(n=Bt.Buffer.from(n)),!Bt.Buffer.isBuffer(n))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(n)+'"');var r,i,s,o,a,u;r=n,i=Bt.Buffer.alloc(1,128),o=Bt.Buffer.alloc(s=(s=r.length%64)>=56?64-s%56-1:56-s-1,0),a=Bt.Buffer.alloc(8),u=8*r.length,a.writeUInt32BE(Math.floor(u/Math.pow(2,32)),0),a.writeUInt32BE(u%Math.pow(2,32),4);for(var c=(n=Bt.Buffer.concat([r,i,o,a],r.length+1+s+8)).length/64,l=new Array(c),f=0;f<c;f++){l[f]=new Array(16);for(var h=0;h<16;h++)l[f][h]=n.readUInt32BE(64*f+4*h)}var p=new Array(c);p[0]=[1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214];for(var x=0;x<c;x++)p[x+1]=sg(p[x],l[x]);var y=Bt.Buffer.alloc(32);return p[c].forEach(function(g,A){return y.writeInt32BE(g,4*A)}),e?y.toString(e):Ci(y)},ku=new Ut.SecureRandom,Y0=function(){var n=new Ze(new Ut.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),new Ut.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),new Ut.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16)),t=n.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:n,G:t,n:new Ut.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}(),Nu=Y0.curve,Lu=Y0.G,Yi=Y0.n;function Uu(n,t){for(var e=[],r=Math.ceil(t/32),i=t%32,s=1;s<=r;s++){var o=Bt.Buffer.allocUnsafe(4);o.writeUInt32BE(s);var a=w0(Bt.Buffer.concat([n,o]));e.push(s===r&&i?Bt.Buffer.from(a).slice(0,i):Bt.Buffer.from(a))}return Bt.Buffer.concat(e,t)}var og={__proto__:null,constants:{C1C2C3:0,C1C3C2:1,PC:"04"},generateKeyPair:function(){var n=new Ut.BigInteger(Yi.bitLength(),ku).mod(Yi.subtract(new Ut.BigInteger("2"))).add(Ut.BigInteger.ONE),t=Je(n.toString(16),64),e=Lu.multiply(n);return{privateKey:t,publicKey:"04"+Je(e.getX().toBigInteger().toString(16),64)+Je(e.getY().toBigInteger().toString(16),64)}},encrypt:function(n,t,e){var r=e||{},i=r.mode,s=i===void 0?1:i,o=r.outputEncoding,a=r.pc;if(typeof n=="string"?n=Bt.Buffer.from(n,r.inputEncoding||"utf8"):n instanceof ArrayBuffer&&(n=Bt.Buffer.from(n)),!Bt.Buffer.isBuffer(n))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(n)+'"');var u=new Ut.BigInteger(Yi.bitLength(),ku).mod(Yi.subtract(Ut.BigInteger.ONE)).add(Ut.BigInteger.ONE),c=Lu.multiply(u),l=Je(c.getX().toBigInteger().toString(16),64)+Je(c.getY().toBigInteger().toString(16),64),f=Nu.decodePointHex(t).multiply(u),h=Je(f.getX().toBigInteger().toString(16),64),p=Je(f.getY().toBigInteger().toString(16),64),x=Uu(Bt.Buffer.from(h+p,"hex"),n.length),y=Je(new Ut.BigInteger(n.toString("hex"),16).xor(new Ut.BigInteger(x.toString("hex"),16)).toString(16),2*n.length),g=w0(h+n.toString("hex")+p,"hex","hex"),A=Bt.Buffer.from((a?"04":"")+(s===0?l+y+g:l+g+y),"hex");return o?A.toString(o):Ci(A)},decrypt:function(n,t,e){var r=e||{},i=r.mode,s=i===void 0?1:i,o=r.outputEncoding,a=r.pc;if(typeof n=="string"?n=Bt.Buffer.from(n,r.inputEncoding):n instanceof ArrayBuffer&&(n=Bt.Buffer.from(n)),!Bt.Buffer.isBuffer(n))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(n)+'"');var u=(n=a?n.slice(1):n).slice(0,32).toString("hex"),c=n.slice(32,64).toString("hex"),l=Nu.decodePointHex("04"+u+c).multiply(new Ut.BigInteger(t,16)),f=Je(l.getX().toBigInteger().toString(16),64),h=Je(l.getY().toBigInteger().toString(16),64),p=n.slice(64,96),x=n.slice(96);s===0&&(p=n.slice(n.length-32),x=n.slice(64,n.length-32));var y=Uu(Bt.Buffer.from(f+h,"hex"),x.length),g=new Ut.BigInteger(x.toString("hex"),16).xor(new Ut.BigInteger(y.toString("hex"),16)).toString(16),A=w0(f+g+h,"hex","hex")===p.toString("hex")?Bt.Buffer.from(g,"hex"):Bt.Buffer.alloc(0);return o?A.toString(o):Ci(A)}},Ki=[[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]],Ji=[2746333894,1453994832,1736282519,2993693404],ag=[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],Zi=/^[0-9a-f]{32}$/i,lf=function(n){return Ki[(4026531840&n)>>>28][(251658240&n)>>>24]<<24|Ki[(15728640&n)>>>20][(983040&n)>>>16]<<16|Ki[(61440&n)>>>12][(3840&n)>>>8]<<8|Ki[(240&n)>>>4][(15&n)>>>0]<<0},hf=function(n){return(t=lf(n))^ie(t,2)^ie(t,10)^ie(t,18)^ie(t,24);var t},ff=function(n){var t,e=new Array(36);e[0]=n[0]^Ji[0],e[1]=n[1]^Ji[1],e[2]=n[2]^Ji[2],e[3]=n[3]^Ji[3];for(var r=new Array(32),i=0;i<32;i++)e[i+4]=e[i]^(t=lf(e[i+1]^e[i+2]^e[i+3]^ag[i]))^ie(t,13)^ie(t,23),r[i]=e[i+4];return r},$u=function(n,t){for(var e=ff(t),r=0;r<32;r++)n[r+4]=n[r]^hf(n[r+1]^n[r+2]^n[r+3]^e[r]);return[n[35],n[34],n[33],n[32]]},Hu=function(n,t){for(var e=ff(t).reverse(),r=0;r<32;r++)n[r+4]=n[r]^hf(n[r+1]^n[r+2]^n[r+3]^e[r]);return[n[35],n[34],n[33],n[32]]},Qi=function(n){return[n.readInt32BE(0),n.readInt32BE(4),n.readInt32BE(8),n.readInt32BE(12)]},ts=function(n){for(var t=Bt.Buffer.alloc(16),e=0;e<4;e++)t.writeInt32BE(n[e],4*e);return t},Vn={__proto__:null,constants:{ECB:1,CBC:2},encrypt:function(n,t,e){var r=e||{},i=r.mode,s=r.iv,o=r.outputEncoding;if(typeof n=="string"?n=Bt.Buffer.from(n,r.inputEncoding||"utf8"):n instanceof ArrayBuffer&&(n=Bt.Buffer.from(n)),!Bt.Buffer.isBuffer(n))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(n)+'"');if(!Zi.test(t))throw new TypeError("Invalid value of cipher `key`");if(t=Bt.Buffer.from(t,"hex"),i===2&&!Zi.test(s))throw new TypeError("Invalid value of `iv` option");return function(a,u,c,l){c&&(c=Qi(c)),u=Qi(u);for(var f=[],h=(a=function(C){var T=16-C.length%16,R=Bt.Buffer.alloc(T,T);return Bt.Buffer.concat([C,R],C.length+T)}(a)).length/16,p=0;p<h;p++)if(c){var x=16*p,y=[c[0]^a.readInt32BE(x),c[1]^a.readInt32BE(x+4),c[2]^a.readInt32BE(x+8),c[3]^a.readInt32BE(x+12)],g=$u(y,u);f.push(ts(g)),c=g.slice(0)}else{var A=16*p,w=[a.readInt32BE(A),a.readInt32BE(A+4),a.readInt32BE(A+8),a.readInt32BE(A+12)],E=$u(w,u);f.push(ts(E))}var _=Bt.Buffer.concat(f,a.length);return l?_.toString(l):Ci(_)}(n,t,s=i===2?Bt.Buffer.from(s,"hex"):null,o)},decrypt:function(n,t,e){var r=e||{},i=r.mode,s=r.iv,o=r.outputEncoding;if(typeof n=="string"?n=Bt.Buffer.from(n,r.inputEncoding):n instanceof ArrayBuffer&&(n=Bt.Buffer.from(n)),!Bt.Buffer.isBuffer(n))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(n)+'"');if(!Zi.test(t))throw new TypeError("Invalid value of cipher `key`");if(t=Bt.Buffer.from(t,"hex"),i===2&&!Zi.test(s))throw new TypeError("Invalid value of `iv` option");return function(a,u,c,l){c&&(c=Qi(c)),u=Qi(u);var f=[],h=a.length/16;if(c)for(var p=h-1;p>=0;p--){var x,y=16*p;x=p>0?[a.readInt32BE(y-16),a.readInt32BE(y-16+4),a.readInt32BE(y-16+8),a.readInt32BE(y-16+12)]:c;var g=[a.readInt32BE(y),a.readInt32BE(y+4),a.readInt32BE(y+8),a.readInt32BE(y+12)],A=Hu(g,u);f.unshift(ts([A[0]^x[0],A[1]^x[1],A[2]^x[2],A[3]^x[3]]))}else for(var w=0;w<h;w++){var E=16*w,_=[a.readInt32BE(E),a.readInt32BE(E+4),a.readInt32BE(E+8),a.readInt32BE(E+12)],C=Hu(_,u);f.push(ts(C))}var T=Bt.Buffer.concat(f,a.length-f[f.length-1][15]);return l?T.toString(l):Ci(T)}(n,t,s=i===2?Bt.Buffer.from(s,"hex"):null,o)}};(function(){if(typeof Object.id=="undefined"){var n=0;Object.id=function(t){return typeof t.__uniqueid=="undefined"&&Object.defineProperty(t,"__uniqueid",{value:++n,enumerable:!1,writable:!1}),t.__uniqueid}}})();function cg(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1];this.encode=function(e){var r,i,s,o,a,u;for(s=e.length,i=0,r="";i<s;){if(o=e.charCodeAt(i++)&255,i==s){r+=n.charAt(o>>2),r+=n.charAt((o&3)<<4),r+="==";break}if(a=e.charCodeAt(i++),i==s){r+=n.charAt(o>>2),r+=n.charAt((o&3)<<4|(a&240)>>4),r+=n.charAt((a&15)<<2),r+="=";break}u=e.charCodeAt(i++),r+=n.charAt(o>>2),r+=n.charAt((o&3)<<4|(a&240)>>4),r+=n.charAt((a&15)<<2|(u&192)>>6),r+=n.charAt(u&63)}return r},this.decode=function(e){var r,i,s,o,a,u,c;for(u=e.length,a=0,c="";a<u;){do r=t[e.charCodeAt(a++)&255];while(a<u&&r==-1);if(r==-1)break;do i=t[e.charCodeAt(a++)&255];while(a<u&&i==-1);if(i==-1)break;c+=String.fromCharCode(r<<2|(i&48)>>4);do{if(s=e.charCodeAt(a++)&255,s==61)return c;s=t[s]}while(a<u&&s==-1);if(s==-1)break;c+=String.fromCharCode((i&15)<<4|(s&60)>>2);do{if(o=e.charCodeAt(a++)&255,o==61)return c;o=t[o]}while(a<u&&o==-1);if(o==-1)break;c+=String.fromCharCode((s&3)<<6|o)}return c},this.utf16to8=function(e){var r,i,s,o;for(r="",s=e.length,i=0;i<s;i++)o=e.charCodeAt(i),o>=1&&o<=127?r+=e.charAt(i):o>2047?(r+=String.fromCharCode(224|o>>12&15),r+=String.fromCharCode(128|o>>6&63),r+=String.fromCharCode(128|o>>0&63)):(r+=String.fromCharCode(192|o>>6&31),r+=String.fromCharCode(128|o>>0&63));return r},this.utf8to16=function(e){var r,i,s,o,a,u;for(r="",s=e.length,i=0;i<s;)switch(o=e.charCodeAt(i++),o>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:r+=e.charAt(i-1);break;case 12:case 13:a=e.charCodeAt(i++),r+=String.fromCharCode((o&31)<<6|a&63);break;case 14:a=e.charCodeAt(i++),u=e.charCodeAt(i++),r+=String.fromCharCode((o&15)<<12|(a&63)<<6|(u&63)<<0);break}return r},this.charToHex=function(e){var r,i,s;for(r="",i=0;i<e.length;)s=e.charCodeAt(i++).toString(16),r+="\\0x"+s,r+=i>0&&i%8==0?`\r
|
|
35
|
-
`:", ";return r}}function ug(){var n=0,t=new Object;this.add=function(e,r){this.containsKey(e)||n++,t[e]=r},this.getValue=function(e){return this.containsKey(e)?t[e]:null},this.remove=function(e){this.containsKey(e)&&delete t[e]&&n--},this.containsKey=function(e){return e in t},this.containsValue=function(e){for(var r in t)if(t[r]==e)return!0;return!1},this.getValues=function(){var e=[];for(var r in t)e.push(t[r]);return e},this.getKeys=function(){var e=[];for(var r in t)e.push(r);return e},this.getSize=function(){return n},this.clear=function(){n=0,t=new Object}}function lg(n){if(this.connect=!1,this.ready_func_=null,this.callbacks_=new ug,this.module_="JS_IActiveXCtrl","WebSocket"in window)this.ws=new WebSocket("ws://127.0.0.1:7321");else throw"WebSocket not supported";this.ws.onerror=function(){throw"Unable to establish connection to WebSocket"},this.loadModule=function(){this.connect=!0;var t=JSON.stringify({MsgId:"LoadModule",Module:this.module_});this.ws.onmessage=this._callback.bind(this),this.ws.send(t)},this.loadModuleCallBack=function(t){if(!t)throw t.Response;this.ready_func_&&this.ready_func_()}.bind(this),this.callbacks_.add("LoadModule",this.loadModuleCallBack),this.exec=function(t,e,r){var i=Object.id(r).toString();this.callbacks_.add(i,r);var s={MsgId:i,Method:t+"|"+n};e&&(s.Param=JSON.stringify(e));var o=JSON.stringify(s);this.connect&&this.ws.send(o)},this.ready=function(t){this.ready_func_=t},this._callback=function(t){var e=JSON.parse(t.data),r=e.MsgId;if(this.callbacks_.containsKey(r)){var i=this.callbacks_.getValue(r);i(e.Result,e.Response),this.callbacks_.remove(r)}},this.ws.onopen=this.loadModule.bind(this),this.Arm_GetDongleInfo=function({Index:t,DongleInfoNum:e},r){this.exec("Arm_GetDongleInfo",[parseInt(t),parseInt(e)],r)},this.Arm_Enum=function(t){this.exec("Arm_Enum",null,t)},this.Arm_Open=function({Index:t},e){this.exec("Arm_Open",[parseInt(t)],e)},this.Arm_Close=function({Handle:t},e){this.exec("Arm_Close",[parseInt(t)],e)},this.Arm_VerifyPIN=function({Handle:t,UserPin:e,UserType:r},i){this.exec("Arm_VerifyPIN",[parseInt(t),r,e],i)},this.Arm_ResetState=function({Handle:t},e){this.exec("Arm_ResetState",[parseInt(t)],e)},this.Arm_GenRandom=function({Handle:t,RandomLen:e},r){this.exec("Arm_GenRandom",[parseInt(t),parseInt(e)],r)},this.Arm_LEDControl=function({Handle:t,LedFlag:e},r){this.exec("Arm_LEDControl",[parseInt(t),e],r)},this.Arm_SwitchProtocol=function({Handle:t,ProtocolFlag:e},r){this.exec("Arm_SwitchProtocol",[parseInt(t),e],r)},this.Arm_CreateFile=function({Handle:t,FileID:e,FileType:r,AttrBuffer:i},s){this.exec("Arm_CreateFile",[parseInt(t),r,parseInt(e),i],s)},this.Arm_WriteFile=function({Handle:t,FileID:e,FileType:r,FileOffset:i,DataInput:s},o){this.exec("Arm_WriteFile",[parseInt(t),r,parseInt(e),parseInt(i),s],o)},this.Arm_ReadFile0001=function({Handle:t},e){this.exec("Arm_ReadFile",[parseInt(t),parseInt("0001"),parseInt(0),parseInt("64")],e)},this.Arm_ReadFile0002=function({Handle:t},e){this.exec("Arm_ReadFile",[parseInt(t),parseInt("0002"),parseInt(0),parseInt("130")],e)},this.Arm_ReadFile0003=function({Handle:t},e){this.exec("Arm_ReadFile",[parseInt(t),parseInt("0003"),parseInt(0),parseInt("130")],e)},this.Arm_ReadFile0004=function({Handle:t},e){this.exec("Arm_ReadFile",[parseInt(t),parseInt("0004"),parseInt(0),parseInt("2048")],e)},this.Arm_ReadFile0005=function({Handle:t},e){this.exec("Arm_ReadFile",[parseInt(t),parseInt("0005"),parseInt(0),parseInt("2048")],e)},this.Arm_DownloadExeFile=function({Handle:t,Count:e,ExeFileInfo:r},i){this.exec("Arm_DownloadExeFile",[parseInt(t),parseInt(e),r],i)},this.Arm_RunExeFile=function({Handle:t,FileID:e,InData:r,DataLen:i},s){this.exec("Arm_RunExeFile",[parseInt(t),parseInt(e),r,r.length,parseInt(i)],s)},this.Arm_ReadRunExeFileData=function(t){this.exec("Arm_ReadRunExeFileData",null,t)},this.Arm_DeleteFile=function({Handle:t,FileID:e,FileType:r},i){this.exec("Arm_DeleteFile",[parseInt(t),r,parseInt(e)],i)},this.Arm_WriteData=function({Handle:t,Offset:e,DataInput:r},i){this.exec("Arm_WriteData",[parseInt(t),parseInt(e),r],i)},this.Arm_ReadData=function({Handle:t,Offset:e,ReadLength:r},i){this.exec("Arm_ReadData",[parseInt(t),parseInt(e),r],i)},this.Arm_WriteShareMemory=function({Handle:t,DataInput:e},r){this.exec("Arm_WriteShareMemory",[parseInt(t),e],r)},this.Arm_ReadShareMemory=function({Handle:t},e){this.exec("Arm_ReadShareMemory",[parseInt(t)],e)},this.Arm_GenUniqueKey=function({Handle:t,Seed:e},r){this.exec("Arm_GenUniqueKey",[parseInt(t),e.length,e],r)},this.Arm_ChangePIN=function({Handle:t,NewPIN:e,OldPIN:r,TryCount:i,PinFlag:s},o){this.exec("Arm_ChangePIN",[parseInt(t),s,r,e,parseInt(i)],o)},this.Arm_ResetUserPIN=function({Handle:t,AdminPIN:e},r){this.exec("Arm_ResetUserPIN",[parseInt(t),e],r)},this.Arm_SetUserID=function({Handle:t,UserID:e},r){this.exec("Arm_SetUserID",[parseInt(t),parseInt(e)],r)},this.Arm_GetDeadline=function({Handle:t},e){this.exec("Arm_GetDeadline",[parseInt(t)],e)},this.Arm_SetDeadline=function({Handle:t,SetDeadTime:e},r){this.exec("Arm_SetDeadline",[parseInt(t),parseInt(e)],r)},this.Arm_GetUTCTime=function({Handle:t},e){this.exec("Arm_GetUTCTime",[parseInt(t)],e)},this.Arm_RFS=function({Handle:t},e){this.exec("Arm_RFS",[parseInt(t)],e)},this.Arm_RsaGenPubPriKey=function({Handle:t,RsaFileId:e},r){this.exec("Arm_RsaGenPubPriKey",[parseInt(t),parseInt(e)],r)},this.Arm_EccGenPubPriKey=function({Handle:t,EccFileId:e},r){this.exec("Arm_EccGenPubPriKey",[parseInt(t),parseInt(e)],r)},this.Arm_Sm2GenPubPriKey=function({Handle:t,Sm2FileId:e},r){this.exec("Arm_Sm2GenPubPriKey",[parseInt(t),parseInt(e)],r)},this.Arm_ReadRsaPri=function(t){this.exec("Arm_ReadRsaPri",null,t)},this.Arm_ReadRsaPub=function(t){this.exec("Arm_ReadRsaPub",null,t)},this.Arm_ReadEccPri=function(t){this.exec("Arm_ReadEccPri",null,t)},this.Arm_ReadEccPub=function(t){this.exec("Arm_ReadEccPub",null,t)},this.Arm_ReadSm2Pri=function(t){this.exec("Arm_ReadSm2Pri",null,t)},this.Arm_ReadSm2Pub=function(t){this.exec("Arm_ReadSm2Pub",null,t)},this.Arm_RsaPri=function({Handle:t,RsaPri_Flag:e,RsaPriInData:r,RsaPriFileID:i,RsaPriFileSize:s},o){this.exec("Arm_RsaPri",[parseInt(t),parseInt(i),parseInt(s),e,r],o)},this.Arm_RsaPub=function({Handle:t,RsaPubKey:e,RsaPub_Flag:r,RsaPubInData:i,RsaPubFileSize:s},o){this.exec("Arm_RsaPub",[parseInt(t),parseInt(s),r,e,e.length,i],o)},this.Arm_EccSign=function({Handle:t,HashData:e,EccFileId:r},i){this.exec("Arm_EccSign",[parseInt(t),parseInt(r),e],i)},this.Arm_EccVerify=function({Handle:t,HashData:e,EccPubKey:r,EccSignData:i},s){this.exec("Arm_EccVerify",[parseInt(t),r,r.length,e,i],s)},this.Arm_Sm2Sign=function({Handle:t,HashData:e,Sm2FileId:r},i){this.exec("Arm_Sm2Sign",[parseInt(t),parseInt(r),e],i)},this.Arm_Sm2Verify=function({Handle:t,HashData:e,Sm2PubKey:r,Sm2SignData:i},s){this.exec("Arm_Sm2Verify",[parseInt(t),r,r.length,e,i],s)},this.Arm_TDES=function({Handle:t,Tdes_Flag:e,TdesFileID:r,TdesInData:i},s){this.exec("Arm_TDES",[parseInt(t),parseInt(r),e,i],s)},this.Arm_SM4=function({Handle:t,Sm4_Flag:e,Sm4FileID:r,Sm4InData:i},s){this.exec("Arm_SM4",[parseInt(t),parseInt(r),e,i],s)},this.Arm_HASH=function({Handle:t,Hash_Flag:e,HashInData:r},i){this.exec("Arm_HASH",[parseInt(t),e,r],i)},this.Arm_Seed=function({Handle:t,SeedData:e,SeedLength:r},i){this.exec("Arm_Seed",[parseInt(t),r,e],i)},this.Arm_LimitSeedCount=function({Handle:t,SeedCount:e},r){this.exec("Arm_LimitSeedCount",[parseInt(t),parseInt(e)],r)},this.Arm_GenMotherKey=function({Handle:t,SeedLen:e,SeedForPID:r,SonCount:i,StartUserID:s,AdminTryCount:o,UserPin:a,UserTryCount:u,UpdateRSAPriKey:c},l){this.exec("Arm_GenMotherKey",[parseInt(t),parseInt(e),r,a,parseInt(u),parseInt(o),c,parseInt(s),parseInt(i)],l)},this.Arm_RequestInit=function({Handle:t},e){this.exec("Arm_RequestInit",[parseInt(t)],e)},this.Arm_GetInitDataFromMother=function({Handle:t},e){this.exec("Arm_GetInitDataFromMother",[parseInt(t),Request],e)},this.Arm_InitSon=function({Handle:t,InitData:e},r){this.exec("Arm_InitSon",[parseInt(t),e],r)},this.Arm_SetUpdatePriKey=function({Handle:t,UpdatePriKey:e},r){this.exec("Arm_SetUpdatePriKey",[parseInt(t),e],r)},this.Arm_MakeUpdatePacket=function({Handle:t,HID:e,Func:r,FileID:i,FileType:s,Offset:o,DataLen:a,DataBuffer:u,UpRSAPubKey:c},l){this.exec("Arm_MakeUpdatePacket",[parseInt(t),e,r,s,parseInt(i),parseInt(o),u,c,parseInt(a)],l)},this.Arm_MakeUpdatePacketFromMother=function({Handle:t,HID:e,Func:r,FileID:i,FileType:s,Offset:o,DataLen:a,DataBuffer:u},c){this.exec("Arm_MakeUpdatePacketFromMother",[parseInt(t),e,r,s,parseInt(i),parseInt(o),u,parseInt(a)],c)},this.Arm_Update=function({Handle:t,UpdateData:e},r){this.exec("Arm_Update",[parseInt(t),e],r)},this.Arm_Set_DATA_FILE_ATTR=function({Size:t,ReadPriv:e,WritePriv:r},i){this.exec("Arm_Set_DATA_FILE_ATTR",[parseInt(t),parseInt(e),parseInt(r)],i)},this.Arm_Set_PRIKEY_FILE_ATTR=function({Count:t,Size:e,Type:r,Priv:i,IsReset:s,IsDecOnRAM:o},a){this.exec("Arm_Set_PRIKEY_FILE_ATTR",[r,parseInt(e),parseInt(t),parseInt(i),parseInt(o),parseInt(s)],a)},this.Arm_Set_KEY_FILE_ATTR=function({Size:t,PrivEnc:e},r){this.exec("Arm_Set_KEY_FILE_ATTR",[parseInt(t),parseInt(e)],r)},this.Arm_Set_EXE_FILE_ATTR=function({FileLen:t,PrivExe:e},r){this.exec("Arm_Set_EXE_FILE_ATTR",[parseInt(t),parseInt(e)],r)},this.Arm_Set_DATA_LIC=function({ReadPriv:t,WritePriv:e},r){this.exec("Arm_Set_DATA_LIC",[parseInt(t),parseInt(e)],r)},this.Arm_Set_PRIKEY_LIC=function({Count:t,Priv:e,IsReset:r,IsDecOnRAM:i},s){this.exec("Arm_Set_PRIKEY_LIC",[parseInt(t),parseInt(e),parseInt(i),parseInt(r)],s)},this.Arm_Set_KEY_LIC=function({PrivEnc:t},e){this.exec("Arm_Set_KEY_LIC",[parseInt(t)],e)},this.Arm_Set_EXE_LIC=function({PrivExe:t},e){this.exec("Arm_Set_EXE_LIC",[parseInt(t)],e)},this.Arm_Set_EXE_FILE_INFO=function({FileID:t,FileData:e,FileSize:r,InBuffer:i,CallLimit:s},o){this.exec("Arm_Set_EXE_FILE_INFO",[i,parseInt(r),parseInt(t),parseInt(s),e,e.length],o)},this.Arm_Clear_EXE_FILE_INFO=function({InBuffer:t},e){this.exec("Arm_Clear_EXE_FILE_INFO",[t],e)}}const hg={HID:0},es={PRODUCT_ID:0,USER_ID:1,HARDWARE_ID:2},qu={USER:0};class df{constructor(){Nr(this,"Base64",new cg);Nr(this,"AtlCtrl",null);Nr(this,"ArmCount",0);Nr(this,"ArmIndex",0);Nr(this,"ArmHandle",0);Nr(this,"ArmRandom","");try{this.AtlCtrl=new lg("{39E9B272-82A7-4177-A19D-6723C1BDB0CC}")}catch(t){console.error(t),this.AtlCtrl=null}}armEnum(){if(this.AtlCtrl)return new Promise((t,e)=>{this.AtlCtrl.Arm_Enum((r,i)=>{r?(this.ArmCount=+i,t(i)):e(i)})})}armOpen(t=0){if(this.AtlCtrl)return this.ArmIndex=t,new Promise((e,r)=>{this.AtlCtrl.Arm_Open({Index:t},(i,s)=>{i?(this.ArmHandle=+s,e(s)):(this.ArmHandle=s,r(s))})})}armClose(t=this.ArmHandle){if(this.AtlCtrl)return new Promise((e,r)=>{this.AtlCtrl.Arm_Close({Handle:t},(i,s)=>{i?e(s):r(s)})})}armChangePIN(t,e,r=255,i=qu.USER,s=this.ArmHandle){if(this.AtlCtrl)return new Promise((o,a)=>{this.AtlCtrl.Arm_ChangePIN({Handle:s,NewPIN:t,OldPIN:e,TryCount:r,PinFlag:i},(u,c)=>{u&&c==0?(this.ArmPin=t,o(c)):a(c)})})}armGenRandom(t=16,e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,i)=>{this.AtlCtrl.Arm_GenRandom({Handle:e,RandomLen:t},(s,o)=>{s?(this.ArmRandom=o,r(o)):i(o)})})}armGetDeadline(t=this.ArmHandle){if(this.AtlCtrl)return new Promise((e,r)=>{this.AtlCtrl.Arm_GetDeadline({Handle:t},(i,s)=>{i?(this.ArmDeadline=s,e(s)):r(s)})})}armGenUniqueKey(t="MTIzNDU2Nzg5MA==",e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,i)=>{this.AtlCtrl.Arm_GenUniqueKey({Handle:e,Seed:t},(s,o)=>{s?(this.ArmUKey=o,r(o)):i(o)})})}armGetDongleInfo(t=0,e=es.HARDWARE_ID){if(this.AtlCtrl)return this.ArmIndex=t,new Promise((r,i)=>{this.AtlCtrl.Arm_GetDongleInfo({Index:t,DongleInfoNum:e},(s,o)=>{if(s){switch(e){case es.USER_ID:this.ArmUid=o;break;case es.PRODUCT_ID:this.ArmPid=o;break;case es.HARDWARE_ID:this.ArmHid=o;break}r(o)}else i(o)})})}armLEDControl(t,e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,i)=>{this.AtlCtrl.Arm_LEDControl({Handle:e,LedFlag:t},(s,o)=>{s&&o==0?r(o):i(o)})})}armRFS(t=this.ArmHandle){if(this.AtlCtrl)return new Promise((e,r)=>{this.AtlCtrl.Arm_RFS({Handle:t},(i,s)=>{i&&s==0?e(s):r(s)})})}armReadFile(t="0001",e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,i)=>{this.AtlCtrl[`Arm_ReadFile${t}`]({Handle:e},(s,o)=>{if(s&&o.length>0)try{o=this.Base64.decode(o),r(o)}catch(a){console.error(a),r(o)}else i(o)})})}armResetState(t=this.ArmHandle){if(this.AtlCtrl)return new Promise((e,r)=>{this.AtlCtrl.Arm_ResetState({Handle:t},(i,s)=>{i&&s==0?e(s):r(s)})})}armResetUserPIN(t,e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,i)=>{this.AtlCtrl.Arm_ResetUserPIN({Handle:e,AdminPIN:t},(s,o)=>{s&&o==0?r(o):i(o)})})}armSetUserID(t,e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,i)=>{this.AtlCtrl.Arm_SetUserID({Handle:e,UserID:t},(s,o)=>{s&&o==0?r(o):i(o)})})}armSetDeadline(t,e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,i)=>{this.AtlCtrl.Arm_SetDeadline({Handle:e,SetDeadTime:t},(s,o)=>{s&&o==0?r(o):i(o)})})}armSwitchProtocol(t=hg.HID,e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,i)=>{this.AtlCtrl.Arm_SwitchProtocol({Handle:e,ProtocolFlag:t},(s,o)=>{s&&o==0?r(o):i(o)})})}armVerifyPIN(t,e=qu.USER,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,s)=>{this.AtlCtrl.Arm_VerifyPIN({Handle:r,UserPin:t,UserType:e},(o,a)=>{o&&a==0?(this.ArmPin=t,i(a)):s(a)})})}armReadData(t=0,e=128,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,s)=>{this.AtlCtrl.Arm_ReadData({Handle:r,Offset:t,ReadLength:e},(o,a)=>{o?(this.ArmData=a,i(a)):s(a)})})}armWriteData(t,e=0,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,s)=>{this.AtlCtrl.Arm_WriteData({Handle:r,Offset:e,DataInput:t},(o,a)=>{o&&a==0?i(a):s(a)})})}armReadShareMemory(t=this.ArmHandle){if(this.AtlCtrl)return new Promise((e,r)=>{this.AtlCtrl.Arm_ReadShareMemory({Handle:t},(i,s)=>{i?(this.ArmData=s,e(s)):r(s)})})}armWriteShareMemory(t,e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,i)=>{this.AtlCtrl.Arm_WriteShareMemory({Handle:e,DataInput:t},(s,o)=>{s&&o==0?r(o):i(o)})})}}const pf=Symbol(),Ds="el",fg="is-",Ur=(n,t,e,r,i)=>{let s=`${n}-${t}`;return e&&(s+=`-${e}`),r&&(s+=`__${r}`),i&&(s+=`--${i}`),s},xf=Symbol("namespaceContextKey"),dg=n=>{const t=n||(P.getCurrentInstance()?P.inject(xf,P.ref(Ds)):P.ref(Ds));return P.computed(()=>P.unref(t)||Ds)},K0=(n,t)=>{const e=dg(t);return{namespace:e,b:(y="")=>Ur(e.value,n,y,"",""),e:y=>y?Ur(e.value,n,"",y,""):"",m:y=>y?Ur(e.value,n,"","",y):"",be:(y,g)=>y&&g?Ur(e.value,n,y,g,""):"",em:(y,g)=>y&&g?Ur(e.value,n,"",y,g):"",bm:(y,g)=>y&&g?Ur(e.value,n,y,"",g):"",bem:(y,g,A)=>y&&g&&A?Ur(e.value,n,y,g,A):"",is:(y,...g)=>{const A=g.length>=1?g[0]:!0;return y&&A?`${fg}${y}`:""},cssVar:y=>{const g={};for(const A in y)y[A]&&(g[`--${e.value}-${A}`]=y[A]);return g},cssVarName:y=>`--${e.value}-${y}`,cssVarBlock:y=>{const g={};for(const A in y)y[A]&&(g[`--${e.value}-${n}-${A}`]=y[A]);return g},cssVarBlockName:y=>`--${e.value}-${n}-${y}`}};/**
|
|
34
|
+
*/(function(t){var e=Ai,r=N0,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=A,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),c={foo:function(){return 42}};return Object.setPrototypeOf(c,Uint8Array.prototype),Object.setPrototypeOf(F,c),F.foo()===42}catch(f){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 c=new Uint8Array(F);return Object.setPrototypeOf(c,a.prototype),c}function a(F,c,f){if(typeof F=="number"){if(typeof c=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(F)}return h(F,c,f)}a.poolSize=8192;function h(F,c,f){if(typeof F=="string")return d(F,c);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(De(F,ArrayBuffer)||F&&De(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(De(F,SharedArrayBuffer)||F&&De(F.buffer,SharedArrayBuffer)))return g(F,c,f);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var b=F.valueOf&&F.valueOf();if(b!=null&&b!==F)return a.from(b,c,f);var N=E(F);if(N)return N;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return a.from(F[Symbol.toPrimitive]("string"),c,f);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,c,f){return h(F,c,f)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function u(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 l(F,c,f){return u(F),F<=0?s(F):c!==void 0?typeof f=="string"?s(F).fill(c,f):s(F).fill(c):s(F)}a.alloc=function(F,c,f){return l(F,c,f)};function x(F){return u(F),s(F<0?0:R(F)|0)}a.allocUnsafe=function(F){return x(F)},a.allocUnsafeSlow=function(F){return x(F)};function d(F,c){if((typeof c!="string"||c==="")&&(c="utf8"),!a.isEncoding(c))throw new TypeError("Unknown encoding: "+c);var f=w(F,c)|0,b=s(f),N=b.write(F,c);return N!==f&&(b=b.slice(0,N)),b}function v(F){for(var c=F.length<0?0:R(F.length)|0,f=s(c),b=0;b<c;b+=1)f[b]=F[b]&255;return f}function m(F){if(De(F,Uint8Array)){var c=new Uint8Array(F);return g(c.buffer,c.byteOffset,c.byteLength)}return v(F)}function g(F,c,f){if(c<0||F.byteLength<c)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<c+(f||0))throw new RangeError('"length" is outside of buffer bounds');var b;return c===void 0&&f===void 0?b=new Uint8Array(F):f===void 0?b=new Uint8Array(F,c):b=new Uint8Array(F,c,f),Object.setPrototypeOf(b,a.prototype),b}function E(F){if(a.isBuffer(F)){var c=R(F.length)|0,f=s(c);return f.length===0||F.copy(f,0,0,c),f}if(F.length!==void 0)return typeof F.length!="number"||ze(F.length)?s(0):v(F);if(F.type==="Buffer"&&Array.isArray(F.data))return v(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 A(F){return+F!=F&&(F=0),a.alloc(+F)}a.isBuffer=function(c){return c!=null&&c._isBuffer===!0&&c!==a.prototype},a.compare=function(c,f){if(De(c,Uint8Array)&&(c=a.from(c,c.offset,c.byteLength)),De(f,Uint8Array)&&(f=a.from(f,f.offset,f.byteLength)),!a.isBuffer(c)||!a.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(c===f)return 0;for(var b=c.length,N=f.length,X=0,re=Math.min(b,N);X<re;++X)if(c[X]!==f[X]){b=c[X],N=f[X];break}return b<N?-1:N<b?1:0},a.isEncoding=function(c){switch(String(c).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(c,f){if(!Array.isArray(c))throw new TypeError('"list" argument must be an Array of Buffers');if(c.length===0)return a.alloc(0);var b;if(f===void 0)for(f=0,b=0;b<c.length;++b)f+=c[b].length;var N=a.allocUnsafe(f),X=0;for(b=0;b<c.length;++b){var re=c[b];if(De(re,Uint8Array))X+re.length>N.length?a.from(re).copy(N,X):Uint8Array.prototype.set.call(N,re,X);else if(a.isBuffer(re))re.copy(N,X);else throw new TypeError('"list" argument must be an Array of Buffers');X+=re.length}return N};function w(F,c){if(a.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||De(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 f=F.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&f===0)return 0;for(var N=!1;;)switch(c){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return ve(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return He(F).length;default:if(N)return b?-1:ve(F).length;c=(""+c).toLowerCase(),N=!0}}a.byteLength=w;function C(F,c,f){var b=!1;if((c===void 0||c<0)&&(c=0),c>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,c>>>=0,f<=c))return"";for(F||(F="utf8");;)switch(F){case"hex":return he(this,c,f);case"utf8":case"utf-8":return J(this,c,f);case"ascii":return oe(this,c,f);case"latin1":case"binary":return ie(this,c,f);case"base64":return Y(this,c,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,c,f);default:if(b)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),b=!0}}a.prototype._isBuffer=!0;function D(F,c,f){var b=F[c];F[c]=F[f],F[f]=b}a.prototype.swap16=function(){var c=this.length;if(c%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var f=0;f<c;f+=2)D(this,f,f+1);return this},a.prototype.swap32=function(){var c=this.length;if(c%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var f=0;f<c;f+=4)D(this,f,f+3),D(this,f+1,f+2);return this},a.prototype.swap64=function(){var c=this.length;if(c%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var f=0;f<c;f+=8)D(this,f,f+7),D(this,f+1,f+6),D(this,f+2,f+5),D(this,f+3,f+4);return this},a.prototype.toString=function(){var c=this.length;return c===0?"":arguments.length===0?J(this,0,c):C.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(c){if(!a.isBuffer(c))throw new TypeError("Argument must be a Buffer");return this===c?!0:a.compare(this,c)===0},a.prototype.inspect=function(){var c="",f=t.INSPECT_MAX_BYTES;return c=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(c+=" ... "),"<Buffer "+c+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(c,f,b,N,X){if(De(c,Uint8Array)&&(c=a.from(c,c.offset,c.byteLength)),!a.isBuffer(c))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof c);if(f===void 0&&(f=0),b===void 0&&(b=c?c.length:0),N===void 0&&(N=0),X===void 0&&(X=this.length),f<0||b>c.length||N<0||X>this.length)throw new RangeError("out of range index");if(N>=X&&f>=b)return 0;if(N>=X)return-1;if(f>=b)return 1;if(f>>>=0,b>>>=0,N>>>=0,X>>>=0,this===c)return 0;for(var re=X-N,xe=b-f,Ee=Math.min(re,xe),Te=this.slice(N,X),Ne=c.slice(f,b),Oe=0;Oe<Ee;++Oe)if(Te[Oe]!==Ne[Oe]){re=Te[Oe],xe=Ne[Oe];break}return re<xe?-1:xe<re?1:0};function I(F,c,f,b,N){if(F.length===0)return-1;if(typeof f=="string"?(b=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,ze(f)&&(f=N?0:F.length-1),f<0&&(f=F.length+f),f>=F.length){if(N)return-1;f=F.length-1}else if(f<0)if(N)f=0;else return-1;if(typeof c=="string"&&(c=a.from(c,b)),a.isBuffer(c))return c.length===0?-1:L(F,c,f,b,N);if(typeof c=="number")return c=c&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(F,c,f):Uint8Array.prototype.lastIndexOf.call(F,c,f):L(F,[c],f,b,N);throw new TypeError("val must be string, number or Buffer")}function L(F,c,f,b,N){var X=1,re=F.length,xe=c.length;if(b!==void 0&&(b=String(b).toLowerCase(),b==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(F.length<2||c.length<2)return-1;X=2,re/=2,xe/=2,f/=2}function Ee(Bt,Dt){return X===1?Bt[Dt]:Bt.readUInt16BE(Dt*X)}var Te;if(N){var Ne=-1;for(Te=f;Te<re;Te++)if(Ee(F,Te)===Ee(c,Ne===-1?0:Te-Ne)){if(Ne===-1&&(Ne=Te),Te-Ne+1===xe)return Ne*X}else Ne!==-1&&(Te-=Te-Ne),Ne=-1}else for(f+xe>re&&(f=re-xe),Te=f;Te>=0;Te--){for(var Oe=!0,gt=0;gt<xe;gt++)if(Ee(F,Te+gt)!==Ee(c,gt)){Oe=!1;break}if(Oe)return Te}return-1}a.prototype.includes=function(c,f,b){return this.indexOf(c,f,b)!==-1},a.prototype.indexOf=function(c,f,b){return I(this,c,f,b,!0)},a.prototype.lastIndexOf=function(c,f,b){return I(this,c,f,b,!1)};function q(F,c,f,b){f=Number(f)||0;var N=F.length-f;b?(b=Number(b),b>N&&(b=N)):b=N;var X=c.length;b>X/2&&(b=X/2);for(var re=0;re<b;++re){var xe=parseInt(c.substr(re*2,2),16);if(ze(xe))return re;F[f+re]=xe}return re}function Z(F,c,f,b){return Me(ve(c,F.length-f),F,f,b)}function O(F,c,f,b){return Me(Ae(c),F,f,b)}function k(F,c,f,b){return Me(He(c),F,f,b)}function W(F,c,f,b){return Me(Fe(c,F.length-f),F,f,b)}a.prototype.write=function(c,f,b,N){if(f===void 0)N="utf8",b=this.length,f=0;else if(b===void 0&&typeof f=="string")N=f,b=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(b)?(b=b>>>0,N===void 0&&(N="utf8")):(N=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var X=this.length-f;if((b===void 0||b>X)&&(b=X),c.length>0&&(b<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");for(var re=!1;;)switch(N){case"hex":return q(this,c,f,b);case"utf8":case"utf-8":return Z(this,c,f,b);case"ascii":case"latin1":case"binary":return O(this,c,f,b);case"base64":return k(this,c,f,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,c,f,b);default:if(re)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),re=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(F,c,f){return c===0&&f===F.length?e.fromByteArray(F):e.fromByteArray(F.slice(c,f))}function J(F,c,f){f=Math.min(F.length,f);for(var b=[],N=c;N<f;){var X=F[N],re=null,xe=X>239?4:X>223?3:X>191?2:1;if(N+xe<=f){var Ee,Te,Ne,Oe;switch(xe){case 1:X<128&&(re=X);break;case 2:Ee=F[N+1],(Ee&192)===128&&(Oe=(X&31)<<6|Ee&63,Oe>127&&(re=Oe));break;case 3:Ee=F[N+1],Te=F[N+2],(Ee&192)===128&&(Te&192)===128&&(Oe=(X&15)<<12|(Ee&63)<<6|Te&63,Oe>2047&&(Oe<55296||Oe>57343)&&(re=Oe));break;case 4:Ee=F[N+1],Te=F[N+2],Ne=F[N+3],(Ee&192)===128&&(Te&192)===128&&(Ne&192)===128&&(Oe=(X&15)<<18|(Ee&63)<<12|(Te&63)<<6|Ne&63,Oe>65535&&Oe<1114112&&(re=Oe))}}re===null?(re=65533,xe=1):re>65535&&(re-=65536,b.push(re>>>10&1023|55296),re=56320|re&1023),b.push(re),N+=xe}return Q(b)}var j=4096;function Q(F){var c=F.length;if(c<=j)return String.fromCharCode.apply(String,F);for(var f="",b=0;b<c;)f+=String.fromCharCode.apply(String,F.slice(b,b+=j));return f}function oe(F,c,f){var b="";f=Math.min(F.length,f);for(var N=c;N<f;++N)b+=String.fromCharCode(F[N]&127);return b}function ie(F,c,f){var b="";f=Math.min(F.length,f);for(var N=c;N<f;++N)b+=String.fromCharCode(F[N]);return b}function he(F,c,f){var b=F.length;(!c||c<0)&&(c=0),(!f||f<0||f>b)&&(f=b);for(var N="",X=c;X<f;++X)N+=qe[F[X]];return N}function ue(F,c,f){for(var b=F.slice(c,f),N="",X=0;X<b.length-1;X+=2)N+=String.fromCharCode(b[X]+b[X+1]*256);return N}a.prototype.slice=function(c,f){var b=this.length;c=~~c,f=f===void 0?b:~~f,c<0?(c+=b,c<0&&(c=0)):c>b&&(c=b),f<0?(f+=b,f<0&&(f=0)):f>b&&(f=b),f<c&&(f=c);var N=this.subarray(c,f);return Object.setPrototypeOf(N,a.prototype),N};function H(F,c,f){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+c>f)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(c,f,b){c=c>>>0,f=f>>>0,b||H(c,f,this.length);for(var N=this[c],X=1,re=0;++re<f&&(X*=256);)N+=this[c+re]*X;return N},a.prototype.readUintBE=a.prototype.readUIntBE=function(c,f,b){c=c>>>0,f=f>>>0,b||H(c,f,this.length);for(var N=this[c+--f],X=1;f>0&&(X*=256);)N+=this[c+--f]*X;return N},a.prototype.readUint8=a.prototype.readUInt8=function(c,f){return c=c>>>0,f||H(c,1,this.length),this[c]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(c,f){return c=c>>>0,f||H(c,2,this.length),this[c]|this[c+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(c,f){return c=c>>>0,f||H(c,2,this.length),this[c]<<8|this[c+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(c,f){return c=c>>>0,f||H(c,4,this.length),(this[c]|this[c+1]<<8|this[c+2]<<16)+this[c+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(c,f){return c=c>>>0,f||H(c,4,this.length),this[c]*16777216+(this[c+1]<<16|this[c+2]<<8|this[c+3])},a.prototype.readIntLE=function(c,f,b){c=c>>>0,f=f>>>0,b||H(c,f,this.length);for(var N=this[c],X=1,re=0;++re<f&&(X*=256);)N+=this[c+re]*X;return X*=128,N>=X&&(N-=Math.pow(2,8*f)),N},a.prototype.readIntBE=function(c,f,b){c=c>>>0,f=f>>>0,b||H(c,f,this.length);for(var N=f,X=1,re=this[c+--N];N>0&&(X*=256);)re+=this[c+--N]*X;return X*=128,re>=X&&(re-=Math.pow(2,8*f)),re},a.prototype.readInt8=function(c,f){return c=c>>>0,f||H(c,1,this.length),this[c]&128?(255-this[c]+1)*-1:this[c]},a.prototype.readInt16LE=function(c,f){c=c>>>0,f||H(c,2,this.length);var b=this[c]|this[c+1]<<8;return b&32768?b|4294901760:b},a.prototype.readInt16BE=function(c,f){c=c>>>0,f||H(c,2,this.length);var b=this[c+1]|this[c]<<8;return b&32768?b|4294901760:b},a.prototype.readInt32LE=function(c,f){return c=c>>>0,f||H(c,4,this.length),this[c]|this[c+1]<<8|this[c+2]<<16|this[c+3]<<24},a.prototype.readInt32BE=function(c,f){return c=c>>>0,f||H(c,4,this.length),this[c]<<24|this[c+1]<<16|this[c+2]<<8|this[c+3]},a.prototype.readFloatLE=function(c,f){return c=c>>>0,f||H(c,4,this.length),r.read(this,c,!0,23,4)},a.prototype.readFloatBE=function(c,f){return c=c>>>0,f||H(c,4,this.length),r.read(this,c,!1,23,4)},a.prototype.readDoubleLE=function(c,f){return c=c>>>0,f||H(c,8,this.length),r.read(this,c,!0,52,8)},a.prototype.readDoubleBE=function(c,f){return c=c>>>0,f||H(c,8,this.length),r.read(this,c,!1,52,8)};function G(F,c,f,b,N,X){if(!a.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>N||c<X)throw new RangeError('"value" argument is out of bounds');if(f+b>F.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(c,f,b,N){if(c=+c,f=f>>>0,b=b>>>0,!N){var X=Math.pow(2,8*b)-1;G(this,c,f,b,X,0)}var re=1,xe=0;for(this[f]=c&255;++xe<b&&(re*=256);)this[f+xe]=c/re&255;return f+b},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(c,f,b,N){if(c=+c,f=f>>>0,b=b>>>0,!N){var X=Math.pow(2,8*b)-1;G(this,c,f,b,X,0)}var re=b-1,xe=1;for(this[f+re]=c&255;--re>=0&&(xe*=256);)this[f+re]=c/xe&255;return f+b},a.prototype.writeUint8=a.prototype.writeUInt8=function(c,f,b){return c=+c,f=f>>>0,b||G(this,c,f,1,255,0),this[f]=c&255,f+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(c,f,b){return c=+c,f=f>>>0,b||G(this,c,f,2,65535,0),this[f]=c&255,this[f+1]=c>>>8,f+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(c,f,b){return c=+c,f=f>>>0,b||G(this,c,f,2,65535,0),this[f]=c>>>8,this[f+1]=c&255,f+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(c,f,b){return c=+c,f=f>>>0,b||G(this,c,f,4,4294967295,0),this[f+3]=c>>>24,this[f+2]=c>>>16,this[f+1]=c>>>8,this[f]=c&255,f+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(c,f,b){return c=+c,f=f>>>0,b||G(this,c,f,4,4294967295,0),this[f]=c>>>24,this[f+1]=c>>>16,this[f+2]=c>>>8,this[f+3]=c&255,f+4},a.prototype.writeIntLE=function(c,f,b,N){if(c=+c,f=f>>>0,!N){var X=Math.pow(2,8*b-1);G(this,c,f,b,X-1,-X)}var re=0,xe=1,Ee=0;for(this[f]=c&255;++re<b&&(xe*=256);)c<0&&Ee===0&&this[f+re-1]!==0&&(Ee=1),this[f+re]=(c/xe>>0)-Ee&255;return f+b},a.prototype.writeIntBE=function(c,f,b,N){if(c=+c,f=f>>>0,!N){var X=Math.pow(2,8*b-1);G(this,c,f,b,X-1,-X)}var re=b-1,xe=1,Ee=0;for(this[f+re]=c&255;--re>=0&&(xe*=256);)c<0&&Ee===0&&this[f+re+1]!==0&&(Ee=1),this[f+re]=(c/xe>>0)-Ee&255;return f+b},a.prototype.writeInt8=function(c,f,b){return c=+c,f=f>>>0,b||G(this,c,f,1,127,-128),c<0&&(c=255+c+1),this[f]=c&255,f+1},a.prototype.writeInt16LE=function(c,f,b){return c=+c,f=f>>>0,b||G(this,c,f,2,32767,-32768),this[f]=c&255,this[f+1]=c>>>8,f+2},a.prototype.writeInt16BE=function(c,f,b){return c=+c,f=f>>>0,b||G(this,c,f,2,32767,-32768),this[f]=c>>>8,this[f+1]=c&255,f+2},a.prototype.writeInt32LE=function(c,f,b){return c=+c,f=f>>>0,b||G(this,c,f,4,2147483647,-2147483648),this[f]=c&255,this[f+1]=c>>>8,this[f+2]=c>>>16,this[f+3]=c>>>24,f+4},a.prototype.writeInt32BE=function(c,f,b){return c=+c,f=f>>>0,b||G(this,c,f,4,2147483647,-2147483648),c<0&&(c=4294967295+c+1),this[f]=c>>>24,this[f+1]=c>>>16,this[f+2]=c>>>8,this[f+3]=c&255,f+4};function te(F,c,f,b,N,X){if(f+b>F.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function K(F,c,f,b,N){return c=+c,f=f>>>0,N||te(F,c,f,4),r.write(F,c,f,b,23,4),f+4}a.prototype.writeFloatLE=function(c,f,b){return K(this,c,f,!0,b)},a.prototype.writeFloatBE=function(c,f,b){return K(this,c,f,!1,b)};function ge(F,c,f,b,N){return c=+c,f=f>>>0,N||te(F,c,f,8),r.write(F,c,f,b,52,8),f+8}a.prototype.writeDoubleLE=function(c,f,b){return ge(this,c,f,!0,b)},a.prototype.writeDoubleBE=function(c,f,b){return ge(this,c,f,!1,b)},a.prototype.copy=function(c,f,b,N){if(!a.isBuffer(c))throw new TypeError("argument should be a Buffer");if(b||(b=0),!N&&N!==0&&(N=this.length),f>=c.length&&(f=c.length),f||(f=0),N>0&&N<b&&(N=b),N===b||c.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),c.length-f<N-b&&(N=c.length-f+b);var X=N-b;return this===c&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,b,N):Uint8Array.prototype.set.call(c,this.subarray(b,N),f),X},a.prototype.fill=function(c,f,b,N){if(typeof c=="string"){if(typeof f=="string"?(N=f,f=0,b=this.length):typeof b=="string"&&(N=b,b=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!a.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(c.length===1){var X=c.charCodeAt(0);(N==="utf8"&&X<128||N==="latin1")&&(c=X)}}else typeof c=="number"?c=c&255:typeof c=="boolean"&&(c=Number(c));if(f<0||this.length<f||this.length<b)throw new RangeError("Out of range index");if(b<=f)return this;f=f>>>0,b=b===void 0?this.length:b>>>0,c||(c=0);var re;if(typeof c=="number")for(re=f;re<b;++re)this[re]=c;else{var xe=a.isBuffer(c)?c:a.from(c,N),Ee=xe.length;if(Ee===0)throw new TypeError('The value "'+c+'" is invalid for argument "value"');for(re=0;re<b-f;++re)this[re+f]=xe[re%Ee]}return this};var we=/[^+/0-9A-Za-z-_]/g;function Ie(F){if(F=F.split("=")[0],F=F.trim().replace(we,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function ve(F,c){c=c||1/0;for(var f,b=F.length,N=null,X=[],re=0;re<b;++re){if(f=F.charCodeAt(re),f>55295&&f<57344){if(!N){if(f>56319){(c-=3)>-1&&X.push(239,191,189);continue}else if(re+1===b){(c-=3)>-1&&X.push(239,191,189);continue}N=f;continue}if(f<56320){(c-=3)>-1&&X.push(239,191,189),N=f;continue}f=(N-55296<<10|f-56320)+65536}else N&&(c-=3)>-1&&X.push(239,191,189);if(N=null,f<128){if((c-=1)<0)break;X.push(f)}else if(f<2048){if((c-=2)<0)break;X.push(f>>6|192,f&63|128)}else if(f<65536){if((c-=3)<0)break;X.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((c-=4)<0)break;X.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return X}function Ae(F){for(var c=[],f=0;f<F.length;++f)c.push(F.charCodeAt(f)&255);return c}function Fe(F,c){for(var f,b,N,X=[],re=0;re<F.length&&!((c-=2)<0);++re)f=F.charCodeAt(re),b=f>>8,N=f%256,X.push(N),X.push(b);return X}function He(F){return e.toByteArray(Ie(F))}function Me(F,c,f,b){for(var N=0;N<b&&!(N+f>=c.length||N>=F.length);++N)c[N+f]=F[N];return N}function De(F,c){return F instanceof c||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===c.name}function ze(F){return F!==F}var qe=function(){for(var F="0123456789abcdef",c=new Array(256),f=0;f<16;++f)for(var b=f*16,N=0;N<16;++N)c[b+N]=F[f]+F[N];return c}()})(Be);var K1=Be.Buffer,Y1=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(K1.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=A0(Y1);var ou={exports:{}};(function(t,e){(function(){var r,n=0xdeadbeefcafe,i=(n&16777215)==15715070;function o(p,y,B){p!=null&&(typeof p=="number"?this.fromNumber(p,y,B):y==null&&typeof p!="string"?this.fromString(p,256):this.fromString(p,y))}function s(){return new o(null)}function a(p,y,B,$,ne,se){for(;--se>=0;){var de=y*this[p++]+B[$]+ne;ne=Math.floor(de/67108864),B[$++]=de&67108863}return ne}function h(p,y,B,$,ne,se){for(var de=y&32767,pe=y>>15;--se>=0;){var Ue=this[p]&32767,Qe=this[p++]>>15,vt=pe*Ue+Qe*de;Ue=de*Ue+((vt&32767)<<15)+B[$]+(ne&1073741823),ne=(Ue>>>30)+(vt>>>15)+pe*Qe+(ne>>>30),B[$++]=Ue&1073741823}return ne}function u(p,y,B,$,ne,se){for(var de=y&16383,pe=y>>14;--se>=0;){var Ue=this[p]&16383,Qe=this[p++]>>14,vt=pe*Ue+Qe*de;Ue=de*Ue+((vt&16383)<<14)+B[$]+ne,ne=(Ue>>28)+(vt>>14)+pe*Qe,B[$++]=Ue&268435455}return ne}var l=typeof navigator!="undefined";l&&i&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=h,r=30):l&&i&&navigator.appName!="Netscape"?(o.prototype.am=a,r=26):(o.prototype.am=u,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 d="0123456789abcdefghijklmnopqrstuvwxyz",v=new Array,m,g;for(m=48,g=0;g<=9;++g)v[m++]=g;for(m=97,g=10;g<36;++g)v[m++]=g;for(m=65,g=10;g<36;++g)v[m++]=g;function E(p){return d.charAt(p)}function R(p,y){var B=v[p.charCodeAt(y)];return B==null?-1:B}function A(p){for(var y=this.t-1;y>=0;--y)p[y]=this[y];p.t=this.t,p.s=this.s}function w(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 C(p){var y=s();return y.fromInt(p),y}function D(p,y){var B;if(y==16)B=4;else if(y==8)B=3;else if(y==256)B=8;else if(y==2)B=1;else if(y==32)B=5;else if(y==4)B=2;else{this.fromRadix(p,y);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 I(){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 y;if(p==16)y=4;else if(p==8)y=3;else if(p==2)y=1;else if(p==32)y=5;else if(p==4)y=2;else return this.toRadix(p);var B=(1<<y)-1,$,ne=!1,se="",de=this.t,pe=this.DB-de*this.DB%y;if(de-- >0)for(pe<this.DB&&($=this[de]>>pe)>0&&(ne=!0,se=E($));de>=0;)pe<y?($=(this[de]&(1<<pe)-1)<<y-pe,$|=this[--de]>>(pe+=this.DB-y)):($=this[de]>>(pe-=y)&B,pe<=0&&(pe+=this.DB,--de)),$>0&&(ne=!0),ne&&(se+=E($));return ne?se:"0"}function q(){var p=s();return o.ZERO.subTo(this,p),p}function Z(){return this.s<0?this.negate():this}function O(p){var y=this.s-p.s;if(y!=0)return y;var B=this.t;if(y=B-p.t,y!=0)return this.s<0?-y:y;for(;--B>=0;)if((y=this[B]-p[B])!=0)return y;return 0}function k(p){var y=1,B;return(B=p>>>16)!=0&&(p=B,y+=16),(B=p>>8)!=0&&(p=B,y+=8),(B=p>>4)!=0&&(p=B,y+=4),(B=p>>2)!=0&&(p=B,y+=2),(B=p>>1)!=0&&(p=B,y+=1),y}function W(){return this.t<=0?0:this.DB*(this.t-1)+k(this[this.t-1]^this.s&this.DM)}function Y(p,y){var B;for(B=this.t-1;B>=0;--B)y[B+p]=this[B];for(B=p-1;B>=0;--B)y[B]=0;y.t=this.t+p,y.s=this.s}function J(p,y){for(var B=p;B<this.t;++B)y[B-p]=this[B];y.t=Math.max(this.t-p,0),y.s=this.s}function j(p,y){var B=p%this.DB,$=this.DB-B,ne=(1<<$)-1,se=Math.floor(p/this.DB),de=this.s<<B&this.DM,pe;for(pe=this.t-1;pe>=0;--pe)y[pe+se+1]=this[pe]>>$|de,de=(this[pe]&ne)<<B;for(pe=se-1;pe>=0;--pe)y[pe]=0;y[se]=de,y.t=this.t+se+1,y.s=this.s,y.clamp()}function Q(p,y){y.s=this.s;var B=Math.floor(p/this.DB);if(B>=this.t){y.t=0;return}var $=p%this.DB,ne=this.DB-$,se=(1<<$)-1;y[0]=this[B]>>$;for(var de=B+1;de<this.t;++de)y[de-B-1]|=(this[de]&se)<<ne,y[de-B]=this[de]>>$;$>0&&(y[this.t-B-1]|=(this.s&se)<<ne),y.t=this.t-B,y.clamp()}function oe(p,y){for(var B=0,$=0,ne=Math.min(p.t,this.t);B<ne;)$+=this[B]-p[B],y[B++]=$&this.DM,$>>=this.DB;if(p.t<this.t){for($-=p.s;B<this.t;)$+=this[B],y[B++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;B<p.t;)$-=p[B],y[B++]=$&this.DM,$>>=this.DB;$-=p.s}y.s=$<0?-1:0,$<-1?y[B++]=this.DV+$:$>0&&(y[B++]=$),y.t=B,y.clamp()}function ie(p,y){var B=this.abs(),$=p.abs(),ne=B.t;for(y.t=ne+$.t;--ne>=0;)y[ne]=0;for(ne=0;ne<$.t;++ne)y[ne+B.t]=B.am(0,$[ne],y,ne,0,B.t);y.s=0,y.clamp(),this.s!=p.s&&o.ZERO.subTo(y,y)}function he(p){for(var y=this.abs(),B=p.t=2*y.t;--B>=0;)p[B]=0;for(B=0;B<y.t-1;++B){var $=y.am(B,y[B],p,2*B,0,1);(p[B+y.t]+=y.am(B+1,2*y[B],p,2*B+1,$,y.t-B-1))>=y.DV&&(p[B+y.t]-=y.DV,p[B+y.t+1]=1)}p.t>0&&(p[p.t-1]+=y.am(B,y[B],p,2*B,0,1)),p.s=0,p.clamp()}function ue(p,y,B){var $=p.abs();if(!($.t<=0)){var ne=this.abs();if(ne.t<$.t){y!=null&&y.fromInt(0),B!=null&&this.copyTo(B);return}B==null&&(B=s());var se=s(),de=this.s,pe=p.s,Ue=this.DB-k($[$.t-1]);Ue>0?($.lShiftTo(Ue,se),ne.lShiftTo(Ue,B)):($.copyTo(se),ne.copyTo(B));var Qe=se.t,vt=se[Qe-1];if(vt!=0){var dt=vt*(1<<this.F1)+(Qe>1?se[Qe-2]>>this.F2:0),__$t__=this.FV/dt,Fn=(1<<this.F1)/dt,At=1<<this.F2,wt=B.t,Rn=wt-Qe,Vt=y==null?s():y;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]==vt?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)}y!=null&&(B.drShiftTo(Qe,y),de!=pe&&o.ZERO.subTo(y,y)),B.t=Qe,B.clamp(),Ue>0&&B.rShiftTo(Ue,B),de<0&&o.ZERO.subTo(B,B)}}}function H(p){var y=s();return this.abs().divRemTo(p,null,y),this.s<0&&y.compareTo(o.ZERO)>0&&p.subTo(y,y),y}function G(p){this.m=p}function te(p){return p.s<0||p.compareTo(this.m)>=0?p.mod(this.m):p}function K(p){return p}function ge(p){p.divRemTo(this.m,null,p)}function we(p,y,B){p.multiplyTo(y,B),this.reduce(B)}function Ie(p,y){p.squareTo(y),this.reduce(y)}G.prototype.convert=te,G.prototype.revert=K,G.prototype.reduce=ge,G.prototype.mulTo=we,G.prototype.sqrTo=Ie;function ve(){if(this.t<1)return 0;var p=this[0];if(!(p&1))return 0;var y=p&3;return y=y*(2-(p&15)*y)&15,y=y*(2-(p&255)*y)&255,y=y*(2-((p&65535)*y&65535))&65535,y=y*(2-p*y%this.DV)%this.DV,y>0?this.DV-y:-y}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 Fe(p){var y=s();return p.abs().dlShiftTo(this.m.t,y),y.divRemTo(this.m,null,y),p.s<0&&y.compareTo(o.ZERO)>0&&this.m.subTo(y,y),y}function He(p){var y=s();return p.copyTo(y),this.reduce(y),y}function Me(p){for(;p.t<=this.mt2;)p[p.t++]=0;for(var y=0;y<this.m.t;++y){var B=p[y]&32767,$=B*this.mpl+((B*this.mph+(p[y]>>15)*this.mpl&this.um)<<15)&p.DM;for(B=y+this.m.t,p[B]+=this.m.am(0,$,p,y,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 De(p,y){p.squareTo(y),this.reduce(y)}function ze(p,y,B){p.multiplyTo(y,B),this.reduce(B)}Ae.prototype.convert=Fe,Ae.prototype.revert=He,Ae.prototype.reduce=Me,Ae.prototype.mulTo=ze,Ae.prototype.sqrTo=De;function qe(){return(this.t>0?this[0]&1:this.s)==0}function F(p,y){if(p>4294967295||p<1)return o.ONE;var B=s(),$=s(),ne=y.convert(this),se=k(p)-1;for(ne.copyTo(B);--se>=0;)if(y.sqrTo(B,$),(p&1<<se)>0)y.mulTo($,ne,B);else{var de=B;B=$,$=de}return y.revert(B)}function c(p,y){var B;return p<256||y.isEven()?B=new G(y):B=new Ae(y),this.exp(p,B)}o.prototype.copyTo=A,o.prototype.fromInt=w,o.prototype.fromString=D,o.prototype.clamp=I,o.prototype.dlShiftTo=Y,o.prototype.drShiftTo=J,o.prototype.lShiftTo=j,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=q,o.prototype.abs=Z,o.prototype.compareTo=O,o.prototype.bitLength=W,o.prototype.mod=H,o.prototype.modPowInt=c,o.ZERO=C(0),o.ONE=C(1);function f(){var p=s();return this.copyTo(p),p}function b(){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 N(){return this.t==0?this.s:this[0]<<24>>24}function X(){return this.t==0?this.s:this[0]<<16>>16}function re(p){return Math.floor(Math.LN2*this.DB/Math.log(p))}function xe(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Ee(p){if(p==null&&(p=10),this.signum()==0||p<2||p>36)return"0";var y=this.chunkSize(p),B=Math.pow(p,y),$=C(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 Te(p,y){this.fromInt(0),y==null&&(y=10);for(var B=this.chunkSize(y),$=Math.pow(y,B),ne=!1,se=0,de=0,pe=0;pe<p.length;++pe){var Ue=R(p,pe);if(Ue<0){p.charAt(pe)=="-"&&this.signum()==0&&(ne=!0);continue}de=y*de+Ue,++se>=B&&(this.dMultiply($),this.dAddOffset(de,0),se=0,de=0)}se>0&&(this.dMultiply(Math.pow(y,se)),this.dAddOffset(de,0)),ne&&o.ZERO.subTo(this,this)}function Ne(p,y,B){if(typeof y=="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(y);)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,y.nextBytes($),ne>0?$[0]&=(1<<ne)-1:$[0]=0,this.fromString($,256)}}function Oe(){var p=this.t,y=new Array;y[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&&(y[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)&&(y[ne++]=$);return y}function gt(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,y,B){var $,ne,se=Math.min(p.t,this.t);for($=0;$<se;++$)B[$]=y(this[$],p[$]);if(p.t<this.t){for(ne=p.s&this.DM,$=se;$<this.t;++$)B[$]=y(this[$],ne);B.t=this.t}else{for(ne=this.s&this.DM,$=se;$<p.t;++$)B[$]=y(ne,p[$]);B.t=p.t}B.s=y(this.s,p.s),B.clamp()}function St(p,y){return p&y}function yr(p){var y=s();return this.bitwiseTo(p,St,y),y}function Ft(p,y){return p|y}function mr(p){var y=s();return this.bitwiseTo(p,Ft,y),y}function gr(p,y){return p^y}function Qt(p){var y=s();return this.bitwiseTo(p,gr,y),y}function qt(p,y){return p&~y}function Vr(p){var y=s();return this.bitwiseTo(p,qt,y),y}function ht(){for(var p=s(),y=0;y<this.t;++y)p[y]=this.DM&~this[y];return p.t=this.t,p.s=~this.s,p}function Gr(p){var y=s();return p<0?this.rShiftTo(-p,y):this.lShiftTo(p,y),y}function Er(p){var y=s();return p<0?this.lShiftTo(-p,y):this.rShiftTo(p,y),y}function Ar(p){if(p==0)return-1;var y=0;return p&65535||(p>>=16,y+=16),p&255||(p>>=8,y+=8),p&15||(p>>=4,y+=4),p&3||(p>>=2,y+=2),p&1||++y,y}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 y=0;p!=0;)p&=p-1,++y;return y}function wr(){for(var p=0,y=this.s&this.DM,B=0;B<this.t;++B)p+=Kr(this[B]^y);return p}function Yr(p){var y=Math.floor(p/this.DB);return y>=this.t?this.s!=0:(this[y]&1<<p%this.DB)!=0}function Xr(p,y){var B=o.ONE.shiftLeft(p);return this.bitwiseTo(B,y,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,y){for(var B=0,$=0,ne=Math.min(p.t,this.t);B<ne;)$+=this[B]+p[B],y[B++]=$&this.DM,$>>=this.DB;if(p.t<this.t){for($+=p.s;B<this.t;)$+=this[B],y[B++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;B<p.t;)$+=p[B],y[B++]=$&this.DM,$>>=this.DB;$+=p.s}y.s=$<0?-1:0,$>0?y[B++]=$:$<-1&&(y[B++]=this.DV+$),y.t=B,y.clamp()}function xt(p){var y=s();return this.addTo(p,y),y}function Zt(p){var y=s();return this.subTo(p,y),y}function Qr(p){var y=s();return this.multiplyTo(p,y),y}function wi(){var p=s();return this.squareTo(p),p}function _i(p){var y=s();return this.divRemTo(p,y,null),y}function bi(p){var y=s();return this.divRemTo(p,null,y),y}function Ci(p){var y=s(),B=s();return this.divRemTo(p,y,B),new Array(y,B)}function Bi(p){this[this.t]=this.am(0,p-1,this,0,0,this.t),++this.t,this.clamp()}function Di(p,y){if(p!=0){for(;this.t<=y;)this[this.t++]=0;for(this[y]+=p;this[y]>=this.DV;)this[y]-=this.DV,++y>=this.t&&(this[this.t++]=0),++this[y]}}function er(){}function Bn(p){return p}function Si(p,y,B){p.multiplyTo(y,B)}function Fi(p,y){p.squareTo(y)}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,y,B){var $=Math.min(this.t+p.t,y);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,y);$<ne;++$)this.am(0,p[$],B,$,0,y-$);B.clamp()}function Ti(p,y,B){--y;var $=B.t=this.t+p.t-y;for(B.s=0;--$>=0;)B[$]=0;for($=Math.max(y-this.t,0);$<p.t;++$)B[this.t+$-y]=this.am(y-$,p[$],B,0,0,this.t+$-y);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 y=s();return p.copyTo(y),this.reduce(y),y}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,y){p.squareTo(y),this.reduce(y)}function Oi(p,y,B){p.multiplyTo(y,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,y){var B=p.bitLength(),$,ne=C(1),se;if(B<=0)return ne;B<18?$=1:B<48?$=3:B<144?$=4:B<768?$=5:$=6,B<8?se=new G(y):y.isEven()?se=new Ut(y):se=new Ae(y);var de=new Array,pe=3,Ue=$-1,Qe=(1<<$)-1;if(de[1]=se.convert(this),$>1){var vt=s();for(se.sqrTo(de[1],vt);pe<=Qe;)de[pe]=s(),se.mulTo(vt,de[pe-2],de[pe]),pe+=2}var dt=p.t-1,__$t__,Fn=!0,At=s(),wt;for(B=k(p[dt])-1;dt>=0;){for(B>=Ue?__$t__=p[dt]>>B-Ue&Qe:(__$t__=(p[dt]&(1<<B+1)-1)<<Ue-B,dt>0&&(__$t__|=p[dt-1]>>this.DB+B-Ue)),pe=$;!(__$t__&1);)__$t__>>=1,--pe;if((B-=pe)<0&&(B+=this.DB,--dt),Fn)de[__$t__].copyTo(ne),Fn=!1;else{for(;pe>1;)se.sqrTo(ne,At),se.sqrTo(At,ne),pe-=2;pe>0?se.sqrTo(ne,At):(wt=ne,ne=At,At=wt),se.mulTo(At,de[__$t__],ne)}for(;dt>=0&&!(p[dt]&1<<B);)se.sqrTo(ne,At),wt=ne,ne=At,At=wt,--B<0&&(B=this.DB-1,--dt)}return se.revert(ne)}function Zr(p){var y=this.s<0?this.negate():this.clone(),B=p.s<0?p.negate():p.clone();if(y.compareTo(B)<0){var $=y;y=B,B=$}var ne=y.getLowestSetBit(),se=B.getLowestSetBit();if(se<0)return y;for(ne<se&&(se=ne),se>0&&(y.rShiftTo(se,y),B.rShiftTo(se,B));y.signum()>0;)(ne=y.getLowestSetBit())>0&&y.rShiftTo(ne,y),(ne=B.getLowestSetBit())>0&&B.rShiftTo(ne,B),y.compareTo(B)>=0?(y.subTo(B,y),y.rShiftTo(1,y)):(B.subTo(y,B),B.rShiftTo(1,B));return se>0&&B.lShiftTo(se,B),B}function Pi(p){if(p<=0)return 0;var y=this.DV%p,B=this.s<0?p-1:0;if(this.t>0)if(y==0)B=this[0]%p;else for(var $=this.t-1;$>=0;--$)B=(y*B+this[$])%p;return B}function Ni(p){var y=p.isEven();if(this.isEven()&&y||p.signum()==0)return o.ZERO;for(var B=p.clone(),$=this.clone(),ne=C(1),se=C(0),de=C(0),pe=C(1);B.signum()!=0;){for(;B.isEven();)B.rShiftTo(1,B),y?((!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,$),y?((!de.isEven()||!pe.isEven())&&(de.addTo(this,de),pe.subTo(p,pe)),de.rShiftTo(1,de)):pe.isEven()||pe.subTo(p,pe),pe.rShiftTo(1,pe);B.compareTo($)>=0?(B.subTo($,B),y&&ne.subTo(de,ne),se.subTo(pe,se)):($.subTo(B,$),y&&de.subTo(ne,de),pe.subTo(se,pe))}if($.compareTo(o.ONE)!=0)return o.ZERO;if(pe.compareTo(p)>=0)return pe.subtract(p);if(pe.signum()<0)pe.addTo(p,pe);else return pe;return pe.signum()<0?pe.add(p):pe}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 y,B=this.abs();if(B.t==1&&B[0]<=Xe[Xe.length-1]){for(y=0;y<Xe.length;++y)if(B[0]==Xe[y])return!0;return!1}if(B.isEven())return!1;for(y=1;y<Xe.length;){for(var $=Xe[y],ne=y+1;ne<Xe.length&&$<Li;)$*=Xe[ne++];for($=B.modInt($);y<ne;)if($%Xe[y++]==0)return!1}return B.millerRabin(p)}function _(p){var y=this.subtract(o.ONE),B=y.getLowestSetBit();if(B<=0)return!1;var $=y.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(y)!=0){for(var pe=1;pe++<B&&de.compareTo(y)!=0;)if(de=de.modPowInt(2,this),de.compareTo(o.ONE)==0)return!1;if(de.compareTo(y)!=0)return!1}}return!0}o.prototype.chunkSize=re,o.prototype.toRadix=Ee,o.prototype.fromRadix=Te,o.prototype.fromNumber=Ne,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=_,o.prototype.clone=f,o.prototype.intValue=b,o.prototype.byteValue=N,o.prototype.shortValue=X,o.prototype.signum=xe,o.prototype.toByteArray=Oe,o.prototype.equals=gt,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=ht,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=xt,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 P,S,M;function z(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(){z(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(P==null){for(U(),P=Ke(),P.init(S),M=0;M<S.length;++M)S[M]=0;M=0}return P.next()}function le(p){var y;for(y=0;y<p.length;++y)p[y]=fe()}function ye(){}ye.prototype.nextBytes=le;function Ce(){this.i=0,this.j=0,this.S=new Array}function Pe(p){var y,B,$;for(y=0;y<256;++y)this.S[y]=y;for(B=0,y=0;y<256;++y)B=B+this.S[y]+p[y%p.length]&255,$=this.S[y],this.S[y]=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]}Ce.prototype.init=Pe,Ce.prototype.next=Le;function Ke(){return new Ce}var We=256;t.exports={default:o,BigInteger:o,SecureRandom:ye}}).call(_e)})(ou);var ke=ou.exports,X1=ke.BigInteger.prototype.Barrett;function st(t,e){this.x=e,this.q=t}function ut(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 ut(this,null,null),this.reducer=new X1(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))},ut.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)},ut.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)},ut.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))},ut.prototype.isInfinity=function(){return this.x==null&&this.y==null||this.z.equals(ke.BigInteger.ZERO)&&!this.y.toBigInteger().equals(ke.BigInteger.ZERO)},ut.prototype.negate=function(){return new ut(this.curve,this.x,this.y.negate(),this.z)},ut.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),h=i.multiply(s),u=e.square().multiply(this.z),l=u.subtract(h.shiftLeft(1)).multiply(t.z).subtract(a).multiply(r).mod(this.curve.q),x=h.multiply(n).multiply(e).subtract(o.multiply(a)).subtract(u.multiply(e)).multiply(t.z).add(e.multiply(a)).mod(this.curve.q),d=a.multiply(this.z).multiply(t.z).mod(this.curve.q);return new ut(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(x),d)},ut.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),h=s.multiply(t).multiply(e).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(s.square().multiply(s)).mod(this.curve.q),u=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new ut(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(h),u)},ut.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},ut.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 ut(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},J1=function(t){return t<16?2043430169:2055708042},Q1=function(t,e,r,n){return n<16?t^e^r:t&e|t&r|e&r},Z1=function(t,e,r,n){return n<16?t^e^r:t&e|~t&r},ex=function(t,e,r){for(var n,i,o,s,a,h=function(A){var w,C=new Array(132);A.forEach(function(L,q){C[q]=L});for(var D=16;D<68;D++)C[D]=(w=C[D-16]^C[D-9]^Ze(C[D-3],15))^Ze(w,15)^Ze(w,23)^Ze(C[D-13],7)^C[D-6];for(var I=0;I<64;I++)C[I+68]=C[I]^C[I+4];return C}(e),u=t[0],l=t[1],x=t[2],d=t[3],v=t[4],m=t[5],g=t[6],E=t[7],R=0;R<64;R++)i=(n=Ze(Ze(u,12)+v+Ze(J1(R),R),7))^Ze(u,12),o=Q1(u,l,x,R)+d+i+h[R+68],s=Z1(v,m,g,R)+E+n+h[R],d=x,x=Ze(l,9),l=u,u=o,E=g,g=Ze(m,19),m=v,v=(a=s)^Ze(a,9)^Ze(a,17);return[u^t[0],l^t[1],x^t[2],d^t[3],v^t[4],m^t[5],g^t[6],E^t[7]]},u0=function(t,e,r){if(typeof t=="string"?t=Be.Buffer.from(t,e||"utf8"):t instanceof ArrayBuffer&&(t=Be.Buffer.from(t)),!Be.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var n,i,o,s,a,h;n=t,i=Be.Buffer.alloc(1,128),s=Be.Buffer.alloc(o=(o=n.length%64)>=56?64-o%56-1:56-o-1,0),a=Be.Buffer.alloc(8),h=8*n.length,a.writeUInt32BE(Math.floor(h/Math.pow(2,32)),0),a.writeUInt32BE(h%Math.pow(2,32),4);for(var u=(t=Be.Buffer.concat([n,i,s,a],n.length+1+o+8)).length/64,l=new Array(u),x=0;x<u;x++){l[x]=new Array(16);for(var d=0;d<16;d++)l[x][d]=t.readUInt32BE(64*x+4*d)}var v=new Array(u);v[0]=[1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214];for(var m=0;m<u;m++)v[m+1]=ex(v[m],l[m]);var g=Be.Buffer.alloc(32);return v[u].forEach(function(E,R){return g.writeInt32BE(E,4*R)}),r?g.toString(r):pn(g)},gs=new ke.SecureRandom,L0=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)}}(),Es=L0.curve,As=L0.G,Nn=L0.n;function ws(t,e){for(var r=[],n=Math.ceil(e/32),i=e%32,o=1;o<=n;o++){var s=Be.Buffer.allocUnsafe(4);s.writeUInt32BE(o);var a=u0(Be.Buffer.concat([t,s]));r.push(o===n&&i?Be.Buffer.from(a).slice(0,i):Be.Buffer.from(a))}return Be.Buffer.concat(r,e)}var tx={__proto__:null,constants:{C1C2C3:0,C1C3C2:1,PC:"04"},generateKeyPair:function(){var t=new ke.BigInteger(Nn.bitLength(),gs).mod(Nn.subtract(new ke.BigInteger("2"))).add(ke.BigInteger.ONE),e=Tt(t.toString(16),64),r=As.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=Be.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=Be.Buffer.from(t)),!Be.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var h=new ke.BigInteger(Nn.bitLength(),gs).mod(Nn.subtract(ke.BigInteger.ONE)).add(ke.BigInteger.ONE),u=As.multiply(h),l=Tt(u.getX().toBigInteger().toString(16),64)+Tt(u.getY().toBigInteger().toString(16),64),x=Es.decodePointHex(e).multiply(h),d=Tt(x.getX().toBigInteger().toString(16),64),v=Tt(x.getY().toBigInteger().toString(16),64),m=ws(Be.Buffer.from(d+v,"hex"),t.length),g=Tt(new ke.BigInteger(t.toString("hex"),16).xor(new ke.BigInteger(m.toString("hex"),16)).toString(16),2*t.length),E=u0(d+t.toString("hex")+v,"hex","hex"),R=Be.Buffer.from((a?"04":"")+(o===0?l+g+E:l+E+g),"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=Be.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=Be.Buffer.from(t)),!Be.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var h=(t=a?t.slice(1):t).slice(0,32).toString("hex"),u=t.slice(32,64).toString("hex"),l=Es.decodePointHex("04"+h+u).multiply(new ke.BigInteger(e,16)),x=Tt(l.getX().toBigInteger().toString(16),64),d=Tt(l.getY().toBigInteger().toString(16),64),v=t.slice(64,96),m=t.slice(96);o===0&&(v=t.slice(t.length-32),m=t.slice(64,t.length-32));var g=ws(Be.Buffer.from(x+d,"hex"),m.length),E=new ke.BigInteger(m.toString("hex"),16).xor(new ke.BigInteger(g.toString("hex"),16)).toString(16),R=u0(x+E+d,"hex","hex")===v.toString("hex")?Be.Buffer.from(E,"hex"):Be.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],rx=[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,au=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},su=function(t){return(e=au(t))^Ze(e,2)^Ze(e,10)^Ze(e,18)^Ze(e,24);var e},cu=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=au(r[i+1]^r[i+2]^r[i+3]^rx[i]))^Ze(e,13)^Ze(e,23),n[i]=r[i+4];return n},_s=function(t,e){for(var r=cu(e),n=0;n<32;n++)t[n+4]=t[n]^su(t[n+1]^t[n+2]^t[n+3]^r[n]);return[t[35],t[34],t[33],t[32]]},bs=function(t,e){for(var r=cu(e).reverse(),n=0;n<32;n++)t[n+4]=t[n]^su(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=Be.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=Be.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=Be.Buffer.from(t)),!Be.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=Be.Buffer.from(e,"hex"),i===2&&!Mn.test(o))throw new TypeError("Invalid value of `iv` option");return function(a,h,u,l){u&&(u=Un(u)),h=Un(h);for(var x=[],d=(a=function(D){var I=16-D.length%16,L=Be.Buffer.alloc(I,I);return Be.Buffer.concat([D,L],D.length+I)}(a)).length/16,v=0;v<d;v++)if(u){var m=16*v,g=[u[0]^a.readInt32BE(m),u[1]^a.readInt32BE(m+4),u[2]^a.readInt32BE(m+8),u[3]^a.readInt32BE(m+12)],E=_s(g,h);x.push($n(E)),u=E.slice(0)}else{var R=16*v,A=[a.readInt32BE(R),a.readInt32BE(R+4),a.readInt32BE(R+8),a.readInt32BE(R+12)],w=_s(A,h);x.push($n(w))}var C=Be.Buffer.concat(x,a.length);return l?C.toString(l):pn(C)}(t,e,o=i===2?Be.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=Be.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=Be.Buffer.from(t)),!Be.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=Be.Buffer.from(e,"hex"),i===2&&!Mn.test(o))throw new TypeError("Invalid value of `iv` option");return function(a,h,u,l){u&&(u=Un(u)),h=Un(h);var x=[],d=a.length/16;if(u)for(var v=d-1;v>=0;v--){var m,g=16*v;m=v>0?[a.readInt32BE(g-16),a.readInt32BE(g-16+4),a.readInt32BE(g-16+8),a.readInt32BE(g-16+12)]:u;var E=[a.readInt32BE(g),a.readInt32BE(g+4),a.readInt32BE(g+8),a.readInt32BE(g+12)],R=bs(E,h);x.unshift($n([R[0]^m[0],R[1]^m[1],R[2]^m[2],R[3]^m[3]]))}else for(var A=0;A<d;A++){var w=16*A,C=[a.readInt32BE(w),a.readInt32BE(w+4),a.readInt32BE(w+8),a.readInt32BE(w+12)],D=bs(C,h);x.push($n(D))}var I=Be.Buffer.concat(x,a.length-x[x.length-1][15]);return l?I.toString(l):pn(I)}(t,e,o=i===2?Be.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 nx(){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,h;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}h=r.charCodeAt(i++),n+=t.charAt(s>>2),n+=t.charAt((s&3)<<4|(a&240)>>4),n+=t.charAt((a&15)<<2|(h&192)>>6),n+=t.charAt(h&63)}return n},this.decode=function(r){var n,i,o,s,a,h,u;for(h=r.length,a=0,u="";a<h;){do n=e[r.charCodeAt(a++)&255];while(a<h&&n==-1);if(n==-1)break;do i=e[r.charCodeAt(a++)&255];while(a<h&&i==-1);if(i==-1)break;u+=String.fromCharCode(n<<2|(i&48)>>4);do{if(o=r.charCodeAt(a++)&255,o==61)return u;o=e[o]}while(a<h&&o==-1);if(o==-1)break;u+=String.fromCharCode((i&15)<<4|(o&60)>>2);do{if(s=r.charCodeAt(a++)&255,s==61)return u;s=e[s]}while(a<h&&s==-1);if(s==-1)break;u+=String.fromCharCode((o&3)<<6|s)}return u},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,h;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++),h=r.charCodeAt(i++),n+=String.fromCharCode((s&15)<<12|(a&63)<<6|(h&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 ix(){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 ox(t){if(this.connect=!1,this.ready_func_=null,this.callbacks_=new ix,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:h,UpdateRSAPriKey:u},l){this.exec("Arm_GenMotherKey",[parseInt(e),parseInt(r),n,a,parseInt(h),parseInt(s),u,parseInt(o),parseInt(i)],l)},this.Arm_RequestInit=function({Handle:e},r){this.exec("Arm_RequestInit",[parseInt(e)],r)},this.Arm_GetInitDataFromMother=function({Handle:e},r){this.exec("Arm_GetInitDataFromMother",[parseInt(e),Request],r)},this.Arm_InitSon=function({Handle:e,InitData:r},n){this.exec("Arm_InitSon",[parseInt(e),r],n)},this.Arm_SetUpdatePriKey=function({Handle:e,UpdatePriKey:r},n){this.exec("Arm_SetUpdatePriKey",[parseInt(e),r],n)},this.Arm_MakeUpdatePacket=function({Handle:e,HID:r,Func:n,FileID:i,FileType:o,Offset:s,DataLen:a,DataBuffer:h,UpRSAPubKey:u},l){this.exec("Arm_MakeUpdatePacket",[parseInt(e),r,n,o,parseInt(i),parseInt(s),h,u,parseInt(a)],l)},this.Arm_MakeUpdatePacketFromMother=function({Handle:e,HID:r,Func:n,FileID:i,FileType:o,Offset:s,DataLen:a,DataBuffer:h},u){this.exec("Arm_MakeUpdatePacketFromMother",[parseInt(e),r,n,o,parseInt(i),parseInt(s),h,parseInt(a)],u)},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 ax={HID:0},Hn={PRODUCT_ID:0,USER_ID:1,HARDWARE_ID:2},Cs={USER:0};class uu{constructor(){rr(this,"Base64",new nx);rr(this,"AtlCtrl",null);rr(this,"ArmCount",0);rr(this,"ArmIndex",0);rr(this,"ArmHandle",0);rr(this,"ArmRandom","");try{this.AtlCtrl=new ox("{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=Cs.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},(h,u)=>{h&&u==0?(this.ArmPin=e,s(u)):a(u)})})}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=ax.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=Cs.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 fu=Symbol(),Xn="el",sx="is-",ir=(t,e,r,n,i)=>{let o=`${t}-${e}`;return r&&(o+=`-${r}`),n&&(o+=`__${n}`),i&&(o+=`--${i}`),o},lu=Symbol("namespaceContextKey"),cx=t=>{const e=t||(T.getCurrentInstance()?T.inject(lu,T.ref(Xn)):T.ref(Xn));return T.computed(()=>T.unref(e)||Xn)},k0=(t,e)=>{const r=cx(e);return{namespace:r,b:(g="")=>ir(r.value,t,g,"",""),e:g=>g?ir(r.value,t,"",g,""):"",m:g=>g?ir(r.value,t,"","",g):"",be:(g,E)=>g&&E?ir(r.value,t,g,E,""):"",em:(g,E)=>g&&E?ir(r.value,t,"",g,E):"",bm:(g,E)=>g&&E?ir(r.value,t,g,"",E):"",bem:(g,E,R)=>g&&E&&R?ir(r.value,t,g,E,R):"",is:(g,...E)=>{const R=E.length>=1?E[0]:!0;return g&&R?`${sx}${g}`:""},cssVar:g=>{const E={};for(const R in g)g[R]&&(E[`--${r.value}-${R}`]=g[R]);return E},cssVarName:g=>`--${r.value}-${g}`,cssVarBlock:g=>{const E={};for(const R in g)g[R]&&(E[`--${r.value}-${t}-${R}`]=g[R]);return E},cssVarBlockName:g=>`--${r.value}-${t}-${g}`}};/**
|
|
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
|
|
40
|
-
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:i,nextZIndex:s}};var zg={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 kg=n=>(t,e)=>Ng(t,e,P.unref(n)),Ng=(n,t,e)=>I0.get(e,n,n).replace(/\{(\w+)\}/g,(r,i)=>{var s;return`${(s=t==null?void 0:t[i])!=null?s:`{${i}}`}`}),Lg=n=>{const t=P.computed(()=>P.unref(n).name),e=P.isRef(n)?n:P.ref(n);return{lang:t,locale:e,t:kg(n)}},Ef=Symbol("localeContextKey"),Ug=n=>{const t=n||P.inject(Ef,P.ref());return Lg(P.computed(()=>t.value||zg))},bf="__epPropKey",ge=n=>n,$g=n=>mf(n)&&!!n[bf],Af=(n,t)=>{if(!mf(n)||$g(n))return n;const{values:e,required:r,default:i,type:s,validator:o}=n,u={type:s,required:!!r,validator:e||o?c=>{let l=!1,f=[];if(e&&(f=Array.from(e),E0(n,"default")&&f.push(i),l||(l=f.includes(c))),o&&(l||(l=o(c))),!l&&f.length>0){const h=[...new Set(f)].map(p=>JSON.stringify(p)).join(", ");P.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return l}:void 0,[bf]:!0};return E0(n,"default")&&(u.default=i),u},zi=n=>I0.fromPairs(Object.entries(n).map(([t,e])=>[t,Af(e,t)])),Hg=["","default","small","large"],qg=Af({type:String,values:Hg,required:!1}),Wg=Symbol("size"),Vg=Symbol("emptyValuesContextKey"),jg=zi({emptyValues:Array,valueOnClear:{type:ge([String,Number,Boolean,Function]),default:void 0,validator:n=>(n=ks(n)?n():n,xg(n)?n.every(t=>!t):!n)}}),tl=n=>Object.keys(n),Ns=P.ref();function _f(n,t=void 0){return P.getCurrentInstance()?P.inject(pf,Ns):Ns}function Gg(n,t){const e=_f(),r=K0(n,P.computed(()=>{var a;return((a=e.value)==null?void 0:a.namespace)||Ds})),i=Ug(P.computed(()=>{var a;return(a=e.value)==null?void 0:a.locale})),s=Pg(P.computed(()=>{var a;return((a=e.value)==null?void 0:a.zIndex)||vf})),o=P.computed(()=>{var a;return P.unref(t)||((a=e.value)==null?void 0:a.size)||""});return Cf(P.computed(()=>P.unref(e)||{})),{ns:r,locale:i,zIndex:s,size:o}}const Cf=(n,t,e=!1)=>{var r;const i=!!P.getCurrentInstance(),s=i?_f():void 0,o=(r=void 0)!=null?r:i?P.provide:void 0;if(!o){Pi("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const a=P.computed(()=>{const u=P.unref(n);return s!=null&&s.value?Xg(s.value,u):u});return o(pf,a),o(Ef,P.computed(()=>a.value.locale)),o(xf,P.computed(()=>a.value.namespace)),o(wf,P.computed(()=>a.value.zIndex)),o(Wg,{size:P.computed(()=>a.value.size||"")}),o(Vg,P.computed(()=>({emptyValues:a.value.emptyValues,valueOnClear:a.value.valueOnClear}))),(e||!Ns.value)&&(Ns.value=a.value),a},Xg=(n,t)=>{const e=[...new Set([...tl(n),...tl(t)])],r={};for(const i of e)r[i]=t[i]!==void 0?t[i]:n[i];return r};var Q0=(n,t)=>{const e=n.__vccOpts||n;for(const[r,i]of t)e[r]=i;return e};const Yg="utils/dom/style";function b0(n,t="px"){if(!n&&n!==0)return"";if(Qr(n)||yg(n))return`${n}${t}`;if(Xn(n))return n;Pi(Yg,"binding value must be a string or number")}const Sf=(n,t)=>(n.install=e=>{for(const r of[n,...Object.values({})])e.component(r.name,r)},n),Kg=(n,t)=>(n.install=e=>{n._context=e._context,e.config.globalProperties[t]=n},n),Jg=zi({size:{type:ge([Number,String])},color:{type:String}}),Zg=P.defineComponent({name:"ElIcon",inheritAttrs:!1}),Qg=P.defineComponent(ze(Lt({},Zg),{props:Jg,setup(n){const t=n,e=K0("icon"),r=P.computed(()=>{const{size:i,color:s}=t,o=b0(i);return!o&&!s?{}:{fontSize:o,"--color":s}});return(i,s)=>(P.openBlock(),P.createElementBlock("i",P.mergeProps({class:P.unref(e).b(),style:P.unref(r)},i.$attrs),[P.renderSlot(i.$slots,"default")],16))}}));var t2=Q0(Qg,[["__file","icon.vue"]]);const el=Sf(t2);/*! Element Plus Icons Vue v2.3.2 */var e2=P.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(n){return(t,e)=>(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"})]))}}),r2=e2,n2=P.defineComponent({name:"Close",__name:"close",setup(n){return(t,e)=>(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"})]))}}),i2=n2,s2=P.defineComponent({name:"InfoFilled",__name:"info-filled",setup(n){return(t,e)=>(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"})]))}}),rl=s2,o2=P.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(n){return(t,e)=>(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"})]))}}),a2=o2,c2=P.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(n){return(t,e)=>(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"})]))}}),u2=c2;const l2=ge([String,Object,Function]),h2={Close:i2},nl={primary:rl,success:a2,warning:u2,error:r2,info:rl},f2=()=>sn&&/android/i.test(window.navigator.userAgent),d2=n=>n,A0={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"},p2=n=>{if(n.code&&n.code!=="Unidentified")return n.code;const t=x2(n);if(t){if(Object.values(A0).includes(t))return t;switch(t){case" ":return A0.space;default:return""}}return""},x2=n=>{let t=n.key&&n.key!=="Unidentified"?n.key:"";if(!t&&n.type==="keyup"&&f2()){const e=n.target;t=e.value.charAt(e.selectionStart-1)}return t},m2=zi({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:ge([String,Object,Array])},offset:{type:ge(Array),default:[0,0]},badgeClass:{type:String}}),y2=P.defineComponent({name:"ElBadge"}),g2=P.defineComponent(ze(Lt({},y2),{props:m2,setup(n,{expose:t}){const e=n,r=K0("badge"),i=P.computed(()=>e.isDot?"":Qr(e.value)&&Qr(e.max)?e.max<e.value?`${e.max}+`:`${e.value}`:`${e.value}`),s=P.computed(()=>{var o;return[{backgroundColor:e.color,marginRight:b0(-e.offset[0]),marginTop:b0(e.offset[1])},(o=e.badgeStyle)!=null?o:{}]});return t({content:i}),(o,a)=>(P.openBlock(),P.createElementBlock("div",{class:P.normalizeClass(P.unref(r).b())},[P.renderSlot(o.$slots,"default"),P.createVNode(P.Transition,{name:`${P.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:P.withCtx(()=>[P.withDirectives(P.createElementVNode("sup",{class:P.normalizeClass([P.unref(r).e("content"),P.unref(r).em("content",o.type),P.unref(r).is("fixed",!!o.$slots.default),P.unref(r).is("dot",o.isDot),P.unref(r).is("hide-zero",!o.showZero&&o.value===0),o.badgeClass]),style:P.normalizeStyle(P.unref(s))},[P.renderSlot(o.$slots,"content",{value:P.unref(i)},()=>[P.createTextVNode(P.toDisplayString(P.unref(i)),1)])],6),[[P.vShow,!o.hidden&&(P.unref(i)||o.isDot||o.$slots.content)]])]),_:3},8,["name"])],2))}}));var v2=Q0(g2,[["__file","badge.vue"]]);const w2=Sf(v2),E2=zi(Lt({a11y:{type:Boolean,default:!0},locale:{type:ge(Object)},size:qg,button:{type:ge(Object)},card:{type:ge(Object)},dialog:{type:ge(Object)},link:{type:ge(Object)},experimentalFeatures:{type:ge(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ge(Object)},zIndex:Number,namespace:{type:String,default:"el"}},jg)),fe={placement:"top"};P.defineComponent({name:"ElConfigProvider",props:E2,setup(n,{slots:t}){const e=Cf(n);return P.watch(()=>n.message,r=>{var i,s;Object.assign(fe,(s=(i=e==null?void 0:e.value)==null?void 0:i.message)!=null?s:{},r!=null?r:{})},{immediate:!0,deep:!0}),()=>P.renderSlot(t,"default",{config:e==null?void 0:e.value})}});const Bf=["primary","success","info","warning","error"],Ff=["top","top-left","top-right","bottom","bottom-left","bottom-right"],Ln="top",he=d2({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:sn?document.body:void 0}),b2=zi({customClass:{type:String,default:he.customClass},dangerouslyUseHTMLString:{type:Boolean,default:he.dangerouslyUseHTMLString},duration:{type:Number,default:he.duration},icon:{type:l2,default:he.icon},id:{type:String,default:he.id},message:{type:ge([String,Object,Function]),default:he.message},onClose:{type:ge(Function),default:he.onClose},showClose:{type:Boolean,default:he.showClose},type:{type:String,values:Bf,default:he.type},plain:{type:Boolean,default:he.plain},offset:{type:Number,default:he.offset},placement:{type:String,values:Ff,default:he.placement},zIndex:{type:Number,default:he.zIndex},grouping:{type:Boolean,default:he.grouping},repeatNum:{type:Number,default:he.repeatNum}}),A2={destroy:()=>!0},We=P.shallowReactive({}),_2=n=>(We[n]||(We[n]=P.shallowReactive([])),We[n]),C2=(n,t)=>{const e=We[t]||[],r=e.findIndex(o=>o.id===n),i=e[r];let s;return r>0&&(s=e[r-1]),{current:i,prev:s}},S2=(n,t)=>{const{prev:e}=C2(n,t);return e?e.vm.exposed.bottom.value:0},B2=(n,t,e)=>(We[e]||[]).findIndex(s=>s.id===n)>0?16:t,F2=P.defineComponent({name:"ElMessage"}),D2=P.defineComponent(ze(Lt({},F2),{props:b2,emits:A2,setup(n,{expose:t,emit:e}){const r=n,{Close:i}=h2,s=P.ref(!1),{ns:o,zIndex:a}=Gg("message"),{currentZIndex:u,nextZIndex:c}=a,l=P.ref(),f=P.ref(!1),h=P.ref(0);let p;const x=P.computed(()=>r.type?r.type==="error"?"danger":r.type:"info"),y=P.computed(()=>{const q=r.type;return{[o.bm("icon",q)]:q&&nl[q]}}),g=P.computed(()=>r.icon||nl[r.type]||""),A=P.computed(()=>r.placement||Ln),w=P.computed(()=>S2(r.id,A.value)),E=P.computed(()=>B2(r.id,r.offset,A.value)+w.value),_=P.computed(()=>h.value+E.value),C=P.computed(()=>A.value.includes("left")?o.is("left"):A.value.includes("right")?o.is("right"):o.is("center")),T=P.computed(()=>A.value.startsWith("top")?"top":"bottom"),R=P.computed(()=>({[T.value]:`${E.value}px`,zIndex:u.value}));function N(){r.duration!==0&&({stop:p}=bg(()=>{I()},r.duration))}function Y(){p==null||p()}function I(){f.value=!1,P.nextTick(()=>{var q;s.value||((q=r.onClose)==null||q.call(r),e("destroy"))})}function O(q){p2(q)===A0.esc&&I()}return P.onMounted(()=>{N(),c(),f.value=!0}),P.watch(()=>r.repeatNum,()=>{Y(),N()}),Ag(document,"keydown",O),Fg(l,()=>{h.value=l.value.getBoundingClientRect().height}),t({visible:f,bottom:_,close:I}),(q,j)=>(P.openBlock(),P.createBlock(P.Transition,{name:P.unref(o).b("fade"),onBeforeEnter:J=>s.value=!0,onBeforeLeave:q.onClose,onAfterLeave:J=>q.$emit("destroy"),persisted:""},{default:P.withCtx(()=>[P.withDirectives(P.createElementVNode("div",{id:q.id,ref_key:"messageRef",ref:l,class:P.normalizeClass([P.unref(o).b(),{[P.unref(o).m(q.type)]:q.type},P.unref(o).is("closable",q.showClose),P.unref(o).is("plain",q.plain),P.unref(o).is("bottom",P.unref(T)==="bottom"),P.unref(C),q.customClass]),style:P.normalizeStyle(P.unref(R)),role:"alert",onMouseenter:Y,onMouseleave:N},[q.repeatNum>1?(P.openBlock(),P.createBlock(P.unref(w2),{key:0,value:q.repeatNum,type:P.unref(x),class:P.normalizeClass(P.unref(o).e("badge"))},null,8,["value","type","class"])):P.createCommentVNode("v-if",!0),P.unref(g)?(P.openBlock(),P.createBlock(P.unref(el),{key:1,class:P.normalizeClass([P.unref(o).e("icon"),P.unref(y)])},{default:P.withCtx(()=>[(P.openBlock(),P.createBlock(P.resolveDynamicComponent(P.unref(g))))]),_:1},8,["class"])):P.createCommentVNode("v-if",!0),P.renderSlot(q.$slots,"default",{},()=>[q.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(o).e("content")),innerHTML:q.message},null,10,["innerHTML"])],2112)):(P.openBlock(),P.createElementBlock("p",{key:0,class:P.normalizeClass(P.unref(o).e("content"))},P.toDisplayString(q.message),3))]),q.showClose?(P.openBlock(),P.createBlock(P.unref(el),{key:2,class:P.normalizeClass(P.unref(o).e("closeBtn")),onClick:P.withModifiers(I,["stop"])},{default:P.withCtx(()=>[P.createVNode(P.unref(i))]),_:1},8,["class","onClick"])):P.createCommentVNode("v-if",!0)],46,["id"]),[[P.vShow,f.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}}));var M2=Q0(D2,[["__file","message.vue"]]);let T2=1;const R2=n=>{if(!n.appendTo)n.appendTo=document.body;else if(Xn(n.appendTo)){let e=document.querySelector(n.appendTo);mg(e)||(Pi("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),e=document.body),n.appendTo=e}},I2=n=>{!n.placement&&Xn(fe.placement)&&fe.placement&&(n.placement=fe.placement),n.placement||(n.placement=Ln),Ff.includes(n.placement)||(Pi("ElMessage",`Invalid placement: ${n.placement}. Falling back to '${Ln}'.`),n.placement=Ln)},Df=n=>{const t=!n||Xn(n)||P.isVNode(n)||ks(n)?{message:n}:n,e=Lt(Lt({},he),t);return R2(e),I2(e),Ia(fe.grouping)&&!e.grouping&&(e.grouping=fe.grouping),Qr(fe.duration)&&e.duration===3e3&&(e.duration=fe.duration),Qr(fe.offset)&&e.offset===16&&(e.offset=fe.offset),Ia(fe.showClose)&&!e.showClose&&(e.showClose=fe.showClose),Ia(fe.plain)&&!e.plain&&(e.plain=fe.plain),e},O2=n=>{const t=n.props.placement||Ln,e=We[t],r=e.indexOf(n);if(r===-1)return;e.splice(r,1);const{handler:i}=n;i.close()},P2=(r,e)=>{var i=r,{appendTo:n}=i,t=lc(i,["appendTo"]);const s=`message_${T2++}`,o=t.onClose,a=document.createElement("div"),u=ze(Lt({},t),{id:s,onClose:()=>{o==null||o(),O2(h)},onDestroy:()=>{P.render(null,a)}}),c=P.createVNode(M2,u,ks(u.message)||P.isVNode(u.message)?{default:ks(u.message)?u.message:()=>u.message}:null);c.appContext=e||tn._context,P.render(c,a),n.appendChild(a.firstElementChild);const l=c.component,h={id:s,vnode:c,vm:l,handler:{close:()=>{l.exposed.close()}},props:c.component.props};return h},tn=(n={},t)=>{if(!sn)return{close:()=>{}};const e=Df(n),r=_2(e.placement||Ln);if(e.grouping&&r.length){const s=r.find(({vnode:o})=>{var a;return((a=o.props)==null?void 0:a.message)===e.message});if(s)return s.props.repeatNum+=1,s.props.type=e.type,s.handler}if(Qr(fe.max)&&r.length>=fe.max)return{close:()=>{}};const i=P2(e,t);return r.push(i),i.handler};Bf.forEach(n=>{tn[n]=(t={},e)=>{const r=Df(t);return tn(ze(Lt({},r),{type:n}),e)}});function z2(n){for(const t in We)if(E0(We,t)){const e=[...We[t]];for(const r of e)(!n||n===r.props.type)&&r.handler.close()}}function k2(n){if(!We[n])return;[...We[n]].forEach(e=>e.handler.close())}tn.closeAll=z2;tn.closeAllByPlacement=k2;tn._context=null;const Mr=Kg(tn,"$message"),Mf="0123456789abcdeffedcba9876543210",Tf="4b0de988570c3a0f",N2=window.ENCRYPT;let Un=N2&&new df;function Rf(n=16,t="0123456789abcdefghijklmnopqrstuvwxyz"){let e="",r=t.length;for(;n>0;)e+=t[Math.floor(Math.random()*r)],n--;return e}function If(){return Ct(this,null,function*(){return Un||(Un=new df),new Promise((n,t)=>{Un.armEnum().then(e=>{n(+e)}).catch(e=>{Mr({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),t(e)})})})}I0.throttle(()=>Ct(exports,null,function*(){const n=yield If(),t={};if(typeof n!="number"||n<=0)Mr({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),t.resetToken();else{const e=yield U2();if(!t.token)return;e.length?e.includes(t.ukeyHid)||(Mr({type:"error",ElMessage:"U盘锁不匹配,请检查U盘锁!"}),t.resetToken()):(Mr({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),t.resetToken())}}),5e3,{trailing:!1});function L2(n=0){return Ct(this,null,function*(){return Un?new Promise((t,e)=>{Un.armGetDongleInfo(n).then(r=>{r?t(r):(Mr({type:"warning",ElMessage:"U盘锁信息为空,请检查U盘锁!"}),e(r))}).catch(r=>{e(r)})}):Mr({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"})})}function U2(){return Ct(this,null,function*(){if(!Un)return Mr({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"});const n=yield If();let t=[];for(let e=0;e<n;e++){const r=yield L2(e);t.push(r)}return t})}Rf(16);Rf(16);const Of=window.meta.app.inspect?Vn.constants.CBC:Vn.constants.ECB;og.generateKeyPair();function il(n,t,e={}){const r=Pf(Tf),i=e.mode||Of;e=i===Vn.constants.ECB?Lt({mode:i,inputEncoding:"utf8",outputEncoding:"hex"},e):Lt({iv:Mf,mode:i,inputEncoding:"utf8",outputEncoding:"hex"},e);let s="";try{s=Vn.encrypt(n,r,e)}catch(o){console.log("err: ",o)}return s}function sl(n,t,e={}){const r=Pf(Tf),i=e.mode||Of;return e=i===Vn.constants.ECB?Lt({mode:i,inputEncoding:"hex",outputEncoding:"utf8"},e):Lt({iv:Mf,mode:i,inputEncoding:"hex",outputEncoding:"utf8"},e),Vn.decrypt(n,r,e)}function Pf(n){return[...n].map(t=>t.charCodeAt().toString(16)).join("")}const tc={getLocal:n=>{try{let t=window.localStorage.getItem(n);return t=t!==null?sl(t):t,JSON.parse(t)}catch(t){console.error(t)}},setLocal:(n,t)=>{try{let e=JSON.stringify(t);e=e!==null?il(e):e,window.localStorage.setItem(n,e)}catch(e){console.error(e)}},eachLocal:n=>{if(!n||eu(n)!=="Function")return console.error("传递参数非函数类型!");for(let t=0,e=window.localStorage.length;t<e;t++){const r=window.localStorage.key(t);n((void 0).getLocal(r),r)}},clearLocal:()=>{window.localStorage.clear()},removeLocal:n=>{window.localStorage.removeItem(n)},getSession:n=>{try{let t=window.sessionStorage.getItem(n);return t=t!==null?sl(t):t,JSON.parse(t)}catch(t){console.error(t)}},setSession:(n,t)=>{try{let e=JSON.stringify(t);e=e!==null?il(e):e,window.sessionStorage.setItem(n,e)}catch(e){console.error(e)}},eachSession:n=>{if(!n||eu(n)!=="Function")return console.error("传递参数非函数类型!");for(let t=0,e=window.sessionStorage.length;t<e;t++){const r=window.sessionStorage.key(t);n((void 0).getSession(r),r)}},clearSession:()=>{window.sessionStorage.clear()},removeSession:n=>{window.sessionStorage.removeItem(n)}},$2="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",ol="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",H2="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";/**
|
|
41
|
-
|
|
42
|
-
* Copyright 2010-2025 Three.js Authors
|
|
43
|
-
* SPDX-License-Identifier: MIT
|
|
44
|
-
*/const zf="180",_0=0,kf=1,al=1,cl=100,ul=204,ll=205,hl=3,Nf=0,Lf=300,fl=1e3,rs=1001,dl=1002,pl=1003,q2=1006,W2=1008,Uf=1009,$f=1015,V2=1023,j2=1028,Hf=0,qf="",He="srgb",xl="srgb-linear",ml="linear",Oa="srgb",En=7680,yl=519,gl=35044,Xr=2e3,C0=2001;class ro{addEventListener(t,e){this._listeners===void 0&&(this._listeners={});const r=this._listeners;r[t]===void 0&&(r[t]=[]),r[t].indexOf(e)===-1&&r[t].push(e)}hasEventListener(t,e){const r=this._listeners;return r===void 0?!1:r[t]!==void 0&&r[t].indexOf(e)!==-1}removeEventListener(t,e){const r=this._listeners;if(r===void 0)return;const i=r[t];if(i!==void 0){const s=i.indexOf(e);s!==-1&&i.splice(s,1)}}dispatchEvent(t){const e=this._listeners;if(e===void 0)return;const r=e[t.type];if(r!==void 0){t.target=this;const i=r.slice(0);for(let s=0,o=i.length;s<o;s++)i[s].call(this,t);t.target=null}}}const ue=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"],Pa=Math.PI/180,vl=180/Math.PI;function ki(){const n=Math.random()*4294967295|0,t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return(ue[n&255]+ue[n>>8&255]+ue[n>>16&255]+ue[n>>24&255]+"-"+ue[t&255]+ue[t>>8&255]+"-"+ue[t>>16&15|64]+ue[t>>24&255]+"-"+ue[e&63|128]+ue[e>>8&255]+"-"+ue[e>>16&255]+ue[e>>24&255]+ue[r&255]+ue[r>>8&255]+ue[r>>16&255]+ue[r>>24&255]).toLowerCase()}function Tt(n,t,e){return Math.max(t,Math.min(e,n))}function G2(n,t){return(n%t+t)%t}function za(n,t,e){return(1-e)*n+e*t}function oi(n,t){switch(t.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function me(n,t){switch(t.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}class Qt{constructor(t=0,e=0){Qt.prototype.isVector2=!0,this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,r=this.y,i=t.elements;return this.x=i[0]*e+i[3]*r+i[6],this.y=i[1]*e+i[4]*r+i[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Tt(this.x,t.x,e.x),this.y=Tt(this.y,t.y,e.y),this}clampScalar(t,e){return this.x=Tt(this.x,t,e),this.y=Tt(this.y,t,e),this}clampLength(t,e){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Tt(r,t,e))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;const r=this.dot(t)/e;return Math.acos(Tt(r,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,r=this.y-t.y;return e*e+r*r}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,r){return this.x=t.x+(e.x-t.x)*r,this.y=t.y+(e.y-t.y)*r,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const r=Math.cos(e),i=Math.sin(e),s=this.x-t.x,o=this.y-t.y;return this.x=s*r-o*i+t.x,this.y=s*i+o*r+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Ni{constructor(t=0,e=0,r=0,i=1){this.isQuaternion=!0,this._x=t,this._y=e,this._z=r,this._w=i}static slerpFlat(t,e,r,i,s,o,a){let u=r[i+0],c=r[i+1],l=r[i+2],f=r[i+3];const h=s[o+0],p=s[o+1],x=s[o+2],y=s[o+3];if(a===0){t[e+0]=u,t[e+1]=c,t[e+2]=l,t[e+3]=f;return}if(a===1){t[e+0]=h,t[e+1]=p,t[e+2]=x,t[e+3]=y;return}if(f!==y||u!==h||c!==p||l!==x){let g=1-a;const A=u*h+c*p+l*x+f*y,w=A>=0?1:-1,E=1-A*A;if(E>Number.EPSILON){const C=Math.sqrt(E),T=Math.atan2(C,A*w);g=Math.sin(g*T)/C,a=Math.sin(a*T)/C}const _=a*w;if(u=u*g+h*_,c=c*g+p*_,l=l*g+x*_,f=f*g+y*_,g===1-a){const C=1/Math.sqrt(u*u+c*c+l*l+f*f);u*=C,c*=C,l*=C,f*=C}}t[e]=u,t[e+1]=c,t[e+2]=l,t[e+3]=f}static multiplyQuaternionsFlat(t,e,r,i,s,o){const a=r[i],u=r[i+1],c=r[i+2],l=r[i+3],f=s[o],h=s[o+1],p=s[o+2],x=s[o+3];return t[e]=a*x+l*f+u*p-c*h,t[e+1]=u*x+l*h+c*f-a*p,t[e+2]=c*x+l*p+a*h-u*f,t[e+3]=l*x-a*f-u*h-c*p,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,r,i){return this._x=t,this._y=e,this._z=r,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e=!0){const r=t._x,i=t._y,s=t._z,o=t._order,a=Math.cos,u=Math.sin,c=a(r/2),l=a(i/2),f=a(s/2),h=u(r/2),p=u(i/2),x=u(s/2);switch(o){case"XYZ":this._x=h*l*f+c*p*x,this._y=c*p*f-h*l*x,this._z=c*l*x+h*p*f,this._w=c*l*f-h*p*x;break;case"YXZ":this._x=h*l*f+c*p*x,this._y=c*p*f-h*l*x,this._z=c*l*x-h*p*f,this._w=c*l*f+h*p*x;break;case"ZXY":this._x=h*l*f-c*p*x,this._y=c*p*f+h*l*x,this._z=c*l*x+h*p*f,this._w=c*l*f-h*p*x;break;case"ZYX":this._x=h*l*f-c*p*x,this._y=c*p*f+h*l*x,this._z=c*l*x-h*p*f,this._w=c*l*f+h*p*x;break;case"YZX":this._x=h*l*f+c*p*x,this._y=c*p*f+h*l*x,this._z=c*l*x-h*p*f,this._w=c*l*f-h*p*x;break;case"XZY":this._x=h*l*f-c*p*x,this._y=c*p*f-h*l*x,this._z=c*l*x+h*p*f,this._w=c*l*f+h*p*x;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return e===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const r=e/2,i=Math.sin(r);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(r),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,r=e[0],i=e[4],s=e[8],o=e[1],a=e[5],u=e[9],c=e[2],l=e[6],f=e[10],h=r+a+f;if(h>0){const p=.5/Math.sqrt(h+1);this._w=.25/p,this._x=(l-u)*p,this._y=(s-c)*p,this._z=(o-i)*p}else if(r>a&&r>f){const p=2*Math.sqrt(1+r-a-f);this._w=(l-u)/p,this._x=.25*p,this._y=(i+o)/p,this._z=(s+c)/p}else if(a>f){const p=2*Math.sqrt(1+a-r-f);this._w=(s-c)/p,this._x=(i+o)/p,this._y=.25*p,this._z=(u+l)/p}else{const p=2*Math.sqrt(1+f-r-a);this._w=(o-i)/p,this._x=(s+c)/p,this._y=(u+l)/p,this._z=.25*p}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let r=t.dot(e)+1;return r<1e-8?(r=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=r):(this._x=0,this._y=-t.z,this._z=t.y,this._w=r)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=r),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Tt(this.dot(t),-1,1)))}rotateTowards(t,e){const r=this.angleTo(t);if(r===0)return this;const i=Math.min(1,e/r);return this.slerp(t,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const r=t._x,i=t._y,s=t._z,o=t._w,a=e._x,u=e._y,c=e._z,l=e._w;return this._x=r*l+o*a+i*c-s*u,this._y=i*l+o*u+s*a-r*c,this._z=s*l+o*c+r*u-i*a,this._w=o*l-r*a-i*u-s*c,this._onChangeCallback(),this}slerp(t,e){if(e===0)return this;if(e===1)return this.copy(t);const r=this._x,i=this._y,s=this._z,o=this._w;let a=o*t._w+r*t._x+i*t._y+s*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=o,this._x=r,this._y=i,this._z=s,this;const u=1-a*a;if(u<=Number.EPSILON){const p=1-e;return this._w=p*o+e*this._w,this._x=p*r+e*this._x,this._y=p*i+e*this._y,this._z=p*s+e*this._z,this.normalize(),this}const c=Math.sqrt(u),l=Math.atan2(c,a),f=Math.sin((1-e)*l)/c,h=Math.sin(e*l)/c;return this._w=o*f+this._w*h,this._x=r*f+this._x*h,this._y=i*f+this._y*h,this._z=s*f+this._z*h,this._onChangeCallback(),this}slerpQuaternions(t,e,r){return this.copy(t).slerp(e,r)}random(){const t=2*Math.PI*Math.random(),e=2*Math.PI*Math.random(),r=Math.random(),i=Math.sqrt(1-r),s=Math.sqrt(r);return this.set(i*Math.sin(t),i*Math.cos(t),s*Math.sin(e),s*Math.cos(e))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class rt{constructor(t=0,e=0,r=0){rt.prototype.isVector3=!0,this.x=t,this.y=e,this.z=r}set(t,e,r){return r===void 0&&(r=this.z),this.x=t,this.y=e,this.z=r,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return this.applyQuaternion(wl.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(wl.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,r=this.y,i=this.z,s=t.elements;return this.x=s[0]*e+s[3]*r+s[6]*i,this.y=s[1]*e+s[4]*r+s[7]*i,this.z=s[2]*e+s[5]*r+s[8]*i,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,r=this.y,i=this.z,s=t.elements,o=1/(s[3]*e+s[7]*r+s[11]*i+s[15]);return this.x=(s[0]*e+s[4]*r+s[8]*i+s[12])*o,this.y=(s[1]*e+s[5]*r+s[9]*i+s[13])*o,this.z=(s[2]*e+s[6]*r+s[10]*i+s[14])*o,this}applyQuaternion(t){const e=this.x,r=this.y,i=this.z,s=t.x,o=t.y,a=t.z,u=t.w,c=2*(o*i-a*r),l=2*(a*e-s*i),f=2*(s*r-o*e);return this.x=e+u*c+o*f-a*l,this.y=r+u*l+a*c-s*f,this.z=i+u*f+s*l-o*c,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,r=this.y,i=this.z,s=t.elements;return this.x=s[0]*e+s[4]*r+s[8]*i,this.y=s[1]*e+s[5]*r+s[9]*i,this.z=s[2]*e+s[6]*r+s[10]*i,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Tt(this.x,t.x,e.x),this.y=Tt(this.y,t.y,e.y),this.z=Tt(this.z,t.z,e.z),this}clampScalar(t,e){return this.x=Tt(this.x,t,e),this.y=Tt(this.y,t,e),this.z=Tt(this.z,t,e),this}clampLength(t,e){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Tt(r,t,e))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,r){return this.x=t.x+(e.x-t.x)*r,this.y=t.y+(e.y-t.y)*r,this.z=t.z+(e.z-t.z)*r,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,e){const r=t.x,i=t.y,s=t.z,o=e.x,a=e.y,u=e.z;return this.x=i*u-s*a,this.y=s*o-r*u,this.z=r*a-i*o,this}projectOnVector(t){const e=t.lengthSq();if(e===0)return this.set(0,0,0);const r=t.dot(this)/e;return this.copy(t).multiplyScalar(r)}projectOnPlane(t){return ka.copy(this).projectOnVector(t),this.sub(ka)}reflect(t){return this.sub(ka.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;const r=this.dot(t)/e;return Math.acos(Tt(r,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,r=this.y-t.y,i=this.z-t.z;return e*e+r*r+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,r){const i=Math.sin(e)*t;return this.x=i*Math.sin(r),this.y=Math.cos(e)*t,this.z=i*Math.cos(r),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,r){return this.x=t*Math.sin(e),this.y=r,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),r=this.setFromMatrixColumn(t,1).length(),i=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=r,this.z=i,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,e*4)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,e*3)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=Math.random()*Math.PI*2,e=Math.random()*2-1,r=Math.sqrt(1-e*e);return this.x=r*Math.cos(t),this.y=e,this.z=r*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const ka=new rt,wl=new Ni;class yr{constructor(t,e,r,i,s,o,a,u,c){yr.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],t!==void 0&&this.set(t,e,r,i,s,o,a,u,c)}set(t,e,r,i,s,o,a,u,c){const l=this.elements;return l[0]=t,l[1]=i,l[2]=a,l[3]=e,l[4]=s,l[5]=u,l[6]=r,l[7]=o,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const e=this.elements,r=t.elements;return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],this}extractBasis(t,e,r){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),r.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const r=t.elements,i=e.elements,s=this.elements,o=r[0],a=r[3],u=r[6],c=r[1],l=r[4],f=r[7],h=r[2],p=r[5],x=r[8],y=i[0],g=i[3],A=i[6],w=i[1],E=i[4],_=i[7],C=i[2],T=i[5],R=i[8];return s[0]=o*y+a*w+u*C,s[3]=o*g+a*E+u*T,s[6]=o*A+a*_+u*R,s[1]=c*y+l*w+f*C,s[4]=c*g+l*E+f*T,s[7]=c*A+l*_+f*R,s[2]=h*y+p*w+x*C,s[5]=h*g+p*E+x*T,s[8]=h*A+p*_+x*R,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){const t=this.elements,e=t[0],r=t[1],i=t[2],s=t[3],o=t[4],a=t[5],u=t[6],c=t[7],l=t[8];return e*o*l-e*a*c-r*s*l+r*a*u+i*s*c-i*o*u}invert(){const t=this.elements,e=t[0],r=t[1],i=t[2],s=t[3],o=t[4],a=t[5],u=t[6],c=t[7],l=t[8],f=l*o-a*c,h=a*u-l*s,p=c*s-o*u,x=e*f+r*h+i*p;if(x===0)return this.set(0,0,0,0,0,0,0,0,0);const y=1/x;return t[0]=f*y,t[1]=(i*c-l*r)*y,t[2]=(a*r-i*o)*y,t[3]=h*y,t[4]=(l*e-i*u)*y,t[5]=(i*s-a*e)*y,t[6]=p*y,t[7]=(r*u-c*e)*y,t[8]=(o*e-r*s)*y,this}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,r,i,s,o,a){const u=Math.cos(s),c=Math.sin(s);return this.set(r*u,r*c,-r*(u*o+c*a)+o+t,-i*c,i*u,-i*(-c*o+u*a)+a+e,0,0,1),this}scale(t,e){return this.premultiply(Na.makeScale(t,e)),this}rotate(t){return this.premultiply(Na.makeRotation(-t)),this}translate(t,e){return this.premultiply(Na.makeTranslation(t,e)),this}makeTranslation(t,e){return t.isVector2?this.set(1,0,t.x,0,1,t.y,0,0,1):this.set(1,0,t,0,1,e,0,0,1),this}makeRotation(t){const e=Math.cos(t),r=Math.sin(t);return this.set(e,-r,0,r,e,0,0,0,1),this}makeScale(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}equals(t){const e=this.elements,r=t.elements;for(let i=0;i<9;i++)if(e[i]!==r[i])return!1;return!0}fromArray(t,e=0){for(let r=0;r<9;r++)this.elements[r]=t[r+e];return this}toArray(t=[],e=0){const r=this.elements;return t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=r[3],t[e+4]=r[4],t[e+5]=r[5],t[e+6]=r[6],t[e+7]=r[7],t[e+8]=r[8],t}clone(){return new this.constructor().fromArray(this.elements)}}const Na=new yr;function X2(n){for(let t=n.length-1;t>=0;--t)if(n[t]>=65535)return!0;return!1}function El(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}const bl={};function Al(n){n in bl||(bl[n]=!0,console.warn(n))}const _l=new yr().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),Cl=new yr().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function Y2(){const n={enabled:!0,workingColorSpace:xl,spaces:{},convert:function(i,s,o){return this.enabled===!1||s===o||!s||!o||(this.spaces[s].transfer===Oa&&(i.r=pr(i.r),i.g=pr(i.g),i.b=pr(i.b)),this.spaces[s].primaries!==this.spaces[o].primaries&&(i.applyMatrix3(this.spaces[s].toXYZ),i.applyMatrix3(this.spaces[o].fromXYZ)),this.spaces[o].transfer===Oa&&(i.r=$n(i.r),i.g=$n(i.g),i.b=$n(i.b))),i},workingToColorSpace:function(i,s){return this.convert(i,this.workingColorSpace,s)},colorSpaceToWorking:function(i,s){return this.convert(i,s,this.workingColorSpace)},getPrimaries:function(i){return this.spaces[i].primaries},getTransfer:function(i){return i===qf?ml:this.spaces[i].transfer},getToneMappingMode:function(i){return this.spaces[i].outputColorSpaceConfig.toneMappingMode||"standard"},getLuminanceCoefficients:function(i,s=this.workingColorSpace){return i.fromArray(this.spaces[s].luminanceCoefficients)},define:function(i){Object.assign(this.spaces,i)},_getMatrix:function(i,s,o){return i.copy(this.spaces[s].toXYZ).multiply(this.spaces[o].fromXYZ)},_getDrawingBufferColorSpace:function(i){return this.spaces[i].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(i=this.workingColorSpace){return this.spaces[i].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(i,s){return Al("THREE.ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."),n.workingToColorSpace(i,s)},toWorkingColorSpace:function(i,s){return Al("THREE.ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."),n.colorSpaceToWorking(i,s)}},t=[.64,.33,.3,.6,.15,.06],e=[.2126,.7152,.0722],r=[.3127,.329];return n.define({[xl]:{primaries:t,whitePoint:r,transfer:ml,toXYZ:_l,fromXYZ:Cl,luminanceCoefficients:e,workingColorSpaceConfig:{unpackColorSpace:He},outputColorSpaceConfig:{drawingBufferColorSpace:He}},[He]:{primaries:t,whitePoint:r,transfer:Oa,toXYZ:_l,fromXYZ:Cl,luminanceCoefficients:e,outputColorSpaceConfig:{drawingBufferColorSpace:He}}}),n}const ke=Y2();function pr(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function $n(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let bn;class K2{static getDataURL(t,e="image/png"){if(/^data:/i.test(t.src)||typeof HTMLCanvasElement=="undefined")return t.src;let r;if(t instanceof HTMLCanvasElement)r=t;else{bn===void 0&&(bn=El("canvas")),bn.width=t.width,bn.height=t.height;const i=bn.getContext("2d");t instanceof ImageData?i.putImageData(t,0,0):i.drawImage(t,0,0,t.width,t.height),r=bn}return r.toDataURL(e)}static sRGBToLinear(t){if(typeof HTMLImageElement!="undefined"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement!="undefined"&&t instanceof HTMLCanvasElement||typeof ImageBitmap!="undefined"&&t instanceof ImageBitmap){const e=El("canvas");e.width=t.width,e.height=t.height;const r=e.getContext("2d");r.drawImage(t,0,0,t.width,t.height);const i=r.getImageData(0,0,t.width,t.height),s=i.data;for(let o=0;o<s.length;o++)s[o]=pr(s[o]/255)*255;return r.putImageData(i,0,0),e}else if(t.data){const e=t.data.slice(0);for(let r=0;r<e.length;r++)e instanceof Uint8Array||e instanceof Uint8ClampedArray?e[r]=Math.floor(pr(e[r]/255)*255):e[r]=pr(e[r]);return{data:e,width:t.width,height:t.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),t}}let J2=0;class Z2{constructor(t=null){this.isSource=!0,Object.defineProperty(this,"id",{value:J2++}),this.uuid=ki(),this.data=t,this.dataReady=!0,this.version=0}getSize(t){const e=this.data;return typeof HTMLVideoElement!="undefined"&&e instanceof HTMLVideoElement?t.set(e.videoWidth,e.videoHeight,0):e instanceof VideoFrame?t.set(e.displayHeight,e.displayWidth,0):e!==null?t.set(e.width,e.height,e.depth||0):t.set(0,0,0),t}set needsUpdate(t){t===!0&&this.version++}toJSON(t){const e=t===void 0||typeof t=="string";if(!e&&t.images[this.uuid]!==void 0)return t.images[this.uuid];const r={uuid:this.uuid,url:""},i=this.data;if(i!==null){let s;if(Array.isArray(i)){s=[];for(let o=0,a=i.length;o<a;o++)i[o].isDataTexture?s.push(La(i[o].image)):s.push(La(i[o]))}else s=La(i);r.url=s}return e||(t.images[this.uuid]=r),r}}function La(n){return typeof HTMLImageElement!="undefined"&&n instanceof HTMLImageElement||typeof HTMLCanvasElement!="undefined"&&n instanceof HTMLCanvasElement||typeof ImageBitmap!="undefined"&&n instanceof ImageBitmap?K2.getDataURL(n):n.data?{data:Array.from(n.data),width:n.width,height:n.height,type:n.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let Q2=0;const Ua=new rt;class Tr extends ro{constructor(t=Tr.DEFAULT_IMAGE,e=Tr.DEFAULT_MAPPING,r=rs,i=rs,s=q2,o=W2,a=V2,u=Uf,c=Tr.DEFAULT_ANISOTROPY,l=qf){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:Q2++}),this.uuid=ki(),this.name="",this.source=new Z2(t),this.mipmaps=[],this.mapping=e,this.channel=0,this.wrapS=r,this.wrapT=i,this.magFilter=s,this.minFilter=o,this.anisotropy=c,this.format=a,this.internalFormat=null,this.type=u,this.offset=new Qt(0,0),this.repeat=new Qt(1,1),this.center=new Qt(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new yr,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=l,this.userData={},this.updateRanges=[],this.version=0,this.onUpdate=null,this.renderTarget=null,this.isRenderTargetTexture=!1,this.isArrayTexture=!!(t&&t.depth&&t.depth>1),this.pmremVersion=0}get width(){return this.source.getSize(Ua).x}get height(){return this.source.getSize(Ua).y}get depth(){return this.source.getSize(Ua).z}get image(){return this.source.data}set image(t=null){this.source.data=t}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(t,e){this.updateRanges.push({start:t,count:e})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(t){return this.name=t.name,this.source=t.source,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.channel=t.channel,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.colorSpace=t.colorSpace,this.renderTarget=t.renderTarget,this.isRenderTargetTexture=t.isRenderTargetTexture,this.isArrayTexture=t.isArrayTexture,this.userData=JSON.parse(JSON.stringify(t.userData)),this.needsUpdate=!0,this}setValues(t){for(const e in t){const r=t[e];if(r===void 0){console.warn(`THREE.Texture.setValues(): parameter '${e}' has value of undefined.`);continue}const i=this[e];if(i===void 0){console.warn(`THREE.Texture.setValues(): property '${e}' does not exist.`);continue}i&&r&&i.isVector2&&r.isVector2||i&&r&&i.isVector3&&r.isVector3||i&&r&&i.isMatrix3&&r.isMatrix3?i.copy(r):this[e]=r}}toJSON(t){const e=t===void 0||typeof t=="string";if(!e&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];const r={metadata:{version:4.7,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(t).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(r.userData=this.userData),e||(t.textures[this.uuid]=r),r}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==Lf)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case fl:t.x=t.x-Math.floor(t.x);break;case rs:t.x=t.x<0?0:1;break;case dl:Math.abs(Math.floor(t.x)%2)===1?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);break}if(t.y<0||t.y>1)switch(this.wrapT){case fl:t.y=t.y-Math.floor(t.y);break;case rs:t.y=t.y<0?0:1;break;case dl:Math.abs(Math.floor(t.y)%2)===1?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);break}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){t===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(t){t===!0&&this.pmremVersion++}}Tr.DEFAULT_IMAGE=null;Tr.DEFAULT_MAPPING=Lf;Tr.DEFAULT_ANISOTROPY=1;class Te{constructor(t=0,e=0,r=0,i=1){Te.prototype.isVector4=!0,this.x=t,this.y=e,this.z=r,this.w=i}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,r,i){return this.x=t,this.y=e,this.z=r,this.w=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w!==void 0?t.w:1,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const e=this.x,r=this.y,i=this.z,s=this.w,o=t.elements;return this.x=o[0]*e+o[4]*r+o[8]*i+o[12]*s,this.y=o[1]*e+o[5]*r+o[9]*i+o[13]*s,this.z=o[2]*e+o[6]*r+o[10]*i+o[14]*s,this.w=o[3]*e+o[7]*r+o[11]*i+o[15]*s,this}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this.w/=t.w,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,r,i,s;const u=t.elements,c=u[0],l=u[4],f=u[8],h=u[1],p=u[5],x=u[9],y=u[2],g=u[6],A=u[10];if(Math.abs(l-h)<.01&&Math.abs(f-y)<.01&&Math.abs(x-g)<.01){if(Math.abs(l+h)<.1&&Math.abs(f+y)<.1&&Math.abs(x+g)<.1&&Math.abs(c+p+A-3)<.1)return this.set(1,0,0,0),this;e=Math.PI;const E=(c+1)/2,_=(p+1)/2,C=(A+1)/2,T=(l+h)/4,R=(f+y)/4,N=(x+g)/4;return E>_&&E>C?E<.01?(r=0,i=.707106781,s=.707106781):(r=Math.sqrt(E),i=T/r,s=R/r):_>C?_<.01?(r=.707106781,i=0,s=.707106781):(i=Math.sqrt(_),r=T/i,s=N/i):C<.01?(r=.707106781,i=.707106781,s=0):(s=Math.sqrt(C),r=R/s,i=N/s),this.set(r,i,s,e),this}let w=Math.sqrt((g-x)*(g-x)+(f-y)*(f-y)+(h-l)*(h-l));return Math.abs(w)<.001&&(w=1),this.x=(g-x)/w,this.y=(f-y)/w,this.z=(h-l)/w,this.w=Math.acos((c+p+A-1)/2),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this.w=e[15],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this}clamp(t,e){return this.x=Tt(this.x,t.x,e.x),this.y=Tt(this.y,t.y,e.y),this.z=Tt(this.z,t.z,e.z),this.w=Tt(this.w,t.w,e.w),this}clampScalar(t,e){return this.x=Tt(this.x,t,e),this.y=Tt(this.y,t,e),this.z=Tt(this.z,t,e),this.w=Tt(this.w,t,e),this}clampLength(t,e){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Tt(r,t,e))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this}lerpVectors(t,e,r){return this.x=t.x+(e.x-t.x)*r,this.y=t.y+(e.y-t.y)*r,this.z=t.z+(e.z-t.z)*r,this.w=t.w+(e.w-t.w)*r,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class on{constructor(t=new rt(1/0,1/0,1/0),e=new rt(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){this.makeEmpty();for(let e=0,r=t.length;e<r;e+=3)this.expandByPoint(Ne.fromArray(t,e));return this}setFromBufferAttribute(t){this.makeEmpty();for(let e=0,r=t.count;e<r;e++)this.expandByPoint(Ne.fromBufferAttribute(t,e));return this}setFromPoints(t){this.makeEmpty();for(let e=0,r=t.length;e<r;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const r=Ne.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(r),this.max.copy(t).add(r),this}setFromObject(t,e=!1){return this.makeEmpty(),this.expandByObject(t,e)}clone(){return new this.constructor().copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(t){return this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}expandByObject(t,e=!1){t.updateWorldMatrix(!1,!1);const r=t.geometry;if(r!==void 0){const s=r.getAttribute("position");if(e===!0&&s!==void 0&&t.isInstancedMesh!==!0)for(let o=0,a=s.count;o<a;o++)t.isMesh===!0?t.getVertexPosition(o,Ne):Ne.fromBufferAttribute(s,o),Ne.applyMatrix4(t.matrixWorld),this.expandByPoint(Ne);else t.boundingBox!==void 0?(t.boundingBox===null&&t.computeBoundingBox(),ns.copy(t.boundingBox)):(r.boundingBox===null&&r.computeBoundingBox(),ns.copy(r.boundingBox)),ns.applyMatrix4(t.matrixWorld),this.union(ns)}const i=t.children;for(let s=0,o=i.length;s<o;s++)this.expandByObject(i[s],e);return this}containsPoint(t){return t.x>=this.min.x&&t.x<=this.max.x&&t.y>=this.min.y&&t.y<=this.max.y&&t.z>=this.min.z&&t.z<=this.max.z}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return t.max.x>=this.min.x&&t.min.x<=this.max.x&&t.max.y>=this.min.y&&t.min.y<=this.max.y&&t.max.z>=this.min.z&&t.min.z<=this.max.z}intersectsSphere(t){return this.clampPoint(t.center,Ne),Ne.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,r;return t.normal.x>0?(e=t.normal.x*this.min.x,r=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,r=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,r+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,r+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,r+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,r+=t.normal.z*this.min.z),e<=-t.constant&&r>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(ai),is.subVectors(this.max,ai),An.subVectors(t.a,ai),_n.subVectors(t.b,ai),Cn.subVectors(t.c,ai),Er.subVectors(_n,An),br.subVectors(Cn,_n),$r.subVectors(An,Cn);let e=[0,-Er.z,Er.y,0,-br.z,br.y,0,-$r.z,$r.y,Er.z,0,-Er.x,br.z,0,-br.x,$r.z,0,-$r.x,-Er.y,Er.x,0,-br.y,br.x,0,-$r.y,$r.x,0];return!$a(e,An,_n,Cn,is)||(e=[1,0,0,0,1,0,0,0,1],!$a(e,An,_n,Cn,is))?!1:(ss.crossVectors(Er,br),e=[ss.x,ss.y,ss.z],$a(e,An,_n,Cn,is))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,Ne).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=this.getSize(Ne).length()*.5),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()?this:(or[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),or[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),or[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),or[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),or[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),or[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),or[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),or[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(or),this)}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(t){return this.min.fromArray(t.min),this.max.fromArray(t.max),this}}const or=[new rt,new rt,new rt,new rt,new rt,new rt,new rt,new rt],Ne=new rt,ns=new on,An=new rt,_n=new rt,Cn=new rt,Er=new rt,br=new rt,$r=new rt,ai=new rt,is=new rt,ss=new rt,Hr=new rt;function $a(n,t,e,r,i){for(let s=0,o=n.length-3;s<=o;s+=3){Hr.fromArray(n,s);const a=i.x*Math.abs(Hr.x)+i.y*Math.abs(Hr.y)+i.z*Math.abs(Hr.z),u=t.dot(Hr),c=e.dot(Hr),l=r.dot(Hr);if(Math.max(-Math.max(u,c,l),Math.min(u,c,l))>a)return!1}return!0}const tv=new on,ci=new rt,Ha=new rt;class Li{constructor(t=new rt,e=-1){this.isSphere=!0,this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){const r=this.center;e!==void 0?r.copy(e):tv.setFromPoints(t).getCenter(r);let i=0;for(let s=0,o=t.length;s<o;s++)i=Math.max(i,r.distanceToSquared(t[s]));return this.radius=Math.sqrt(i),this}copy(t){return this.center.copy(t.center),this.radius=t.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(t){return t.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(t){return t.distanceTo(this.center)-this.radius}intersectsSphere(t){const e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e}intersectsBox(t){return t.intersectsSphere(this)}intersectsPlane(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius}clampPoint(t,e){const r=this.center.distanceToSquared(t);return e.copy(t),r>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;ci.subVectors(t,this.center);const e=ci.lengthSq();if(e>this.radius*this.radius){const r=Math.sqrt(e),i=(r-this.radius)*.5;this.center.addScaledVector(ci,i/r),this.radius+=i}return this}union(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(this.center.equals(t.center)===!0?this.radius=Math.max(this.radius,t.radius):(Ha.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(ci.copy(t.center).add(Ha)),this.expandByPoint(ci.copy(t.center).sub(Ha))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(t){return this.radius=t.radius,this.center.fromArray(t.center),this}}const ar=new rt,qa=new rt,os=new rt,Ar=new rt,Wa=new rt,as=new rt,Va=new rt;class ev{constructor(t=new rt,e=new rt(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return e.copy(this.origin).addScaledVector(this.direction,t)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,ar)),this}closestPointToPoint(t,e){e.subVectors(t,this.origin);const r=e.dot(this.direction);return r<0?e.copy(this.origin):e.copy(this.origin).addScaledVector(this.direction,r)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const e=ar.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(ar.copy(this.origin).addScaledVector(this.direction,e),ar.distanceToSquared(t))}distanceSqToSegment(t,e,r,i){qa.copy(t).add(e).multiplyScalar(.5),os.copy(e).sub(t).normalize(),Ar.copy(this.origin).sub(qa);const s=t.distanceTo(e)*.5,o=-this.direction.dot(os),a=Ar.dot(this.direction),u=-Ar.dot(os),c=Ar.lengthSq(),l=Math.abs(1-o*o);let f,h,p,x;if(l>0)if(f=o*u-a,h=o*a-u,x=s*l,f>=0)if(h>=-x)if(h<=x){const y=1/l;f*=y,h*=y,p=f*(f+o*h+2*a)+h*(o*f+h+2*u)+c}else h=s,f=Math.max(0,-(o*h+a)),p=-f*f+h*(h+2*u)+c;else h=-s,f=Math.max(0,-(o*h+a)),p=-f*f+h*(h+2*u)+c;else h<=-x?(f=Math.max(0,-(-o*s+a)),h=f>0?-s:Math.min(Math.max(-s,-u),s),p=-f*f+h*(h+2*u)+c):h<=x?(f=0,h=Math.min(Math.max(-s,-u),s),p=h*(h+2*u)+c):(f=Math.max(0,-(o*s+a)),h=f>0?s:Math.min(Math.max(-s,-u),s),p=-f*f+h*(h+2*u)+c);else h=o>0?-s:s,f=Math.max(0,-(o*h+a)),p=-f*f+h*(h+2*u)+c;return r&&r.copy(this.origin).addScaledVector(this.direction,f),i&&i.copy(qa).addScaledVector(os,h),p}intersectSphere(t,e){ar.subVectors(t.center,this.origin);const r=ar.dot(this.direction),i=ar.dot(ar)-r*r,s=t.radius*t.radius;if(i>s)return null;const o=Math.sqrt(s-i),a=r-o,u=r+o;return u<0?null:a<0?this.at(u,e):this.at(a,e)}intersectsSphere(t){return t.radius<0?!1:this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const e=t.normal.dot(this.direction);if(e===0)return t.distanceToPoint(this.origin)===0?0:null;const r=-(this.origin.dot(t.normal)+t.constant)/e;return r>=0?r:null}intersectPlane(t,e){const r=this.distanceToPlane(t);return r===null?null:this.at(r,e)}intersectsPlane(t){const e=t.distanceToPoint(this.origin);return e===0||t.normal.dot(this.direction)*e<0}intersectBox(t,e){let r,i,s,o,a,u;const c=1/this.direction.x,l=1/this.direction.y,f=1/this.direction.z,h=this.origin;return c>=0?(r=(t.min.x-h.x)*c,i=(t.max.x-h.x)*c):(r=(t.max.x-h.x)*c,i=(t.min.x-h.x)*c),l>=0?(s=(t.min.y-h.y)*l,o=(t.max.y-h.y)*l):(s=(t.max.y-h.y)*l,o=(t.min.y-h.y)*l),r>o||s>i||((s>r||isNaN(r))&&(r=s),(o<i||isNaN(i))&&(i=o),f>=0?(a=(t.min.z-h.z)*f,u=(t.max.z-h.z)*f):(a=(t.max.z-h.z)*f,u=(t.min.z-h.z)*f),r>u||a>i)||((a>r||r!==r)&&(r=a),(u<i||i!==i)&&(i=u),i<0)?null:this.at(r>=0?r:i,e)}intersectsBox(t){return this.intersectBox(t,ar)!==null}intersectTriangle(t,e,r,i,s){Wa.subVectors(e,t),as.subVectors(r,t),Va.crossVectors(Wa,as);let o=this.direction.dot(Va),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;Ar.subVectors(this.origin,t);const u=a*this.direction.dot(as.crossVectors(Ar,as));if(u<0)return null;const c=a*this.direction.dot(Wa.cross(Ar));if(c<0||u+c>o)return null;const l=-a*Ar.dot(Va);return l<0?null:this.at(l/o,s)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Kt{constructor(t,e,r,i,s,o,a,u,c,l,f,h,p,x,y,g){Kt.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],t!==void 0&&this.set(t,e,r,i,s,o,a,u,c,l,f,h,p,x,y,g)}set(t,e,r,i,s,o,a,u,c,l,f,h,p,x,y,g){const A=this.elements;return A[0]=t,A[4]=e,A[8]=r,A[12]=i,A[1]=s,A[5]=o,A[9]=a,A[13]=u,A[2]=c,A[6]=l,A[10]=f,A[14]=h,A[3]=p,A[7]=x,A[11]=y,A[15]=g,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Kt().fromArray(this.elements)}copy(t){const e=this.elements,r=t.elements;return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],this}copyPosition(t){const e=this.elements,r=t.elements;return e[12]=r[12],e[13]=r[13],e[14]=r[14],this}setFromMatrix3(t){const e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,r){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),r.setFromMatrixColumn(this,2),this}makeBasis(t,e,r){return this.set(t.x,e.x,r.x,0,t.y,e.y,r.y,0,t.z,e.z,r.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,r=t.elements,i=1/Sn.setFromMatrixColumn(t,0).length(),s=1/Sn.setFromMatrixColumn(t,1).length(),o=1/Sn.setFromMatrixColumn(t,2).length();return e[0]=r[0]*i,e[1]=r[1]*i,e[2]=r[2]*i,e[3]=0,e[4]=r[4]*s,e[5]=r[5]*s,e[6]=r[6]*s,e[7]=0,e[8]=r[8]*o,e[9]=r[9]*o,e[10]=r[10]*o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){const e=this.elements,r=t.x,i=t.y,s=t.z,o=Math.cos(r),a=Math.sin(r),u=Math.cos(i),c=Math.sin(i),l=Math.cos(s),f=Math.sin(s);if(t.order==="XYZ"){const h=o*l,p=o*f,x=a*l,y=a*f;e[0]=u*l,e[4]=-u*f,e[8]=c,e[1]=p+x*c,e[5]=h-y*c,e[9]=-a*u,e[2]=y-h*c,e[6]=x+p*c,e[10]=o*u}else if(t.order==="YXZ"){const h=u*l,p=u*f,x=c*l,y=c*f;e[0]=h+y*a,e[4]=x*a-p,e[8]=o*c,e[1]=o*f,e[5]=o*l,e[9]=-a,e[2]=p*a-x,e[6]=y+h*a,e[10]=o*u}else if(t.order==="ZXY"){const h=u*l,p=u*f,x=c*l,y=c*f;e[0]=h-y*a,e[4]=-o*f,e[8]=x+p*a,e[1]=p+x*a,e[5]=o*l,e[9]=y-h*a,e[2]=-o*c,e[6]=a,e[10]=o*u}else if(t.order==="ZYX"){const h=o*l,p=o*f,x=a*l,y=a*f;e[0]=u*l,e[4]=x*c-p,e[8]=h*c+y,e[1]=u*f,e[5]=y*c+h,e[9]=p*c-x,e[2]=-c,e[6]=a*u,e[10]=o*u}else if(t.order==="YZX"){const h=o*u,p=o*c,x=a*u,y=a*c;e[0]=u*l,e[4]=y-h*f,e[8]=x*f+p,e[1]=f,e[5]=o*l,e[9]=-a*l,e[2]=-c*l,e[6]=p*f+x,e[10]=h-y*f}else if(t.order==="XZY"){const h=o*u,p=o*c,x=a*u,y=a*c;e[0]=u*l,e[4]=-f,e[8]=c*l,e[1]=h*f+y,e[5]=o*l,e[9]=p*f-x,e[2]=x*f-p,e[6]=a*l,e[10]=y*f+h}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(rv,t,nv)}lookAt(t,e,r){const i=this.elements;return Ae.subVectors(t,e),Ae.lengthSq()===0&&(Ae.z=1),Ae.normalize(),_r.crossVectors(r,Ae),_r.lengthSq()===0&&(Math.abs(r.z)===1?Ae.x+=1e-4:Ae.z+=1e-4,Ae.normalize(),_r.crossVectors(r,Ae)),_r.normalize(),cs.crossVectors(Ae,_r),i[0]=_r.x,i[4]=cs.x,i[8]=Ae.x,i[1]=_r.y,i[5]=cs.y,i[9]=Ae.y,i[2]=_r.z,i[6]=cs.z,i[10]=Ae.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const r=t.elements,i=e.elements,s=this.elements,o=r[0],a=r[4],u=r[8],c=r[12],l=r[1],f=r[5],h=r[9],p=r[13],x=r[2],y=r[6],g=r[10],A=r[14],w=r[3],E=r[7],_=r[11],C=r[15],T=i[0],R=i[4],N=i[8],Y=i[12],I=i[1],O=i[5],q=i[9],j=i[13],J=i[2],G=i[6],Q=i[10],ot=i[14],it=i[3],ut=i[7],at=i[11],U=i[15];return s[0]=o*T+a*I+u*J+c*it,s[4]=o*R+a*O+u*G+c*ut,s[8]=o*N+a*q+u*Q+c*at,s[12]=o*Y+a*j+u*ot+c*U,s[1]=l*T+f*I+h*J+p*it,s[5]=l*R+f*O+h*G+p*ut,s[9]=l*N+f*q+h*Q+p*at,s[13]=l*Y+f*j+h*ot+p*U,s[2]=x*T+y*I+g*J+A*it,s[6]=x*R+y*O+g*G+A*ut,s[10]=x*N+y*q+g*Q+A*at,s[14]=x*Y+y*j+g*ot+A*U,s[3]=w*T+E*I+_*J+C*it,s[7]=w*R+E*O+_*G+C*ut,s[11]=w*N+E*q+_*Q+C*at,s[15]=w*Y+E*j+_*ot+C*U,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],r=t[4],i=t[8],s=t[12],o=t[1],a=t[5],u=t[9],c=t[13],l=t[2],f=t[6],h=t[10],p=t[14],x=t[3],y=t[7],g=t[11],A=t[15];return x*(+s*u*f-i*c*f-s*a*h+r*c*h+i*a*p-r*u*p)+y*(+e*u*p-e*c*h+s*o*h-i*o*p+i*c*l-s*u*l)+g*(+e*c*f-e*a*p-s*o*f+r*o*p+s*a*l-r*c*l)+A*(-i*a*l-e*u*f+e*a*h+i*o*f-r*o*h+r*u*l)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,r){const i=this.elements;return t.isVector3?(i[12]=t.x,i[13]=t.y,i[14]=t.z):(i[12]=t,i[13]=e,i[14]=r),this}invert(){const t=this.elements,e=t[0],r=t[1],i=t[2],s=t[3],o=t[4],a=t[5],u=t[6],c=t[7],l=t[8],f=t[9],h=t[10],p=t[11],x=t[12],y=t[13],g=t[14],A=t[15],w=f*g*c-y*h*c+y*u*p-a*g*p-f*u*A+a*h*A,E=x*h*c-l*g*c-x*u*p+o*g*p+l*u*A-o*h*A,_=l*y*c-x*f*c+x*a*p-o*y*p-l*a*A+o*f*A,C=x*f*u-l*y*u-x*a*h+o*y*h+l*a*g-o*f*g,T=e*w+r*E+i*_+s*C;if(T===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const R=1/T;return t[0]=w*R,t[1]=(y*h*s-f*g*s-y*i*p+r*g*p+f*i*A-r*h*A)*R,t[2]=(a*g*s-y*u*s+y*i*c-r*g*c-a*i*A+r*u*A)*R,t[3]=(f*u*s-a*h*s-f*i*c+r*h*c+a*i*p-r*u*p)*R,t[4]=E*R,t[5]=(l*g*s-x*h*s+x*i*p-e*g*p-l*i*A+e*h*A)*R,t[6]=(x*u*s-o*g*s-x*i*c+e*g*c+o*i*A-e*u*A)*R,t[7]=(o*h*s-l*u*s+l*i*c-e*h*c-o*i*p+e*u*p)*R,t[8]=_*R,t[9]=(x*f*s-l*y*s-x*r*p+e*y*p+l*r*A-e*f*A)*R,t[10]=(o*y*s-x*a*s+x*r*c-e*y*c-o*r*A+e*a*A)*R,t[11]=(l*a*s-o*f*s-l*r*c+e*f*c+o*r*p-e*a*p)*R,t[12]=C*R,t[13]=(l*y*i-x*f*i+x*r*h-e*y*h-l*r*g+e*f*g)*R,t[14]=(x*a*i-o*y*i-x*r*u+e*y*u+o*r*g-e*a*g)*R,t[15]=(o*f*i-l*a*i+l*r*u-e*f*u-o*r*h+e*a*h)*R,this}scale(t){const e=this.elements,r=t.x,i=t.y,s=t.z;return e[0]*=r,e[4]*=i,e[8]*=s,e[1]*=r,e[5]*=i,e[9]*=s,e[2]*=r,e[6]*=i,e[10]*=s,e[3]*=r,e[7]*=i,e[11]*=s,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],i=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,r,i))}makeTranslation(t,e,r){return t.isVector3?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,e,0,0,1,r,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),r=Math.sin(t);return this.set(1,0,0,0,0,e,-r,0,0,r,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),r=Math.sin(t);return this.set(e,0,r,0,0,1,0,0,-r,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),r=Math.sin(t);return this.set(e,-r,0,0,r,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const r=Math.cos(e),i=Math.sin(e),s=1-r,o=t.x,a=t.y,u=t.z,c=s*o,l=s*a;return this.set(c*o+r,c*a-i*u,c*u+i*a,0,c*a+i*u,l*a+r,l*u-i*o,0,c*u-i*a,l*u+i*o,s*u*u+r,0,0,0,0,1),this}makeScale(t,e,r){return this.set(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1),this}makeShear(t,e,r,i,s,o){return this.set(1,r,s,0,t,1,o,0,e,i,1,0,0,0,0,1),this}compose(t,e,r){const i=this.elements,s=e._x,o=e._y,a=e._z,u=e._w,c=s+s,l=o+o,f=a+a,h=s*c,p=s*l,x=s*f,y=o*l,g=o*f,A=a*f,w=u*c,E=u*l,_=u*f,C=r.x,T=r.y,R=r.z;return i[0]=(1-(y+A))*C,i[1]=(p+_)*C,i[2]=(x-E)*C,i[3]=0,i[4]=(p-_)*T,i[5]=(1-(h+A))*T,i[6]=(g+w)*T,i[7]=0,i[8]=(x+E)*R,i[9]=(g-w)*R,i[10]=(1-(h+y))*R,i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,this}decompose(t,e,r){const i=this.elements;let s=Sn.set(i[0],i[1],i[2]).length();const o=Sn.set(i[4],i[5],i[6]).length(),a=Sn.set(i[8],i[9],i[10]).length();this.determinant()<0&&(s=-s),t.x=i[12],t.y=i[13],t.z=i[14],Le.copy(this);const c=1/s,l=1/o,f=1/a;return Le.elements[0]*=c,Le.elements[1]*=c,Le.elements[2]*=c,Le.elements[4]*=l,Le.elements[5]*=l,Le.elements[6]*=l,Le.elements[8]*=f,Le.elements[9]*=f,Le.elements[10]*=f,e.setFromRotationMatrix(Le),r.x=s,r.y=o,r.z=a,this}makePerspective(t,e,r,i,s,o,a=Xr,u=!1){const c=this.elements,l=2*s/(e-t),f=2*s/(r-i),h=(e+t)/(e-t),p=(r+i)/(r-i);let x,y;if(u)x=s/(o-s),y=o*s/(o-s);else if(a===Xr)x=-(o+s)/(o-s),y=-2*o*s/(o-s);else if(a===C0)x=-o/(o-s),y=-o*s/(o-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return c[0]=l,c[4]=0,c[8]=h,c[12]=0,c[1]=0,c[5]=f,c[9]=p,c[13]=0,c[2]=0,c[6]=0,c[10]=x,c[14]=y,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(t,e,r,i,s,o,a=Xr,u=!1){const c=this.elements,l=2/(e-t),f=2/(r-i),h=-(e+t)/(e-t),p=-(r+i)/(r-i);let x,y;if(u)x=1/(o-s),y=o/(o-s);else if(a===Xr)x=-2/(o-s),y=-(o+s)/(o-s);else if(a===C0)x=-1/(o-s),y=-s/(o-s);else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return c[0]=l,c[4]=0,c[8]=0,c[12]=h,c[1]=0,c[5]=f,c[9]=0,c[13]=p,c[2]=0,c[6]=0,c[10]=x,c[14]=y,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(t){const e=this.elements,r=t.elements;for(let i=0;i<16;i++)if(e[i]!==r[i])return!1;return!0}fromArray(t,e=0){for(let r=0;r<16;r++)this.elements[r]=t[r+e];return this}toArray(t=[],e=0){const r=this.elements;return t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=r[3],t[e+4]=r[4],t[e+5]=r[5],t[e+6]=r[6],t[e+7]=r[7],t[e+8]=r[8],t[e+9]=r[9],t[e+10]=r[10],t[e+11]=r[11],t[e+12]=r[12],t[e+13]=r[13],t[e+14]=r[14],t[e+15]=r[15],t}}const Sn=new rt,Le=new Kt,rv=new rt(0,0,0),nv=new rt(1,1,1),_r=new rt,cs=new rt,Ae=new rt,Sl=new Kt,Bl=new Ni;class xr{constructor(t=0,e=0,r=0,i=xr.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=e,this._z=r,this._order=i}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,r,i=this._order){return this._x=t,this._y=e,this._z=r,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e=this._order,r=!0){const i=t.elements,s=i[0],o=i[4],a=i[8],u=i[1],c=i[5],l=i[9],f=i[2],h=i[6],p=i[10];switch(e){case"XYZ":this._y=Math.asin(Tt(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-l,p),this._z=Math.atan2(-o,s)):(this._x=Math.atan2(h,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Tt(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(a,p),this._z=Math.atan2(u,c)):(this._y=Math.atan2(-f,s),this._z=0);break;case"ZXY":this._x=Math.asin(Tt(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-f,p),this._z=Math.atan2(-o,c)):(this._y=0,this._z=Math.atan2(u,s));break;case"ZYX":this._y=Math.asin(-Tt(f,-1,1)),Math.abs(f)<.9999999?(this._x=Math.atan2(h,p),this._z=Math.atan2(u,s)):(this._x=0,this._z=Math.atan2(-o,c));break;case"YZX":this._z=Math.asin(Tt(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(-l,c),this._y=Math.atan2(-f,s)):(this._x=0,this._y=Math.atan2(a,p));break;case"XZY":this._z=Math.asin(-Tt(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(h,c),this._y=Math.atan2(a,s)):(this._x=Math.atan2(-l,p),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,r===!0&&this._onChangeCallback(),this}setFromQuaternion(t,e,r){return Sl.makeRotationFromQuaternion(t),this.setFromRotationMatrix(Sl,e,r)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return Bl.setFromEuler(this),this.setFromQuaternion(Bl,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}xr.DEFAULT_ORDER="XYZ";class iv{constructor(){this.mask=1}set(t){this.mask=(1<<t|0)>>>0}enable(t){this.mask|=1<<t|0}enableAll(){this.mask=-1}toggle(t){this.mask^=1<<t|0}disable(t){this.mask&=~(1<<t|0)}disableAll(){this.mask=0}test(t){return(this.mask&t.mask)!==0}isEnabled(t){return(this.mask&(1<<t|0))!==0}}let sv=0;const Fl=new rt,Bn=new Ni,cr=new Kt,us=new rt,ui=new rt,ov=new rt,av=new Ni,Dl=new rt(1,0,0),Ml=new rt(0,1,0),Tl=new rt(0,0,1),Rl={type:"added"},cv={type:"removed"},Fn={type:"childadded",child:null},ja={type:"childremoved",child:null};class we extends ro{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:sv++}),this.uuid=ki(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=we.DEFAULT_UP.clone();const t=new rt,e=new xr,r=new Ni,i=new rt(1,1,1);function s(){r.setFromEuler(e,!1)}function o(){e.setFromQuaternion(r,void 0,!1)}e._onChange(s),r._onChange(o),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:r},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new Kt},normalMatrix:{value:new yr}}),this.matrix=new Kt,this.matrixWorld=new Kt,this.matrixAutoUpdate=we.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=we.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new iv,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.customDepthMaterial=void 0,this.customDistanceMaterial=void 0,this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(t){return this.quaternion.premultiply(t),this}setRotationFromAxisAngle(t,e){this.quaternion.setFromAxisAngle(t,e)}setRotationFromEuler(t){this.quaternion.setFromEuler(t,!0)}setRotationFromMatrix(t){this.quaternion.setFromRotationMatrix(t)}setRotationFromQuaternion(t){this.quaternion.copy(t)}rotateOnAxis(t,e){return Bn.setFromAxisAngle(t,e),this.quaternion.multiply(Bn),this}rotateOnWorldAxis(t,e){return Bn.setFromAxisAngle(t,e),this.quaternion.premultiply(Bn),this}rotateX(t){return this.rotateOnAxis(Dl,t)}rotateY(t){return this.rotateOnAxis(Ml,t)}rotateZ(t){return this.rotateOnAxis(Tl,t)}translateOnAxis(t,e){return Fl.copy(t).applyQuaternion(this.quaternion),this.position.add(Fl.multiplyScalar(e)),this}translateX(t){return this.translateOnAxis(Dl,t)}translateY(t){return this.translateOnAxis(Ml,t)}translateZ(t){return this.translateOnAxis(Tl,t)}localToWorld(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(this.matrixWorld)}worldToLocal(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(cr.copy(this.matrixWorld).invert())}lookAt(t,e,r){t.isVector3?us.copy(t):us.set(t,e,r);const i=this.parent;this.updateWorldMatrix(!0,!1),ui.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?cr.lookAt(ui,us,this.up):cr.lookAt(us,ui,this.up),this.quaternion.setFromRotationMatrix(cr),i&&(cr.extractRotation(i.matrixWorld),Bn.setFromRotationMatrix(cr),this.quaternion.premultiply(Bn.invert()))}add(t){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(t.removeFromParent(),t.parent=this,this.children.push(t),t.dispatchEvent(Rl),Fn.child=t,this.dispatchEvent(Fn),Fn.child=null):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)}remove(t){if(arguments.length>1){for(let r=0;r<arguments.length;r++)this.remove(arguments[r]);return this}const e=this.children.indexOf(t);return e!==-1&&(t.parent=null,this.children.splice(e,1),t.dispatchEvent(cv),ja.child=t,this.dispatchEvent(ja),ja.child=null),this}removeFromParent(){const t=this.parent;return t!==null&&t.remove(this),this}clear(){return this.remove(...this.children)}attach(t){return this.updateWorldMatrix(!0,!1),cr.copy(this.matrixWorld).invert(),t.parent!==null&&(t.parent.updateWorldMatrix(!0,!1),cr.multiply(t.parent.matrixWorld)),t.applyMatrix4(cr),t.removeFromParent(),t.parent=this,this.children.push(t),t.updateWorldMatrix(!1,!0),t.dispatchEvent(Rl),Fn.child=t,this.dispatchEvent(Fn),Fn.child=null,this}getObjectById(t){return this.getObjectByProperty("id",t)}getObjectByName(t){return this.getObjectByProperty("name",t)}getObjectByProperty(t,e){if(this[t]===e)return this;for(let r=0,i=this.children.length;r<i;r++){const o=this.children[r].getObjectByProperty(t,e);if(o!==void 0)return o}}getObjectsByProperty(t,e,r=[]){this[t]===e&&r.push(this);const i=this.children;for(let s=0,o=i.length;s<o;s++)i[s].getObjectsByProperty(t,e,r);return r}getWorldPosition(t){return this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ui,t,ov),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ui,av,t),t}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()}raycast(){}traverse(t){t(this);const e=this.children;for(let r=0,i=e.length;r<i;r++)e[r].traverse(t)}traverseVisible(t){if(this.visible===!1)return;t(this);const e=this.children;for(let r=0,i=e.length;r<i;r++)e[r].traverseVisible(t)}traverseAncestors(t){const e=this.parent;e!==null&&(t(e),e.traverseAncestors(t))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,t=!0);const e=this.children;for(let r=0,i=e.length;r<i;r++)e[r].updateMatrixWorld(t)}updateWorldMatrix(t,e){const r=this.parent;if(t===!0&&r!==null&&r.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),e===!0){const i=this.children;for(let s=0,o=i.length;s<o;s++)i[s].updateWorldMatrix(!1,!0)}}toJSON(t){const e=t===void 0||typeof t=="string",r={};e&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},r.metadata={version:4.7,type:"Object",generator:"Object3D.toJSON"});const i={};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.castShadow===!0&&(i.castShadow=!0),this.receiveShadow===!0&&(i.receiveShadow=!0),this.visible===!1&&(i.visible=!1),this.frustumCulled===!1&&(i.frustumCulled=!1),this.renderOrder!==0&&(i.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.geometryInfo=this._geometryInfo.map(a=>ze(Lt({},a),{boundingBox:a.boundingBox?a.boundingBox.toJSON():void 0,boundingSphere:a.boundingSphere?a.boundingSphere.toJSON():void 0})),i.instanceInfo=this._instanceInfo.map(a=>Lt({},a)),i.availableInstanceIds=this._availableInstanceIds.slice(),i.availableGeometryIds=this._availableGeometryIds.slice(),i.nextIndexStart=this._nextIndexStart,i.nextVertexStart=this._nextVertexStart,i.geometryCount=this._geometryCount,i.maxInstanceCount=this._maxInstanceCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.matricesTexture=this._matricesTexture.toJSON(t),i.indirectTexture=this._indirectTexture.toJSON(t),this._colorsTexture!==null&&(i.colorsTexture=this._colorsTexture.toJSON(t)),this.boundingSphere!==null&&(i.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(i.boundingBox=this.boundingBox.toJSON()));function s(a,u){return a[u.uuid]===void 0&&(a[u.uuid]=u.toJSON(t)),u.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=s(t.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const u=a.shapes;if(Array.isArray(u))for(let c=0,l=u.length;c<l;c++){const f=u[c];s(t.shapes,f)}else s(t.shapes,u)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(s(t.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const a=[];for(let u=0,c=this.material.length;u<c;u++)a.push(s(t.materials,this.material[u]));i.material=a}else i.material=s(t.materials,this.material);if(this.children.length>0){i.children=[];for(let a=0;a<this.children.length;a++)i.children.push(this.children[a].toJSON(t).object)}if(this.animations.length>0){i.animations=[];for(let a=0;a<this.animations.length;a++){const u=this.animations[a];i.animations.push(s(t.animations,u))}}if(e){const a=o(t.geometries),u=o(t.materials),c=o(t.textures),l=o(t.images),f=o(t.shapes),h=o(t.skeletons),p=o(t.animations),x=o(t.nodes);a.length>0&&(r.geometries=a),u.length>0&&(r.materials=u),c.length>0&&(r.textures=c),l.length>0&&(r.images=l),f.length>0&&(r.shapes=f),h.length>0&&(r.skeletons=h),p.length>0&&(r.animations=p),x.length>0&&(r.nodes=x)}return r.object=i,r;function o(a){const u=[];for(const c in a){const l=a[c];delete l.metadata,u.push(l)}return u}}clone(t){return new this.constructor().copy(this,t)}copy(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),e===!0)for(let r=0;r<t.children.length;r++){const i=t.children[r];this.add(i.clone())}return this}}we.DEFAULT_UP=new rt(0,1,0);we.DEFAULT_MATRIX_AUTO_UPDATE=!0;we.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const Ue=new rt,ur=new rt,Ga=new rt,lr=new rt,Dn=new rt,Mn=new rt,Il=new rt,Xa=new rt,Ya=new rt,Ka=new rt,Ja=new Te,Za=new Te,Qa=new Te;class qe{constructor(t=new rt,e=new rt,r=new rt){this.a=t,this.b=e,this.c=r}static getNormal(t,e,r,i){i.subVectors(r,e),Ue.subVectors(t,e),i.cross(Ue);const s=i.lengthSq();return s>0?i.multiplyScalar(1/Math.sqrt(s)):i.set(0,0,0)}static getBarycoord(t,e,r,i,s){Ue.subVectors(i,e),ur.subVectors(r,e),Ga.subVectors(t,e);const o=Ue.dot(Ue),a=Ue.dot(ur),u=Ue.dot(Ga),c=ur.dot(ur),l=ur.dot(Ga),f=o*c-a*a;if(f===0)return s.set(0,0,0),null;const h=1/f,p=(c*u-a*l)*h,x=(o*l-a*u)*h;return s.set(1-p-x,x,p)}static containsPoint(t,e,r,i){return this.getBarycoord(t,e,r,i,lr)===null?!1:lr.x>=0&&lr.y>=0&&lr.x+lr.y<=1}static getInterpolation(t,e,r,i,s,o,a,u){return this.getBarycoord(t,e,r,i,lr)===null?(u.x=0,u.y=0,"z"in u&&(u.z=0),"w"in u&&(u.w=0),null):(u.setScalar(0),u.addScaledVector(s,lr.x),u.addScaledVector(o,lr.y),u.addScaledVector(a,lr.z),u)}static getInterpolatedAttribute(t,e,r,i,s,o){return Ja.setScalar(0),Za.setScalar(0),Qa.setScalar(0),Ja.fromBufferAttribute(t,e),Za.fromBufferAttribute(t,r),Qa.fromBufferAttribute(t,i),o.setScalar(0),o.addScaledVector(Ja,s.x),o.addScaledVector(Za,s.y),o.addScaledVector(Qa,s.z),o}static isFrontFacing(t,e,r,i){return Ue.subVectors(r,e),ur.subVectors(t,e),Ue.cross(ur).dot(i)<0}set(t,e,r){return this.a.copy(t),this.b.copy(e),this.c.copy(r),this}setFromPointsAndIndices(t,e,r,i){return this.a.copy(t[e]),this.b.copy(t[r]),this.c.copy(t[i]),this}setFromAttributeAndIndices(t,e,r,i){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,r),this.c.fromBufferAttribute(t,i),this}clone(){return new this.constructor().copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return Ue.subVectors(this.c,this.b),ur.subVectors(this.a,this.b),Ue.cross(ur).length()*.5}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return qe.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return qe.getBarycoord(t,this.a,this.b,this.c,e)}getInterpolation(t,e,r,i,s){return qe.getInterpolation(t,this.a,this.b,this.c,e,r,i,s)}containsPoint(t){return qe.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return qe.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){const r=this.a,i=this.b,s=this.c;let o,a;Dn.subVectors(i,r),Mn.subVectors(s,r),Xa.subVectors(t,r);const u=Dn.dot(Xa),c=Mn.dot(Xa);if(u<=0&&c<=0)return e.copy(r);Ya.subVectors(t,i);const l=Dn.dot(Ya),f=Mn.dot(Ya);if(l>=0&&f<=l)return e.copy(i);const h=u*f-l*c;if(h<=0&&u>=0&&l<=0)return o=u/(u-l),e.copy(r).addScaledVector(Dn,o);Ka.subVectors(t,s);const p=Dn.dot(Ka),x=Mn.dot(Ka);if(x>=0&&p<=x)return e.copy(s);const y=p*c-u*x;if(y<=0&&c>=0&&x<=0)return a=c/(c-x),e.copy(r).addScaledVector(Mn,a);const g=l*x-p*f;if(g<=0&&f-l>=0&&p-x>=0)return Il.subVectors(s,i),a=(f-l)/(f-l+(p-x)),e.copy(i).addScaledVector(Il,a);const A=1/(g+y+h);return o=y*A,a=h*A,e.copy(r).addScaledVector(Dn,o).addScaledVector(Mn,a)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}const Wf={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Cr={h:0,s:0,l:0},ls={h:0,s:0,l:0};function t0(n,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?n+(t-n)*6*e:e<1/2?t:e<2/3?n+(t-n)*6*(2/3-e):n}class mr{constructor(t,e,r){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,e,r)}set(t,e,r){if(e===void 0&&r===void 0){const i=t;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(t,e,r);return this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,e=He){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,ke.colorSpaceToWorking(this,e),this}setRGB(t,e,r,i=ke.workingColorSpace){return this.r=t,this.g=e,this.b=r,ke.colorSpaceToWorking(this,i),this}setHSL(t,e,r,i=ke.workingColorSpace){if(t=G2(t,1),e=Tt(e,0,1),r=Tt(r,0,1),e===0)this.r=this.g=this.b=r;else{const s=r<=.5?r*(1+e):r+e-r*e,o=2*r-s;this.r=t0(o,s,t+1/3),this.g=t0(o,s,t),this.b=t0(o,s,t-1/3)}return ke.colorSpaceToWorking(this,i),this}setStyle(t,e=He){function r(s){s!==void 0&&parseFloat(s)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(t)){let s;const o=i[1],a=i[2];switch(o){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setRGB(Math.min(255,parseInt(s[1],10))/255,Math.min(255,parseInt(s[2],10))/255,Math.min(255,parseInt(s[3],10))/255,e);if(s=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setRGB(Math.min(100,parseInt(s[1],10))/100,Math.min(100,parseInt(s[2],10))/100,Math.min(100,parseInt(s[3],10))/100,e);break;case"hsl":case"hsla":if(s=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setHSL(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,e);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(t)){const s=i[1],o=s.length;if(o===3)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,e);if(o===6)return this.setHex(parseInt(s,16),e);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,e);return this}setColorName(t,e=He){const r=Wf[t.toLowerCase()];return r!==void 0?this.setHex(r,e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=pr(t.r),this.g=pr(t.g),this.b=pr(t.b),this}copyLinearToSRGB(t){return this.r=$n(t.r),this.g=$n(t.g),this.b=$n(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=He){return ke.workingToColorSpace(le.copy(this),t),Math.round(Tt(le.r*255,0,255))*65536+Math.round(Tt(le.g*255,0,255))*256+Math.round(Tt(le.b*255,0,255))}getHexString(t=He){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=ke.workingColorSpace){ke.workingToColorSpace(le.copy(this),e);const r=le.r,i=le.g,s=le.b,o=Math.max(r,i,s),a=Math.min(r,i,s);let u,c;const l=(a+o)/2;if(a===o)u=0,c=0;else{const f=o-a;switch(c=l<=.5?f/(o+a):f/(2-o-a),o){case r:u=(i-s)/f+(i<s?6:0);break;case i:u=(s-r)/f+2;break;case s:u=(r-i)/f+4;break}u/=6}return t.h=u,t.s=c,t.l=l,t}getRGB(t,e=ke.workingColorSpace){return ke.workingToColorSpace(le.copy(this),e),t.r=le.r,t.g=le.g,t.b=le.b,t}getStyle(t=He){ke.workingToColorSpace(le.copy(this),t);const e=le.r,r=le.g,i=le.b;return t!==He?`color(${t} ${e.toFixed(3)} ${r.toFixed(3)} ${i.toFixed(3)})`:`rgb(${Math.round(e*255)},${Math.round(r*255)},${Math.round(i*255)})`}offsetHSL(t,e,r){return this.getHSL(Cr),this.setHSL(Cr.h+t,Cr.s+e,Cr.l+r)}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addColors(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}addScalar(t){return this.r+=t,this.g+=t,this.b+=t,this}sub(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}lerp(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}lerpColors(t,e,r){return this.r=t.r+(e.r-t.r)*r,this.g=t.g+(e.g-t.g)*r,this.b=t.b+(e.b-t.b)*r,this}lerpHSL(t,e){this.getHSL(Cr),t.getHSL(ls);const r=za(Cr.h,ls.h,e),i=za(Cr.s,ls.s,e),s=za(Cr.l,ls.l,e);return this.setHSL(r,i,s),this}setFromVector3(t){return this.r=t.x,this.g=t.y,this.b=t.z,this}applyMatrix3(t){const e=this.r,r=this.g,i=this.b,s=t.elements;return this.r=s[0]*e+s[3]*r+s[6]*i,this.g=s[1]*e+s[4]*r+s[7]*i,this.b=s[2]*e+s[5]*r+s[8]*i,this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}fromArray(t,e=0){return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}toArray(t=[],e=0){return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}fromBufferAttribute(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const le=new mr;mr.NAMES=Wf;let uv=0;class ec extends ro{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:uv++}),this.uuid=ki(),this.name="",this.type="Material",this.blending=al,this.side=_0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=ul,this.blendDst=ll,this.blendEquation=cl,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new mr(0,0,0),this.blendAlpha=0,this.depthFunc=hl,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=yl,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=En,this.stencilZFail=En,this.stencilZPass=En,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.allowOverride=!0,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(t){this._alphaTest>0!=t>0&&this.version++,this._alphaTest=t}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(t!==void 0)for(const e in t){const r=t[e];if(r===void 0){console.warn(`THREE.Material: parameter '${e}' has value of undefined.`);continue}const i=this[e];if(i===void 0){console.warn(`THREE.Material: '${e}' is not a property of THREE.${this.type}.`);continue}i&&i.isColor?i.set(r):i&&i.isVector3&&r&&r.isVector3?i.copy(r):this[e]=r}}toJSON(t){const e=t===void 0||typeof t=="string";e&&(t={textures:{},images:{}});const r={metadata:{version:4.7,type:"Material",generator:"Material.toJSON"}};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.color&&this.color.isColor&&(r.color=this.color.getHex()),this.roughness!==void 0&&(r.roughness=this.roughness),this.metalness!==void 0&&(r.metalness=this.metalness),this.sheen!==void 0&&(r.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(r.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(r.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(r.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(r.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(r.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(r.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(r.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(r.shininess=this.shininess),this.clearcoat!==void 0&&(r.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(r.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(r.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(r.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(r.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,r.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(r.sheenColorMap=this.sheenColorMap.toJSON(t).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(r.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(t).uuid),this.dispersion!==void 0&&(r.dispersion=this.dispersion),this.iridescence!==void 0&&(r.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(r.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(r.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(r.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(r.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),this.anisotropy!==void 0&&(r.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(r.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(r.anisotropyMap=this.anisotropyMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(r.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(r.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(r.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(r.lightMap=this.lightMap.toJSON(t).uuid,r.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(r.aoMap=this.aoMap.toJSON(t).uuid,r.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(r.bumpMap=this.bumpMap.toJSON(t).uuid,r.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(r.normalMap=this.normalMap.toJSON(t).uuid,r.normalMapType=this.normalMapType,r.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(r.displacementMap=this.displacementMap.toJSON(t).uuid,r.displacementScale=this.displacementScale,r.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(r.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(r.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(r.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(r.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(r.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(r.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(r.envMap=this.envMap.toJSON(t).uuid,this.combine!==void 0&&(r.combine=this.combine)),this.envMapRotation!==void 0&&(r.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(r.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(r.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(r.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(r.gradientMap=this.gradientMap.toJSON(t).uuid),this.transmission!==void 0&&(r.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(r.transmissionMap=this.transmissionMap.toJSON(t).uuid),this.thickness!==void 0&&(r.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(r.thicknessMap=this.thicknessMap.toJSON(t).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(r.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(r.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(r.size=this.size),this.shadowSide!==null&&(r.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(r.sizeAttenuation=this.sizeAttenuation),this.blending!==al&&(r.blending=this.blending),this.side!==_0&&(r.side=this.side),this.vertexColors===!0&&(r.vertexColors=!0),this.opacity<1&&(r.opacity=this.opacity),this.transparent===!0&&(r.transparent=!0),this.blendSrc!==ul&&(r.blendSrc=this.blendSrc),this.blendDst!==ll&&(r.blendDst=this.blendDst),this.blendEquation!==cl&&(r.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(r.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(r.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(r.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(r.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(r.blendAlpha=this.blendAlpha),this.depthFunc!==hl&&(r.depthFunc=this.depthFunc),this.depthTest===!1&&(r.depthTest=this.depthTest),this.depthWrite===!1&&(r.depthWrite=this.depthWrite),this.colorWrite===!1&&(r.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(r.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==yl&&(r.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(r.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(r.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==En&&(r.stencilFail=this.stencilFail),this.stencilZFail!==En&&(r.stencilZFail=this.stencilZFail),this.stencilZPass!==En&&(r.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(r.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(r.rotation=this.rotation),this.polygonOffset===!0&&(r.polygonOffset=!0),this.polygonOffsetFactor!==0&&(r.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(r.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(r.linewidth=this.linewidth),this.dashSize!==void 0&&(r.dashSize=this.dashSize),this.gapSize!==void 0&&(r.gapSize=this.gapSize),this.scale!==void 0&&(r.scale=this.scale),this.dithering===!0&&(r.dithering=!0),this.alphaTest>0&&(r.alphaTest=this.alphaTest),this.alphaHash===!0&&(r.alphaHash=!0),this.alphaToCoverage===!0&&(r.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(r.premultipliedAlpha=!0),this.forceSinglePass===!0&&(r.forceSinglePass=!0),this.wireframe===!0&&(r.wireframe=!0),this.wireframeLinewidth>1&&(r.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(r.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(r.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(r.flatShading=!0),this.visible===!1&&(r.visible=!1),this.toneMapped===!1&&(r.toneMapped=!1),this.fog===!1&&(r.fog=!1),Object.keys(this.userData).length>0&&(r.userData=this.userData);function i(s){const o=[];for(const a in s){const u=s[a];delete u.metadata,o.push(u)}return o}if(e){const s=i(t.textures),o=i(t.images);s.length>0&&(r.textures=s),o.length>0&&(r.images=o)}return r}clone(){return new this.constructor().copy(this)}copy(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.blendColor.copy(t.blendColor),this.blendAlpha=t.blendAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const e=t.clippingPlanes;let r=null;if(e!==null){const i=e.length;r=new Array(i);for(let s=0;s!==i;++s)r[s]=e[s].clone()}return this.clippingPlanes=r,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaHash=t.alphaHash,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){t===!0&&this.version++}}class lv extends ec{constructor(t){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new mr(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new xr,this.combine=Nf,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapRotation.copy(t.envMapRotation),this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}}const Zt=new rt,hs=new Qt;let hv=0;class Jr{constructor(t,e,r=!1){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:hv++}),this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=r,this.usage=gl,this.updateRanges=[],this.gpuType=$f,this.version=0}onUploadCallback(){}set needsUpdate(t){t===!0&&this.version++}setUsage(t){return this.usage=t,this}addUpdateRange(t,e){this.updateRanges.push({start:t,count:e})}clearUpdateRanges(){this.updateRanges.length=0}copy(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this.gpuType=t.gpuType,this}copyAt(t,e,r){t*=this.itemSize,r*=e.itemSize;for(let i=0,s=this.itemSize;i<s;i++)this.array[t+i]=e.array[r+i];return this}copyArray(t){return this.array.set(t),this}applyMatrix3(t){if(this.itemSize===2)for(let e=0,r=this.count;e<r;e++)hs.fromBufferAttribute(this,e),hs.applyMatrix3(t),this.setXY(e,hs.x,hs.y);else if(this.itemSize===3)for(let e=0,r=this.count;e<r;e++)Zt.fromBufferAttribute(this,e),Zt.applyMatrix3(t),this.setXYZ(e,Zt.x,Zt.y,Zt.z);return this}applyMatrix4(t){for(let e=0,r=this.count;e<r;e++)Zt.fromBufferAttribute(this,e),Zt.applyMatrix4(t),this.setXYZ(e,Zt.x,Zt.y,Zt.z);return this}applyNormalMatrix(t){for(let e=0,r=this.count;e<r;e++)Zt.fromBufferAttribute(this,e),Zt.applyNormalMatrix(t),this.setXYZ(e,Zt.x,Zt.y,Zt.z);return this}transformDirection(t){for(let e=0,r=this.count;e<r;e++)Zt.fromBufferAttribute(this,e),Zt.transformDirection(t),this.setXYZ(e,Zt.x,Zt.y,Zt.z);return this}set(t,e=0){return this.array.set(t,e),this}getComponent(t,e){let r=this.array[t*this.itemSize+e];return this.normalized&&(r=oi(r,this.array)),r}setComponent(t,e,r){return this.normalized&&(r=me(r,this.array)),this.array[t*this.itemSize+e]=r,this}getX(t){let e=this.array[t*this.itemSize];return this.normalized&&(e=oi(e,this.array)),e}setX(t,e){return this.normalized&&(e=me(e,this.array)),this.array[t*this.itemSize]=e,this}getY(t){let e=this.array[t*this.itemSize+1];return this.normalized&&(e=oi(e,this.array)),e}setY(t,e){return this.normalized&&(e=me(e,this.array)),this.array[t*this.itemSize+1]=e,this}getZ(t){let e=this.array[t*this.itemSize+2];return this.normalized&&(e=oi(e,this.array)),e}setZ(t,e){return this.normalized&&(e=me(e,this.array)),this.array[t*this.itemSize+2]=e,this}getW(t){let e=this.array[t*this.itemSize+3];return this.normalized&&(e=oi(e,this.array)),e}setW(t,e){return this.normalized&&(e=me(e,this.array)),this.array[t*this.itemSize+3]=e,this}setXY(t,e,r){return t*=this.itemSize,this.normalized&&(e=me(e,this.array),r=me(r,this.array)),this.array[t+0]=e,this.array[t+1]=r,this}setXYZ(t,e,r,i){return t*=this.itemSize,this.normalized&&(e=me(e,this.array),r=me(r,this.array),i=me(i,this.array)),this.array[t+0]=e,this.array[t+1]=r,this.array[t+2]=i,this}setXYZW(t,e,r,i,s){return t*=this.itemSize,this.normalized&&(e=me(e,this.array),r=me(r,this.array),i=me(i,this.array),s=me(s,this.array)),this.array[t+0]=e,this.array[t+1]=r,this.array[t+2]=i,this.array[t+3]=s,this}onUpload(t){return this.onUploadCallback=t,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const t={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==""&&(t.name=this.name),this.usage!==gl&&(t.usage=this.usage),t}}class fv extends Jr{constructor(t,e,r){super(new Uint16Array(t),e,r)}}class dv extends Jr{constructor(t,e,r){super(new Uint32Array(t),e,r)}}class Ms extends Jr{constructor(t,e,r){super(new Float32Array(t),e,r)}}let pv=0;const De=new Kt,e0=new we,Tn=new rt,_e=new on,li=new on,ne=new rt;class no extends ro{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:pv++}),this.uuid=ki(),this.name="",this.type="BufferGeometry",this.index=null,this.indirect=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(t){return Array.isArray(t)?this.index=new(X2(t)?dv:fv)(t,1):this.index=t,this}setIndirect(t){return this.indirect=t,this}getIndirect(){return this.indirect}getAttribute(t){return this.attributes[t]}setAttribute(t,e){return this.attributes[t]=e,this}deleteAttribute(t){return delete this.attributes[t],this}hasAttribute(t){return this.attributes[t]!==void 0}addGroup(t,e,r=0){this.groups.push({start:t,count:e,materialIndex:r})}clearGroups(){this.groups=[]}setDrawRange(t,e){this.drawRange.start=t,this.drawRange.count=e}applyMatrix4(t){const e=this.attributes.position;e!==void 0&&(e.applyMatrix4(t),e.needsUpdate=!0);const r=this.attributes.normal;if(r!==void 0){const s=new yr().getNormalMatrix(t);r.applyNormalMatrix(s),r.needsUpdate=!0}const i=this.attributes.tangent;return i!==void 0&&(i.transformDirection(t),i.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(t){return De.makeRotationFromQuaternion(t),this.applyMatrix4(De),this}rotateX(t){return De.makeRotationX(t),this.applyMatrix4(De),this}rotateY(t){return De.makeRotationY(t),this.applyMatrix4(De),this}rotateZ(t){return De.makeRotationZ(t),this.applyMatrix4(De),this}translate(t,e,r){return De.makeTranslation(t,e,r),this.applyMatrix4(De),this}scale(t,e,r){return De.makeScale(t,e,r),this.applyMatrix4(De),this}lookAt(t){return e0.lookAt(t),e0.updateMatrix(),this.applyMatrix4(e0.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Tn).negate(),this.translate(Tn.x,Tn.y,Tn.z),this}setFromPoints(t){const e=this.getAttribute("position");if(e===void 0){const r=[];for(let i=0,s=t.length;i<s;i++){const o=t[i];r.push(o.x,o.y,o.z||0)}this.setAttribute("position",new Ms(r,3))}else{const r=Math.min(t.length,e.count);for(let i=0;i<r;i++){const s=t[i];e.setXYZ(i,s.x,s.y,s.z||0)}t.length>e.count&&console.warn("THREE.BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."),e.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new on);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new rt(-1/0,-1/0,-1/0),new rt(1/0,1/0,1/0));return}if(t!==void 0){if(this.boundingBox.setFromBufferAttribute(t),e)for(let r=0,i=e.length;r<i;r++){const s=e[r];_e.setFromBufferAttribute(s),this.morphTargetsRelative?(ne.addVectors(this.boundingBox.min,_e.min),this.boundingBox.expandByPoint(ne),ne.addVectors(this.boundingBox.max,_e.max),this.boundingBox.expandByPoint(ne)):(this.boundingBox.expandByPoint(_e.min),this.boundingBox.expandByPoint(_e.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new Li);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),this.boundingSphere.set(new rt,1/0);return}if(t){const r=this.boundingSphere.center;if(_e.setFromBufferAttribute(t),e)for(let s=0,o=e.length;s<o;s++){const a=e[s];li.setFromBufferAttribute(a),this.morphTargetsRelative?(ne.addVectors(_e.min,li.min),_e.expandByPoint(ne),ne.addVectors(_e.max,li.max),_e.expandByPoint(ne)):(_e.expandByPoint(li.min),_e.expandByPoint(li.max))}_e.getCenter(r);let i=0;for(let s=0,o=t.count;s<o;s++)ne.fromBufferAttribute(t,s),i=Math.max(i,r.distanceToSquared(ne));if(e)for(let s=0,o=e.length;s<o;s++){const a=e[s],u=this.morphTargetsRelative;for(let c=0,l=a.count;c<l;c++)ne.fromBufferAttribute(a,c),u&&(Tn.fromBufferAttribute(t,c),ne.add(Tn)),i=Math.max(i,r.distanceToSquared(ne))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const t=this.index,e=this.attributes;if(t===null||e.position===void 0||e.normal===void 0||e.uv===void 0){console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}const r=e.position,i=e.normal,s=e.uv;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new Jr(new Float32Array(4*r.count),4));const o=this.getAttribute("tangent"),a=[],u=[];for(let N=0;N<r.count;N++)a[N]=new rt,u[N]=new rt;const c=new rt,l=new rt,f=new rt,h=new Qt,p=new Qt,x=new Qt,y=new rt,g=new rt;function A(N,Y,I){c.fromBufferAttribute(r,N),l.fromBufferAttribute(r,Y),f.fromBufferAttribute(r,I),h.fromBufferAttribute(s,N),p.fromBufferAttribute(s,Y),x.fromBufferAttribute(s,I),l.sub(c),f.sub(c),p.sub(h),x.sub(h);const O=1/(p.x*x.y-x.x*p.y);isFinite(O)&&(y.copy(l).multiplyScalar(x.y).addScaledVector(f,-p.y).multiplyScalar(O),g.copy(f).multiplyScalar(p.x).addScaledVector(l,-x.x).multiplyScalar(O),a[N].add(y),a[Y].add(y),a[I].add(y),u[N].add(g),u[Y].add(g),u[I].add(g))}let w=this.groups;w.length===0&&(w=[{start:0,count:t.count}]);for(let N=0,Y=w.length;N<Y;++N){const I=w[N],O=I.start,q=I.count;for(let j=O,J=O+q;j<J;j+=3)A(t.getX(j+0),t.getX(j+1),t.getX(j+2))}const E=new rt,_=new rt,C=new rt,T=new rt;function R(N){C.fromBufferAttribute(i,N),T.copy(C);const Y=a[N];E.copy(Y),E.sub(C.multiplyScalar(C.dot(Y))).normalize(),_.crossVectors(T,Y);const O=_.dot(u[N])<0?-1:1;o.setXYZW(N,E.x,E.y,E.z,O)}for(let N=0,Y=w.length;N<Y;++N){const I=w[N],O=I.start,q=I.count;for(let j=O,J=O+q;j<J;j+=3)R(t.getX(j+0)),R(t.getX(j+1)),R(t.getX(j+2))}}computeVertexNormals(){const t=this.index,e=this.getAttribute("position");if(e!==void 0){let r=this.getAttribute("normal");if(r===void 0)r=new Jr(new Float32Array(e.count*3),3),this.setAttribute("normal",r);else for(let h=0,p=r.count;h<p;h++)r.setXYZ(h,0,0,0);const i=new rt,s=new rt,o=new rt,a=new rt,u=new rt,c=new rt,l=new rt,f=new rt;if(t)for(let h=0,p=t.count;h<p;h+=3){const x=t.getX(h+0),y=t.getX(h+1),g=t.getX(h+2);i.fromBufferAttribute(e,x),s.fromBufferAttribute(e,y),o.fromBufferAttribute(e,g),l.subVectors(o,s),f.subVectors(i,s),l.cross(f),a.fromBufferAttribute(r,x),u.fromBufferAttribute(r,y),c.fromBufferAttribute(r,g),a.add(l),u.add(l),c.add(l),r.setXYZ(x,a.x,a.y,a.z),r.setXYZ(y,u.x,u.y,u.z),r.setXYZ(g,c.x,c.y,c.z)}else for(let h=0,p=e.count;h<p;h+=3)i.fromBufferAttribute(e,h+0),s.fromBufferAttribute(e,h+1),o.fromBufferAttribute(e,h+2),l.subVectors(o,s),f.subVectors(i,s),l.cross(f),r.setXYZ(h+0,l.x,l.y,l.z),r.setXYZ(h+1,l.x,l.y,l.z),r.setXYZ(h+2,l.x,l.y,l.z);this.normalizeNormals(),r.needsUpdate=!0}}normalizeNormals(){const t=this.attributes.normal;for(let e=0,r=t.count;e<r;e++)ne.fromBufferAttribute(t,e),ne.normalize(),t.setXYZ(e,ne.x,ne.y,ne.z)}toNonIndexed(){function t(a,u){const c=a.array,l=a.itemSize,f=a.normalized,h=new c.constructor(u.length*l);let p=0,x=0;for(let y=0,g=u.length;y<g;y++){a.isInterleavedBufferAttribute?p=u[y]*a.data.stride+a.offset:p=u[y]*l;for(let A=0;A<l;A++)h[x++]=c[p++]}return new Jr(h,l,f)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const e=new no,r=this.index.array,i=this.attributes;for(const a in i){const u=i[a],c=t(u,r);e.setAttribute(a,c)}const s=this.morphAttributes;for(const a in s){const u=[],c=s[a];for(let l=0,f=c.length;l<f;l++){const h=c[l],p=t(h,r);u.push(p)}e.morphAttributes[a]=u}e.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let a=0,u=o.length;a<u;a++){const c=o[a];e.addGroup(c.start,c.count,c.materialIndex)}return e}toJSON(){const t={metadata:{version:4.7,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,this.name!==""&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),this.parameters!==void 0){const u=this.parameters;for(const c in u)u[c]!==void 0&&(t[c]=u[c]);return t}t.data={attributes:{}};const e=this.index;e!==null&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const r=this.attributes;for(const u in r){const c=r[u];t.data.attributes[u]=c.toJSON(t.data)}const i={};let s=!1;for(const u in this.morphAttributes){const c=this.morphAttributes[u],l=[];for(let f=0,h=c.length;f<h;f++){const p=c[f];l.push(p.toJSON(t.data))}l.length>0&&(i[u]=l,s=!0)}s&&(t.data.morphAttributes=i,t.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(t.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(t.data.boundingSphere=a.toJSON()),t}clone(){return new this.constructor().copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const e={};this.name=t.name;const r=t.index;r!==null&&this.setIndex(r.clone());const i=t.attributes;for(const c in i){const l=i[c];this.setAttribute(c,l.clone(e))}const s=t.morphAttributes;for(const c in s){const l=[],f=s[c];for(let h=0,p=f.length;h<p;h++)l.push(f[h].clone(e));this.morphAttributes[c]=l}this.morphTargetsRelative=t.morphTargetsRelative;const o=t.groups;for(let c=0,l=o.length;c<l;c++){const f=o[c];this.addGroup(f.start,f.count,f.materialIndex)}const a=t.boundingBox;a!==null&&(this.boundingBox=a.clone());const u=t.boundingSphere;return u!==null&&(this.boundingSphere=u.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const Ol=new Kt,qr=new ev,fs=new Li,Pl=new rt,ds=new rt,ps=new rt,xs=new rt,r0=new rt,ms=new rt,zl=new rt,ys=new rt;class fr extends we{constructor(t=new no,e=new lv){super(),this.isMesh=!0,this.type="Mesh",this.geometry=t,this.material=e,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(t,e){return super.copy(t,e),t.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),t.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this.material=Array.isArray(t.material)?t.material.slice():t.material,this.geometry=t.geometry,this}updateMorphTargets(){const e=this.geometry.morphAttributes,r=Object.keys(e);if(r.length>0){const i=e[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s<o;s++){const a=i[s].name||String(s);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=s}}}}getVertexPosition(t,e){const r=this.geometry,i=r.attributes.position,s=r.morphAttributes.position,o=r.morphTargetsRelative;e.fromBufferAttribute(i,t);const a=this.morphTargetInfluences;if(s&&a){ms.set(0,0,0);for(let u=0,c=s.length;u<c;u++){const l=a[u],f=s[u];l!==0&&(r0.fromBufferAttribute(f,t),o?ms.addScaledVector(r0,l):ms.addScaledVector(r0.sub(e),l))}e.add(ms)}return e}raycast(t,e){const r=this.geometry,i=this.material,s=this.matrixWorld;i!==void 0&&(r.boundingSphere===null&&r.computeBoundingSphere(),fs.copy(r.boundingSphere),fs.applyMatrix4(s),qr.copy(t.ray).recast(t.near),!(fs.containsPoint(qr.origin)===!1&&(qr.intersectSphere(fs,Pl)===null||qr.origin.distanceToSquared(Pl)>uc(t.far-t.near,2)))&&(Ol.copy(s).invert(),qr.copy(t.ray).applyMatrix4(Ol),!(r.boundingBox!==null&&qr.intersectsBox(r.boundingBox)===!1)&&this._computeIntersections(t,e,qr)))}_computeIntersections(t,e,r){let i;const s=this.geometry,o=this.material,a=s.index,u=s.attributes.position,c=s.attributes.uv,l=s.attributes.uv1,f=s.attributes.normal,h=s.groups,p=s.drawRange;if(a!==null)if(Array.isArray(o))for(let x=0,y=h.length;x<y;x++){const g=h[x],A=o[g.materialIndex],w=Math.max(g.start,p.start),E=Math.min(a.count,Math.min(g.start+g.count,p.start+p.count));for(let _=w,C=E;_<C;_+=3){const T=a.getX(_),R=a.getX(_+1),N=a.getX(_+2);i=gs(this,A,t,r,c,l,f,T,R,N),i&&(i.faceIndex=Math.floor(_/3),i.face.materialIndex=g.materialIndex,e.push(i))}}else{const x=Math.max(0,p.start),y=Math.min(a.count,p.start+p.count);for(let g=x,A=y;g<A;g+=3){const w=a.getX(g),E=a.getX(g+1),_=a.getX(g+2);i=gs(this,o,t,r,c,l,f,w,E,_),i&&(i.faceIndex=Math.floor(g/3),e.push(i))}}else if(u!==void 0)if(Array.isArray(o))for(let x=0,y=h.length;x<y;x++){const g=h[x],A=o[g.materialIndex],w=Math.max(g.start,p.start),E=Math.min(u.count,Math.min(g.start+g.count,p.start+p.count));for(let _=w,C=E;_<C;_+=3){const T=_,R=_+1,N=_+2;i=gs(this,A,t,r,c,l,f,T,R,N),i&&(i.faceIndex=Math.floor(_/3),i.face.materialIndex=g.materialIndex,e.push(i))}}else{const x=Math.max(0,p.start),y=Math.min(u.count,p.start+p.count);for(let g=x,A=y;g<A;g+=3){const w=g,E=g+1,_=g+2;i=gs(this,o,t,r,c,l,f,w,E,_),i&&(i.faceIndex=Math.floor(g/3),e.push(i))}}}}function xv(n,t,e,r,i,s,o,a){let u;if(t.side===kf?u=r.intersectTriangle(o,s,i,!0,a):u=r.intersectTriangle(i,s,o,t.side===_0,a),u===null)return null;ys.copy(a),ys.applyMatrix4(n.matrixWorld);const c=e.ray.origin.distanceTo(ys);return c<e.near||c>e.far?null:{distance:c,point:ys.clone(),object:n}}function gs(n,t,e,r,i,s,o,a,u,c){n.getVertexPosition(a,ds),n.getVertexPosition(u,ps),n.getVertexPosition(c,xs);const l=xv(n,t,e,r,ds,ps,xs,zl);if(l){const f=new rt;qe.getBarycoord(zl,ds,ps,xs,f),i&&(l.uv=qe.getInterpolatedAttribute(i,a,u,c,f,new Qt)),s&&(l.uv1=qe.getInterpolatedAttribute(s,a,u,c,f,new Qt)),o&&(l.normal=qe.getInterpolatedAttribute(o,a,u,c,f,new rt),l.normal.dot(r.direction)>0&&l.normal.multiplyScalar(-1));const h={a,b:u,c,normal:new rt,materialIndex:0};qe.getNormal(ds,ps,xs,h.normal),l.face=h,l.barycoord=f}return l}class rc extends no{constructor(t=1,e=1,r=1,i=1,s=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:r,widthSegments:i,heightSegments:s,depthSegments:o};const a=this;i=Math.floor(i),s=Math.floor(s),o=Math.floor(o);const u=[],c=[],l=[],f=[];let h=0,p=0;x("z","y","x",-1,-1,r,e,t,o,s,0),x("z","y","x",1,-1,r,e,-t,o,s,1),x("x","z","y",1,1,t,r,e,i,o,2),x("x","z","y",1,-1,t,r,-e,i,o,3),x("x","y","z",1,-1,t,e,r,i,s,4),x("x","y","z",-1,-1,t,e,-r,i,s,5),this.setIndex(u),this.setAttribute("position",new Ms(c,3)),this.setAttribute("normal",new Ms(l,3)),this.setAttribute("uv",new Ms(f,2));function x(y,g,A,w,E,_,C,T,R,N,Y){const I=_/R,O=C/N,q=_/2,j=C/2,J=T/2,G=R+1,Q=N+1;let ot=0,it=0;const ut=new rt;for(let at=0;at<Q;at++){const U=at*O-j;for(let X=0;X<G;X++){const tt=X*I-q;ut[y]=tt*w,ut[g]=U*E,ut[A]=J,c.push(ut.x,ut.y,ut.z),ut[y]=0,ut[g]=0,ut[A]=T>0?1:-1,l.push(ut.x,ut.y,ut.z),f.push(X/R),f.push(1-at/N),ot+=1}}for(let at=0;at<N;at++)for(let U=0;U<R;U++){const X=h+U+G*at,tt=h+U+G*(at+1),K=h+(U+1)+G*(at+1),wt=h+(U+1)+G*at;u.push(X,tt,wt),u.push(tt,K,wt),it+=6}a.addGroup(p,it,Y),p+=it,h+=ot}}copy(t){return super.copy(t),this.parameters=Object.assign({},t.parameters),this}static fromJSON(t){return new rc(t.width,t.height,t.depth,t.widthSegments,t.heightSegments,t.depthSegments)}}class mv extends we{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Kt,this.projectionMatrix=new Kt,this.projectionMatrixInverse=new Kt,this.coordinateSystem=Xr,this._reversedDepth=!1}get reversedDepth(){return this._reversedDepth}copy(t,e){return super.copy(t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this.coordinateSystem=t.coordinateSystem,this}getWorldDirection(t){return super.getWorldDirection(t).negate()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const Sr=new rt,kl=new Qt,Nl=new Qt;class yv extends mv{constructor(t=50,e=1,r=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=t,this.zoom=1,this.near=r,this.far=i,this.focus=10,this.aspect=e,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=t.view===null?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this}setFocalLength(t){const e=.5*this.getFilmHeight()/t;this.fov=vl*2*Math.atan(e),this.updateProjectionMatrix()}getFocalLength(){const t=Math.tan(Pa*.5*this.fov);return .5*this.getFilmHeight()/t}getEffectiveFOV(){return vl*2*Math.atan(Math.tan(Pa*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(t,e,r){Sr.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),e.set(Sr.x,Sr.y).multiplyScalar(-t/Sr.z),Sr.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),r.set(Sr.x,Sr.y).multiplyScalar(-t/Sr.z)}getViewSize(t,e){return this.getViewBounds(t,kl,Nl),e.subVectors(Nl,kl)}setViewOffset(t,e,r,i,s,o){this.aspect=t/e,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=r,this.view.offsetY=i,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=this.near;let e=t*Math.tan(Pa*.5*this.fov)/this.zoom,r=2*e,i=this.aspect*r,s=-.5*i;const o=this.view;if(this.view!==null&&this.view.enabled){const u=o.fullWidth,c=o.fullHeight;s+=o.offsetX*i/u,e-=o.offsetY*r/c,i*=o.width/u,r*=o.height/c}const a=this.filmOffset;a!==0&&(s+=t*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(s,s+i,e,e-r,t,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.fov=this.fov,e.object.zoom=this.zoom,e.object.near=this.near,e.object.far=this.far,e.object.focus=this.focus,e.object.aspect=this.aspect,this.view!==null&&(e.object.view=Object.assign({},this.view)),e.object.filmGauge=this.filmGauge,e.object.filmOffset=this.filmOffset,e}}class gv extends we{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new xr,this.environmentIntensity=1,this.environmentRotation=new xr,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,e){return super.copy(t,e),t.background!==null&&(this.background=t.background.clone()),t.environment!==null&&(this.environment=t.environment.clone()),t.fog!==null&&(this.fog=t.fog.clone()),this.backgroundBlurriness=t.backgroundBlurriness,this.backgroundIntensity=t.backgroundIntensity,this.backgroundRotation.copy(t.backgroundRotation),this.environmentIntensity=t.environmentIntensity,this.environmentRotation.copy(t.environmentRotation),t.overrideMaterial!==null&&(this.overrideMaterial=t.overrideMaterial.clone()),this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const e=super.toJSON(t);return this.fog!==null&&(e.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(e.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(e.object.backgroundIntensity=this.backgroundIntensity),e.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(e.object.environmentIntensity=this.environmentIntensity),e.object.environmentRotation=this.environmentRotation.toArray(),e}}class vv extends Tr{constructor(t=null,e=1,r=1,i,s,o,a,u,c=pl,l=pl,f,h){super(null,o,a,u,c,l,i,s,f,h),this.isDataTexture=!0,this.image={data:t,width:e,height:r},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Ll extends Jr{constructor(t,e,r,i=1){super(t,e,r),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=i}copy(t){return super.copy(t),this.meshPerAttribute=t.meshPerAttribute,this}toJSON(){const t=super.toJSON();return t.meshPerAttribute=this.meshPerAttribute,t.isInstancedBufferAttribute=!0,t}}const Rn=new Kt,Ul=new Kt,vs=[],$l=new on,wv=new Kt,hi=new fr,fi=new Li;class Ev extends fr{constructor(t,e,r){super(t,e),this.isInstancedMesh=!0,this.instanceMatrix=new Ll(new Float32Array(r*16),16),this.instanceColor=null,this.morphTexture=null,this.count=r,this.boundingBox=null,this.boundingSphere=null;for(let i=0;i<r;i++)this.setMatrixAt(i,wv)}computeBoundingBox(){const t=this.geometry,e=this.count;this.boundingBox===null&&(this.boundingBox=new on),t.boundingBox===null&&t.computeBoundingBox(),this.boundingBox.makeEmpty();for(let r=0;r<e;r++)this.getMatrixAt(r,Rn),$l.copy(t.boundingBox).applyMatrix4(Rn),this.boundingBox.union($l)}computeBoundingSphere(){const t=this.geometry,e=this.count;this.boundingSphere===null&&(this.boundingSphere=new Li),t.boundingSphere===null&&t.computeBoundingSphere(),this.boundingSphere.makeEmpty();for(let r=0;r<e;r++)this.getMatrixAt(r,Rn),fi.copy(t.boundingSphere).applyMatrix4(Rn),this.boundingSphere.union(fi)}copy(t,e){return super.copy(t,e),this.instanceMatrix.copy(t.instanceMatrix),t.morphTexture!==null&&(this.morphTexture=t.morphTexture.clone()),t.instanceColor!==null&&(this.instanceColor=t.instanceColor.clone()),this.count=t.count,t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),this}getColorAt(t,e){e.fromArray(this.instanceColor.array,t*3)}getMatrixAt(t,e){e.fromArray(this.instanceMatrix.array,t*16)}getMorphAt(t,e){const r=e.morphTargetInfluences,i=this.morphTexture.source.data.data,s=r.length+1,o=t*s+1;for(let a=0;a<r.length;a++)r[a]=i[o+a]}raycast(t,e){const r=this.matrixWorld,i=this.count;if(hi.geometry=this.geometry,hi.material=this.material,hi.material!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),fi.copy(this.boundingSphere),fi.applyMatrix4(r),t.ray.intersectsSphere(fi)!==!1))for(let s=0;s<i;s++){this.getMatrixAt(s,Rn),Ul.multiplyMatrices(r,Rn),hi.matrixWorld=Ul,hi.raycast(t,vs);for(let o=0,a=vs.length;o<a;o++){const u=vs[o];u.instanceId=s,u.object=this,e.push(u)}vs.length=0}}setColorAt(t,e){this.instanceColor===null&&(this.instanceColor=new Ll(new Float32Array(this.instanceMatrix.count*3).fill(1),3)),e.toArray(this.instanceColor.array,t*3)}setMatrixAt(t,e){e.toArray(this.instanceMatrix.array,t*16)}setMorphAt(t,e){const r=e.morphTargetInfluences,i=r.length+1;this.morphTexture===null&&(this.morphTexture=new vv(new Float32Array(i*this.count),i,this.count,j2,$f));const s=this.morphTexture.source.data.data;let o=0;for(let c=0;c<r.length;c++)o+=r[c];const a=this.geometry.morphTargetsRelative?1:1-o,u=i*t;s[u]=a,s.set(r,u+1)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"}),this.morphTexture!==null&&(this.morphTexture.dispose(),this.morphTexture=null)}}const n0=new rt,bv=new rt,Av=new yr;class In{constructor(t=new rt(1,0,0),e=0){this.isPlane=!0,this.normal=t,this.constant=e}set(t,e){return this.normal.copy(t),this.constant=e,this}setComponents(t,e,r,i){return this.normal.set(t,e,r),this.constant=i,this}setFromNormalAndCoplanarPoint(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}setFromCoplanarPoints(t,e,r){const i=n0.subVectors(r,e).cross(bv.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(i,t),this}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){const t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,e){return e.copy(t).addScaledVector(this.normal,-this.distanceToPoint(t))}intersectLine(t,e){const r=t.delta(n0),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(t.start)===0?e.copy(t.start):null;const s=-(t.start.dot(this.normal)+this.constant)/i;return s<0||s>1?null:e.copy(t.start).addScaledVector(r,s)}intersectsLine(t){const e=this.distanceToPoint(t.start),r=this.distanceToPoint(t.end);return e<0&&r>0||r<0&&e>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,e){const r=e||Av.getNormalMatrix(t),i=this.coplanarPoint(n0).applyMatrix4(t),s=this.normal.applyMatrix3(r).normalize();return this.constant=-i.dot(s),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Wr=new Li,_v=new Qt(.5,.5),ws=new rt;class Cv{constructor(t=new In,e=new In,r=new In,i=new In,s=new In,o=new In){this.planes=[t,e,r,i,s,o]}set(t,e,r,i,s,o){const a=this.planes;return a[0].copy(t),a[1].copy(e),a[2].copy(r),a[3].copy(i),a[4].copy(s),a[5].copy(o),this}copy(t){const e=this.planes;for(let r=0;r<6;r++)e[r].copy(t.planes[r]);return this}setFromProjectionMatrix(t,e=Xr,r=!1){const i=this.planes,s=t.elements,o=s[0],a=s[1],u=s[2],c=s[3],l=s[4],f=s[5],h=s[6],p=s[7],x=s[8],y=s[9],g=s[10],A=s[11],w=s[12],E=s[13],_=s[14],C=s[15];if(i[0].setComponents(c-o,p-l,A-x,C-w).normalize(),i[1].setComponents(c+o,p+l,A+x,C+w).normalize(),i[2].setComponents(c+a,p+f,A+y,C+E).normalize(),i[3].setComponents(c-a,p-f,A-y,C-E).normalize(),r)i[4].setComponents(u,h,g,_).normalize(),i[5].setComponents(c-u,p-h,A-g,C-_).normalize();else if(i[4].setComponents(c-u,p-h,A-g,C-_).normalize(),e===Xr)i[5].setComponents(c+u,p+h,A+g,C+_).normalize();else if(e===C0)i[5].setComponents(u,h,g,_).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+e);return this}intersectsObject(t){if(t.boundingSphere!==void 0)t.boundingSphere===null&&t.computeBoundingSphere(),Wr.copy(t.boundingSphere).applyMatrix4(t.matrixWorld);else{const e=t.geometry;e.boundingSphere===null&&e.computeBoundingSphere(),Wr.copy(e.boundingSphere).applyMatrix4(t.matrixWorld)}return this.intersectsSphere(Wr)}intersectsSprite(t){Wr.center.set(0,0,0);const e=_v.distanceTo(t.center);return Wr.radius=.7071067811865476+e,Wr.applyMatrix4(t.matrixWorld),this.intersectsSphere(Wr)}intersectsSphere(t){const e=this.planes,r=t.center,i=-t.radius;for(let s=0;s<6;s++)if(e[s].distanceToPoint(r)<i)return!1;return!0}intersectsBox(t){const e=this.planes;for(let r=0;r<6;r++){const i=e[r];if(ws.x=i.normal.x>0?t.max.x:t.min.x,ws.y=i.normal.y>0?t.max.y:t.min.y,ws.z=i.normal.z>0?t.max.z:t.min.z,i.distanceToPoint(ws)<0)return!1}return!0}containsPoint(t){const e=this.planes;for(let r=0;r<6;r++)if(e[r].distanceToPoint(t)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}class Hl extends ec{constructor(t){super(),this.isMeshStandardMaterial=!0,this.type="MeshStandardMaterial",this.defines={STANDARD:""},this.color=new mr(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new mr(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Hf,this.normalScale=new Qt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new xr,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapRotation.copy(t.envMapRotation),this.envMapIntensity=t.envMapIntensity,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.flatShading=t.flatShading,this.fog=t.fog,this}}class Sv extends ec{constructor(t){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new mr(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new mr(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Hf,this.normalScale=new Qt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new xr,this.combine=Nf,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapRotation.copy(t.envMapRotation),this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.flatShading=t.flatShading,this.fog=t.fog,this}}class Bv extends we{constructor(t,e=1){super(),this.isLight=!0,this.type="Light",this.color=new mr(t),this.intensity=e}dispose(){}copy(t,e){return super.copy(t,e),this.color.copy(t.color),this.intensity=t.intensity,this}toJSON(t){const e=super.toJSON(t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,this.groundColor!==void 0&&(e.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(e.object.distance=this.distance),this.angle!==void 0&&(e.object.angle=this.angle),this.decay!==void 0&&(e.object.decay=this.decay),this.penumbra!==void 0&&(e.object.penumbra=this.penumbra),this.shadow!==void 0&&(e.object.shadow=this.shadow.toJSON()),this.target!==void 0&&(e.object.target=this.target.uuid),e}}const i0=new Kt,ql=new rt,Wl=new rt;class Fv{constructor(t){this.camera=t,this.intensity=1,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Qt(512,512),this.mapType=Uf,this.map=null,this.mapPass=null,this.matrix=new Kt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Cv,this._frameExtents=new Qt(1,1),this._viewportCount=1,this._viewports=[new Te(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(t){const e=this.camera,r=this.matrix;ql.setFromMatrixPosition(t.matrixWorld),e.position.copy(ql),Wl.setFromMatrixPosition(t.target.matrixWorld),e.lookAt(Wl),e.updateMatrixWorld(),i0.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),this._frustum.setFromProjectionMatrix(i0,e.coordinateSystem,e.reversedDepth),e.reversedDepth?r.set(.5,0,0,.5,0,.5,0,.5,0,0,1,0,0,0,0,1):r.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),r.multiply(i0)}getViewport(t){return this._viewports[t]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(t){return this.camera=t.camera.clone(),this.intensity=t.intensity,this.bias=t.bias,this.radius=t.radius,this.autoUpdate=t.autoUpdate,this.needsUpdate=t.needsUpdate,this.normalBias=t.normalBias,this.blurSamples=t.blurSamples,this.mapSize.copy(t.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const t={};return this.intensity!==1&&(t.intensity=this.intensity),this.bias!==0&&(t.bias=this.bias),this.normalBias!==0&&(t.normalBias=this.normalBias),this.radius!==1&&(t.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}const Vl=new Kt,di=new rt,s0=new rt;class Dv extends Fv{constructor(){super(new yv(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Qt(4,2),this._viewportCount=6,this._viewports=[new Te(2,1,1,1),new Te(0,1,1,1),new Te(3,1,1,1),new Te(1,1,1,1),new Te(3,0,1,1),new Te(1,0,1,1)],this._cubeDirections=[new rt(1,0,0),new rt(-1,0,0),new rt(0,0,1),new rt(0,0,-1),new rt(0,1,0),new rt(0,-1,0)],this._cubeUps=[new rt(0,1,0),new rt(0,1,0),new rt(0,1,0),new rt(0,1,0),new rt(0,0,1),new rt(0,0,-1)]}updateMatrices(t,e=0){const r=this.camera,i=this.matrix,s=t.distance||r.far;s!==r.far&&(r.far=s,r.updateProjectionMatrix()),di.setFromMatrixPosition(t.matrixWorld),r.position.copy(di),s0.copy(r.position),s0.add(this._cubeDirections[e]),r.up.copy(this._cubeUps[e]),r.lookAt(s0),r.updateMatrixWorld(),i.makeTranslation(-di.x,-di.y,-di.z),Vl.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Vl,r.coordinateSystem,r.reversedDepth)}}class Mv extends Bv{constructor(t,e,r=0,i=2){super(t,e),this.isPointLight=!0,this.type="PointLight",this.distance=r,this.decay=i,this.shadow=new Dv}get power(){return this.intensity*4*Math.PI}set power(t){this.intensity=t/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(t,e){return super.copy(t,e),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:zf}}));typeof window!="undefined"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=zf);class Tv extends we{constructor(t=document.createElement("div")){super(),this.isCSS2DObject=!0,this.element=t,this.element.style.position="absolute",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.center=new Qt(.5,.5),this.addEventListener("removed",function(){this.traverse(function(e){e.element instanceof e.element.ownerDocument.defaultView.Element&&e.element.parentNode!==null&&e.element.remove()})})}copy(t,e){return super.copy(t,e),this.element=t.element.cloneNode(!0),this.center=t.center,this}}new rt;new Kt;new Kt;new rt;new rt;const Rv={name:"局放测点",label:"局放测点",create:function(n,t){return Ct(this,null,function*(){const{transformControls:e}=t,r=document.createElement("div");r.style.position="relative",r.style.gap="20px";const i=document.createElement("img");i.style.objectFit="fill",i.style.width="1.3vw",i.style.height="1.3vw",i.src=ol,i.style.cursor="pointer",i.style.pointerEvents="auto",i.style.userSelect="none",r.append(i);const s=document.createElement("div");Object.assign(s.style,{position:"absolute",top:"0",left:"1.8vw",display:"none",flexDirection:"column",gap:"10px",padding:"10px",borderRadius:"4px",border:"1px solid rgba(255, 255, 255, 0.2)",backdropFilter:"blur(12px)",background:"#24262933",minWidth:"12vw"}),n.valueEleId||(n.valueEleId=g0()),s.innerHTML=`
|
|
45
|
-
<div style="padding-bottom: 10px; font-size: 16px; color: #ffffff; border-bottom: 1px solid rgba(255, 113, 108, 0.5);white-space: nowrap;">${n.name}</div>
|
|
39
|
+
**/process.env.NODE_ENV!=="production"&&Object.freeze({});process.env.NODE_ENV!=="production"&&Object.freeze([]);const ux=Object.prototype.hasOwnProperty,f0=(t,e)=>ux.call(t,e),fx=Array.isArray,ni=t=>typeof t=="function",Wr=t=>typeof t=="string",hu=t=>t!==null&&typeof t=="object",Ko=t=>typeof t=="boolean",lr=t=>typeof t=="number",lx=t=>typeof Element=="undefined"?!1:t instanceof Element,hx=t=>Wr(t)?!Number.isNaN(Number(t)):!1;var Bs;const vr=typeof window!="undefined",dx=t=>typeof t=="string",px=()=>{};vr&&((Bs=window==null?void 0:window.navigator)!=null&&Bs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function M0(t){return typeof t=="function"?t():T.unref(t)}function xx(t){return t}function U0(t){return T.getCurrentScope()?(T.onScopeDispose(t),!0):!1}function vx(t,e=!0){T.getCurrentInstance()?T.onMounted(t):e?t():T.nextTick(t)}function yx(t,e,r={}){const{immediate:n=!0}=r,i=T.ref(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function a(){i.value=!1,s()}function h(...u){s(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...u)},M0(e))}return n&&(i.value=!0,vr&&h()),U0(a),{isPending:T.readonly(i),start:h,stop:a}}function du(t){var e;const r=M0(t);return(e=r==null?void 0:r.$el)!=null?e:r}const pu=vr?window:void 0;function mx(...t){let e,r,n,i;if(dx(t[0])||Array.isArray(t[0])?([r,n,i]=t,e=pu):[e,r,n,i]=t,!e)return px;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(l=>l()),o.length=0},a=(l,x,d,v)=>(l.addEventListener(x,d,v),()=>l.removeEventListener(x,d,v)),h=T.watch(()=>[du(e),M0(i)],([l,x])=>{s(),l&&o.push(...r.flatMap(d=>n.map(v=>a(l,d,v,x))))},{immediate:!0,flush:"post"}),u=()=>{h(),s()};return U0(u),u}function gx(t,e=!1){const r=T.ref(),n=()=>r.value=!!t();return n(),vx(n,e),r}const Ds=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Ss="__vueuse_ssr_handlers__";Ds[Ss]=Ds[Ss]||{};var Fs=Object.getOwnPropertySymbols,Ex=Object.prototype.hasOwnProperty,Ax=Object.prototype.propertyIsEnumerable,wx=(t,e)=>{var r={};for(var n in t)Ex.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Fs)for(var n of Fs(t))e.indexOf(n)<0&&Ax.call(t,n)&&(r[n]=t[n]);return r};function _x(t,e,r={}){const n=r,{window:i=pu}=n,o=wx(n,["window"]);let s;const a=gx(()=>i&&"ResizeObserver"in i),h=()=>{s&&(s.disconnect(),s=void 0)},u=T.watch(()=>du(t),x=>{h(),a.value&&i&&x&&(s=new ResizeObserver(e),s.observe(x,o))},{immediate:!0,flush:"post"}),l=()=>{h(),u()};return U0(l),{isSupported:a,stop:l}}var Rs;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(Rs||(Rs={}));var bx=Object.defineProperty,Is=Object.getOwnPropertySymbols,Cx=Object.prototype.hasOwnProperty,Bx=Object.prototype.propertyIsEnumerable,Ts=(t,e,r)=>e in t?bx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Dx=(t,e)=>{for(var r in e||(e={}))Cx.call(e,r)&&Ts(t,r,e[r]);if(Is)for(var r of Is(e))Bx.call(e,r)&&Ts(t,r,e[r]);return t};const Sx={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]};Dx({linear:xx},Sx);class Fx 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 Fx(`[${t}] ${e}`):t;console.warn(r)}}const Os={current:0},Ps=T.ref(0),xu=2e3,Ns=Symbol("elZIndexContextKey"),vu=Symbol("zIndexContextKey"),Rx=t=>{const e=T.getCurrentInstance()?T.inject(Ns,Os):Os,r=t||(T.getCurrentInstance()?T.inject(vu,void 0):void 0),n=T.computed(()=>{const s=T.unref(r);return lr(s)?s:xu}),i=T.computed(()=>n.value+Ps.value),o=()=>(e.current++,Ps.value=e.current,i.value);return!vr&&!T.inject(Ns)&&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 Ix={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 Tx=t=>(e,r)=>Ox(e,r,T.unref(t)),Ox=(t,e,r)=>E0.get(r,t,t).replace(/\{(\w+)\}/g,(n,i)=>{var o;return`${(o=e==null?void 0:e[i])!=null?o:`{${i}}`}`}),Px=t=>{const e=T.computed(()=>T.unref(t).name),r=T.isRef(t)?t:T.ref(t);return{lang:e,locale:r,t:Tx(t)}},yu=Symbol("localeContextKey"),Nx=t=>{const e=t||T.inject(yu,T.ref());return Px(T.computed(()=>e.value||Ix))},mu="__epPropKey",ft=t=>t,Lx=t=>hu(t)&&!!t[mu],gu=(t,e)=>{if(!hu(t)||Lx(t))return t;const{values:r,required:n,default:i,type:o,validator:s}=t,h={type:o,required:!!n,validator:r||s?u=>{let l=!1,x=[];if(r&&(x=Array.from(r),f0(t,"default")&&x.push(i),l||(l=x.includes(u))),s&&(l||(l=s(u))),!l&&x.length>0){const d=[...new Set(x)].map(v=>JSON.stringify(v)).join(", ");T.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return l}:void 0,[mu]:!0};return f0(t,"default")&&(h.default=i),h},Cn=t=>E0.fromPairs(Object.entries(t).map(([e,r])=>[e,gu(r,e)])),kx=["","default","small","large"],Mx=gu({type:String,values:kx,required:!1}),Ux=Symbol("size"),$x=Symbol("emptyValuesContextKey"),Hx=Cn({emptyValues:Array,valueOnClear:{type:ft([String,Number,Boolean,Function]),default:void 0,validator:t=>(t=ni(t)?t():t,fx(t)?t.every(e=>!e):!t)}}),Ls=t=>Object.keys(t),ii=T.ref();function Eu(t,e=void 0){return T.getCurrentInstance()?T.inject(fu,ii):ii}function zx(t,e){const r=Eu(),n=k0(t,T.computed(()=>{var a;return((a=r.value)==null?void 0:a.namespace)||Xn})),i=Nx(T.computed(()=>{var a;return(a=r.value)==null?void 0:a.locale})),o=Rx(T.computed(()=>{var a;return((a=r.value)==null?void 0:a.zIndex)||xu})),s=T.computed(()=>{var a;return T.unref(e)||((a=r.value)==null?void 0:a.size)||""});return Au(T.computed(()=>T.unref(r)||{})),{ns:n,locale:i,zIndex:o,size:s}}const Au=(t,e,r=!1)=>{var n;const i=!!T.getCurrentInstance(),o=i?Eu():void 0,s=(n=void 0)!=null?n:i?T.provide:void 0;if(!s){bn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const a=T.computed(()=>{const h=T.unref(t);return o!=null&&o.value?qx(o.value,h):h});return s(fu,a),s(yu,T.computed(()=>a.value.locale)),s(lu,T.computed(()=>a.value.namespace)),s(vu,T.computed(()=>a.value.zIndex)),s(Ux,{size:T.computed(()=>a.value.size||"")}),s($x,T.computed(()=>({emptyValues:a.value.emptyValues,valueOnClear:a.value.valueOnClear}))),(r||!ii.value)&&(ii.value=a.value),a},qx=(t,e)=>{const r=[...new Set([...Ls(t),...Ls(e)])],n={};for(const i of r)n[i]=e[i]!==void 0?e[i]:t[i];return n};var $0=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r};const Wx="utils/dom/style";function l0(t,e="px"){if(!t&&t!==0)return"";if(lr(t)||hx(t))return`${t}${e}`;if(Wr(t))return t;bn(Wx,"binding value must be a string or number")}const wu=(t,e)=>(t.install=r=>{for(const n of[t,...Object.values({})])r.component(n.name,n)},t),Vx=(t,e)=>(t.install=r=>{t._context=r._context,r.config.globalProperties[e]=t},t),Gx=Cn({size:{type:ft([Number,String])},color:{type:String}}),jx=T.defineComponent({name:"ElIcon",inheritAttrs:!1}),Kx=T.defineComponent(Rt($e({},jx),{props:Gx,setup(t){const e=t,r=k0("icon"),n=T.computed(()=>{const{size:i,color:o}=e,s=l0(i);return!s&&!o?{}:{fontSize:s,"--color":o}});return(i,o)=>(T.openBlock(),T.createElementBlock("i",T.mergeProps({class:T.unref(r).b(),style:T.unref(n)},i.$attrs),[T.renderSlot(i.$slots,"default")],16))}}));var Yx=$0(Kx,[["__file","icon.vue"]]);const ks=wu(Yx);/*! Element Plus Icons Vue v2.3.2 */var Xx=T.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,r)=>(T.openBlock(),T.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[T.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"})]))}}),Jx=Xx,Qx=T.defineComponent({name:"Close",__name:"close",setup(t){return(e,r)=>(T.openBlock(),T.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[T.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"})]))}}),Zx=Qx,ev=T.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(e,r)=>(T.openBlock(),T.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[T.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"})]))}}),Ms=ev,tv=T.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,r)=>(T.openBlock(),T.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[T.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"})]))}}),rv=tv,nv=T.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,r)=>(T.openBlock(),T.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[T.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"})]))}}),iv=nv;const ov=ft([String,Object,Function]),av={Close:Zx},Us={primary:Ms,success:rv,warning:iv,error:Jx,info:Ms},sv=()=>vr&&/android/i.test(window.navigator.userAgent),cv=t=>t,h0={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"},uv=t=>{if(t.code&&t.code!=="Unidentified")return t.code;const e=fv(t);if(e){if(Object.values(h0).includes(e))return e;switch(e){case" ":return h0.space;default:return""}}return""},fv=t=>{let e=t.key&&t.key!=="Unidentified"?t.key:"";if(!e&&t.type==="keyup"&&sv()){const r=t.target;e=r.value.charAt(r.selectionStart-1)}return e},lv=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:ft([String,Object,Array])},offset:{type:ft(Array),default:[0,0]},badgeClass:{type:String}}),hv=T.defineComponent({name:"ElBadge"}),dv=T.defineComponent(Rt($e({},hv),{props:lv,setup(t,{expose:e}){const r=t,n=k0("badge"),i=T.computed(()=>r.isDot?"":lr(r.value)&&lr(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`),o=T.computed(()=>{var s;return[{backgroundColor:r.color,marginRight:l0(-r.offset[0]),marginTop:l0(r.offset[1])},(s=r.badgeStyle)!=null?s:{}]});return e({content:i}),(s,a)=>(T.openBlock(),T.createElementBlock("div",{class:T.normalizeClass(T.unref(n).b())},[T.renderSlot(s.$slots,"default"),T.createVNode(T.Transition,{name:`${T.unref(n).namespace.value}-zoom-in-center`,persisted:""},{default:T.withCtx(()=>[T.withDirectives(T.createElementVNode("sup",{class:T.normalizeClass([T.unref(n).e("content"),T.unref(n).em("content",s.type),T.unref(n).is("fixed",!!s.$slots.default),T.unref(n).is("dot",s.isDot),T.unref(n).is("hide-zero",!s.showZero&&s.value===0),s.badgeClass]),style:T.normalizeStyle(T.unref(o))},[T.renderSlot(s.$slots,"content",{value:T.unref(i)},()=>[T.createTextVNode(T.toDisplayString(T.unref(i)),1)])],6),[[T.vShow,!s.hidden&&(T.unref(i)||s.isDot||s.$slots.content)]])]),_:3},8,["name"])],2))}}));var pv=$0(dv,[["__file","badge.vue"]]);const xv=wu(pv),vv=Cn($e({a11y:{type:Boolean,default:!0},locale:{type:ft(Object)},size:Mx,button:{type:ft(Object)},card:{type:ft(Object)},dialog:{type:ft(Object)},link:{type:ft(Object)},experimentalFeatures:{type:ft(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ft(Object)},zIndex:Number,namespace:{type:String,default:"el"}},Hx)),ot={placement:"top"};T.defineComponent({name:"ElConfigProvider",props:vv,setup(t,{slots:e}){const r=Au(t);return T.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}),()=>T.renderSlot(e,"default",{config:r==null?void 0:r.value})}});const _u=["primary","success","info","warning","error"],bu=["top","top-left","top-right","bottom","bottom-left","bottom-right"],Lr="top",it=cv({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}),yv=Cn({customClass:{type:String,default:it.customClass},dangerouslyUseHTMLString:{type:Boolean,default:it.dangerouslyUseHTMLString},duration:{type:Number,default:it.duration},icon:{type:ov,default:it.icon},id:{type:String,default:it.id},message:{type:ft([String,Object,Function]),default:it.message},onClose:{type:ft(Function),default:it.onClose},showClose:{type:Boolean,default:it.showClose},type:{type:String,values:_u,default:it.type},plain:{type:Boolean,default:it.plain},offset:{type:Number,default:it.offset},placement:{type:String,values:bu,default:it.placement},zIndex:{type:Number,default:it.zIndex},grouping:{type:Boolean,default:it.grouping},repeatNum:{type:Number,default:it.repeatNum}}),mv={destroy:()=>!0},bt=T.shallowReactive({}),gv=t=>(bt[t]||(bt[t]=T.shallowReactive([])),bt[t]),Ev=(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}},Av=(t,e)=>{const{prev:r}=Ev(t,e);return r?r.vm.exposed.bottom.value:0},wv=(t,e,r)=>(bt[r]||[]).findIndex(o=>o.id===t)>0?16:e,_v=T.defineComponent({name:"ElMessage"}),bv=T.defineComponent(Rt($e({},_v),{props:yv,emits:mv,setup(t,{expose:e,emit:r}){const n=t,{Close:i}=av,o=T.ref(!1),{ns:s,zIndex:a}=zx("message"),{currentZIndex:h,nextZIndex:u}=a,l=T.ref(),x=T.ref(!1),d=T.ref(0);let v;const m=T.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),g=T.computed(()=>{const W=n.type;return{[s.bm("icon",W)]:W&&Us[W]}}),E=T.computed(()=>n.icon||Us[n.type]||""),R=T.computed(()=>n.placement||Lr),A=T.computed(()=>Av(n.id,R.value)),w=T.computed(()=>wv(n.id,n.offset,R.value)+A.value),C=T.computed(()=>d.value+w.value),D=T.computed(()=>R.value.includes("left")?s.is("left"):R.value.includes("right")?s.is("right"):s.is("center")),I=T.computed(()=>R.value.startsWith("top")?"top":"bottom"),L=T.computed(()=>({[I.value]:`${w.value}px`,zIndex:h.value}));function q(){n.duration!==0&&({stop:v}=yx(()=>{O()},n.duration))}function Z(){v==null||v()}function O(){x.value=!1,T.nextTick(()=>{var W;o.value||((W=n.onClose)==null||W.call(n),r("destroy"))})}function k(W){uv(W)===h0.esc&&O()}return T.onMounted(()=>{q(),u(),x.value=!0}),T.watch(()=>n.repeatNum,()=>{Z(),q()}),mx(document,"keydown",k),_x(l,()=>{d.value=l.value.getBoundingClientRect().height}),e({visible:x,bottom:C,close:O}),(W,Y)=>(T.openBlock(),T.createBlock(T.Transition,{name:T.unref(s).b("fade"),onBeforeEnter:J=>o.value=!0,onBeforeLeave:W.onClose,onAfterLeave:J=>W.$emit("destroy"),persisted:""},{default:T.withCtx(()=>[T.withDirectives(T.createElementVNode("div",{id:W.id,ref_key:"messageRef",ref:l,class:T.normalizeClass([T.unref(s).b(),{[T.unref(s).m(W.type)]:W.type},T.unref(s).is("closable",W.showClose),T.unref(s).is("plain",W.plain),T.unref(s).is("bottom",T.unref(I)==="bottom"),T.unref(D),W.customClass]),style:T.normalizeStyle(T.unref(L)),role:"alert",onMouseenter:Z,onMouseleave:q},[W.repeatNum>1?(T.openBlock(),T.createBlock(T.unref(xv),{key:0,value:W.repeatNum,type:T.unref(m),class:T.normalizeClass(T.unref(s).e("badge"))},null,8,["value","type","class"])):T.createCommentVNode("v-if",!0),T.unref(E)?(T.openBlock(),T.createBlock(T.unref(ks),{key:1,class:T.normalizeClass([T.unref(s).e("icon"),T.unref(g)])},{default:T.withCtx(()=>[(T.openBlock(),T.createBlock(T.resolveDynamicComponent(T.unref(E))))]),_:1},8,["class"])):T.createCommentVNode("v-if",!0),T.renderSlot(W.$slots,"default",{},()=>[W.dangerouslyUseHTMLString?(T.openBlock(),T.createElementBlock(T.Fragment,{key:1},[T.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),T.createElementVNode("p",{class:T.normalizeClass(T.unref(s).e("content")),innerHTML:W.message},null,10,["innerHTML"])],2112)):(T.openBlock(),T.createElementBlock("p",{key:0,class:T.normalizeClass(T.unref(s).e("content"))},T.toDisplayString(W.message),3))]),W.showClose?(T.openBlock(),T.createBlock(T.unref(ks),{key:2,class:T.normalizeClass(T.unref(s).e("closeBtn")),onClick:T.withModifiers(O,["stop"])},{default:T.withCtx(()=>[T.createVNode(T.unref(i))]),_:1},8,["class","onClick"])):T.createCommentVNode("v-if",!0)],46,["id"]),[[T.vShow,x.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}}));var Cv=$0(bv,[["__file","message.vue"]]);let Bv=1;const Dv=t=>{if(!t.appendTo)t.appendTo=document.body;else if(Wr(t.appendTo)){let r=document.querySelector(t.appendTo);lx(r)||(bn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),r=document.body),t.appendTo=r}},Sv=t=>{!t.placement&&Wr(ot.placement)&&ot.placement&&(t.placement=ot.placement),t.placement||(t.placement=Lr),bu.includes(t.placement)||(bn("ElMessage",`Invalid placement: ${t.placement}. Falling back to '${Lr}'.`),t.placement=Lr)},Cu=t=>{const e=!t||Wr(t)||T.isVNode(t)||ni(t)?{message:t}:t,r=$e($e({},it),e);return Dv(r),Sv(r),Ko(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),Ko(ot.showClose)&&!r.showClose&&(r.showClose=ot.showClose),Ko(ot.plain)&&!r.plain&&(r.plain=ot.plain),r},Fv=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()},Rv=(n,r)=>{var i=n,{appendTo:t}=i,e=K0(i,["appendTo"]);const o=`message_${Bv++}`,s=e.onClose,a=document.createElement("div"),h=Rt($e({},e),{id:o,onClose:()=>{s==null||s(),Fv(d)},onDestroy:()=>{T.render(null,a)}}),u=T.createVNode(Cv,h,ni(h.message)||T.isVNode(h.message)?{default:ni(h.message)?h.message:()=>h.message}:null);u.appContext=r||hr._context,T.render(u,a),t.appendChild(a.firstElementChild);const l=u.component,d={id:o,vnode:u,vm:l,handler:{close:()=>{l.exposed.close()}},props:u.component.props};return d},hr=(t={},e)=>{if(!vr)return{close:()=>{}};const r=Cu(t),n=gv(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=Rv(r,e);return n.push(i),i.handler};_u.forEach(t=>{hr[t]=(e={},r)=>{const n=Cu(e);return hr(Rt($e({},n),{type:t}),r)}});function Iv(t){for(const e in bt)if(f0(bt,e)){const r=[...bt[e]];for(const n of r)(!t||t===n.props.type)&&n.handler.close()}}function Tv(t){if(!bt[t])return;[...bt[t]].forEach(r=>r.handler.close())}hr.closeAll=Iv;hr.closeAllByPlacement=Tv;hr._context=null;const Yt=Vx(hr,"$message"),Bu="0123456789abcdeffedcba9876543210",Du="4b0de988570c3a0f",Ov=window.ENCRYPT;let kr=Ov&&new uu;function Su(t=16,e="0123456789abcdefghijklmnopqrstuvwxyz"){let r="",n=e.length;for(;t>0;)r+=e[Math.floor(Math.random()*n)],t--;return r}function Fu(){return be(this,null,function*(){return kr||(kr=new uu),new Promise((t,e)=>{kr.armEnum().then(r=>{t(+r)}).catch(r=>{Yt({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e(r)})})})}E0.throttle(()=>be(exports,null,function*(){const t=yield Fu(),e={};if(typeof t!="number"||t<=0)Yt({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e.resetToken();else{const r=yield Nv();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 Pv(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 Nv(){return be(this,null,function*(){if(!kr)return Yt({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"});const t=yield Fu();let e=[];for(let r=0;r<t;r++){const n=yield Pv(r);e.push(n)}return e})}Su(16);Su(16);const Ru=window.meta.app.inspect?Hr.constants.CBC:Hr.constants.ECB;tx.generateKeyPair();function $s(t,e,r={}){const n=Iu(Du),i=r.mode||Ru;r=i===Hr.constants.ECB?$e({mode:i,inputEncoding:"utf8",outputEncoding:"hex"},r):$e({iv:Bu,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 Hs(t,e,r={}){const n=Iu(Du),i=r.mode||Ru;return r=i===Hr.constants.ECB?$e({mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r):$e({iv:Bu,mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r),Hr.decrypt(t,n,r)}function Iu(t){return[...t].map(e=>e.charCodeAt().toString(16)).join("")}const H0={getLocal:t=>{try{let e=window.localStorage.getItem(t);return e=e!==null?Hs(e):e,JSON.parse(e)}catch(e){console.error(e)}},setLocal:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?$s(r):r,window.localStorage.setItem(t,r)}catch(r){console.error(r)}},eachLocal:t=>{if(!t||ka(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?Hs(e):e,JSON.parse(e)}catch(e){console.error(e)}},setSession:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?$s(r):r,window.sessionStorage.setItem(t,r)}catch(r){console.error(r)}},eachSession:t=>{if(!t||ka(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)}},Lv="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",zs="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",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='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 Mv extends Ge.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 Ge.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 Ge.Vector3;new Ge.Matrix4;new Ge.Matrix4;new Ge.Vector3;new Ge.Vector3;const Uv={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=zs,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",border:"1px solid rgba(255, 255, 255, 0.2)",backdropFilter:"blur(12px)",background:"#24262933",minWidth:"12vw"}),t.valueEleId||(t.valueEleId=s0()),o.innerHTML=`
|
|
41
|
+
<div style="padding-bottom: 10px; font-size: 16px; color: #ffffff; border-bottom: 1px solid rgba(255, 113, 108, 0.5);white-space: nowrap;">${t.name}</div>
|
|
46
42
|
<div style="font-size: 14px; color: #cae4ff;">幅值峰值</div>
|
|
47
43
|
<div style="display: flex; align-items: flex-end; gap: 10px; color: #FF716C;">
|
|
48
|
-
<span id="${
|
|
44
|
+
<span id="${t.valueEleId}" style="font-size: 24px;font-weight: 600;">${t.value}</span>
|
|
49
45
|
<span style="font-size: 14px;">dBm</span>
|
|
50
46
|
</div>
|
|
51
|
-
`;const
|
|
47
|
+
`;const s=new Mv(n);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",()=>{c0.emit("three-event",{type:"pd-sensor-click",data:s}),t.preview||setTimeout(()=>{r.attach(s)},100)}),n.append(o);const a=u=>{u===0?i.src=zs:u===1?i.src=Lv:u===2&&(i.src=kv)},h=u=>{const l=document.getElementById(t.valueEleId);l&&(l.innerText=u)};return s.changeState=a,s.changeValue=h,setTimeout(()=>{a(t.state),h(t.value)},200),s})},getStorage:function(t){return t.userData.params}};var Tu={exports:{}};/*!
|
|
52
48
|
localForage -- Offline Storage, Improved
|
|
53
49
|
Version 1.10.0
|
|
54
50
|
https://localforage.github.io/localForage
|
|
55
51
|
(c) 2013-2017 Mozilla, Apache License 2.0
|
|
56
|
-
*/(function(n,t){(function(e){n.exports=e()})(function(){return function e(r,i,s){function o(c,l){if(!i[c]){if(!r[c]){var f=typeof mi=="function"&&mi;if(!l&&f)return f(c,!0);if(a)return a(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var p=i[c]={exports:{}};r[c][0].call(p.exports,function(x){var y=r[c][1][x];return o(y||x)},p,p.exports,e,r,i,s)}return i[c].exports}for(var a=typeof mi=="function"&&mi,u=0;u<s.length;u++)o(s[u]);return o}({1:[function(e,r,i){(function(s){var o=s.MutationObserver||s.WebKitMutationObserver,a;if(o){var u=0,c=new o(x),l=s.document.createTextNode("");c.observe(l,{characterData:!0}),a=function(){l.data=u=++u%2}}else if(!s.setImmediate&&typeof s.MessageChannel!="undefined"){var f=new s.MessageChannel;f.port1.onmessage=x,a=function(){f.port2.postMessage(0)}}else"document"in s&&"onreadystatechange"in s.document.createElement("script")?a=function(){var g=s.document.createElement("script");g.onreadystatechange=function(){x(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},s.document.documentElement.appendChild(g)}:a=function(){setTimeout(x,0)};var h,p=[];function x(){h=!0;for(var g,A,w=p.length;w;){for(A=p,p=[],g=-1;++g<w;)A[g]();w=p.length}h=!1}r.exports=y;function y(g){p.push(g)===1&&!h&&a()}}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(e,r,i){var s=e(1);function o(){}var a={},u=["REJECTED"],c=["FULFILLED"],l=["PENDING"];r.exports=f;function f(C){if(typeof C!="function")throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,C!==o&&y(this,C)}f.prototype.catch=function(C){return this.then(null,C)},f.prototype.then=function(C,T){if(typeof C!="function"&&this.state===c||typeof T!="function"&&this.state===u)return this;var R=new this.constructor(o);if(this.state!==l){var N=this.state===c?C:T;p(R,N,this.outcome)}else this.queue.push(new h(R,C,T));return R};function h(C,T,R){this.promise=C,typeof T=="function"&&(this.onFulfilled=T,this.callFulfilled=this.otherCallFulfilled),typeof R=="function"&&(this.onRejected=R,this.callRejected=this.otherCallRejected)}h.prototype.callFulfilled=function(C){a.resolve(this.promise,C)},h.prototype.otherCallFulfilled=function(C){p(this.promise,this.onFulfilled,C)},h.prototype.callRejected=function(C){a.reject(this.promise,C)},h.prototype.otherCallRejected=function(C){p(this.promise,this.onRejected,C)};function p(C,T,R){s(function(){var N;try{N=T(R)}catch(Y){return a.reject(C,Y)}N===C?a.reject(C,new TypeError("Cannot resolve promise with itself")):a.resolve(C,N)})}a.resolve=function(C,T){var R=g(x,T);if(R.status==="error")return a.reject(C,R.value);var N=R.value;if(N)y(C,N);else{C.state=c,C.outcome=T;for(var Y=-1,I=C.queue.length;++Y<I;)C.queue[Y].callFulfilled(T)}return C},a.reject=function(C,T){C.state=u,C.outcome=T;for(var R=-1,N=C.queue.length;++R<N;)C.queue[R].callRejected(T);return C};function x(C){var T=C&&C.then;if(C&&(typeof C=="object"||typeof C=="function")&&typeof T=="function")return function(){T.apply(C,arguments)}}function y(C,T){var R=!1;function N(q){R||(R=!0,a.reject(C,q))}function Y(q){R||(R=!0,a.resolve(C,q))}function I(){T(Y,N)}var O=g(I);O.status==="error"&&N(O.value)}function g(C,T){var R={};try{R.value=C(T),R.status="success"}catch(N){R.status="error",R.value=N}return R}f.resolve=A;function A(C){return C instanceof this?C:a.resolve(new this(o),C)}f.reject=w;function w(C){var T=new this(o);return a.reject(T,C)}f.all=E;function E(C){var T=this;if(Object.prototype.toString.call(C)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=C.length,N=!1;if(!R)return this.resolve([]);for(var Y=new Array(R),I=0,O=-1,q=new this(o);++O<R;)j(C[O],O);return q;function j(J,G){T.resolve(J).then(Q,function(ot){N||(N=!0,a.reject(q,ot))});function Q(ot){Y[G]=ot,++I===R&&!N&&(N=!0,a.resolve(q,Y))}}}f.race=_;function _(C){var T=this;if(Object.prototype.toString.call(C)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=C.length,N=!1;if(!R)return this.resolve([]);for(var Y=-1,I=new this(o);++Y<R;)O(C[Y]);return I;function O(q){T.resolve(q).then(function(j){N||(N=!0,a.resolve(I,j))},function(j){N||(N=!0,a.reject(I,j))})}}},{1:1}],3:[function(e,r,i){(function(s){typeof s.Promise!="function"&&(s.Promise=e(2))}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(e,r,i){var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S};function o(S,z){if(!(S instanceof z))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(S){return}}var u=a();function c(){try{if(!u||!u.open)return!1;var S=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),z=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!S||z)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(D){return!1}}function l(S,z){S=S||[],z=z||{};try{return new Blob(S,z)}catch($){if($.name!=="TypeError")throw $;for(var D=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,L=new D,W=0;W<S.length;W+=1)L.append(S[W]);return L.getBlob(z.type)}}typeof Promise=="undefined"&&e(3);var f=Promise;function h(S,z){z&&S.then(function(D){z(null,D)},function(D){z(D)})}function p(S,z,D){typeof z=="function"&&S.then(z),typeof D=="function"&&S.catch(D)}function x(S){return typeof S!="string"&&(console.warn(S+" used as a key, but it is not a string."),S=String(S)),S}function y(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var g="local-forage-detect-blob-support",A=void 0,w={},E=Object.prototype.toString,_="readonly",C="readwrite";function T(S){for(var z=S.length,D=new ArrayBuffer(z),L=new Uint8Array(D),W=0;W<z;W++)L[W]=S.charCodeAt(W);return D}function R(S){return new f(function(z){var D=S.transaction(g,C),L=l([""]);D.objectStore(g).put(L,"key"),D.onabort=function(W){W.preventDefault(),W.stopPropagation(),z(!1)},D.oncomplete=function(){var W=navigator.userAgent.match(/Chrome\/(\d+)/),$=navigator.userAgent.match(/Edge\//);z($||!W||parseInt(W[1],10)>=43)}}).catch(function(){return!1})}function N(S){return typeof A=="boolean"?f.resolve(A):R(S).then(function(z){return A=z,A})}function Y(S){var z=w[S.name],D={};D.promise=new f(function(L,W){D.resolve=L,D.reject=W}),z.deferredOperations.push(D),z.dbReady?z.dbReady=z.dbReady.then(function(){return D.promise}):z.dbReady=D.promise}function I(S){var z=w[S.name],D=z.deferredOperations.pop();if(D)return D.resolve(),D.promise}function O(S,z){var D=w[S.name],L=D.deferredOperations.pop();if(L)return L.reject(z),L.promise}function q(S,z){return new f(function(D,L){if(w[S.name]=w[S.name]||X(),S.db)if(z)Y(S),S.db.close();else return D(S.db);var W=[S.name];z&&W.push(S.version);var $=u.open.apply(u,W);z&&($.onupgradeneeded=function(et){var ct=$.result;try{ct.createObjectStore(S.storeName),et.oldVersion<=1&&ct.createObjectStore(g)}catch(ht){if(ht.name==="ConstraintError")console.warn('The database "'+S.name+'" has been upgraded from version '+et.oldVersion+" to version "+et.newVersion+', but the storage "'+S.storeName+'" already exists.');else throw ht}}),$.onerror=function(et){et.preventDefault(),L($.error)},$.onsuccess=function(){var et=$.result;et.onversionchange=function(ct){ct.target.close()},D(et),I(S)}})}function j(S){return q(S,!1)}function J(S){return q(S,!0)}function G(S,z){if(!S.db)return!0;var D=!S.db.objectStoreNames.contains(S.storeName),L=S.version<S.db.version,W=S.version>S.db.version;if(L&&(S.version!==z&&console.warn('The database "'+S.name+`" can't be downgraded from version `+S.db.version+" to version "+S.version+"."),S.version=S.db.version),W||D){if(D){var $=S.db.version+1;$>S.version&&(S.version=$)}return!0}return!1}function Q(S){return new f(function(z,D){var L=new FileReader;L.onerror=D,L.onloadend=function(W){var $=btoa(W.target.result||"");z({__local_forage_encoded_blob:!0,data:$,type:S.type})},L.readAsBinaryString(S)})}function ot(S){var z=T(atob(S.data));return l([z],{type:S.type})}function it(S){return S&&S.__local_forage_encoded_blob}function ut(S){var z=this,D=z._initReady().then(function(){var L=w[z._dbInfo.name];if(L&&L.dbReady)return L.dbReady});return p(D,S,S),D}function at(S){Y(S);for(var z=w[S.name],D=z.forages,L=0;L<D.length;L++){var W=D[L];W._dbInfo.db&&(W._dbInfo.db.close(),W._dbInfo.db=null)}return S.db=null,j(S).then(function($){return S.db=$,G(S)?J(S):$}).then(function($){S.db=z.db=$;for(var et=0;et<D.length;et++)D[et]._dbInfo.db=$}).catch(function($){throw O(S,$),$})}function U(S,z,D,L){L===void 0&&(L=1);try{var W=S.db.transaction(S.storeName,z);D(null,W)}catch($){if(L>0&&(!S.db||$.name==="InvalidStateError"||$.name==="NotFoundError"))return f.resolve().then(function(){if(!S.db||$.name==="NotFoundError"&&!S.db.objectStoreNames.contains(S.storeName)&&S.version<=S.db.version)return S.db&&(S.version=S.db.version+1),J(S)}).then(function(){return at(S).then(function(){U(S,z,D,L-1)})}).catch(D);D($)}}function X(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function tt(S){var z=this,D={db:null};if(S)for(var L in S)D[L]=S[L];var W=w[D.name];W||(W=X(),w[D.name]=W),W.forages.push(z),z._initReady||(z._initReady=z.ready,z.ready=ut);var $=[];function et(){return f.resolve()}for(var ct=0;ct<W.forages.length;ct++){var ht=W.forages[ct];ht!==z&&$.push(ht._initReady().catch(et))}var ft=W.forages.slice(0);return f.all($).then(function(){return D.db=W.db,j(D)}).then(function(dt){return D.db=dt,G(D,z._defaultConfig.version)?J(D):dt}).then(function(dt){D.db=W.db=dt,z._dbInfo=D;for(var gt=0;gt<ft.length;gt++){var St=ft[gt];St!==z&&(St._dbInfo.db=D.db,St._dbInfo.version=D.version)}})}function K(S,z){var D=this;S=x(S);var L=new f(function(W,$){D.ready().then(function(){U(D._dbInfo,_,function(et,ct){if(et)return $(et);try{var ht=ct.objectStore(D._dbInfo.storeName),ft=ht.get(S);ft.onsuccess=function(){var dt=ft.result;dt===void 0&&(dt=null),it(dt)&&(dt=ot(dt)),W(dt)},ft.onerror=function(){$(ft.error)}}catch(dt){$(dt)}})}).catch($)});return h(L,z),L}function wt(S,z){var D=this,L=new f(function(W,$){D.ready().then(function(){U(D._dbInfo,_,function(et,ct){if(et)return $(et);try{var ht=ct.objectStore(D._dbInfo.storeName),ft=ht.openCursor(),dt=1;ft.onsuccess=function(){var gt=ft.result;if(gt){var St=gt.value;it(St)&&(St=ot(St));var zt=S(St,gt.key,dt++);zt!==void 0?W(zt):gt.continue()}else W()},ft.onerror=function(){$(ft.error)}}catch(gt){$(gt)}})}).catch($)});return h(L,z),L}function At(S,z,D){var L=this;S=x(S);var W=new f(function($,et){var ct;L.ready().then(function(){return ct=L._dbInfo,E.call(z)==="[object Blob]"?N(ct.db).then(function(ht){return ht?z:Q(z)}):z}).then(function(ht){U(L._dbInfo,C,function(ft,dt){if(ft)return et(ft);try{var gt=dt.objectStore(L._dbInfo.storeName);ht===null&&(ht=void 0);var St=gt.put(ht,S);dt.oncomplete=function(){ht===void 0&&(ht=null),$(ht)},dt.onabort=dt.onerror=function(){var zt=St.error?St.error:St.transaction.error;et(zt)}}catch(zt){et(zt)}})}).catch(et)});return h(W,D),W}function It(S,z){var D=this;S=x(S);var L=new f(function(W,$){D.ready().then(function(){U(D._dbInfo,C,function(et,ct){if(et)return $(et);try{var ht=ct.objectStore(D._dbInfo.storeName),ft=ht.delete(S);ct.oncomplete=function(){W()},ct.onerror=function(){$(ft.error)},ct.onabort=function(){var dt=ft.error?ft.error:ft.transaction.error;$(dt)}}catch(dt){$(dt)}})}).catch($)});return h(L,z),L}function yt(S){var z=this,D=new f(function(L,W){z.ready().then(function(){U(z._dbInfo,C,function($,et){if($)return W($);try{var ct=et.objectStore(z._dbInfo.storeName),ht=ct.clear();et.oncomplete=function(){L()},et.onabort=et.onerror=function(){var ft=ht.error?ht.error:ht.transaction.error;W(ft)}}catch(ft){W(ft)}})}).catch(W)});return h(D,S),D}function bt(S){var z=this,D=new f(function(L,W){z.ready().then(function(){U(z._dbInfo,_,function($,et){if($)return W($);try{var ct=et.objectStore(z._dbInfo.storeName),ht=ct.count();ht.onsuccess=function(){L(ht.result)},ht.onerror=function(){W(ht.error)}}catch(ft){W(ft)}})}).catch(W)});return h(D,S),D}function Mt(S,z){var D=this,L=new f(function(W,$){if(S<0){W(null);return}D.ready().then(function(){U(D._dbInfo,_,function(et,ct){if(et)return $(et);try{var ht=ct.objectStore(D._dbInfo.storeName),ft=!1,dt=ht.openKeyCursor();dt.onsuccess=function(){var gt=dt.result;if(!gt){W(null);return}S===0||ft?W(gt.key):(ft=!0,gt.advance(S))},dt.onerror=function(){$(dt.error)}}catch(gt){$(gt)}})}).catch($)});return h(L,z),L}function qt(S){var z=this,D=new f(function(L,W){z.ready().then(function(){U(z._dbInfo,_,function($,et){if($)return W($);try{var ct=et.objectStore(z._dbInfo.storeName),ht=ct.openKeyCursor(),ft=[];ht.onsuccess=function(){var dt=ht.result;if(!dt){L(ft);return}ft.push(dt.key),dt.continue()},ht.onerror=function(){W(ht.error)}}catch(dt){W(dt)}})}).catch(W)});return h(D,S),D}function __$t__(S,z){z=y.apply(this,arguments);var D=this.config();S=typeof S!="function"&&S||{},S.name||(S.name=S.name||D.name,S.storeName=S.storeName||D.storeName);var L=this,W;if(!S.name)W=f.reject("Invalid arguments");else{var $=S.name===D.name&&L._dbInfo.db,et=$?f.resolve(L._dbInfo.db):j(S).then(function(ct){var ht=w[S.name],ft=ht.forages;ht.db=ct;for(var dt=0;dt<ft.length;dt++)ft[dt]._dbInfo.db=ct;return ct});S.storeName?W=et.then(function(ct){if(ct.objectStoreNames.contains(S.storeName)){var ht=ct.version+1;Y(S);var ft=w[S.name],dt=ft.forages;ct.close();for(var gt=0;gt<dt.length;gt++){var St=dt[gt];St._dbInfo.db=null,St._dbInfo.version=ht}var zt=new f(function(Nt,Yt){var jt=u.open(S.name,ht);jt.onerror=function(v){var b=jt.result;b.close(),Yt(v)},jt.onupgradeneeded=function(){var v=jt.result;v.deleteObjectStore(S.storeName)},jt.onsuccess=function(){var v=jt.result;v.close(),Nt(v)}});return zt.then(function(Nt){ft.db=Nt;for(var Yt=0;Yt<dt.length;Yt++){var jt=dt[Yt];jt._dbInfo.db=Nt,I(jt._dbInfo)}}).catch(function(Nt){throw(O(S,Nt)||f.resolve()).catch(function(){}),Nt})}}):W=et.then(function(ct){Y(S);var ht=w[S.name],ft=ht.forages;ct.close();for(var dt=0;dt<ft.length;dt++){var gt=ft[dt];gt._dbInfo.db=null}var St=new f(function(zt,Nt){var Yt=u.deleteDatabase(S.name);Yt.onerror=function(){var jt=Yt.result;jt&&jt.close(),Nt(Yt.error)},Yt.onblocked=function(){console.warn('dropInstance blocked for database "'+S.name+'" until all open connections are closed')},Yt.onsuccess=function(){var jt=Yt.result;jt&&jt.close(),zt(jt)}});return St.then(function(zt){ht.db=zt;for(var Nt=0;Nt<ft.length;Nt++){var Yt=ft[Nt];I(Yt._dbInfo)}}).catch(function(zt){throw(O(S,zt)||f.resolve()).catch(function(){}),zt})})}return h(W,z),W}var Ft={_driver:"asyncStorage",_initStorage:tt,_support:c(),iterate:wt,getItem:K,setItem:At,removeItem:It,clear:yt,length:bt,key:Mt,keys:qt,dropInstance:__$t__};function Wt(){return typeof openDatabase=="function"}var Vt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M="~~local_forage_type~",d=/^~~local_forage_type~([^~]+)~/,m="__lfsc__:",B=m.length,k="arbf",Z="blob",nt="si08",mt="ui08",Et="uic8",Ot="si16",kt="si32",Pt="ur16",Re="ui32",je="fl32",Ge="fl64",Ie=B+k.length,Xe=Object.prototype.toString;function an(S){var z=S.length*.75,D=S.length,L,W=0,$,et,ct,ht;S[S.length-1]==="="&&(z--,S[S.length-2]==="="&&z--);var ft=new ArrayBuffer(z),dt=new Uint8Array(ft);for(L=0;L<D;L+=4)$=Vt.indexOf(S[L]),et=Vt.indexOf(S[L+1]),ct=Vt.indexOf(S[L+2]),ht=Vt.indexOf(S[L+3]),dt[W++]=$<<2|et>>4,dt[W++]=(et&15)<<4|ct>>2,dt[W++]=(ct&3)<<6|ht&63;return ft}function Ye(S){var z=new Uint8Array(S),D="",L;for(L=0;L<z.length;L+=3)D+=Vt[z[L]>>2],D+=Vt[(z[L]&3)<<4|z[L+1]>>4],D+=Vt[(z[L+1]&15)<<2|z[L+2]>>6],D+=Vt[z[L+2]&63];return z.length%3===2?D=D.substring(0,D.length-1)+"=":z.length%3===1&&(D=D.substring(0,D.length-2)+"=="),D}function cn(S,z){var D="";if(S&&(D=Xe.call(S)),S&&(D==="[object ArrayBuffer]"||S.buffer&&Xe.call(S.buffer)==="[object ArrayBuffer]")){var L,W=m;S instanceof ArrayBuffer?(L=S,W+=k):(L=S.buffer,D==="[object Int8Array]"?W+=nt:D==="[object Uint8Array]"?W+=mt:D==="[object Uint8ClampedArray]"?W+=Et:D==="[object Int16Array]"?W+=Ot:D==="[object Uint16Array]"?W+=Pt:D==="[object Int32Array]"?W+=kt:D==="[object Uint32Array]"?W+=Re:D==="[object Float32Array]"?W+=je:D==="[object Float64Array]"?W+=Ge:z(new Error("Failed to get type for BinaryArray"))),z(W+Ye(L))}else if(D==="[object Blob]"){var $=new FileReader;$.onload=function(){var et=M+S.type+"~"+Ye(this.result);z(m+Z+et)},$.readAsArrayBuffer(S)}else try{z(JSON.stringify(S))}catch(et){console.error("Couldn't convert value into a JSON string: ",S),z(null,et)}}function un(S){if(S.substring(0,B)!==m)return JSON.parse(S);var z=S.substring(Ie),D=S.substring(B,Ie),L;if(D===Z&&d.test(z)){var W=z.match(d);L=W[1],z=z.substring(W[0].length)}var $=an(z);switch(D){case k:return $;case Z:return l([$],{type:L});case nt:return new Int8Array($);case mt:return new Uint8Array($);case Et:return new Uint8ClampedArray($);case Ot:return new Int16Array($);case Pt:return new Uint16Array($);case kt:return new Int32Array($);case Re:return new Uint32Array($);case je:return new Float32Array($);case Ge:return new Float64Array($);default:throw new Error("Unkown type: "+D)}}var Or={serialize:cn,deserialize:un,stringToBuffer:an,bufferToString:Ye};function gr(S,z,D,L){S.executeSql("CREATE TABLE IF NOT EXISTS "+z.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],D,L)}function Yn(S){var z=this,D={db:null};if(S)for(var L in S)D[L]=typeof S[L]!="string"?S[L].toString():S[L];var W=new f(function($,et){try{D.db=openDatabase(D.name,String(D.version),D.description,D.size)}catch(ct){return et(ct)}D.db.transaction(function(ct){gr(ct,D,function(){z._dbInfo=D,$()},function(ht,ft){et(ft)})},et)});return D.serializer=Or,W}function Ee(S,z,D,L,W,$){S.executeSql(D,L,W,function(et,ct){ct.code===ct.SYNTAX_ERR?et.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[z.storeName],function(ht,ft){ft.rows.length?$(ht,ct):gr(ht,z,function(){ht.executeSql(D,L,W,$)},$)},$):$(et,ct)},$)}function Kn(S,z){var D=this;S=x(S);var L=new f(function(W,$){D.ready().then(function(){var et=D._dbInfo;et.db.transaction(function(ct){Ee(ct,et,"SELECT * FROM "+et.storeName+" WHERE key = ? LIMIT 1",[S],function(ht,ft){var dt=ft.rows.length?ft.rows.item(0).value:null;dt&&(dt=et.serializer.deserialize(dt)),W(dt)},function(ht,ft){$(ft)})})}).catch($)});return h(L,z),L}function ln(S,z){var D=this,L=new f(function(W,$){D.ready().then(function(){var et=D._dbInfo;et.db.transaction(function(ct){Ee(ct,et,"SELECT * FROM "+et.storeName,[],function(ht,ft){for(var dt=ft.rows,gt=dt.length,St=0;St<gt;St++){var zt=dt.item(St),Nt=zt.value;if(Nt&&(Nt=et.serializer.deserialize(Nt)),Nt=S(Nt,zt.key,St+1),Nt!==void 0){W(Nt);return}}W()},function(ht,ft){$(ft)})})}).catch($)});return h(L,z),L}function hn(S,z,D,L){var W=this;S=x(S);var $=new f(function(et,ct){W.ready().then(function(){z===void 0&&(z=null);var ht=z,ft=W._dbInfo;ft.serializer.serialize(z,function(dt,gt){gt?ct(gt):ft.db.transaction(function(St){Ee(St,ft,"INSERT OR REPLACE INTO "+ft.storeName+" (key, value) VALUES (?, ?)",[S,dt],function(){et(ht)},function(zt,Nt){ct(Nt)})},function(St){if(St.code===St.QUOTA_ERR){if(L>0){et(hn.apply(W,[S,ht,D,L-1]));return}ct(St)}})})}).catch(ct)});return h($,D),$}function Jn(S,z,D){return hn.apply(this,[S,z,D,1])}function Zn(S,z){var D=this;S=x(S);var L=new f(function(W,$){D.ready().then(function(){var et=D._dbInfo;et.db.transaction(function(ct){Ee(ct,et,"DELETE FROM "+et.storeName+" WHERE key = ?",[S],function(){W()},function(ht,ft){$(ft)})})}).catch($)});return h(L,z),L}function fn(S){var z=this,D=new f(function(L,W){z.ready().then(function(){var $=z._dbInfo;$.db.transaction(function(et){Ee(et,$,"DELETE FROM "+$.storeName,[],function(){L()},function(ct,ht){W(ht)})})}).catch(W)});return h(D,S),D}function Qn(S){var z=this,D=new f(function(L,W){z.ready().then(function(){var $=z._dbInfo;$.db.transaction(function(et){Ee(et,$,"SELECT COUNT(key) as c FROM "+$.storeName,[],function(ct,ht){var ft=ht.rows.item(0).c;L(ft)},function(ct,ht){W(ht)})})}).catch(W)});return h(D,S),D}function ti(S,z){var D=this,L=new f(function(W,$){D.ready().then(function(){var et=D._dbInfo;et.db.transaction(function(ct){Ee(ct,et,"SELECT key FROM "+et.storeName+" WHERE id = ? LIMIT 1",[S+1],function(ht,ft){var dt=ft.rows.length?ft.rows.item(0).key:null;W(dt)},function(ht,ft){$(ft)})})}).catch($)});return h(L,z),L}function dn(S){var z=this,D=new f(function(L,W){z.ready().then(function(){var $=z._dbInfo;$.db.transaction(function(et){Ee(et,$,"SELECT key FROM "+$.storeName,[],function(ct,ht){for(var ft=[],dt=0;dt<ht.rows.length;dt++)ft.push(ht.rows.item(dt).key);L(ft)},function(ct,ht){W(ht)})})}).catch(W)});return h(D,S),D}function ei(S){return new f(function(z,D){S.transaction(function(L){L.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(W,$){for(var et=[],ct=0;ct<$.rows.length;ct++)et.push($.rows.item(ct).name);z({db:S,storeNames:et})},function(W,$){D($)})},function(L){D(L)})})}function pn(S,z){z=y.apply(this,arguments);var D=this.config();S=typeof S!="function"&&S||{},S.name||(S.name=S.name||D.name,S.storeName=S.storeName||D.storeName);var L=this,W;return S.name?W=new f(function($){var et;S.name===D.name?et=L._dbInfo.db:et=openDatabase(S.name,"","",0),S.storeName?$({db:et,storeNames:[S.storeName]}):$(ei(et))}).then(function($){return new f(function(et,ct){$.db.transaction(function(ht){function ft(zt){return new f(function(Nt,Yt){ht.executeSql("DROP TABLE IF EXISTS "+zt,[],function(){Nt()},function(jt,v){Yt(v)})})}for(var dt=[],gt=0,St=$.storeNames.length;gt<St;gt++)dt.push(ft($.storeNames[gt]));f.all(dt).then(function(){et()}).catch(function(zt){ct(zt)})},function(ht){ct(ht)})})}):W=f.reject("Invalid arguments"),h(W,z),W}var ae={_driver:"webSQLStorage",_initStorage:Yn,_support:Wt(),iterate:ln,getItem:Kn,setItem:Jn,removeItem:Zn,clear:fn,length:Qn,key:ti,keys:dn,dropInstance:pn};function Se(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(S){return!1}}function Pr(S,z){var D=S.name+"/";return S.storeName!==z.storeName&&(D+=S.storeName+"/"),D}function ri(){var S="_localforage_support_test";try{return localStorage.setItem(S,!0),localStorage.removeItem(S),!1}catch(z){return!0}}function io(){return!ri()||localStorage.length>0}function so(S){var z=this,D={};if(S)for(var L in S)D[L]=S[L];return D.keyPrefix=Pr(S,z._defaultConfig),io()?(z._dbInfo=D,D.serializer=Or,f.resolve()):f.reject()}function oo(S){var z=this,D=z.ready().then(function(){for(var L=z._dbInfo.keyPrefix,W=localStorage.length-1;W>=0;W--){var $=localStorage.key(W);$.indexOf(L)===0&&localStorage.removeItem($)}});return h(D,S),D}function ao(S,z){var D=this;S=x(S);var L=D.ready().then(function(){var W=D._dbInfo,$=localStorage.getItem(W.keyPrefix+S);return $&&($=W.serializer.deserialize($)),$});return h(L,z),L}function co(S,z){var D=this,L=D.ready().then(function(){for(var W=D._dbInfo,$=W.keyPrefix,et=$.length,ct=localStorage.length,ht=1,ft=0;ft<ct;ft++){var dt=localStorage.key(ft);if(dt.indexOf($)===0){var gt=localStorage.getItem(dt);if(gt&&(gt=W.serializer.deserialize(gt)),gt=S(gt,dt.substring(et),ht++),gt!==void 0)return gt}}});return h(L,z),L}function uo(S,z){var D=this,L=D.ready().then(function(){var W=D._dbInfo,$;try{$=localStorage.key(S)}catch(et){$=null}return $&&($=$.substring(W.keyPrefix.length)),$});return h(L,z),L}function zr(S){var z=this,D=z.ready().then(function(){for(var L=z._dbInfo,W=localStorage.length,$=[],et=0;et<W;et++){var ct=localStorage.key(et);ct.indexOf(L.keyPrefix)===0&&$.push(ct.substring(L.keyPrefix.length))}return $});return h(D,S),D}function Ui(S){var z=this,D=z.keys().then(function(L){return L.length});return h(D,S),D}function lo(S,z){var D=this;S=x(S);var L=D.ready().then(function(){var W=D._dbInfo;localStorage.removeItem(W.keyPrefix+S)});return h(L,z),L}function ho(S,z,D){var L=this;S=x(S);var W=L.ready().then(function(){z===void 0&&(z=null);var $=z;return new f(function(et,ct){var ht=L._dbInfo;ht.serializer.serialize(z,function(ft,dt){if(dt)ct(dt);else try{localStorage.setItem(ht.keyPrefix+S,ft),et($)}catch(gt){(gt.name==="QuotaExceededError"||gt.name==="NS_ERROR_DOM_QUOTA_REACHED")&&ct(gt),ct(gt)}})})});return h(W,D),W}function fo(S,z){if(z=y.apply(this,arguments),S=typeof S!="function"&&S||{},!S.name){var D=this.config();S.name=S.name||D.name,S.storeName=S.storeName||D.storeName}var L=this,W;return S.name?W=new f(function($){S.storeName?$(Pr(S,L._defaultConfig)):$(S.name+"/")}).then(function($){for(var et=localStorage.length-1;et>=0;et--){var ct=localStorage.key(et);ct.indexOf($)===0&&localStorage.removeItem(ct)}}):W=f.reject("Invalid arguments"),h(W,z),W}var po={_driver:"localStorageWrapper",_initStorage:so,_support:Se(),iterate:co,getItem:ao,setItem:ho,removeItem:lo,clear:oo,length:Ui,key:uo,keys:zr,dropInstance:fo},xo=function(z,D){return z===D||typeof z=="number"&&typeof D=="number"&&isNaN(z)&&isNaN(D)},ir=function(z,D){for(var L=z.length,W=0;W<L;){if(xo(z[W],D))return!0;W++}return!1},$i=Array.isArray||function(S){return Object.prototype.toString.call(S)==="[object Array]"},kr={},Hi={},vr={INDEXEDDB:Ft,WEBSQL:ae,LOCALSTORAGE:po},mo=[vr.INDEXEDDB._driver,vr.WEBSQL._driver,vr.LOCALSTORAGE._driver],xn=["dropInstance"],ni=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(xn),yo={description:"",driver:mo.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function go(S,z){S[z]=function(){var D=arguments;return S.ready().then(function(){return S[z].apply(S,D)})}}function te(){for(var S=1;S<arguments.length;S++){var z=arguments[S];if(z)for(var D in z)z.hasOwnProperty(D)&&($i(z[D])?arguments[0][D]=z[D].slice():arguments[0][D]=z[D])}return arguments[0]}var vo=function(){function S(z){o(this,S);for(var D in vr)if(vr.hasOwnProperty(D)){var L=vr[D],W=L._driver;this[D]=W,kr[W]||this.defineDriver(L)}this._defaultConfig=te({},yo),this._config=te({},this._defaultConfig,z),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return S.prototype.config=function(D){if((typeof D=="undefined"?"undefined":s(D))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var L in D){if(L==="storeName"&&(D[L]=D[L].replace(/\W/g,"_")),L==="version"&&typeof D[L]!="number")return new Error("Database version must be a number.");this._config[L]=D[L]}return"driver"in D&&D.driver?this.setDriver(this._config.driver):!0}else return typeof D=="string"?this._config[D]:this._config},S.prototype.defineDriver=function(D,L,W){var $=new f(function(et,ct){try{var ht=D._driver,ft=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!D._driver){ct(ft);return}for(var dt=ni.concat("_initStorage"),gt=0,St=dt.length;gt<St;gt++){var zt=dt[gt],Nt=!ir(xn,zt);if((Nt||D[zt])&&typeof D[zt]!="function"){ct(ft);return}}var Yt=function(){for(var b=function(pt){return function(){var xt=new Error("Method "+pt+" is not implemented by the current driver"),Ht=f.reject(xt);return h(Ht,arguments[arguments.length-1]),Ht}},F=0,H=xn.length;F<H;F++){var st=xn[F];D[st]||(D[st]=b(st))}};Yt();var jt=function(b){kr[ht]&&console.info("Redefining LocalForage driver: "+ht),kr[ht]=D,Hi[ht]=b,et()};"_support"in D?D._support&&typeof D._support=="function"?D._support().then(jt,ct):jt(!!D._support):jt(!0)}catch(v){ct(v)}});return p($,L,W),$},S.prototype.driver=function(){return this._driver||null},S.prototype.getDriver=function(D,L,W){var $=kr[D]?f.resolve(kr[D]):f.reject(new Error("Driver not found."));return p($,L,W),$},S.prototype.getSerializer=function(D){var L=f.resolve(Or);return p(L,D),L},S.prototype.ready=function(D){var L=this,W=L._driverSet.then(function(){return L._ready===null&&(L._ready=L._initDriver()),L._ready});return p(W,D,D),W},S.prototype.setDriver=function(D,L,W){var $=this;$i(D)||(D=[D]);var et=this._getSupportedDrivers(D);function ct(){$._config.driver=$.driver()}function ht(gt){return $._extend(gt),ct(),$._ready=$._initStorage($._config),$._ready}function ft(gt){return function(){var St=0;function zt(){for(;St<gt.length;){var Nt=gt[St];return St++,$._dbInfo=null,$._ready=null,$.getDriver(Nt).then(ht).catch(zt)}ct();var Yt=new Error("No available storage method found.");return $._driverSet=f.reject(Yt),$._driverSet}return zt()}}var dt=this._driverSet!==null?this._driverSet.catch(function(){return f.resolve()}):f.resolve();return this._driverSet=dt.then(function(){var gt=et[0];return $._dbInfo=null,$._ready=null,$.getDriver(gt).then(function(St){$._driver=St._driver,ct(),$._wrapLibraryMethodsWithReady(),$._initDriver=ft(et)})}).catch(function(){ct();var gt=new Error("No available storage method found.");return $._driverSet=f.reject(gt),$._driverSet}),p(this._driverSet,L,W),this._driverSet},S.prototype.supports=function(D){return!!Hi[D]},S.prototype._extend=function(D){te(this,D)},S.prototype._getSupportedDrivers=function(D){for(var L=[],W=0,$=D.length;W<$;W++){var et=D[W];this.supports(et)&&L.push(et)}return L},S.prototype._wrapLibraryMethodsWithReady=function(){for(var D=0,L=ni.length;D<L;D++)go(this,ni[D])},S.prototype.createInstance=function(D){return new S(D)},S}(),wo=new vo;r.exports=wo},{3:3}]},{},[4])(4)})})(Vf);var Iv=Vf.exports;const ce=O0(Iv);var uh;ce.config(Lt({driver:[ce.INDEXEDDB,ce.LOCALSTORAGE],name:"SGP7000",size:4980736,storeName:"keyvaluepairs",version:1,description:"SGP7000"},((uh=window.meta.storage)==null?void 0:uh.config)||{}));function Ov(){return{getKey:x=>Ct(this,null,function*(){return yield ce.key(x)}),getKeys:()=>Ct(this,null,function*(){return yield ce.keys()}),getItem:x=>Ct(this,null,function*(){if(x)return yield ce.getItem(x)}),setItem:(x,y)=>Ct(this,null,function*(){if(x)return yield ce.setItem(x,y)}),removeItem:x=>Ct(this,null,function*(){if(x)return yield ce.removeItem(x)}),clearItems:()=>Ct(this,null,function*(){return yield ce.clear()}),iterateItems:(x,y)=>Ct(this,null,function*(){if(x)return yield ce.iterate(x,y)}),getReady:()=>Ct(this,null,function*(){return yield ce.ready()}),getLength:()=>Ct(this,null,function*(){return yield ce.length()}),getDriver:()=>Ct(this,null,function*(){return yield ce.driver()}),setDriver:x=>Ct(this,null,function*(){if(x)return yield ce.setDriver(x)}),setConfig:x=>Ct(this,null,function*(){if(x)return yield ce.config(x)}),dropInstance:x=>Ct(this,null,function*(){if(x)return yield ce.dropInstance(x)}),createInstance:x=>Ct(this,null,function*(){if(x)return yield ce.createInstance(x)})}}const Pv="THREED_LOG_BUFFER",zv="THREED_CURRSCENE",kv="THREED_ACTIVE_MENU",Nv="THREED_PIXEL_RATIO",Ts="THREED_MODEL_DBNAME",S0="THREED_MODEL_DBSTORE",Lv="THREED_SCENE_PREVIEW",B0="THREED_MODEL_LOAD_KEY",yi="THREED_PREVIEW_URL_KEY",Uv="THREED_ADDON_EDITOR_JSON",$v="THREED_SCENE_STORAGE_SUFFIX",F0={step:.1},Hv=80,jf=30,qv=1e3,Wv=1200,Vv=3e5,jv="三维测试",Gv="灯光",Xv=1,Yv=["环境光","平行光","点光源","聚光灯","半球光","平面光"],Gf=new Set(["syncStatus","disposeTargets","statusMaterials","syncPanelPlacement"]),Kv=["AxesHelper","GridHelper","Box3Helper","PerspectiveCamera"],Xf=new Set(["GridHelper","AxesHelper","CameraHelper","SpotLightHelper","PointLightHelper","TransformControls","HemisphereLightHelper","DirectionalLightHelper","TransformControlsPlane"]),Yf=new Set(["CSS2DObject","CSS3DObject"]),Jv=Object.assign({"/src/views/threed/models/pd-sensor.js":Rv}),Zv=Object.assign({}),Qv={环境光:()=>new Ce.THREE.AmbientLight(16777215,1),平行光:()=>new Ce.THREE.DirectionalLight(16777215,1),点光源:()=>new Ce.THREE.PointLight(16777215,1,0,0),聚光灯:()=>new Ce.THREE.SpotLight(16777215,1,0,Math.PI/6,0,0),半球光:()=>new Ce.THREE.HemisphereLight(16777215,0,1),平面光:()=>new Ce.THREE.RectAreaLight(16777215,1,100,100)},tw=[{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(u,l){if(!i[u]){if(!n[u]){var x=typeof on=="function"&&on;if(!l&&x)return x(u,!0);if(a)return a(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var v=i[u]={exports:{}};n[u][0].call(v.exports,function(m){var g=n[u][1][m];return s(g||m)},v,v.exports,r,n,i,o)}return i[u].exports}for(var a=typeof on=="function"&&on,h=0;h<o.length;h++)s(o[h]);return s}({1:[function(r,n,i){(function(o){var s=o.MutationObserver||o.WebKitMutationObserver,a;if(s){var h=0,u=new s(m),l=o.document.createTextNode("");u.observe(l,{characterData:!0}),a=function(){l.data=h=++h%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 E=o.document.createElement("script");E.onreadystatechange=function(){m(),E.onreadystatechange=null,E.parentNode.removeChild(E),E=null},o.document.documentElement.appendChild(E)}:a=function(){setTimeout(m,0)};var d,v=[];function m(){d=!0;for(var E,R,A=v.length;A;){for(R=v,v=[],E=-1;++E<A;)R[E]();A=v.length}d=!1}n.exports=g;function g(E){v.push(E)===1&&!d&&a()}}).call(this,typeof _e!="undefined"?_e:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(r,n,i){var o=r(1);function s(){}var a={},h=["REJECTED"],u=["FULFILLED"],l=["PENDING"];n.exports=x;function x(D){if(typeof D!="function")throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,D!==s&&g(this,D)}x.prototype.catch=function(D){return this.then(null,D)},x.prototype.then=function(D,I){if(typeof D!="function"&&this.state===u||typeof I!="function"&&this.state===h)return this;var L=new this.constructor(s);if(this.state!==l){var q=this.state===u?D:I;v(L,q,this.outcome)}else this.queue.push(new d(L,D,I));return L};function d(D,I,L){this.promise=D,typeof I=="function"&&(this.onFulfilled=I,this.callFulfilled=this.otherCallFulfilled),typeof L=="function"&&(this.onRejected=L,this.callRejected=this.otherCallRejected)}d.prototype.callFulfilled=function(D){a.resolve(this.promise,D)},d.prototype.otherCallFulfilled=function(D){v(this.promise,this.onFulfilled,D)},d.prototype.callRejected=function(D){a.reject(this.promise,D)},d.prototype.otherCallRejected=function(D){v(this.promise,this.onRejected,D)};function v(D,I,L){o(function(){var q;try{q=I(L)}catch(Z){return a.reject(D,Z)}q===D?a.reject(D,new TypeError("Cannot resolve promise with itself")):a.resolve(D,q)})}a.resolve=function(D,I){var L=E(m,I);if(L.status==="error")return a.reject(D,L.value);var q=L.value;if(q)g(D,q);else{D.state=u,D.outcome=I;for(var Z=-1,O=D.queue.length;++Z<O;)D.queue[Z].callFulfilled(I)}return D},a.reject=function(D,I){D.state=h,D.outcome=I;for(var L=-1,q=D.queue.length;++L<q;)D.queue[L].callRejected(I);return D};function m(D){var I=D&&D.then;if(D&&(typeof D=="object"||typeof D=="function")&&typeof I=="function")return function(){I.apply(D,arguments)}}function g(D,I){var L=!1;function q(W){L||(L=!0,a.reject(D,W))}function Z(W){L||(L=!0,a.resolve(D,W))}function O(){I(Z,q)}var k=E(O);k.status==="error"&&q(k.value)}function E(D,I){var L={};try{L.value=D(I),L.status="success"}catch(q){L.status="error",L.value=q}return L}x.resolve=R;function R(D){return D instanceof this?D:a.resolve(new this(s),D)}x.reject=A;function A(D){var I=new this(s);return a.reject(I,D)}x.all=w;function w(D){var I=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=D.length,q=!1;if(!L)return this.resolve([]);for(var Z=new Array(L),O=0,k=-1,W=new this(s);++k<L;)Y(D[k],k);return W;function Y(J,j){I.resolve(J).then(Q,function(oe){q||(q=!0,a.reject(W,oe))});function Q(oe){Z[j]=oe,++O===L&&!q&&(q=!0,a.resolve(W,Z))}}}x.race=C;function C(D){var I=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=D.length,q=!1;if(!L)return this.resolve([]);for(var Z=-1,O=new this(s);++Z<L;)k(D[Z]);return O;function k(W){I.resolve(W).then(function(Y){q||(q=!0,a.resolve(O,Y))},function(Y){q||(q=!0,a.reject(O,Y))})}}},{1:1}],3:[function(r,n,i){(function(o){typeof o.Promise!="function"&&(o.Promise=r(2))}).call(this,typeof _e!="undefined"?_e: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(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _};function s(_,P){if(!(_ instanceof P))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(_){return}}var h=a();function u(){try{if(!h||!h.open)return!1;var _=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),P=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!_||P)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(S){return!1}}function l(_,P){_=_||[],P=P||{};try{return new Blob(_,P)}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,z=0;z<_.length;z+=1)M.append(_[z]);return M.getBlob(P.type)}}typeof Promise=="undefined"&&r(3);var x=Promise;function d(_,P){P&&_.then(function(S){P(null,S)},function(S){P(S)})}function v(_,P,S){typeof P=="function"&&_.then(P),typeof S=="function"&&_.catch(S)}function m(_){return typeof _!="string"&&(console.warn(_+" used as a key, but it is not a string."),_=String(_)),_}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var E="local-forage-detect-blob-support",R=void 0,A={},w=Object.prototype.toString,C="readonly",D="readwrite";function I(_){for(var P=_.length,S=new ArrayBuffer(P),M=new Uint8Array(S),z=0;z<P;z++)M[z]=_.charCodeAt(z);return S}function L(_){return new x(function(P){var S=_.transaction(E,D),M=l([""]);S.objectStore(E).put(M,"key"),S.onabort=function(z){z.preventDefault(),z.stopPropagation(),P(!1)},S.oncomplete=function(){var z=navigator.userAgent.match(/Chrome\/(\d+)/),U=navigator.userAgent.match(/Edge\//);P(U||!z||parseInt(z[1],10)>=43)}}).catch(function(){return!1})}function q(_){return typeof R=="boolean"?x.resolve(R):L(_).then(function(P){return R=P,R})}function Z(_){var P=A[_.name],S={};S.promise=new x(function(M,z){S.resolve=M,S.reject=z}),P.deferredOperations.push(S),P.dbReady?P.dbReady=P.dbReady.then(function(){return S.promise}):P.dbReady=S.promise}function O(_){var P=A[_.name],S=P.deferredOperations.pop();if(S)return S.resolve(),S.promise}function k(_,P){var S=A[_.name],M=S.deferredOperations.pop();if(M)return M.reject(P),M.promise}function W(_,P){return new x(function(S,M){if(A[_.name]=A[_.name]||G(),_.db)if(P)Z(_),_.db.close();else return S(_.db);var z=[_.name];P&&z.push(_.version);var U=h.open.apply(h,z);P&&(U.onupgradeneeded=function(ee){var ae=U.result;try{ae.createObjectStore(_.storeName),ee.oldVersion<=1&&ae.createObjectStore(E)}catch(ce){if(ce.name==="ConstraintError")console.warn('The database "'+_.name+'" has been upgraded from version '+ee.oldVersion+" to version "+ee.newVersion+', but the storage "'+_.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(_)}})}function Y(_){return W(_,!1)}function J(_){return W(_,!0)}function j(_,P){if(!_.db)return!0;var S=!_.db.objectStoreNames.contains(_.storeName),M=_.version<_.db.version,z=_.version>_.db.version;if(M&&(_.version!==P&&console.warn('The database "'+_.name+`" can't be downgraded from version `+_.db.version+" to version "+_.version+"."),_.version=_.db.version),z||S){if(S){var U=_.db.version+1;U>_.version&&(_.version=U)}return!0}return!1}function Q(_){return new x(function(P,S){var M=new FileReader;M.onerror=S,M.onloadend=function(z){var U=btoa(z.target.result||"");P({__local_forage_encoded_blob:!0,data:U,type:_.type})},M.readAsBinaryString(_)})}function oe(_){var P=I(atob(_.data));return l([P],{type:_.type})}function ie(_){return _&&_.__local_forage_encoded_blob}function he(_){var P=this,S=P._initReady().then(function(){var M=A[P._dbInfo.name];if(M&&M.dbReady)return M.dbReady});return v(S,_,_),S}function ue(_){Z(_);for(var P=A[_.name],S=P.forages,M=0;M<S.length;M++){var z=S[M];z._dbInfo.db&&(z._dbInfo.db.close(),z._dbInfo.db=null)}return _.db=null,Y(_).then(function(U){return _.db=U,j(_)?J(_):U}).then(function(U){_.db=P.db=U;for(var ee=0;ee<S.length;ee++)S[ee]._dbInfo.db=U}).catch(function(U){throw k(_,U),U})}function H(_,P,S,M){M===void 0&&(M=1);try{var z=_.db.transaction(_.storeName,P);S(null,z)}catch(U){if(M>0&&(!_.db||U.name==="InvalidStateError"||U.name==="NotFoundError"))return x.resolve().then(function(){if(!_.db||U.name==="NotFoundError"&&!_.db.objectStoreNames.contains(_.storeName)&&_.version<=_.db.version)return _.db&&(_.version=_.db.version+1),J(_)}).then(function(){return ue(_).then(function(){H(_,P,S,M-1)})}).catch(S);S(U)}}function G(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function te(_){var P=this,S={db:null};if(_)for(var M in _)S[M]=_[M];var z=A[S.name];z||(z=G(),A[S.name]=z),z.forages.push(P),P._initReady||(P._initReady=P.ready,P.ready=he);var U=[];function ee(){return x.resolve()}for(var ae=0;ae<z.forages.length;ae++){var ce=z.forages[ae];ce!==P&&U.push(ce._initReady().catch(ee))}var fe=z.forages.slice(0);return x.all(U).then(function(){return S.db=z.db,Y(S)}).then(function(le){return S.db=le,j(S,P._defaultConfig.version)?J(S):le}).then(function(le){S.db=z.db=le,P._dbInfo=S;for(var ye=0;ye<fe.length;ye++){var Ce=fe[ye];Ce!==P&&(Ce._dbInfo.db=S.db,Ce._dbInfo.version=S.version)}})}function K(_,P){var S=this;_=m(_);var M=new x(function(z,U){S.ready().then(function(){H(S._dbInfo,C,function(ee,ae){if(ee)return U(ee);try{var ce=ae.objectStore(S._dbInfo.storeName),fe=ce.get(_);fe.onsuccess=function(){var le=fe.result;le===void 0&&(le=null),ie(le)&&(le=oe(le)),z(le)},fe.onerror=function(){U(fe.error)}}catch(le){U(le)}})}).catch(U)});return d(M,P),M}function ge(_,P){var S=this,M=new x(function(z,U){S.ready().then(function(){H(S._dbInfo,C,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 Ce=ye.value;ie(Ce)&&(Ce=oe(Ce));var Pe=_(Ce,ye.key,le++);Pe!==void 0?z(Pe):ye.continue()}else z()},fe.onerror=function(){U(fe.error)}}catch(ye){U(ye)}})}).catch(U)});return d(M,P),M}function we(_,P,S){var M=this;_=m(_);var z=new x(function(U,ee){var ae;M.ready().then(function(){return ae=M._dbInfo,w.call(P)==="[object Blob]"?q(ae.db).then(function(ce){return ce?P:Q(P)}):P}).then(function(ce){H(M._dbInfo,D,function(fe,le){if(fe)return ee(fe);try{var ye=le.objectStore(M._dbInfo.storeName);ce===null&&(ce=void 0);var Ce=ye.put(ce,_);le.oncomplete=function(){ce===void 0&&(ce=null),U(ce)},le.onabort=le.onerror=function(){var Pe=Ce.error?Ce.error:Ce.transaction.error;ee(Pe)}}catch(Pe){ee(Pe)}})}).catch(ee)});return d(z,S),z}function Ie(_,P){var S=this;_=m(_);var M=new x(function(z,U){S.ready().then(function(){H(S._dbInfo,D,function(ee,ae){if(ee)return U(ee);try{var ce=ae.objectStore(S._dbInfo.storeName),fe=ce.delete(_);ae.oncomplete=function(){z()},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 d(M,P),M}function ve(_){var P=this,S=new x(function(M,z){P.ready().then(function(){H(P._dbInfo,D,function(U,ee){if(U)return z(U);try{var ae=ee.objectStore(P._dbInfo.storeName),ce=ae.clear();ee.oncomplete=function(){M()},ee.onabort=ee.onerror=function(){var fe=ce.error?ce.error:ce.transaction.error;z(fe)}}catch(fe){z(fe)}})}).catch(z)});return d(S,_),S}function Ae(_){var P=this,S=new x(function(M,z){P.ready().then(function(){H(P._dbInfo,C,function(U,ee){if(U)return z(U);try{var ae=ee.objectStore(P._dbInfo.storeName),ce=ae.count();ce.onsuccess=function(){M(ce.result)},ce.onerror=function(){z(ce.error)}}catch(fe){z(fe)}})}).catch(z)});return d(S,_),S}function Fe(_,P){var S=this,M=new x(function(z,U){if(_<0){z(null);return}S.ready().then(function(){H(S._dbInfo,C,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){z(null);return}_===0||fe?z(ye.key):(fe=!0,ye.advance(_))},le.onerror=function(){U(le.error)}}catch(ye){U(ye)}})}).catch(U)});return d(M,P),M}function He(_){var P=this,S=new x(function(M,z){P.ready().then(function(){H(P._dbInfo,C,function(U,ee){if(U)return z(U);try{var ae=ee.objectStore(P._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(){z(ce.error)}}catch(le){z(le)}})}).catch(z)});return d(S,_),S}function Me(_,P){P=g.apply(this,arguments);var S=this.config();_=typeof _!="function"&&_||{},_.name||(_.name=_.name||S.name,_.storeName=_.storeName||S.storeName);var M=this,z;if(!_.name)z=x.reject("Invalid arguments");else{var U=_.name===S.name&&M._dbInfo.db,ee=U?x.resolve(M._dbInfo.db):Y(_).then(function(ae){var ce=A[_.name],fe=ce.forages;ce.db=ae;for(var le=0;le<fe.length;le++)fe[le]._dbInfo.db=ae;return ae});_.storeName?z=ee.then(function(ae){if(ae.objectStoreNames.contains(_.storeName)){var ce=ae.version+1;Z(_);var fe=A[_.name],le=fe.forages;ae.close();for(var ye=0;ye<le.length;ye++){var Ce=le[ye];Ce._dbInfo.db=null,Ce._dbInfo.version=ce}var Pe=new x(function(Le,Ke){var We=h.open(_.name,ce);We.onerror=function(p){var y=We.result;y.close(),Ke(p)},We.onupgradeneeded=function(){var p=We.result;p.deleteObjectStore(_.storeName)},We.onsuccess=function(){var p=We.result;p.close(),Le(p)}});return Pe.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(_,Le)||x.resolve()).catch(function(){}),Le})}}):z=ee.then(function(ae){Z(_);var ce=A[_.name],fe=ce.forages;ae.close();for(var le=0;le<fe.length;le++){var ye=fe[le];ye._dbInfo.db=null}var Ce=new x(function(Pe,Le){var Ke=h.deleteDatabase(_.name);Ke.onerror=function(){var We=Ke.result;We&&We.close(),Le(Ke.error)},Ke.onblocked=function(){console.warn('dropInstance blocked for database "'+_.name+'" until all open connections are closed')},Ke.onsuccess=function(){var We=Ke.result;We&&We.close(),Pe(We)}});return Ce.then(function(Pe){ce.db=Pe;for(var Le=0;Le<fe.length;Le++){var Ke=fe[Le];O(Ke._dbInfo)}}).catch(function(Pe){throw(k(_,Pe)||x.resolve()).catch(function(){}),Pe})})}return d(z,P),z}var De={_driver:"asyncStorage",_initStorage:te,_support:u(),iterate:ge,getItem:K,setItem:we,removeItem:Ie,clear:ve,length:Ae,key:Fe,keys:He,dropInstance:Me};function ze(){return typeof openDatabase=="function"}var qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F="~~local_forage_type~",c=/^~~local_forage_type~([^~]+)~/,f="__lfsc__:",b=f.length,N="arbf",X="blob",re="si08",xe="ui08",Ee="uic8",Te="si16",Ne="si32",Oe="ur16",gt="ui32",Bt="fl32",Dt="fl64",Et=b+N.length,St=Object.prototype.toString;function yr(_){var P=_.length*.75,S=_.length,M,z=0,U,ee,ae,ce;_[_.length-1]==="="&&(P--,_[_.length-2]==="="&&P--);var fe=new ArrayBuffer(P),le=new Uint8Array(fe);for(M=0;M<S;M+=4)U=qe.indexOf(_[M]),ee=qe.indexOf(_[M+1]),ae=qe.indexOf(_[M+2]),ce=qe.indexOf(_[M+3]),le[z++]=U<<2|ee>>4,le[z++]=(ee&15)<<4|ae>>2,le[z++]=(ae&3)<<6|ce&63;return fe}function Ft(_){var P=new Uint8Array(_),S="",M;for(M=0;M<P.length;M+=3)S+=qe[P[M]>>2],S+=qe[(P[M]&3)<<4|P[M+1]>>4],S+=qe[(P[M+1]&15)<<2|P[M+2]>>6],S+=qe[P[M+2]&63];return P.length%3===2?S=S.substring(0,S.length-1)+"=":P.length%3===1&&(S=S.substring(0,S.length-2)+"=="),S}function mr(_,P){var S="";if(_&&(S=St.call(_)),_&&(S==="[object ArrayBuffer]"||_.buffer&&St.call(_.buffer)==="[object ArrayBuffer]")){var M,z=f;_ instanceof ArrayBuffer?(M=_,z+=N):(M=_.buffer,S==="[object Int8Array]"?z+=re:S==="[object Uint8Array]"?z+=xe:S==="[object Uint8ClampedArray]"?z+=Ee:S==="[object Int16Array]"?z+=Te:S==="[object Uint16Array]"?z+=Oe:S==="[object Int32Array]"?z+=Ne:S==="[object Uint32Array]"?z+=gt:S==="[object Float32Array]"?z+=Bt:S==="[object Float64Array]"?z+=Dt:P(new Error("Failed to get type for BinaryArray"))),P(z+Ft(M))}else if(S==="[object Blob]"){var U=new FileReader;U.onload=function(){var ee=F+_.type+"~"+Ft(this.result);P(f+X+ee)},U.readAsArrayBuffer(_)}else try{P(JSON.stringify(_))}catch(ee){console.error("Couldn't convert value into a JSON string: ",_),P(null,ee)}}function gr(_){if(_.substring(0,b)!==f)return JSON.parse(_);var P=_.substring(Et),S=_.substring(b,Et),M;if(S===X&&c.test(P)){var z=P.match(c);M=z[1],P=P.substring(z[0].length)}var U=yr(P);switch(S){case N:return U;case X:return l([U],{type:M});case re:return new Int8Array(U);case xe:return new Uint8Array(U);case Ee:return new Uint8ClampedArray(U);case Te:return new Int16Array(U);case Oe:return new Uint16Array(U);case Ne:return new Int32Array(U);case gt: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(_,P,S,M){_.executeSql("CREATE TABLE IF NOT EXISTS "+P.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],S,M)}function Vr(_){var P=this,S={db:null};if(_)for(var M in _)S[M]=typeof _[M]!="string"?_[M].toString():_[M];var z=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(){P._dbInfo=S,U()},function(ce,fe){ee(fe)})},ee)});return S.serializer=Qt,z}function ht(_,P,S,M,z,U){_.executeSql(S,M,z,function(ee,ae){ae.code===ae.SYNTAX_ERR?ee.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[P.storeName],function(ce,fe){fe.rows.length?U(ce,ae):qt(ce,P,function(){ce.executeSql(S,M,z,U)},U)},U):U(ee,ae)},U)}function Gr(_,P){var S=this;_=m(_);var M=new x(function(z,U){S.ready().then(function(){var ee=S._dbInfo;ee.db.transaction(function(ae){ht(ae,ee,"SELECT * FROM "+ee.storeName+" WHERE key = ? LIMIT 1",[_],function(ce,fe){var le=fe.rows.length?fe.rows.item(0).value:null;le&&(le=ee.serializer.deserialize(le)),z(le)},function(ce,fe){U(fe)})})}).catch(U)});return d(M,P),M}function Er(_,P){var S=this,M=new x(function(z,U){S.ready().then(function(){var ee=S._dbInfo;ee.db.transaction(function(ae){ht(ae,ee,"SELECT * FROM "+ee.storeName,[],function(ce,fe){for(var le=fe.rows,ye=le.length,Ce=0;Ce<ye;Ce++){var Pe=le.item(Ce),Le=Pe.value;if(Le&&(Le=ee.serializer.deserialize(Le)),Le=_(Le,Pe.key,Ce+1),Le!==void 0){z(Le);return}}z()},function(ce,fe){U(fe)})})}).catch(U)});return d(M,P),M}function Ar(_,P,S,M){var z=this;_=m(_);var U=new x(function(ee,ae){z.ready().then(function(){P===void 0&&(P=null);var ce=P,fe=z._dbInfo;fe.serializer.serialize(P,function(le,ye){ye?ae(ye):fe.db.transaction(function(Ce){ht(Ce,fe,"INSERT OR REPLACE INTO "+fe.storeName+" (key, value) VALUES (?, ?)",[_,le],function(){ee(ce)},function(Pe,Le){ae(Le)})},function(Ce){if(Ce.code===Ce.QUOTA_ERR){if(M>0){ee(Ar.apply(z,[_,ce,S,M-1]));return}ae(Ce)}})})}).catch(ae)});return d(U,S),U}function jr(_,P,S){return Ar.apply(this,[_,P,S,1])}function Kr(_,P){var S=this;_=m(_);var M=new x(function(z,U){S.ready().then(function(){var ee=S._dbInfo;ee.db.transaction(function(ae){ht(ae,ee,"DELETE FROM "+ee.storeName+" WHERE key = ?",[_],function(){z()},function(ce,fe){U(fe)})})}).catch(U)});return d(M,P),M}function wr(_){var P=this,S=new x(function(M,z){P.ready().then(function(){var U=P._dbInfo;U.db.transaction(function(ee){ht(ee,U,"DELETE FROM "+U.storeName,[],function(){M()},function(ae,ce){z(ce)})})}).catch(z)});return d(S,_),S}function Yr(_){var P=this,S=new x(function(M,z){P.ready().then(function(){var U=P._dbInfo;U.db.transaction(function(ee){ht(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){z(ce)})})}).catch(z)});return d(S,_),S}function Xr(_,P){var S=this,M=new x(function(z,U){S.ready().then(function(){var ee=S._dbInfo;ee.db.transaction(function(ae){ht(ae,ee,"SELECT key FROM "+ee.storeName+" WHERE id = ? LIMIT 1",[_+1],function(ce,fe){var le=fe.rows.length?fe.rows.item(0).key:null;z(le)},function(ce,fe){U(fe)})})}).catch(U)});return d(M,P),M}function _r(_){var P=this,S=new x(function(M,z){P.ready().then(function(){var U=P._dbInfo;U.db.transaction(function(ee){ht(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){z(ce)})})}).catch(z)});return d(S,_),S}function Jr(_){return new x(function(P,S){_.transaction(function(M){M.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(z,U){for(var ee=[],ae=0;ae<U.rows.length;ae++)ee.push(U.rows.item(ae).name);P({db:_,storeNames:ee})},function(z,U){S(U)})},function(M){S(M)})})}function br(_,P){P=g.apply(this,arguments);var S=this.config();_=typeof _!="function"&&_||{},_.name||(_.name=_.name||S.name,_.storeName=_.storeName||S.storeName);var M=this,z;return _.name?z=new x(function(U){var ee;_.name===S.name?ee=M._dbInfo.db:ee=openDatabase(_.name,"","",0),_.storeName?U({db:ee,storeNames:[_.storeName]}):U(Jr(ee))}).then(function(U){return new x(function(ee,ae){U.db.transaction(function(ce){function fe(Pe){return new x(function(Le,Ke){ce.executeSql("DROP TABLE IF EXISTS "+Pe,[],function(){Le()},function(We,p){Ke(p)})})}for(var le=[],ye=0,Ce=U.storeNames.length;ye<Ce;ye++)le.push(fe(U.storeNames[ye]));x.all(le).then(function(){ee()}).catch(function(Pe){ae(Pe)})},function(ce){ae(ce)})})}):z=x.reject("Invalid arguments"),d(z,P),z}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 xt(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(_){return!1}}function Zt(_,P){var S=_.name+"/";return _.storeName!==P.storeName&&(S+=_.storeName+"/"),S}function Qr(){var _="_localforage_support_test";try{return localStorage.setItem(_,!0),localStorage.removeItem(_),!1}catch(P){return!0}}function wi(){return!Qr()||localStorage.length>0}function _i(_){var P=this,S={};if(_)for(var M in _)S[M]=_[M];return S.keyPrefix=Zt(_,P._defaultConfig),wi()?(P._dbInfo=S,S.serializer=Qt,x.resolve()):x.reject()}function bi(_){var P=this,S=P.ready().then(function(){for(var M=P._dbInfo.keyPrefix,z=localStorage.length-1;z>=0;z--){var U=localStorage.key(z);U.indexOf(M)===0&&localStorage.removeItem(U)}});return d(S,_),S}function Ci(_,P){var S=this;_=m(_);var M=S.ready().then(function(){var z=S._dbInfo,U=localStorage.getItem(z.keyPrefix+_);return U&&(U=z.serializer.deserialize(U)),U});return d(M,P),M}function Bi(_,P){var S=this,M=S.ready().then(function(){for(var z=S._dbInfo,U=z.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=z.serializer.deserialize(ye)),ye=_(ye,le.substring(ee),ce++),ye!==void 0)return ye}}});return d(M,P),M}function Di(_,P){var S=this,M=S.ready().then(function(){var z=S._dbInfo,U;try{U=localStorage.key(_)}catch(ee){U=null}return U&&(U=U.substring(z.keyPrefix.length)),U});return d(M,P),M}function er(_){var P=this,S=P.ready().then(function(){for(var M=P._dbInfo,z=localStorage.length,U=[],ee=0;ee<z;ee++){var ae=localStorage.key(ee);ae.indexOf(M.keyPrefix)===0&&U.push(ae.substring(M.keyPrefix.length))}return U});return d(S,_),S}function Bn(_){var P=this,S=P.keys().then(function(M){return M.length});return d(S,_),S}function Si(_,P){var S=this;_=m(_);var M=S.ready().then(function(){var z=S._dbInfo;localStorage.removeItem(z.keyPrefix+_)});return d(M,P),M}function Fi(_,P,S){var M=this;_=m(_);var z=M.ready().then(function(){P===void 0&&(P=null);var U=P;return new x(function(ee,ae){var ce=M._dbInfo;ce.serializer.serialize(P,function(fe,le){if(le)ae(le);else try{localStorage.setItem(ce.keyPrefix+_,fe),ee(U)}catch(ye){(ye.name==="QuotaExceededError"||ye.name==="NS_ERROR_DOM_QUOTA_REACHED")&&ae(ye),ae(ye)}})})});return d(z,S),z}function Ri(_,P){if(P=g.apply(this,arguments),_=typeof _!="function"&&_||{},!_.name){var S=this.config();_.name=_.name||S.name,_.storeName=_.storeName||S.storeName}var M=this,z;return _.name?z=new x(function(U){_.storeName?U(Zt(_,M._defaultConfig)):U(_.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)}}):z=x.reject("Invalid arguments"),d(z,P),z}var Ii={_driver:"localStorageWrapper",_initStorage:_i,_support:xt(),iterate:Bi,getItem:Ci,setItem:Fi,removeItem:Si,clear:bi,length:Bn,key:Di,keys:er,dropInstance:Ri},Ti=function(P,S){return P===S||typeof P=="number"&&typeof S=="number"&&isNaN(P)&&isNaN(S)},Ut=function(P,S){for(var M=P.length,z=0;z<M;){if(Ti(P[z],S))return!0;z++}return!1},Dn=Array.isArray||function(_){return Object.prototype.toString.call(_)==="[object Array]"},tr={},Sn={},Wt={INDEXEDDB:De,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(_,P){_[P]=function(){var S=arguments;return _.ready().then(function(){return _[P].apply(_,S)})}}function Xe(){for(var _=1;_<arguments.length;_++){var P=arguments[_];if(P)for(var S in P)P.hasOwnProperty(S)&&(Dn(P[S])?arguments[0][S]=P[S].slice():arguments[0][S]=P[S])}return arguments[0]}var Li=function(){function _(P){s(this,_);for(var S in Wt)if(Wt.hasOwnProperty(S)){var M=Wt[S],z=M._driver;this[S]=z,tr[z]||this.defineDriver(M)}this._defaultConfig=Xe({},Pi),this._config=Xe({},this._defaultConfig,P),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return _.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},_.prototype.defineDriver=function(S,M,z){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,Ce=le.length;ye<Ce;ye++){var Pe=le[ye],Le=!Ut(Cr,Pe);if((Le||S[Pe])&&typeof S[Pe]!="function"){ae(fe);return}}var Ke=function(){for(var y=function(de){return function(){var pe=new Error("Method "+de+" is not implemented by the current driver"),Ue=x.reject(pe);return d(Ue,arguments[arguments.length-1]),Ue}},B=0,$=Cr.length;B<$;B++){var ne=Cr[B];S[ne]||(S[ne]=y(ne))}};Ke();var We=function(y){tr[ce]&&console.info("Redefining LocalForage driver: "+ce),tr[ce]=S,Sn[ce]=y,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 v(U,M,z),U},_.prototype.driver=function(){return this._driver||null},_.prototype.getDriver=function(S,M,z){var U=tr[S]?x.resolve(tr[S]):x.reject(new Error("Driver not found."));return v(U,M,z),U},_.prototype.getSerializer=function(S){var M=x.resolve(Qt);return v(M,S),M},_.prototype.ready=function(S){var M=this,z=M._driverSet.then(function(){return M._ready===null&&(M._ready=M._initDriver()),M._ready});return v(z,S,S),z},_.prototype.setDriver=function(S,M,z){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 Ce=0;function Pe(){for(;Ce<ye.length;){var Le=ye[Ce];return Ce++,U._dbInfo=null,U._ready=null,U.getDriver(Le).then(ce).catch(Pe)}ae();var Ke=new Error("No available storage method found.");return U._driverSet=x.reject(Ke),U._driverSet}return Pe()}}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(Ce){U._driver=Ce._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}),v(this._driverSet,M,z),this._driverSet},_.prototype.supports=function(S){return!!Sn[S]},_.prototype._extend=function(S){Xe(this,S)},_.prototype._getSupportedDrivers=function(S){for(var M=[],z=0,U=S.length;z<U;z++){var ee=S[z];this.supports(ee)&&M.push(ee)}return M},_.prototype._wrapLibraryMethodsWithReady=function(){for(var S=0,M=Zr.length;S<M;S++)Ni(this,Zr[S])},_.prototype.createInstance=function(S){return new _(S)},_}(),ki=new Li;n.exports=ki},{3:3}]},{},[4])(4)})})(Tu);var $v=Tu.exports;const nt=A0($v);var ac;nt.config($e({driver:[nt.INDEXEDDB,nt.LOCALSTORAGE],name:"SGP7000",size:4980736,storeName:"keyvaluepairs",version:1,description:"SGP7000"},((ac=window.meta.storage)==null?void 0:ac.config)||{}));function Hv(){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,g)=>be(this,null,function*(){if(m)return yield nt.setItem(m,g)}),removeItem:m=>be(this,null,function*(){if(m)return yield nt.removeItem(m)}),clearItems:()=>be(this,null,function*(){return yield nt.clear()}),iterateItems:(m,g)=>be(this,null,function*(){if(m)return yield nt.iterate(m,g)}),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 zv="THREED_LOG_BUFFER",qv="THREED_CURRSCENE",Wv="THREED_ACTIVE_MENU",Vv="THREED_PIXEL_RATIO",Jn="THREED_MODEL_DBNAME",d0="THREED_MODEL_DBSTORE",Gv="THREED_SCENE_PREVIEW",p0="THREED_MODEL_LOAD_KEY",an="THREED_PREVIEW_URL_KEY",jv="THREED_ADDON_EDITOR_JSON",Kv="THREED_SCENE_STORAGE_SUFFIX",x0={step:.1},Yv=80,Ou=30,Xv=1e3,Jv=1200,Qv=3e5,Zv="三维测试",ey="灯光",ty=1,ry=["环境光","平行光","点光源","聚光灯","半球光","平面光"],Pu=new Set(["syncStatus","disposeTargets","statusMaterials","syncPanelPlacement"]),ny=["AxesHelper","GridHelper","Box3Helper","PerspectiveCamera"],Nu=new Set(["GridHelper","AxesHelper","CameraHelper","SpotLightHelper","PointLightHelper","TransformControls","HemisphereLightHelper","DirectionalLightHelper","TransformControlsPlane"]),Lu=new Set(["CSS2DObject","CSS3DObject"]),iy=Object.assign({"/src/views/threed/models/pd-sensor.js":Uv}),oy=Object.assign({}),ay={环境光:()=>new pt.THREE.AmbientLight(16777215,1),平行光:()=>new pt.THREE.DirectionalLight(16777215,1),点光源:()=>new pt.THREE.PointLight(16777215,1,0,0),聚光灯:()=>new pt.THREE.SpotLight(16777215,1,0,Math.PI/6,0,0),半球光:()=>new pt.THREE.HemisphereLight(16777215,0,1),平面光:()=>new pt.THREE.RectAreaLight(16777215,1,100,100)},sy=[{name:"荧光流动",commonUniforms:!0,vertex:"vUv-material",fragment:`
|
|
57
53
|
vec4 o = gl_FragColor.rgba;
|
|
58
54
|
vec2 u = gl_FragCoord.xy;
|
|
59
55
|
vec2 v = iResolution.xy;
|
|
@@ -91,4 +87,4 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,curr
|
|
|
91
87
|
uv *= 2.0 * ( cos(iTime * 2.0) -2.5);
|
|
92
88
|
float anim = sin(iTime * 12.0) * 0.1 + 1.0;
|
|
93
89
|
vec3 col = cheap_star(uv, anim) * vec3(0.35,0.2,0.15);
|
|
94
|
-
`,key:"col",commonFinish:!0,render:"iTime+speed"}];let pi=null,$e=null;const jl=n=>(n==null?void 0:n.name)||(n==null?void 0:n.label)||"",Kf=(n={})=>Object.values(n).filter(t=>t&&(t.label||t.name)),ew=Kf(Jv),rw=Kf(Zv),nw=()=>({THREED_GUI_PARAMS:F0,THREED_LOG_BUFFER:Pv,THREED_CURRSCENE:zv,THREED_ACTIVE_MENU:kv,THREED_PIXEL_RATIO:Nv,THREED_IMPORT_SIZE:Hv,THREED_LIGHT_TYPES:Yv,THREED_EXPORT_BATCH:jf,THREED_RELOAD_DELAY:qv,THREED_MODEL_DBNAME:Ts,THREED_MODEL_DBSTORE:S0,THREED_SCENE_PREVIEW:Lv,THREED_USER_DATA_KEYS:Gf,THREED_MODEL_LOAD_KEY:B0,THREED_PREVIEW_URL_KEY:yi,THREED_ADDON_EDITOR_JSON:Uv,THREED_EXPORT_NODE_COUNT:Wv,THREED_DEFAULT_SCENE_NAME:jv,THREED_DEFAULT_ACTIVE_MENU:Gv,THREED_DEFAULT_PIXEL_RATIO:Xv,THREED_EXPORT_VERTEX_COUNT:Vv,THREED_SCENE_EXCLUDE_TYPES:Kv,THREED_EXPORT_EXCLUDE_TYPES:Xf,THREED_EXPORT_RUNTIME_TYPES:Yf,THREED_SCENE_STORAGE_SUFFIX:$v});function iw(){const{createInstance:n,dropInstance:t}=Ov(),e="/",r=d=>URL.createObjectURL(d),i=()=>Ct(this,null,function*(){return yield a(),{clearRequest:s,getAllRequest:h,getRequest:f,status:!0,message:"数据库打开成功",DATABASE:$e}}),s=d=>Ct(this,null,function*(){if(!d)return{status:!1,message:"删除失败"};yield a(),yield $e.removeItem(d);const m=l();return m.list=m.list.filter(B=>B.name!==d),{status:!0,message:"删除成功"}}),o=(...m)=>Ct(this,[...m],function*(d=Ts){$e=null,pi=null,yield t({name:d,storeName:S0})}),a=()=>Ct(this,null,function*(){return $e||(pi||(pi=n({name:Ts,storeName:S0}).then(d=>($e=d,d))),yield pi)}),u=d=>{if(!d)return!1;const m=String(d.message||"");return d.name==="DataError"||m.includes("in-line keys")},c=()=>Ct(this,null,function*(){$e=null,pi=null,yield t({name:Ts}),yield a()}),l=()=>(window.threeEditorDB||(window.threeEditorDB={db:null,list:[]}),window.threeEditorDB),f=d=>Ct(this,null,function*(){if(!d)return{status:!1,message:"获取失败"};yield a();const m=yield $e.getItem(d);if(m!=null&&m.blob&&!d)return{status:!0,message:"获取成功",url:r(m.blob)};if(!d)return{status:!1,message:"获取失败"};const B=yield fetch(d).then(Et=>Et.blob()),k={blob:B};try{yield $e.setItem(d,k)}catch(Et){if(!u(Et))throw Et;yield c(),yield $e.setItem(d,k)}const Z=l(),nt=Lt({url:d},k),mt=Z.list.findIndex(Et=>Et.url===d);return mt>-1?Z.list.splice(mt,1,nt):Z.list.push(nt),{status:!0,message:"文件缓存成功",url:r(B)}}),h=()=>Ct(this,null,function*(){const d=l();yield a();const m=[];return yield $e.iterate((B,k)=>{m.push(ze(Lt({},B||{}),{name:k}))}),d.list=m,{status:!0,message:"获取成功",data:m}}),p=()=>Ct(this,null,function*(){const d=yield rr.getApi("/filehandle/scan",{path:sf.threeModelPath,extension:"glb,gltf"}),{children:m}=d.res,B=[];if(m!=null&&m.length)for(const k of m)B.push({name:k.name,path:"/"+k.path});return B}),x=()=>window.GUI_PARAMS||F0,y=()=>window.threeEditor||null,g=()=>window.editorJsons||[],A=()=>({width:window.innerWidth||0,height:window.innerHeight||0}),w=()=>ew,E=()=>l(),_=()=>Qv||{},C=()=>window[yi]||"",T=()=>rw,R=()=>window.devicePixelRatio||1,N=()=>window[yi]||"",Y=()=>{const d=w(),m=T();return{modelDesigns:d,componentDesigns:m,modelList:d.map(B=>B.label),componentList:m.map(B=>B.label)}},I=(d,m)=>{var B;return(B=d==null?void 0:d.__DESIGNS__)==null?void 0:B.find(k=>k.label===m)},O=(d=0)=>!Number.isFinite(d)||d<=0?"0 B":d<1024?`${d} B`:d<1024*1024?`${(d/1024).toFixed(1)} KB`:d<1024*1024*1024?`${(d/1024/1024).toFixed(1)} MB`:`${(d/1024/1024/1024).toFixed(2)} GB`,q=d=>{const m=window[B0];typeof m=="function"&&m(d)},j=d=>!!d&&Number.isFinite(d.x)&&Number.isFinite(d.y)&&Number.isFinite(d.z),J=d=>{var m,B;return!d||!d.visible||(m=d.userData)!=null&&m.excludeFromExport||d.isTransformControls||d.isHelper||d.isLight||d.isPoints||(B=d.type)!=null&&B.includes("Helper")||Xf.has(d.type)||Yf.has(d.type)||d.isCSS2DObject||d.isCSS3DObject?!1:d.isMesh||d.isGroup||d.isObject3D||d.isLine},G=(d,m)=>d&&Number.isFinite(d.x)&&Number.isFinite(d.y)&&Number.isFinite(d.z)?d:m,Q=d=>d&&Number.isFinite(d.x)&&Number.isFinite(d.y)&&Number.isFinite(d.z)&&Number.isFinite(d.w)?d:{x:0,y:0,z:0,w:1},ot=d=>{if(!(d!=null&&d.isObject3D))return;const m=G(d.position,{x:0,y:0,z:0});d.position.set(m.x,m.y,m.z);const B=G(d.scale,{x:1,y:1,z:1});d.scale.set(B.x===0?1:B.x,B.y===0?1:B.y,B.z===0?1:B.z);const k=G(d.up,{x:0,y:1,z:0});d.up.set(k.x,k.y,k.z);const Z=Q(d.quaternion);d.quaternion.set(Z.x,Z.y,Z.z,Z.w),d.pivot&&!j(d.pivot)&&delete d.pivot,d.updateMatrix(),d.updateMatrixWorld(!1)},it=(d,m="_blank")=>window.open(d,m),ut=(d,m="")=>window.prompt(d,m),at=()=>window.location.reload(),U=()=>document.documentElement.classList.remove("dark"),X=d=>{if(!Array.isArray(d==null?void 0:d.__DESIGNS__))return Y();const m=[...w(),...T()],B=new Set(d.__DESIGNS__.map(k=>jl(k)));return m.forEach(k=>{const Z=jl(k);!Z||B.has(Z)||(B.add(Z),d.__DESIGNS__.unshift(k))}),Y()},tt=d=>{if(!Array.isArray(d==null?void 0:d.__GLSLLIB__))return;const m=new Set(d.__GLSLLIB__.map(B=>B==null?void 0:B.name));tw.forEach(B=>{m.has(B.name)||(m.add(B.name),d.__GLSLLIB__.push(B))})},K=(d={})=>{const m={};return Object.entries(d||{}).forEach(([B,k])=>{if(!(Gf.has(B)||typeof k=="function")){if(!k||["string","number","boolean"].includes(typeof k)){m[B]=k;return}if(Array.isArray(k)){try{m[B]=structuredClone(k)}catch(Z){return}return}if(!(k.isObject3D||k.isMaterial||k.isTexture||k.nodeType))try{m[B]=structuredClone(k)}catch(Z){return}}}),m},wt=(d=F0)=>{window.GUI_PARAMS=d},At=d=>{window.threeEditor=d},It=d=>{window.threeEditorDB=d},yt=d=>{window[B0]=d},bt=(d="")=>{window[yi]=d},Mt=(d="")=>{window[yi]=d},qt=d=>{var B;const m=[];return(B=d==null?void 0:d.children)==null||B.forEach(k=>{J(k)&&m.push(k)}),m},__$t__=(d=[])=>{const m={rootCount:d.length,nodeCount:0,meshCount:0,vertexCount:0,skippedCount:0};return d.forEach(B=>{B.traverse(k=>{var Z,nt,mt;if(J(k)){m.nodeCount+=1,k.isMesh&&(m.meshCount+=1,m.vertexCount+=((mt=(nt=(Z=k.geometry)==null?void 0:Z.attributes)==null?void 0:nt.position)==null?void 0:mt.count)||0);return}k!==B&&(m.skippedCount+=1)})}),m},Ft=()=>new Promise(d=>requestAnimationFrame(()=>setTimeout(d,0))),Wt=()=>new Promise(d=>{if(typeof window.requestIdleCallback=="function"){window.requestIdleCallback(()=>d(),{timeout:80});return}setTimeout(d,0)}),Vt=(d,m)=>Ct(this,null,function*(){var Z;if(!J(d))return null;const B=d.clone(!1);B.userData=K(d.userData),j(d.pivot)?B.pivot=new Ce.THREE.Vector3(d.pivot.x,d.pivot.y,d.pivot.z):"pivot"in B&&delete B.pivot,ot(B);const k=[{source:d,clone:B}];for(;k.length;){const nt=k.shift();for(const mt of nt.source.children){if(!J(mt)){m.skippedCount+=1;continue}const Et=mt.clone(!1);Et.userData=K(mt.userData),j(mt.pivot)?Et.pivot=new Ce.THREE.Vector3(mt.pivot.x,mt.pivot.y,mt.pivot.z):"pivot"in Et&&delete Et.pivot,ot(Et),nt.clone.add(Et),k.push({source:mt,clone:Et}),m.processedCount+=1,m.processedCount%jf===0&&(yield(Z=m.onProgress)==null?void 0:Z.call(m,{processedCount:m.processedCount,totalCount:m.totalCount,skippedCount:m.skippedCount,progress:18+Math.min(m.processedCount/Math.max(m.totalCount,1)*54,54)}),yield Ft())}}return B});return{baseUrl:e,getModels:p,getRequest:f,reloadPage:at,promptInput:ut,waitForIdle:Wt,waitForPaint:Ft,clearRequest:s,getGuiParams:x,setGuiParams:wt,getAllRequest:h,getEditorJsons:g,getThreeEditor:y,formatFileSize:O,setThreeEditor:At,removeDarkClass:U,openExternalUrl:it,getThreedModels:w,getViewportSize:A,buildExportScene:(B,...k)=>Ct(this,[B,...k],function*(d,m={}){const Z=qt(d),nt=__$t__(Z),mt=new Ce.THREE.Scene,Et={totalCount:nt.nodeCount,processedCount:0,skippedCount:0,onProgress:m.onProgress};for(const Ot of Z){const kt=yield Vt(Ot,Et);kt&&mt.add(kt),yield Wt()}return mt.updateMatrixWorld(!0),nt.skippedCount+=Et.skippedCount,{exportScene:mt,exportObjects:Z,stats:nt}}),createModelDbApi:i,getEditorPreviewSceneUrl:N,getThreeEditorDB:E,sanitizeUserData:K,setThreeEditorDB:It,findThreedDesign:I,getThreedLightMap:_,collectExportStats:__$t__,getPreviewSceneUrl:C,setEditorPreviewSceneUrl:Mt,setPreviewSceneUrl:bt,setModelLoadHander:yt,isExportableObject:J,deleteThreeEditorDB:o,ensureThreeEditorDB:l,getDevicePixelRatio:R,getThreedComponents:T,collectExportObjects:qt,resetModelDbInstance:c,ensureModelDbInstance:a,getLocalDesignMenuData:Y,invokeModelLoadHandler:q,isLegacyInlineKeyError:u,ensureThreedShaderLibrary:tt,ensureThreedDesignRegistry:X}}const{THREED_LOG_BUFFER:nc,THREED_CURRSCENE:Ls,THREED_ACTIVE_MENU:ic,THREED_PIXEL_RATIO:sc,THREED_SCENE_PREVIEW:oc,THREED_ADDON_EDITOR_JSON:Us,THREED_DEFAULT_SCENE_NAME:sw,THREED_DEFAULT_ACTIVE_MENU:D0,THREED_DEFAULT_PIXEL_RATIO:M0,THREED_SCENE_STORAGE_SUFFIX:Gl}=nw(),ow=[nc,Ls,ic,sc,oc,Us],Fr=(n,t)=>{const e=tc.getLocal(n);return e==null?t:e},Br=(n,t)=>{n&&tc.setLocal(n,t)},o0=n=>{n&&tc.removeLocal(n)},aw=(n,t)=>{var r,i;const e=(r=n==null?void 0:n.trim)==null?void 0:r.call(n);return e&&t.some(s=>s.name===e)?e:((i=t[0])==null?void 0:i.name)||sw},T0=(n=[])=>Array.isArray(n)?n.filter(t=>typeof t=="string"&&t):[],Xl=()=>{const n=[],t=Fr(Ls,{name:"",path:""}),e=Number.parseFloat(Fr(sc,M0));return{taskState:{busy:!1,type:"",title:"",message:"",description:"",progress:0},currScene:t,sceneList:n,previewScene:!!Fr(oc,!1),activeMenuTitle:Fr(ic,D0)||D0,pixelRatio:Number.isFinite(e)&&e>0?e:M0,logarithmicDepthBuffer:Fr(nc,!0)!==!1,addonEditorJson:T0(Fr(Us,[]))}},Jf=R0.defineStore("threed",{state:()=>Xl(),actions:{getSceneList(){return Ct(this,null,function*(){var t;const n=yield rr.getCommonApi("threedfloorplan",{limit:1e4,ordering:"-create_time"});(t=n==null?void 0:n.data)!=null&&t.length?(this.sceneList=n.data,this.currScene.path?this.sceneList.find(r=>r.id===this.currScene.id)||this.setCurrScene({name:"",path:""}):this.setCurrScene(this.sceneList[0])):(this.sceneList=[],this.setCurrScene({name:"",path:""}))})},setSceneName(n){this.sceneName=aw(n,this.sceneList),Br(Ls,this.sceneName)},createScene(n){return Ct(this,null,function*(){var o,a;const t=(o=n==null?void 0:n.trim)==null?void 0:o.call(n);if(!t||this.sceneList.some(u=>u.name===t))return!1;const e=sf.threeSavePath+"/"+g0()+".json",r=g0();if(!(yield rr.postCommonApi("query/threedfloorplan/create",{data:[{name:t,path:e,guid:r}]})).success)return!1;if(yield gy(e,"")){const u=yield rr.postCommonApi("threedfloorplan",{guid:r});(a=u==null?void 0:u.data)!=null&&a.length&&(this.sceneList=[...this.sceneList,u.data[0]])}return!0})},deleteScene(n){return Ct(this,null,function*(){var r;if(!n)return;if(!(yield rr.postCommonApi("query/threedfloorplan/delete",{data:[n]})).success)return!1;const e=this.sceneList.findIndex(i=>i.id===n);return e===-1?!1:(this.sceneList.splice(e,1),((r=this.currScene)==null?void 0:r.id)===n&&this.setCurrScene(this.sceneList[0]||{name:"",path:""}),!0)})},setCurrScene(n){return Ct(this,null,function*(){this.currScene=n,Br(Ls,this.currScene)})},setPreviewMode(n){this.previewScene=!!n,Br(oc,this.previewScene)},setActiveMenuTitle(n){this.activeMenuTitle=n||D0,Br(ic,this.activeMenuTitle)},setPixelRatio(n){const t=Number.parseFloat(n);this.pixelRatio=Number.isFinite(t)&&t>0?t:M0,Br(sc,this.pixelRatio)},setLogarithmicDepthBuffer(n){this.logarithmicDepthBuffer=!!n,Br(nc,this.logarithmicDepthBuffer)},getSceneStorageKey(n){return`${n||this.sceneName}${Gl}`},getSceneStorageParams(n,t=null){return Fr(this.getSceneStorageKey(n),t)},setSceneStorageParams(n,t){n&&Br(this.getSceneStorageKey(n),t)},removeSceneStorageParams(n){n&&o0(this.getSceneStorageKey(n))},resetTaskState(){return Ct(this,null,function*(){yield new Promise(n=>setTimeout(n,120)),this.taskState={busy:!1,type:"",title:"",message:"",description:"",progress:0}})},getAddonEditorJson(){return this.addonEditorJson=T0(Fr(Us,this.addonEditorJson)),this.addonEditorJson},setAddonEditorJson(n){this.addonEditorJson=T0(n),Br(Us,this.addonEditorJson)},clearThreedStorage(){ow.forEach(t=>o0(t)),Object.keys(window.localStorage).filter(t=>t.endsWith(Gl)).forEach(t=>o0(t));const n=Xl();this.currScene=n.currScene,this.sceneList=n.sceneList,this.previewScene=n.previewScene,this.activeMenuTitle=n.activeMenuTitle,this.pixelRatio=n.pixelRatio,this.logarithmicDepthBuffer=n.logarithmicDepthBuffer,this.addonEditorJson=n.addonEditorJson}}}),Ai=n=>{const{onClose:t,customClass:e}=n;return Mr(ze(Lt({},n),{center:!0,customClass:`sy-message ${e||""}`,onClose:i=>{t&&t(i)}}))};["success","warning","info","error"].forEach(n=>{Ai[n]=t=>Ai(typeof t=="string"?{type:n,message:t}:ze(Lt({},t),{type:n}))});const cw={backgroundBlurriness:0,backgroundIntensity:1,backgroundUrls:null,environmentEnabled:!1},uw={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}},lw={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}]},hw={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}},fw={mode:"translate",space:"world",size:1,showX:!0,showY:!0,showZ:!0,translationSnap:null,rotationSnap:null,scaleSnap:null},dw={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}},pw={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}}},xw=[{name:"环境光",type:"AmbientLight",visible:!0,position:{x:0,y:0,z:0},color:16777215,intensity:1,castShadow:!1,layers:{mask:1}}],mw=[],yw=[],gw=[],vw=[],ww=[],Ew={},bw=[],Aw={viewAngleList:[],clipping:{size:20,clipList:[]}},_w={scene:cw,perspectiveCamera:uw,webglRenderer:lw,orbitControls:hw,transformControls:fw,effectComposer:dw,handler:pw,lightCores:xw,innerCores:mw,modelCores:yw,drawCores:gw,textCores:vw,particleCores:ww,geoCores:Ew,designCores:bw,other:Aw};class Cw extends gv{constructor(){super();const t=new rc;t.deleteAttribute("uv");const e=new Hl({side:kf}),r=new Hl,i=new Mv(16777215,900,28,2);i.position.set(.418,16.199,.3),this.add(i);const s=new fr(t,e);s.position.set(-.757,13.219,.717),s.scale.set(31.713,28.305,28.591),this.add(s);const o=new Ev(t,r,6),a=new we;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(),o.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(),o.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(),o.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(),o.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(),o.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(),o.setMatrixAt(5,a.matrix),this.add(o);const u=new fr(t,On(50));u.position.set(-16.116,14.37,8.208),u.scale.set(.1,2.428,2.739),this.add(u);const c=new fr(t,On(50));c.position.set(-16.109,18.021,-8.207),c.scale.set(.1,2.425,2.751),this.add(c);const l=new fr(t,On(17));l.position.set(14.904,12.198,-1.832),l.scale.set(.15,4.265,6.331),this.add(l);const f=new fr(t,On(43));f.position.set(-.462,8.89,14.52),f.scale.set(4.38,5.441,.088),this.add(f);const h=new fr(t,On(20));h.position.set(3.235,11.486,-12.541),h.scale.set(2.5,2,.1),this.add(h);const p=new fr(t,On(100));p.position.set(0,20,0),p.scale.set(1,.1,1),this.add(p)}dispose(){const t=new Set;this.traverse(e=>{e.isMesh&&(t.add(e.geometry),t.add(e.material))});for(const e of t)e.dispose()}}function On(n){return new Sv({color:0,emissive:16777215,emissiveIntensity:n})}const Zf=(n,t)=>{const e=n.__vccOpts||n;for(const[r,i]of t)e[r]=i;return e},Sw=Object.assign({name:"ThreedEditor"},{__name:"editor",props:{data:{type:Object,default:()=>({})},preview:{type:Boolean,default:!1}},emits:["emit-three-editor","graph-event"],setup(n,{expose:t,emit:e}){const r=n,i=Jf(),{currScene:s}=R0.storeToRefs(i),o=e;Ce.ThreeEditor.dracoPath="/draco/";let a=null,u=null;const c=P.ref(null),{setGuiParams:l,getDevicePixelRatio:f,ensureThreedDesignRegistry:h}=iw();h(Ce.ThreeEditor),l({step:.1});const p=()=>{var E;return(E=a==null?void 0:a.renderSceneResize)==null?void 0:E.call(a)};let x=[];const y=()=>{x.forEach(E=>URL.revokeObjectURL(E)),x=[]},g=()=>Ct(this,null,function*(){var _,C;let E=_w;try{if(r.data&&Object.keys(r.data).length)E=r.data;else if((_=s.value)!=null&&_.path){const T=yield rr.getApi((C=s.value)==null?void 0:C.path).catch(()=>({}));console.log("初始化三维场景:",T),T.res&&(E=T.res)}E.designCores.forEach(T=>{T.preview=r.preview}),a?a.resetEditorStorage(E):a=new Ce.ThreeEditor(c.value,{fps:null,pixelRatio:f()*i.pixelRatio,webglRenderParams:{antialias:!0,alpha:!0,logarithmicDepthBuffer:i.logarithmicDepthBuffer},sceneParams:E})}catch(T){a==null||a.resetEditorStorage(E)}finally{r.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),A()}o("emit-three-editor",a),window.addEventListener("resize",p)}),A=()=>{a!=null&&a.renderer&&(u=new Ce.THREE.PMREMGenerator(a.renderer),u.compileEquirectangularShader(),a.scene.environment=u.fromScene(new Cw).texture)},w=()=>a;return P.watch(()=>s.value.path,()=>Ct(this,null,function*(){g()})),P.watch(()=>r.data,()=>{g()},{deep:!0,immediate:!0}),P.onMounted(()=>{r.preview||g()}),P.onUnmounted(()=>{window.removeEventListener("resize",p),y(),a==null||a.destroySceneRender(),i.setCurrScene({name:"",path:""})}),t({getEditorInstance:w}),(E,_)=>(P.openBlock(),P.createElementBlock("div",{ref_key:"editorRef",ref:c,class:"threed-editor",onDragover:_[0]||(_[0]=P.withModifiers(()=>{},["prevent"])),onDrop:_[1]||(_[1]=P.withModifiers(()=>{},["prevent"]))},null,544))}}),Bw=Zf(Sw,[["__scopeId","data-v-52738718"]]),Fw={class:"threed-preview"},Dw={__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(n,{expose:t,emit:e}){const r=n,i=e;let s=P.shallowRef({});const o=P.ref(),a=Jf(),u={};let c=null;const l=A=>{var E,_,C;if(!A)return;if((E=A==null?void 0:A.includes)!=null&&E.call(A,"token 必传"))return Ai({message:A,type:"warning"});const w=typeof A=="string"?JSON.parse(A):A;if((w==null?void 0:w.data)==="服务错误"||(C=(_=w==null?void 0:w.data)==null?void 0:_.includes)!=null&&C.call(_,"token is expired"))return Ai({message:w.data,type:"warning"});switch(w.action){case Qc.ACPOINT.YCVALUE:case Qc.ACPOINT.YXVALUE:console.warn("遥测信息");break}},f=()=>{try{c=new yy({socketUrl:r.socketUrl,token:r.token,onMessage:l})}catch(A){console.warn("三维场景消息处理失败",A)}},h=A=>Ct(this,null,function*(){var E;const w=yield rr.postCommonApi("queryrealtimepoint",{point_id:A.join(",")});if((E=w==null?void 0:w.data)!=null&&E.length){w.data.forEach(C=>{u[C.guid]=C.value_disp||C.value});const _=g();A.forEach(C=>{const T=_.scene.getObjectByProperty("dataId",C);T&&(T.userData.params.state=u[C],T.userData.params.value=u[C])})}}),p=A=>{console.log("🚀 ~ handleGraphEvent:",A),i("graph-event",A)},x=A=>{var _;console.log("🚀 ~ handleEditorReady:",A),r.socketUrl&&f();const w=A.saveSceneEdit();let E=[];(_=w==null?void 0:w.designCores)==null||_.forEach(C=>{C.designType==="局放测点"&&C.id&&E.push(C.id)}),E!=null&&E.length&&h(E),i("loaded",A)},y=()=>Ct(this,null,function*(){if(s.value&&Object.keys(s.value).length)return;const A=xy(),w=r.url||A.url;if(w){const C=yield rr.getApi(w).catch(()=>({}));C.res&&(s.value=C.res);return}if(!(r.id||A.id)){console.warn("三维场景渲染失败,场景id为空!");return}const _=yield rr.getCommonApi("threedfloorplan",{guid:r.id});_.data.length?a.setCurrScene(_.data[0]):console.warn("三维场景渲染失败,场景id为:"+r.id+"不存在!")}),g=()=>o.value?o.value.getEditorInstance():null;return P.watch(()=>r.data,A=>{s.value=A,y()},{deep:!0,immediate:!0}),P.watch(()=>r.id,()=>{y()},{deep:!0,immediate:!0}),P.onMounted(()=>{v0.on("three-event",p)}),P.onUnmounted(()=>{c&&c.destroy(),v0.off("three-event",p)}),t({getEditorInstance:g}),(A,w)=>(P.openBlock(),P.createElementBlock("div",Fw,[P.createVNode(Bw,{ref_key:"threedEditorRef",ref:o,data:P.unref(s),preview:"",onGraphEvent:p,onEmitThreeEditor:x},null,8,["data"])]))}},Si=Zf(Dw,[["__scopeId","data-v-b2fcf833"]]);Si.name||(Si.name="SyThreedGraph");const Mw=n=>{n.component(Si.name||"SyThreedGraph",Si)},Tw={install:Mw};exports.SyThreedGraph=Si;exports.default=Tw;
|
|
90
|
+
`,key:"col",commonFinish:!0,render:"iTime+speed"}];let rn=null,_t=null;const qs=t=>(t==null?void 0:t.name)||(t==null?void 0:t.label)||"",ku=(t={})=>Object.values(t).filter(e=>e&&(e.label||e.name)),cy=ku(iy),uy=ku(oy),fy=()=>({THREED_GUI_PARAMS:x0,THREED_LOG_BUFFER:zv,THREED_CURRSCENE:qv,THREED_ACTIVE_MENU:Wv,THREED_PIXEL_RATIO:Vv,THREED_IMPORT_SIZE:Yv,THREED_LIGHT_TYPES:ry,THREED_EXPORT_BATCH:Ou,THREED_RELOAD_DELAY:Xv,THREED_MODEL_DBNAME:Jn,THREED_MODEL_DBSTORE:d0,THREED_SCENE_PREVIEW:Gv,THREED_USER_DATA_KEYS:Pu,THREED_MODEL_LOAD_KEY:p0,THREED_PREVIEW_URL_KEY:an,THREED_ADDON_EDITOR_JSON:jv,THREED_EXPORT_NODE_COUNT:Jv,THREED_DEFAULT_SCENE_NAME:Zv,THREED_DEFAULT_ACTIVE_MENU:ey,THREED_DEFAULT_PIXEL_RATIO:ty,THREED_EXPORT_VERTEX_COUNT:Qv,THREED_SCENE_EXCLUDE_TYPES:ny,THREED_EXPORT_EXCLUDE_TYPES:Nu,THREED_EXPORT_RUNTIME_TYPES:Lu,THREED_SCENE_STORAGE_SUFFIX:Kv});function ly(){const{createInstance:t,dropInstance:e}=Hv(),r="/",n=c=>URL.createObjectURL(c),i=()=>be(this,null,function*(){return yield a(),{clearRequest:o,getAllRequest:d,getRequest:x,status:!0,message:"数据库打开成功",DATABASE:_t}}),o=c=>be(this,null,function*(){if(!c)return{status:!1,message:"删除失败"};yield a(),yield _t.removeItem(c);const f=l();return f.list=f.list.filter(b=>b.name!==c),{status:!0,message:"删除成功"}}),s=(...f)=>be(this,[...f],function*(c=Jn){_t=null,rn=null,yield e({name:c,storeName:d0})}),a=()=>be(this,null,function*(){return _t||(rn||(rn=t({name:Jn,storeName:d0}).then(c=>(_t=c,c))),yield rn)}),h=c=>{if(!c)return!1;const f=String(c.message||"");return c.name==="DataError"||f.includes("in-line keys")},u=()=>be(this,null,function*(){_t=null,rn=null,yield e({name:Jn}),yield a()}),l=()=>(window.threeEditorDB||(window.threeEditorDB={db:null,list:[]}),window.threeEditorDB),x=c=>be(this,null,function*(){if(!c)return{status:!1,message:"获取失败"};yield a();const f=yield _t.getItem(c);if(f!=null&&f.blob&&!c)return{status:!0,message:"获取成功",url:n(f.blob)};if(!c)return{status:!1,message:"获取失败"};const b=yield fetch(c).then(Ee=>Ee.blob()),N={blob:b};try{yield _t.setItem(c,N)}catch(Ee){if(!h(Ee))throw Ee;yield u(),yield _t.setItem(c,N)}const X=l(),re=$e({url:c},N),xe=X.list.findIndex(Ee=>Ee.url===c);return xe>-1?X.list.splice(xe,1,re):X.list.push(re),{status:!0,message:"文件缓存成功",url:n(b)}}),d=()=>be(this,null,function*(){const c=l();yield a();const f=[];return yield _t.iterate((b,N)=>{f.push(Rt($e({},b||{}),{name:N}))}),c.list=f,{status:!0,message:"获取成功",data:f}}),v=()=>be(this,null,function*(){const c=yield kt.getApi("/filehandle/scan",{path:tu.threeModelPath,extension:"glb,gltf"}),{children:f}=c.res,b=[];if(f!=null&&f.length)for(const N of f)b.push({name:N.name,path:"/"+N.path});return b}),m=()=>window.GUI_PARAMS||x0,g=()=>window.threeEditor||null,E=()=>window.editorJsons||[],R=()=>({width:window.innerWidth||0,height:window.innerHeight||0}),A=()=>cy,w=()=>l(),C=()=>ay||{},D=()=>window[an]||"",I=()=>uy,L=()=>window.devicePixelRatio||1,q=()=>window[an]||"",Z=()=>{const c=A(),f=I();return{modelDesigns:c,componentDesigns:f,modelList:c.map(b=>b.label),componentList:f.map(b=>b.label)}},O=(c,f)=>{var b;return(b=c==null?void 0:c.__DESIGNS__)==null?void 0:b.find(N=>N.label===f)},k=(c=0)=>!Number.isFinite(c)||c<=0?"0 B":c<1024?`${c} B`:c<1024*1024?`${(c/1024).toFixed(1)} KB`:c<1024*1024*1024?`${(c/1024/1024).toFixed(1)} MB`:`${(c/1024/1024/1024).toFixed(2)} GB`,W=c=>{const f=window[p0];typeof f=="function"&&f(c)},Y=c=>!!c&&Number.isFinite(c.x)&&Number.isFinite(c.y)&&Number.isFinite(c.z),J=c=>{var f,b;return!c||!c.visible||(f=c.userData)!=null&&f.excludeFromExport||c.isTransformControls||c.isHelper||c.isLight||c.isPoints||(b=c.type)!=null&&b.includes("Helper")||Nu.has(c.type)||Lu.has(c.type)||c.isCSS2DObject||c.isCSS3DObject?!1:c.isMesh||c.isGroup||c.isObject3D||c.isLine},j=(c,f)=>c&&Number.isFinite(c.x)&&Number.isFinite(c.y)&&Number.isFinite(c.z)?c:f,Q=c=>c&&Number.isFinite(c.x)&&Number.isFinite(c.y)&&Number.isFinite(c.z)&&Number.isFinite(c.w)?c:{x:0,y:0,z:0,w:1},oe=c=>{if(!(c!=null&&c.isObject3D))return;const f=j(c.position,{x:0,y:0,z:0});c.position.set(f.x,f.y,f.z);const b=j(c.scale,{x:1,y:1,z:1});c.scale.set(b.x===0?1:b.x,b.y===0?1:b.y,b.z===0?1:b.z);const N=j(c.up,{x:0,y:1,z:0});c.up.set(N.x,N.y,N.z);const X=Q(c.quaternion);c.quaternion.set(X.x,X.y,X.z,X.w),c.pivot&&!Y(c.pivot)&&delete c.pivot,c.updateMatrix(),c.updateMatrixWorld(!1)},ie=(c,f="_blank")=>window.open(c,f),he=(c,f="")=>window.prompt(c,f),ue=()=>window.location.reload(),H=()=>document.documentElement.classList.remove("dark"),G=c=>{if(!Array.isArray(c==null?void 0:c.__DESIGNS__))return Z();const f=[...A(),...I()],b=new Set(c.__DESIGNS__.map(N=>qs(N)));return f.forEach(N=>{const X=qs(N);!X||b.has(X)||(b.add(X),c.__DESIGNS__.unshift(N))}),Z()},te=c=>{if(!Array.isArray(c==null?void 0:c.__GLSLLIB__))return;const f=new Set(c.__GLSLLIB__.map(b=>b==null?void 0:b.name));sy.forEach(b=>{f.has(b.name)||(f.add(b.name),c.__GLSLLIB__.push(b))})},K=(c={})=>{const f={};return Object.entries(c||{}).forEach(([b,N])=>{if(!(Pu.has(b)||typeof N=="function")){if(!N||["string","number","boolean"].includes(typeof N)){f[b]=N;return}if(Array.isArray(N)){try{f[b]=structuredClone(N)}catch(X){return}return}if(!(N.isObject3D||N.isMaterial||N.isTexture||N.nodeType))try{f[b]=structuredClone(N)}catch(X){return}}}),f},ge=(c=x0)=>{window.GUI_PARAMS=c},we=c=>{window.threeEditor=c},Ie=c=>{window.threeEditorDB=c},ve=c=>{window[p0]=c},Ae=(c="")=>{window[an]=c},Fe=(c="")=>{window[an]=c},He=c=>{var b;const f=[];return(b=c==null?void 0:c.children)==null||b.forEach(N=>{J(N)&&f.push(N)}),f},Me=(c=[])=>{const f={rootCount:c.length,nodeCount:0,meshCount:0,vertexCount:0,skippedCount:0};return c.forEach(b=>{b.traverse(N=>{var X,re,xe;if(J(N)){f.nodeCount+=1,N.isMesh&&(f.meshCount+=1,f.vertexCount+=((xe=(re=(X=N.geometry)==null?void 0:X.attributes)==null?void 0:re.position)==null?void 0:xe.count)||0);return}N!==b&&(f.skippedCount+=1)})}),f},De=()=>new Promise(c=>requestAnimationFrame(()=>setTimeout(c,0))),ze=()=>new Promise(c=>{if(typeof window.requestIdleCallback=="function"){window.requestIdleCallback(()=>c(),{timeout:80});return}setTimeout(c,0)}),qe=(c,f)=>be(this,null,function*(){var X;if(!J(c))return null;const b=c.clone(!1);b.userData=K(c.userData),Y(c.pivot)?b.pivot=new pt.THREE.Vector3(c.pivot.x,c.pivot.y,c.pivot.z):"pivot"in b&&delete b.pivot,oe(b);const N=[{source:c,clone:b}];for(;N.length;){const re=N.shift();for(const xe of re.source.children){if(!J(xe)){f.skippedCount+=1;continue}const Ee=xe.clone(!1);Ee.userData=K(xe.userData),Y(xe.pivot)?Ee.pivot=new pt.THREE.Vector3(xe.pivot.x,xe.pivot.y,xe.pivot.z):"pivot"in Ee&&delete Ee.pivot,oe(Ee),re.clone.add(Ee),N.push({source:xe,clone:Ee}),f.processedCount+=1,f.processedCount%Ou===0&&(yield(X=f.onProgress)==null?void 0:X.call(f,{processedCount:f.processedCount,totalCount:f.totalCount,skippedCount:f.skippedCount,progress:18+Math.min(f.processedCount/Math.max(f.totalCount,1)*54,54)}),yield De())}}return b});return{baseUrl:r,getModels:v,getRequest:x,reloadPage:ue,promptInput:he,waitForIdle:ze,waitForPaint:De,clearRequest:o,getGuiParams:m,setGuiParams:ge,getAllRequest:d,getEditorJsons:E,getThreeEditor:g,formatFileSize:k,setThreeEditor:we,removeDarkClass:H,openExternalUrl:ie,getThreedModels:A,getViewportSize:R,buildExportScene:(b,...N)=>be(this,[b,...N],function*(c,f={}){const X=He(c),re=Me(X),xe=new pt.THREE.Scene,Ee={totalCount:re.nodeCount,processedCount:0,skippedCount:0,onProgress:f.onProgress};for(const Te of X){const Ne=yield qe(Te,Ee);Ne&&xe.add(Ne),yield ze()}return xe.updateMatrixWorld(!0),re.skippedCount+=Ee.skippedCount,{exportScene:xe,exportObjects:X,stats:re}}),createModelDbApi:i,getEditorPreviewSceneUrl:q,getThreeEditorDB:w,sanitizeUserData:K,setThreeEditorDB:Ie,findThreedDesign:O,getThreedLightMap:C,collectExportStats:Me,getPreviewSceneUrl:D,setEditorPreviewSceneUrl:Fe,setPreviewSceneUrl:Ae,setModelLoadHander:ve,isExportableObject:J,deleteThreeEditorDB:s,ensureThreeEditorDB:l,getDevicePixelRatio:L,getThreedComponents:I,collectExportObjects:He,resetModelDbInstance:u,ensureModelDbInstance:a,getLocalDesignMenuData:Z,invokeModelLoadHandler:W,isLegacyInlineKeyError:h,ensureThreedShaderLibrary:te,ensureThreedDesignRegistry:G}}const{THREED_LOG_BUFFER:z0,THREED_CURRSCENE:oi,THREED_ACTIVE_MENU:q0,THREED_PIXEL_RATIO:W0,THREED_SCENE_PREVIEW:V0,THREED_ADDON_EDITOR_JSON:ai,THREED_DEFAULT_SCENE_NAME:hy,THREED_DEFAULT_ACTIVE_MENU:v0,THREED_DEFAULT_PIXEL_RATIO:y0,THREED_SCENE_STORAGE_SUFFIX:Ws}=fy(),dy=[z0,oi,q0,W0,V0,ai],jt=(t,e)=>{const r=H0.getLocal(t);return r==null?e:r},Gt=(t,e)=>{t&&H0.setLocal(t,e)},Yo=t=>{t&&H0.removeLocal(t)},py=(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)||hy},m0=(t=[])=>Array.isArray(t)?t.filter(e=>typeof e=="string"&&e):[],Vs=()=>{const t=[],e=jt(oi,{name:"",path:""}),r=Number.parseFloat(jt(W0,y0));return{taskState:{busy:!1,type:"",title:"",message:"",description:"",progress:0},currScene:e,sceneList:t,previewScene:!!jt(V0,!1),activeMenuTitle:jt(q0,v0)||v0,pixelRatio:Number.isFinite(r)&&r>0?r:y0,logarithmicDepthBuffer:jt(z0,!0)!==!1,addonEditorJson:m0(jt(ai,[]))}},Mu=g0.defineStore("threed",{state:()=>Vs(),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:""}))})},setSceneName(t){this.sceneName=py(t,this.sceneList),Gt(oi,this.sceneName)},createScene(t){return be(this,null,function*(){var s,a;const e=(s=t==null?void 0:t.trim)==null?void 0:s.call(t);if(!e||this.sceneList.some(h=>h.name===e))return!1;const r=tu.threeSavePath+"/"+s0()+".json",n=s0();if(!(yield kt.postCommonApi("query/threedfloorplan/create",{data:[{name:e,path:r,guid:n}]})).success)return!1;if(yield d1(r,"")){const h=yield kt.postCommonApi("threedfloorplan",{guid:n});(a=h==null?void 0:h.data)!=null&&a.length&&(this.sceneList=[...this.sceneList,h.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(V0,this.previewScene)},setActiveMenuTitle(t){this.activeMenuTitle=t||v0,Gt(q0,this.activeMenuTitle)},setPixelRatio(t){const e=Number.parseFloat(t);this.pixelRatio=Number.isFinite(e)&&e>0?e:y0,Gt(W0,this.pixelRatio)},setLogarithmicDepthBuffer(t){this.logarithmicDepthBuffer=!!t,Gt(z0,this.logarithmicDepthBuffer)},getSceneStorageKey(t){return`${t||this.sceneName}${Ws}`},getSceneStorageParams(t,e=null){return jt(this.getSceneStorageKey(t),e)},setSceneStorageParams(t,e){t&&Gt(this.getSceneStorageKey(t),e)},removeSceneStorageParams(t){t&&Yo(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=m0(jt(ai,this.addonEditorJson)),this.addonEditorJson},setAddonEditorJson(t){this.addonEditorJson=m0(t),Gt(ai,this.addonEditorJson)},clearThreedStorage(){dy.forEach(e=>Yo(e)),Object.keys(window.localStorage).filter(e=>e.endsWith(Ws)).forEach(e=>Yo(e));const t=Vs();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($e({},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($e({},e),{type:t}))});const xy={backgroundBlurriness:0,backgroundIntensity:1,backgroundUrls:null,environmentEnabled:!1},vy={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}},yy={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}]},my={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}},gy={mode:"translate",space:"world",size:1,showX:!0,showY:!0,showZ:!0,translationSnap:null,rotationSnap:null,scaleSnap:null},Ey={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}},Ay={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}}},wy=[{name:"环境光",type:"AmbientLight",visible:!0,position:{x:0,y:0,z:0},color:16777215,intensity:1,castShadow:!1,layers:{mask:1}}],_y=[],by=[],Cy=[],By=[],Dy=[],Sy={},Fy=[],Ry={viewAngleList:[],clipping:{size:20,clipList:[]}},Iy={scene:xy,perspectiveCamera:vy,webglRenderer:yy,orbitControls:my,transformControls:gy,effectComposer:Ey,handler:Ay,lightCores:wy,innerCores:_y,modelCores:by,drawCores:Cy,textCores:By,particleCores:Dy,geoCores:Sy,designCores:Fy,other:Ry};class Ty extends Ge.Scene{constructor(){super();const e=new Ge.BoxGeometry;e.deleteAttribute("uv");const r=new Ge.MeshStandardMaterial({side:Ge.BackSide}),n=new Ge.MeshStandardMaterial,i=new Ge.PointLight(16777215,900,28,2);i.position.set(.418,16.199,.3),this.add(i);const o=new Ge.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 Ge.InstancedMesh(e,n,6),a=new Ge.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 h=new Ge.Mesh(e,Ir(50));h.position.set(-16.116,14.37,8.208),h.scale.set(.1,2.428,2.739),this.add(h);const u=new Ge.Mesh(e,Ir(50));u.position.set(-16.109,18.021,-8.207),u.scale.set(.1,2.425,2.751),this.add(u);const l=new Ge.Mesh(e,Ir(17));l.position.set(14.904,12.198,-1.832),l.scale.set(.15,4.265,6.331),this.add(l);const x=new Ge.Mesh(e,Ir(43));x.position.set(-.462,8.89,14.52),x.scale.set(4.38,5.441,.088),this.add(x);const d=new Ge.Mesh(e,Ir(20));d.position.set(3.235,11.486,-12.541),d.scale.set(2.5,2,.1),this.add(d);const v=new Ge.Mesh(e,Ir(100));v.position.set(0,20,0),v.scale.set(1,.1,1),this.add(v)}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 Ge.MeshLambertMaterial({color:0,emissive:16777215,emissiveIntensity:t})}const Uu=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},Oy=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=Mu(),{currScene:o}=g0.storeToRefs(i),s=r;pt.ThreeEditor.dracoPath="/draco/";let a=null,h=null;const u=T.ref(null),{setGuiParams:l,getDevicePixelRatio:x,ensureThreedDesignRegistry:d}=ly();d(pt.ThreeEditor),l({step:.1});const v=()=>{var w;return(w=a==null?void 0:a.renderSceneResize)==null?void 0:w.call(a)};let m=[];const g=()=>{m.forEach(w=>URL.revokeObjectURL(w)),m=[]},E=()=>be(this,null,function*(){var C,D;let w=Iy;try{if(n.data&&Object.keys(n.data).length)w=n.data;else if((C=o.value)!=null&&C.path){const I=yield kt.getApi((D=o.value)==null?void 0:D.path).catch(()=>({}));console.log("初始化三维场景:",I),I.res&&(w=I.res)}w.designCores.forEach(I=>{I.preview=n.preview}),a?a.resetEditorStorage(w):a=new pt.ThreeEditor(u.value,{fps:null,pixelRatio:x()*i.pixelRatio,webglRenderParams:{antialias:!0,alpha:!0,logarithmicDepthBuffer:i.logarithmicDepthBuffer},sceneParams:w})}catch(I){console.error("三维图纸初始化失败",I),a==null||a.resetEditorStorage(w)}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),R()}s("emit-three-editor",a),window.addEventListener("resize",v)}),R=()=>{a!=null&&a.renderer&&(h=new pt.THREE.PMREMGenerator(a.renderer),h.compileEquirectangularShader(),a.scene.environment=h.fromScene(new Ty).texture)},A=()=>a;return T.watch(()=>o.value.path,()=>be(this,null,function*(){E()})),T.watch(()=>n.data,()=>{E()},{deep:!0}),T.onMounted(()=>{E()}),T.onUnmounted(()=>{window.removeEventListener("resize",v),g(),a==null||a.destroySceneRender(),i.setCurrScene({name:"",path:""})}),e({getEditorInstance:A}),(w,C)=>(T.openBlock(),T.createElementBlock("div",{ref_key:"editorRef",ref:u,class:"threed-editor",onDragover:C[0]||(C[0]=T.withModifiers(()=>{},["prevent"])),onDrop:C[1]||(C[1]=T.withModifiers(()=>{},["prevent"]))},null,544))}}),Py=Uu(Oy,[["__scopeId","data-v-85baaff9"]]),Ny={class:"threed-preview"},Ly={__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=T.shallowRef({});const s=T.ref(),a=Mu(),h={};let u=null;const l=R=>{var w,C,D;if(!R)return;if((w=R==null?void 0:R.includes)!=null&&w.call(R,"token 必传"))return hn({message:R,type:"warning"});const A=typeof R=="string"?JSON.parse(R):R;if((A==null?void 0:A.data)==="服务错误"||(D=(C=A==null?void 0:A.data)==null?void 0:C.includes)!=null&&D.call(C,"token is expired"))return hn({message:A.data,type:"warning"});switch(A.action){case Na.ACPOINT.YCVALUE:case Na.ACPOINT.YXVALUE:console.warn("遥测信息");break}},x=()=>{try{u=new h1({socketUrl:n.socketUrl,token:n.token,onMessage:l})}catch(R){console.warn("三维场景消息处理失败",R)}},d=R=>be(this,null,function*(){var w;const A=yield kt.postCommonApi("queryrealtimepoint",{point_id:R.join(",")});if((w=A==null?void 0:A.data)!=null&&w.length){A.data.forEach(D=>{h[D.guid]=D.value_disp||D.value});const C=E();R.forEach(D=>{const I=C.scene.getObjectByProperty("dataId",D);I&&(I.userData.params.state=h[D],I.userData.params.value=h[D])})}}),v=R=>{console.log("🚀 ~ handleGraphEvent:",R),i("graph-event",R)},m=R=>{var C;if(!R)return;console.log("🚀 ~ handleEditorReady:",R),n.socketUrl&&x();const A=R.saveSceneEdit();let w=[];(C=A==null?void 0:A.designCores)==null||C.forEach(D=>{D.designType==="局放测点"&&D.id&&w.push(D.id)}),w!=null&&w.length&&d(w),i("loaded",R)},g=()=>be(this,null,function*(){if(o.value&&Object.keys(o.value).length)return;const R=f1(),A=n.url||R.url;if(A){const D=yield kt.getApi(A).catch(()=>({}));D.res&&(o.value=D.res);return}if(!(n.id||R.id)){console.warn("三维场景渲染失败,场景id为空!");return}const C=yield kt.getCommonApi("threedfloorplan",{guid:n.id});C.data.length?a.setCurrScene(C.data[0]):console.warn("三维场景渲染失败,场景id为:"+n.id+"不存在!")}),E=()=>s.value?s.value.getEditorInstance():null;return T.watch(()=>n.data,R=>{o.value=R,g()},{deep:!0,immediate:!0}),T.watch(()=>n.id,()=>{g()},{deep:!0,immediate:!0}),T.onMounted(()=>{c0.on("three-event",v)}),T.onUnmounted(()=>{u&&u.destroy(),c0.off("three-event",v)}),e({getEditorInstance:E}),(R,A)=>(T.openBlock(),T.createElementBlock("div",Ny,[T.createVNode(Py,{ref_key:"threedEditorRef",ref:s,data:T.unref(o),preview:"",onGraphEvent:v,onEmitThreeEditor:m},null,8,["data"])]))}},xn=Uu(Ly,[["__scopeId","data-v-7f44607d"]]);xn.name||(xn.name="SyThreedGraph");const ky=t=>{t.component(xn.name||"SyThreedGraph",xn)},My={install:ky};exports.SyThreedGraph=xn;exports.default=My;
|