@syhr/sy-threed-graph 1.0.0-bate4 → 1.0.0-bate5
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 +21 -25
- package/lib-threed/sy-threed-graph.mjs +8988 -9094
- package/lib-threed/sy-threed-graph.umd.js +23 -27
- package/lib-threed/threed-graph.css +1 -1
- package/package.json +2 -2
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";require('./threed-graph.css');var yd=Object.defineProperty,gd=Object.defineProperties;var vd=Object.getOwnPropertyDescriptors;var Xi=Object.getOwnPropertySymbols;var yc=Object.prototype.hasOwnProperty,gc=Object.prototype.propertyIsEnumerable;var yn=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n),wd=n=>{throw TypeError(n)},vc=Math.pow,Do=(n,t,e)=>t in n?yd(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,kt=(n,t)=>{for(var e in t||(t={}))yc.call(t,e)&&Do(n,e,t[e]);if(Xi)for(var e of Xi(t))gc.call(t,e)&&Do(n,e,t[e]);return n},Pe=(n,t)=>gd(n,vd(t));var wc=(n,t)=>{var e={};for(var r in n)yc.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&Xi)for(var r of Xi(n))t.indexOf(r)<0&&gc.call(n,r)&&(e[r]=n[r]);return e};var Nr=(n,t,e)=>Do(n,typeof t!="symbol"?t+"":t,e);var At=(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},Mo=(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(x=>f?r(o==="return"?o:"next",a[1]?{done:x.done,value:x.value}:x,u,c):u({value:x,done:h})).catch(x=>r("throw",x,u,c))}catch(x){c(x)}},i=o=>s[o]=a=>new Promise((u,c)=>r(o,a,u,c)),s={};return e=e.apply(n,t),s[yn("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},Io=n=>{var t=n[yn("asyncIterator")],e=!1,r,i={};return t==null?(t=n[yn("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||wd("Object expected"),a(u)}),1)}}),i[yn("iterator")]=()=>i,r("next"),"throw"in t?r("throw"):i.throw=s=>{throw s},"return"in t&&r("return"),i},bc=(n,t,e)=>(t=n[yn("asyncIterator")])?t.call(n):(n=n[yn("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 z=require("vue"),k0=require("pinia"),N0=require("lodash-es"),Yi=require("three-edit-cores");var Et=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function L0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function bd(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 Xn=TypeError;const Ed={},Ad=Object.freeze(Object.defineProperty({__proto__:null,default:Ed},Symbol.toStringTag,{value:"Module"})),Eh=bd(Ad);var U0=typeof Map=="function"&&Map.prototype,To=Object.getOwnPropertyDescriptor&&U0?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ns=U0&&To&&typeof To.get=="function"?To.get:null,Ec=U0&&Map.prototype.forEach,$0=typeof Set=="function"&&Set.prototype,Ro=Object.getOwnPropertyDescriptor&&$0?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ls=$0&&Ro&&typeof Ro.get=="function"?Ro.get:null,Ac=$0&&Set.prototype.forEach,_d=typeof WeakMap=="function"&&WeakMap.prototype,bi=_d?WeakMap.prototype.has:null,Sd=typeof WeakSet=="function"&&WeakSet.prototype,Ei=Sd?WeakSet.prototype.has:null,Cd=typeof WeakRef=="function"&&WeakRef.prototype,_c=Cd?WeakRef.prototype.deref:null,Bd=Boolean.prototype.valueOf,Fd=Object.prototype.toString,Dd=Function.prototype.toString,Md=String.prototype.match,H0=String.prototype.slice,Dr=String.prototype.replace,Id=String.prototype.toUpperCase,Sc=String.prototype.toLowerCase,Ah=RegExp.prototype.test,Cc=Array.prototype.concat,er=Array.prototype.join,Td=Array.prototype.slice,Bc=Math.floor,d0=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Oo=Object.getOwnPropertySymbols,p0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,qn=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ai=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===qn||!0)?Symbol.toStringTag:null,_h=Object.prototype.propertyIsEnumerable,Fc=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function Dc(n,t){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||Ah.call(/e/,t))return t;var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var r=n<0?-Bc(-n):Bc(n);if(r!==n){var i=String(r),s=H0.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 x0=Eh,Mc=x0.custom,Ic=Bh(Mc)?Mc:null,Sh={__proto__:null,double:'"',single:"'"},Rd={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Ys=function n(t,e,r,i){var s=e||{};if(dr(s,"quoteStyle")&&!dr(Sh,s.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(dr(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=dr(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(dr(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(dr(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 Dh(t,s);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return a?Dc(t,u):u}if(typeof t=="bigint"){var c=String(t)+"n";return a?Dc(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 m0(t)?"[Array]":"[Object]";var f=Jd(s,r);if(typeof i=="undefined")i=[];else if(Fh(i,t)>=0)return"[Circular]";function h(j,K,V){if(K&&(i=Td.call(i),i.push(K)),V){var J={depth:s.depth};return dr(s,"quoteStyle")&&(J.quoteStyle=s.quoteStyle),n(j,J,r+1,i)}return n(j,s,r+1,i)}if(typeof t=="function"&&!Tc(t)){var x=Hd(t),p=Ki(t,h);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(p.length>0?" { "+er.call(p,", ")+" }":"")}if(Bh(t)){var y=qn?Dr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):p0.call(t);return typeof t=="object"&&!qn?ci(y):y}if(Xd(t)){for(var g="<"+Sc.call(String(t.nodeName)),E=t.attributes||[],A=0;A<E.length;A++)g+=" "+E[A].name+"="+Ch(Od(E[A].value),"double",s);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Sc.call(String(t.nodeName))+">",g}if(m0(t)){if(t.length===0)return"[]";var b=Ki(t,h);return f&&!Kd(b)?"["+y0(b,f)+"]":"[ "+er.call(b,", ")+" ]"}if(zd(t)){var _=Ki(t,h);return!("cause"in Error.prototype)&&"cause"in t&&!_h.call(t,"cause")?"{ ["+String(t)+"] "+er.call(Cc.call("[cause]: "+h(t.cause),_),", ")+" }":_.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+er.call(_,", ")+" }"}if(typeof t=="object"&&o){if(Ic&&typeof t[Ic]=="function"&&x0)return x0(t,{depth:l-r});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(qd(t)){var S=[];return Ec&&Ec.call(t,function(j,K){S.push(h(K,t,!0)+" => "+h(j,t))}),Rc("Map",Ns.call(t),S,f)}if(jd(t)){var I=[];return Ac&&Ac.call(t,function(j){I.push(h(j,t))}),Rc("Set",Ls.call(t),I,f)}if(Wd(t))return Po("WeakMap");if(Gd(t))return Po("WeakSet");if(Vd(t))return Po("WeakRef");if(Nd(t))return ci(h(Number(t)));if(Ud(t))return ci(h(d0.call(t)));if(Ld(t))return ci(Bd.call(t));if(kd(t))return ci(h(String(t)));if(typeof window!="undefined"&&t===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&t===globalThis||typeof Et!="undefined"&&t===Et)return"{ [object globalThis] }";if(!Pd(t)&&!Tc(t)){var T=Ki(t,h),P=Fc?Fc(t)===Object.prototype:t instanceof Object||t.constructor===Object,X=t instanceof Object?"":"null prototype",R=!P&&Ai&&Object(t)===t&&Ai in t?H0.call(Tr(t),8,-1):X?"Object":"",O=P||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",q=O+(R||X?"["+er.call(Cc.call([],R||[],X||[]),": ")+"] ":"");return T.length===0?q+"{}":f?q+"{"+y0(T,f)+"}":q+"{ "+er.call(T,", ")+" }"}return String(t)};function Ch(n,t,e){var r=e.quoteStyle||t,i=Sh[r];return i+n+i}function Od(n){return Dr.call(String(n),/"/g,""")}function rn(n){return!Ai||!(typeof n=="object"&&(Ai in n||typeof n[Ai]!="undefined"))}function m0(n){return Tr(n)==="[object Array]"&&rn(n)}function Pd(n){return Tr(n)==="[object Date]"&&rn(n)}function Tc(n){return Tr(n)==="[object RegExp]"&&rn(n)}function zd(n){return Tr(n)==="[object Error]"&&rn(n)}function kd(n){return Tr(n)==="[object String]"&&rn(n)}function Nd(n){return Tr(n)==="[object Number]"&&rn(n)}function Ld(n){return Tr(n)==="[object Boolean]"&&rn(n)}function Bh(n){if(qn)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!p0)return!1;try{return p0.call(n),!0}catch(t){}return!1}function Ud(n){if(!n||typeof n!="object"||!d0)return!1;try{return d0.call(n),!0}catch(t){}return!1}var $d=Object.prototype.hasOwnProperty||function(n){return n in this};function dr(n,t){return $d.call(n,t)}function Tr(n){return Fd.call(n)}function Hd(n){if(n.name)return n.name;var t=Md.call(Dd.call(n),/^function\s*([\w$]+)/);return t?t[1]:null}function Fh(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 qd(n){if(!Ns||!n||typeof n!="object")return!1;try{Ns.call(n);try{Ls.call(n)}catch(t){return!0}return n instanceof Map}catch(t){}return!1}function Wd(n){if(!bi||!n||typeof n!="object")return!1;try{bi.call(n,bi);try{Ei.call(n,Ei)}catch(t){return!0}return n instanceof WeakMap}catch(t){}return!1}function Vd(n){if(!_c||!n||typeof n!="object")return!1;try{return _c.call(n),!0}catch(t){}return!1}function jd(n){if(!Ls||!n||typeof n!="object")return!1;try{Ls.call(n);try{Ns.call(n)}catch(t){return!0}return n instanceof Set}catch(t){}return!1}function Gd(n){if(!Ei||!n||typeof n!="object")return!1;try{Ei.call(n,Ei);try{bi.call(n,bi)}catch(t){return!0}return n instanceof WeakSet}catch(t){}return!1}function Xd(n){return!n||typeof n!="object"?!1:typeof HTMLElement!="undefined"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function Dh(n,t){if(n.length>t.maxStringLength){var e=n.length-t.maxStringLength,r="... "+e+" more character"+(e>1?"s":"");return Dh(H0.call(n,0,t.maxStringLength),t)+r}var i=Rd[t.quoteStyle||"single"];i.lastIndex=0;var s=Dr.call(Dr.call(n,i,"\\$1"),/[\x00-\x1f]/g,Yd);return Ch(s,"single",t)}function Yd(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":"")+Id.call(t.toString(16))}function ci(n){return"Object("+n+")"}function Po(n){return n+" { ? }"}function Rc(n,t,e,r){var i=r?y0(e,r):er.call(e,", ");return n+" ("+t+") {"+i+"}"}function Kd(n){for(var t=0;t<n.length;t++)if(Fh(n[t],`
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
3
|
-
`+t.prev+t.base;return e+
|
|
4
|
-
`+t.prev}function Ki(n,t){var e=m0(n),r=[];if(e){r.length=n.length;for(var i=0;i<n.length;i++)r[i]=dr(n,i)?t(n[i],n):""}var s=typeof Oo=="function"?Oo(n):[],o;if(qn){o={};for(var a=0;a<s.length;a++)o["$"+s[a]]=s[a]}for(var u in n)dr(n,u)&&(e&&String(Number(u))===u&&u<n.length||qn&&o["$"+u]instanceof Symbol||(Ah.call(/[^\w$]/,u)?r.push(t(u,n)+": "+t(n[u],n)):r.push(u+": "+t(n[u],n))));if(typeof Oo=="function")for(var c=0;c<s.length;c++)_h.call(n,s[c])&&r.push("["+t(s[c])+"]: "+t(n[s[c]],n));return r}var Zd=Ys,Qd=Xn,Ks=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},tp=function(n,t){if(n){var e=Ks(n,t);return e&&e.value}},ep=function(n,t,e){var r=Ks(n,t);r?r.value=e:n.next={key:t,next:n.next,value:e}},rp=function(n,t){return n?!!Ks(n,t):!1},np=function(n,t){if(n)return Ks(n,t,!0)},ip=function(){var t,e={assert:function(r){if(!e.has(r))throw new Qd("Side channel does not contain "+Zd(r))},delete:function(r){var i=t&&t.next,s=np(t,r);return s&&i&&i===s&&(t=void 0),!!s},get:function(r){return tp(t,r)},has:function(r){return rp(t,r)},set:function(r,i){t||(t={next:void 0}),ep(t,r,i)}};return e},Mh=Object,sp=Error,op=EvalError,ap=RangeError,cp=ReferenceError,up=SyntaxError,lp=URIError,hp=Math.abs,fp=Math.floor,dp=Math.max,pp=Math.min,xp=Math.pow,mp=Math.round,yp=Number.isNaN||function(t){return t!==t},gp=yp,vp=function(t){return gp(t)||t===0?t:t<0?-1:1},wp=Object.getOwnPropertyDescriptor,Bs=wp;if(Bs)try{Bs([],"length")}catch(n){Bs=null}var Ih=Bs,Fs=Object.defineProperty||!1;if(Fs)try{Fs({},"a",{value:1})}catch(n){Fs=!1}var bp=Fs,zo,Oc;function Ep(){return Oc||(Oc=1,zo=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}),zo}var ko,Pc;function Ap(){if(Pc)return ko;Pc=1;var n=typeof Symbol!="undefined"&&Symbol,t=Ep();return ko=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},ko}var No,zc;function Th(){return zc||(zc=1,No=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),No}var Lo,kc;function Rh(){if(kc)return Lo;kc=1;var n=Mh;return Lo=n.getPrototypeOf||null,Lo}var Uo,Nc;function _p(){if(Nc)return Uo;Nc=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 Uo=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 E=c.apply(this,i(l,arguments));return Object(E)===E?E:this}return c.apply(u,i(l,arguments))},x=e(0,c.length-l.length),p=[],y=0;y<x;y++)p[y]="$"+y;if(f=Function("binder","return function ("+o(p,",")+"){ return binder.apply(this,arguments); }")(h),c.prototype){var g=function(){};g.prototype=c.prototype,f.prototype=new g,g.prototype=null}return f},Uo}var $o,Lc;function Js(){if(Lc)return $o;Lc=1;var n=_p();return $o=Function.prototype.bind||n,$o}var Ho,Uc;function q0(){return Uc||(Uc=1,Ho=Function.prototype.call),Ho}var qo,$c;function Oh(){return $c||($c=1,qo=Function.prototype.apply),qo}var Sp=typeof Reflect!="undefined"&&Reflect&&Reflect.apply,Cp=Js(),Bp=Oh(),Fp=q0(),Dp=Sp,Mp=Dp||Cp.call(Fp,Bp),Ip=Js(),Tp=Xn,Rp=q0(),Op=Mp,Ph=function(t){if(t.length<1||typeof t[0]!="function")throw new Tp("a function is required");return Op(Ip,Rp,t)},Wo,Hc;function Pp(){if(Hc)return Wo;Hc=1;var n=Ph,t=Ih,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 Wo=r&&typeof r.get=="function"?n([r.get]):typeof s=="function"?function(a){return s(a==null?a:i(a))}:!1,Wo}var Vo,qc;function zp(){if(qc)return Vo;qc=1;var n=Th(),t=Rh(),e=Pp();return Vo=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,Vo}var jo,Wc;function kp(){if(Wc)return jo;Wc=1;var n=Function.prototype.call,t=Object.prototype.hasOwnProperty,e=Js();return jo=e.call(n,t),jo}var Bt,Np=Mh,Lp=sp,Up=op,$p=ap,Hp=cp,Wn=up,Ln=Xn,qp=lp,Wp=hp,Vp=fp,jp=dp,Gp=pp,Xp=xp,Yp=mp,Kp=vp,zh=Function,Go=function(n){try{return zh('"use strict"; return ('+n+").constructor;")()}catch(t){}},Bi=Ih,Jp=bp,Xo=function(){throw new Ln},Zp=Bi?function(){try{return arguments.callee,Xo}catch(n){try{return Bi(arguments,"callee").get}catch(t){return Xo}}}():Xo,gn=Ap()(),oe=zp(),Qp=Rh(),tx=Th(),kh=Oh(),Mi=q0(),zn={},ex=typeof Uint8Array=="undefined"||!oe?Bt:oe(Uint8Array),Kr={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Bt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Bt:ArrayBuffer,"%ArrayIteratorPrototype%":gn&&oe?oe([][Symbol.iterator]()):Bt,"%AsyncFromSyncIteratorPrototype%":Bt,"%AsyncFunction%":zn,"%AsyncGenerator%":zn,"%AsyncGeneratorFunction%":zn,"%AsyncIteratorPrototype%":zn,"%Atomics%":typeof Atomics=="undefined"?Bt:Atomics,"%BigInt%":typeof BigInt=="undefined"?Bt:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Bt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Bt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Bt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Lp,"%eval%":eval,"%EvalError%":Up,"%Float16Array%":typeof Float16Array=="undefined"?Bt:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Bt:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Bt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Bt:FinalizationRegistry,"%Function%":zh,"%GeneratorFunction%":zn,"%Int8Array%":typeof Int8Array=="undefined"?Bt:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Bt:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Bt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":gn&&oe?oe(oe([][Symbol.iterator]())):Bt,"%JSON%":typeof JSON=="object"?JSON:Bt,"%Map%":typeof Map=="undefined"?Bt:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!gn||!oe?Bt:oe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Np,"%Object.getOwnPropertyDescriptor%":Bi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Bt:Promise,"%Proxy%":typeof Proxy=="undefined"?Bt:Proxy,"%RangeError%":$p,"%ReferenceError%":Hp,"%Reflect%":typeof Reflect=="undefined"?Bt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Bt:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!gn||!oe?Bt:oe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Bt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":gn&&oe?oe(""[Symbol.iterator]()):Bt,"%Symbol%":gn?Symbol:Bt,"%SyntaxError%":Wn,"%ThrowTypeError%":Zp,"%TypedArray%":ex,"%TypeError%":Ln,"%Uint8Array%":typeof Uint8Array=="undefined"?Bt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Bt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Bt:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Bt:Uint32Array,"%URIError%":qp,"%WeakMap%":typeof WeakMap=="undefined"?Bt:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Bt:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Bt:WeakSet,"%Function.prototype.call%":Mi,"%Function.prototype.apply%":kh,"%Object.defineProperty%":Jp,"%Object.getPrototypeOf%":Qp,"%Math.abs%":Wp,"%Math.floor%":Vp,"%Math.max%":jp,"%Math.min%":Gp,"%Math.pow%":Xp,"%Math.round%":Yp,"%Math.sign%":Kp,"%Reflect.getPrototypeOf%":tx};if(oe)try{null.error}catch(n){var rx=oe(oe(n));Kr["%Error.prototype%"]=rx}var nx=function n(t){var e;if(t==="%AsyncFunction%")e=Go("async function () {}");else if(t==="%GeneratorFunction%")e=Go("function* () {}");else if(t==="%AsyncGeneratorFunction%")e=Go("async function* () {}");else if(t==="%AsyncGenerator%"){var r=n("%AsyncGeneratorFunction%");r&&(e=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=n("%AsyncGenerator%");i&&oe&&(e=oe(i.prototype))}return Kr[t]=e,e},Vc={__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"]},Ii=Js(),Us=kp(),ix=Ii.call(Mi,Array.prototype.concat),sx=Ii.call(kh,Array.prototype.splice),jc=Ii.call(Mi,String.prototype.replace),$s=Ii.call(Mi,String.prototype.slice),ox=Ii.call(Mi,RegExp.prototype.exec),ax=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,cx=/\\(\\)?/g,ux=function(t){var e=$s(t,0,1),r=$s(t,-1);if(e==="%"&&r!=="%")throw new Wn("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&e!=="%")throw new Wn("invalid intrinsic syntax, expected opening `%`");var i=[];return jc(t,ax,function(s,o,a,u){i[i.length]=a?jc(u,cx,"$1"):o||s}),i},lx=function(t,e){var r=t,i;if(Us(Vc,r)&&(i=Vc[r],r="%"+i[0]+"%"),Us(Kr,r)){var s=Kr[r];if(s===zn&&(s=nx(r)),typeof s=="undefined"&&!e)throw new Ln("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:s}}throw new Wn("intrinsic "+t+" does not exist!")},W0=function(t,e){if(typeof t!="string"||t.length===0)throw new Ln("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof e!="boolean")throw new Ln('"allowMissing" argument must be a boolean');if(ox(/^%?[^%]*%?$/,t)===null)throw new Wn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=ux(t),i=r.length>0?r[0]:"",s=lx("%"+i+"%",e),o=s.name,a=s.value,u=!1,c=s.alias;c&&(i=c[0],sx(r,ix([0,1],c)));for(var l=1,f=!0;l<r.length;l+=1){var h=r[l],x=$s(h,0,1),p=$s(h,-1);if((x==='"'||x==="'"||x==="`"||p==='"'||p==="'"||p==="`")&&x!==p)throw new Wn("property names with quotes must have matching quotes");if((h==="constructor"||!f)&&(u=!0),i+="."+h,o="%"+i+"%",Us(Kr,o))a=Kr[o];else if(a!=null){if(!(h in a)){if(!e)throw new Ln("base intrinsic for "+t+" exists, but the property is not available.");return}if(Bi&&l+1>=r.length){var y=Bi(a,h);f=!!y,f&&"get"in y&&!("originalValue"in y.get)?a=y.get:a=a[h]}else f=Us(a,h),a=a[h];f&&!u&&(Kr[o]=a)}}return a},Nh=W0,Lh=Ph,hx=Lh([Nh("%String.prototype.indexOf%")]),Uh=function(t,e){var r=Nh(t,!!e);return typeof r=="function"&&hx(t,".prototype.")>-1?Lh([r]):r},fx=W0,Ti=Uh,dx=Ys,px=Xn,Gc=fx("%Map%",!0),xx=Ti("Map.prototype.get",!0),mx=Ti("Map.prototype.set",!0),yx=Ti("Map.prototype.has",!0),gx=Ti("Map.prototype.delete",!0),vx=Ti("Map.prototype.size",!0),$h=!!Gc&&function(){var t,e={assert:function(r){if(!e.has(r))throw new px("Side channel does not contain "+dx(r))},delete:function(r){if(t){var i=gx(t,r);return vx(t)===0&&(t=void 0),i}return!1},get:function(r){if(t)return xx(t,r)},has:function(r){return t?yx(t,r):!1},set:function(r,i){t||(t=new Gc),mx(t,r,i)}};return e},wx=W0,Zs=Uh,bx=Ys,Ji=$h,Ex=Xn,vn=wx("%WeakMap%",!0),Ax=Zs("WeakMap.prototype.get",!0),_x=Zs("WeakMap.prototype.set",!0),Sx=Zs("WeakMap.prototype.has",!0),Cx=Zs("WeakMap.prototype.delete",!0),Bx=vn?function(){var t,e,r={assert:function(i){if(!r.has(i))throw new Ex("Side channel does not contain "+bx(i))},delete:function(i){if(vn&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Cx(t,i)}else if(Ji&&e)return e.delete(i);return!1},get:function(i){return vn&&i&&(typeof i=="object"||typeof i=="function")&&t?Ax(t,i):e&&e.get(i)},has:function(i){return vn&&i&&(typeof i=="object"||typeof i=="function")&&t?Sx(t,i):!!e&&e.has(i)},set:function(i,s){vn&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new vn),_x(t,i,s)):Ji&&(e||(e=Ji()),e.set(i,s))}};return r}:Ji,Fx=Xn,Dx=Ys,Mx=ip,Ix=$h,Tx=Bx,Rx=Tx||Ix||Mx,Hh=function(){var t,e={assert:function(r){if(!e.has(r))throw new Fx("Side channel does not contain "+Dx(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=Rx()),t.set(r,i)}};return e},Ox=String.prototype.replace,Px=/%20/g,Yo={RFC1738:"RFC1738",RFC3986:"RFC3986"},V0={default:Yo.RFC3986,formatters:{RFC1738:function(n){return Ox.call(n,Px,"+")},RFC3986:function(n){return String(n)}},RFC1738:Yo.RFC1738,RFC3986:Yo.RFC3986},zx=V0,kx=Hh,Ko=Object.prototype.hasOwnProperty,Vr=Array.isArray,Qs=kx(),Nn=function(t,e){return Qs.set(t,e),t},jr=function(t){return Qs.has(t)},gi=function(t){return Qs.get(t)},g0=function(t,e){Qs.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}(),Nx=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}}},_i=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},Lx=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 Nn(_i(t.concat(e),r),i);t[i]=e}else if(t&&typeof t=="object")if(jr(t)){var s=gi(t)+1;t[s]=e,g0(t,s)}else{if(r&&r.strictMerge)return[t,e];(r&&(r.plainObjects||r.allowPrototypes)||!Ko.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 Nn(a,gi(e)+1)}var l=[t].concat(e);return r&&typeof r.arrayLimit=="number"&&l.length>r.arrayLimit?Nn(_i(l,r),l.length-1):l}var f=t;return Vr(t)&&!Vr(e)&&(f=_i(t,r)),Vr(t)&&Vr(e)?(e.forEach(function(h,x){if(Ko.call(t,x)){var p=t[x];p&&typeof p=="object"&&h&&typeof h=="object"?t[x]=n(p,h,r):t[t.length]=h}else t[x]=h}),t):Object.keys(e).reduce(function(h,x){var p=e[x];if(Ko.call(h,x)?h[x]=n(h[x],p,r):h[x]=p,jr(e)&&!jr(h)&&Nn(h,gi(e)),jr(h)){var y=parseInt(x,10);String(y)===x&&y>=0&&y>gi(h)&&g0(h,y)}return h},f)},Ux=function(t,e){return Object.keys(e).reduce(function(r,i){return r[i]=e[i],r},t)},$x=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}},Jo=1024,Hx=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(x){return"%26%23"+parseInt(x.slice(2),16)+"%3B"});for(var a="",u=0;u<o.length;u+=Jo){for(var c=o.length>=Jo?o.slice(u,u+Jo):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===zx.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},qx=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 Nx(e),t},Wx=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Vx=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},jx=function(t,e,r,i){if(jr(t)){var s=gi(t)+1;return t[s]=e,g0(t,s),t}var o=[].concat(t,e);return o.length>r?Nn(_i(o,{plainObjects:i}),o.length-1):o},Gx=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)},qh={arrayToObject:_i,assign:Ux,combine:jx,compact:qx,decode:$x,encode:Hx,isBuffer:Vx,isOverflow:jr,isRegExp:Wx,markOverflow:Nn,maybeMap:Gx,merge:Lx},Wh=Hh,Ds=qh,Si=V0,Xx=Object.prototype.hasOwnProperty,Vh={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},tr=Array.isArray,Yx=Array.prototype.push,jh=function(n,t){Yx.apply(n,tr(t)?t:[t])},Kx=Date.prototype.toISOString,Xc=Si.default,te={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ds.encode,encodeValuesOnly:!1,filter:void 0,format:Xc,formatter:Si.formatters[Xc],indices:!1,serializeDate:function(t){return Kx.call(t)},skipNulls:!1,strictNullHandling:!1},Jx=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Zo={},Zx=function n(t,e,r,i,s,o,a,u,c,l,f,h,x,p,y,g,E,A){for(var b=t,_=A,S=0,I=!1;(_=_.get(Zo))!==void 0&&!I;){var T=_.get(t);if(S+=1,typeof T!="undefined"){if(T===S)throw new RangeError("Cyclic object value");I=!0}typeof _.get(Zo)=="undefined"&&(S=0)}if(typeof l=="function"?b=l(e,b):b instanceof Date?b=x(b):r==="comma"&&tr(b)&&(b=Ds.maybeMap(b,function(at){return at instanceof Date?x(at):at})),b===null){if(o)return c&&!g?c(e,te.encoder,E,"key",p):e;b=""}if(Jx(b)||Ds.isBuffer(b)){if(c){var P=g?e:c(e,te.encoder,E,"key",p);return[y(P)+"="+y(c(b,te.encoder,E,"value",p))]}return[y(e)+"="+y(String(b))]}var X=[];if(typeof b=="undefined")return X;var R;if(r==="comma"&&tr(b))g&&c&&(b=Ds.maybeMap(b,c)),R=[{value:b.length>0?b.join(",")||null:void 0}];else if(tr(l))R=l;else{var O=Object.keys(b);R=f?O.sort(f):O}var q=u?String(e).replace(/\./g,"%2E"):String(e),j=i&&tr(b)&&b.length===1?q+"[]":q;if(s&&tr(b)&&b.length===0)return j+"[]";for(var K=0;K<R.length;++K){var V=R[K],J=typeof V=="object"&&V&&typeof V.value!="undefined"?V.value:b[V];if(!(a&&J===null)){var ot=h&&u?String(V).replace(/\./g,"%2E"):String(V),rt=tr(b)?typeof r=="function"?r(j,ot):j:j+(h?"."+ot:"["+ot+"]");A.set(t,S);var ut=Wh();ut.set(Zo,A),jh(X,n(J,rt,r,i,s,o,a,u,r==="comma"&&g&&tr(b)?null:c,l,f,h,x,p,y,g,E,ut))}}return X},Qx=function(t){if(!t)return te;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||te.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=Si.default;if(typeof t.format!="undefined"){if(!Xx.call(Si.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var i=Si.formatters[r],s=te.filter;(typeof t.filter=="function"||tr(t.filter))&&(s=t.filter);var o;if(t.arrayFormat in Vh?o=t.arrayFormat:"indices"in t?o=t.indices?"indices":"repeat":o=te.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:te.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:te.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:te.allowEmptyArrays,arrayFormat:o,charset:e,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:te.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter=="undefined"?te.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:te.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:te.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:te.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:te.encodeValuesOnly,filter:s,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:te.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:te.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:te.strictNullHandling}},t1=function(n,t){var e=n,r=Qx(t),i,s;typeof r.filter=="function"?(s=r.filter,e=s("",e)):tr(r.filter)&&(s=r.filter,i=s);var o=[];if(typeof e!="object"||e===null)return"";var a=Vh[r.arrayFormat],u=a==="comma"&&r.commaRoundTrip;i||(i=Object.keys(e)),r.sort&&i.sort(r.sort);for(var c=Wh(),l=0;l<i.length;++l){var f=i[l],h=e[f];r.skipNulls&&h===null||jh(o,Zx(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 x=o.join(r.delimiter),p=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),x.length>0?p+x:""},ir=qh,Ms=Object.prototype.hasOwnProperty,Qo=Array.isArray,Vt={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:ir.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},e1=function(n){return n.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})},Gh=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},r1="utf8=%26%2310003%3B",n1="utf8=%E2%9C%93",i1=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]===n1?c="utf-8":o[u]===r1&&(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,x,p;if(h===-1?(x=e.decoder(l,Vt.decoder,c,"key"),p=e.strictNullHandling?null:""):(x=e.decoder(l.slice(0,h),Vt.decoder,c,"key"),x!==null&&(p=ir.maybeMap(Gh(l.slice(h+1),e,Qo(r[x])?r[x].length:0),function(g){return e.decoder(g,Vt.decoder,c,"value")}))),p&&e.interpretNumericEntities&&c==="iso-8859-1"&&(p=e1(String(p))),l.indexOf("[]=")>-1&&(p=Qo(p)?[p]:p),e.comma&&Qo(p)&&p.length>e.arrayLimit){if(e.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");p=ir.combine([],p,e.arrayLimit,e.plainObjects)}if(x!==null){var y=Ms.call(r,x);y&&(e.duplicates==="combine"||l.indexOf("[]=")>-1)?r[x]=ir.combine(r[x],p,e.arrayLimit,e.plainObjects):(!y||e.duplicates==="last")&&(r[x]=p)}}return r},s1=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:Gh(t,e,i),a=n.length-1;a>=0;--a){var u,c=n[a];if(c==="[]"&&e.parseArrays)ir.isOverflow(o)?u=o:u=e.allowEmptyArrays&&(o===""||e.strictNullHandling&&o===null)?[]:ir.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),x=!isNaN(h)&&c!==f&&String(h)===f&&h>=0&&e.parseArrays;if(!e.parseArrays&&f==="")u={0:o};else if(x&&h<e.arrayLimit)u=[],u[h]=o;else{if(x&&e.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");x?(u[h]=o,ir.markOverflow(u,h)):f!=="__proto__"&&(u[f]=o)}}o=u}return o},o1=function(t,e){var r=e.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t;if(e.depth<=0)return!e.plainObjects&&Ms.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&&Ms.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&&Ms.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},a1=function(t,e,r,i){if(t){var s=o1(t,r);if(s)return s1(s,e,r,i)}},c1=function(t){if(!t)return Vt;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"?Vt.charset:t.charset,r=typeof t.duplicates=="undefined"?Vt.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:Vt.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Vt.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Vt.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Vt.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Vt.arrayLimit,charset:e,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Vt.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Vt.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Vt.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Vt.decoder,delimiter:typeof t.delimiter=="string"||ir.isRegExp(t.delimiter)?t.delimiter:Vt.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Vt.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Vt.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Vt.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Vt.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Vt.strictDepth,strictMerge:typeof t.strictMerge=="boolean"?!!t.strictMerge:Vt.strictMerge,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Vt.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded=="boolean"?t.throwOnLimitExceeded:!1}},u1=function(n,t){var e=c1(t);if(n===""||n===null||typeof n=="undefined")return e.plainObjects?{__proto__:null}:{};for(var r=typeof n=="string"?i1(n,e):n,i=e.plainObjects?{__proto__:null}:{},s=Object.keys(r),o=0;o<s.length;++o){var a=s[o],u=a1(a,r[a],e,typeof n=="string");i=ir.merge(i,u,e)}return e.allowSparse===!0?i:ir.compact(i)},l1=t1,h1=u1,f1=V0,d1={formats:f1,parse:h1,stringify:l1};const p1=L0(d1);function Xh(n,t){return function(){return n.apply(t,arguments)}}const{toString:x1}=Object.prototype,{getPrototypeOf:to}=Object,{iterator:eo,toStringTag:Yh}=Symbol,ro=(n=>t=>{const e=x1.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ve=n=>(n=n.toLowerCase(),t=>ro(t)===n),no=n=>t=>typeof t===n,{isArray:Yn}=Array,Vn=no("undefined");function Ri(n){return n!==null&&!Vn(n)&&n.constructor!==null&&!Vn(n.constructor)&&we(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Kh=Ve("ArrayBuffer");function m1(n){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Kh(n.buffer),t}const y1=no("string"),we=no("function"),Jh=no("number"),Oi=n=>n!==null&&typeof n=="object",g1=n=>n===!0||n===!1,Is=n=>{if(ro(n)!=="object")return!1;const t=to(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Yh in n)&&!(eo in n)},v1=n=>{if(!Oi(n)||Ri(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch(t){return!1}},w1=Ve("Date"),b1=Ve("File"),E1=n=>!!(n&&typeof n.uri!="undefined"),A1=n=>n&&typeof n.getParts!="undefined",_1=Ve("Blob"),S1=Ve("FileList"),C1=n=>Oi(n)&&we(n.pipe);function B1(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const Yc=B1(),Kc=typeof Yc.FormData!="undefined"?Yc.FormData:void 0,F1=n=>{if(!n)return!1;if(Kc&&n instanceof Kc)return!0;const t=to(n);if(!t||t===Object.prototype||!we(n.append))return!1;const e=ro(n);return e==="formdata"||e==="object"&&we(n.toString)&&n.toString()==="[object FormData]"},D1=Ve("URLSearchParams"),[M1,I1,T1,R1]=["ReadableStream","Request","Response","Headers"].map(Ve),O1=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pi(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n=="undefined")return;let r,i;if(typeof n!="object"&&(n=[n]),Yn(n))for(r=0,i=n.length;r<i;r++)t.call(null,n[r],r,n);else{if(Ri(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 Zh(n,t){if(Ri(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 Xr=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Qh=n=>!Vn(n)&&n!==Xr;function v0(){const{caseless:n,skipUndefined:t}=Qh(this)&&this||{},e={},r=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=n&&Zh(e,s)||s;Is(e[o])&&Is(i)?e[o]=v0(e[o],i):Is(i)?e[o]=v0({},i):Yn(i)?e[o]=i.slice():(!t||!Vn(i))&&(e[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Pi(arguments[i],r);return e}const P1=(n,t,e,{allOwnKeys:r}={})=>(Pi(t,(i,s)=>{e&&we(i)?Object.defineProperty(n,s,{value:Xh(i,e),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),n),z1=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),k1=(n,t,e,r)=>{n.prototype=Object.create(t.prototype,r),Object.defineProperty(n.prototype,"constructor",{value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},N1=(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&&to(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},L1=(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},U1=n=>{if(!n)return null;if(Yn(n))return n;let t=n.length;if(!Jh(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},$1=(n=>t=>n&&t instanceof n)(typeof Uint8Array!="undefined"&&to(Uint8Array)),H1=(n,t)=>{const r=(n&&n[eo]).call(n);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(n,s[0],s[1])}},q1=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},W1=Ve("HTMLFormElement"),V1=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,r,i){return r.toUpperCase()+i}),Jc=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),j1=Ve("RegExp"),tf=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};Pi(e,(i,s)=>{let o;(o=t(i,s,n))!==!1&&(r[s]=o||i)}),Object.defineProperties(n,r)},G1=n=>{tf(n,(t,e)=>{if(we(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(we(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+"'")})}})},X1=(n,t)=>{const e={},r=i=>{i.forEach(s=>{e[s]=!0})};return Yn(n)?r(n):r(String(n).split(t)),e},Y1=()=>{},K1=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function J1(n){return!!(n&&we(n.append)&&n[Yh]==="FormData"&&n[eo])}const Z1=n=>{const t=new Array(10),e=(r,i)=>{if(Oi(r)){if(t.indexOf(r)>=0)return;if(Ri(r))return r;if(!("toJSON"in r)){t[i]=r;const s=Yn(r)?[]:{};return Pi(r,(o,a)=>{const u=e(o,i+1);!Vn(u)&&(s[a]=u)}),t[i]=void 0,s}}return r};return e(n,0)},Q1=Ve("AsyncFunction"),tm=n=>n&&(Oi(n)||we(n))&&we(n.then)&&we(n.catch),ef=((n,t)=>n?setImmediate:t?((e,r)=>(Xr.addEventListener("message",({source:i,data:s})=>{i===Xr&&s===e&&r.length&&r.shift()()},!1),i=>{r.push(i),Xr.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",we(Xr.postMessage)),em=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Xr):typeof process!="undefined"&&process.nextTick||ef,rm=n=>n!=null&&we(n[eo]),Y={isArray:Yn,isArrayBuffer:Kh,isBuffer:Ri,isFormData:F1,isArrayBufferView:m1,isString:y1,isNumber:Jh,isBoolean:g1,isObject:Oi,isPlainObject:Is,isEmptyObject:v1,isReadableStream:M1,isRequest:I1,isResponse:T1,isHeaders:R1,isUndefined:Vn,isDate:w1,isFile:b1,isReactNativeBlob:E1,isReactNative:A1,isBlob:_1,isRegExp:j1,isFunction:we,isStream:C1,isURLSearchParams:D1,isTypedArray:$1,isFileList:S1,forEach:Pi,merge:v0,extend:P1,trim:O1,stripBOM:z1,inherits:k1,toFlatObject:N1,kindOf:ro,kindOfTest:Ve,endsWith:L1,toArray:U1,forEachEntry:H1,matchAll:q1,isHTMLForm:W1,hasOwnProperty:Jc,hasOwnProp:Jc,reduceDescriptors:tf,freezeMethods:G1,toObjectSet:X1,toCamelCase:V1,noop:Y1,toFiniteNumber:K1,findKey:Zh,global:Xr,isContextDefined:Qh,isSpecCompliantForm:J1,toJSONObject:Z1,isAsyncFn:Q1,isThenable:tm,setImmediate:ef,asap:em,isIterable:rm};let bt=class rf extends Error{static from(t,e,r,i,s,o){const a=new rf(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",{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(){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:Y.toJSONObject(this.config),code:this.code,status:this.status}}};bt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";bt.ERR_BAD_OPTION="ERR_BAD_OPTION";bt.ECONNABORTED="ECONNABORTED";bt.ETIMEDOUT="ETIMEDOUT";bt.ERR_NETWORK="ERR_NETWORK";bt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";bt.ERR_DEPRECATED="ERR_DEPRECATED";bt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";bt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";bt.ERR_CANCELED="ERR_CANCELED";bt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";bt.ERR_INVALID_URL="ERR_INVALID_URL";bt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const nm=null;function w0(n){return Y.isPlainObject(n)||Y.isArray(n)}function nf(n){return Y.endsWith(n,"[]")?n.slice(0,-2):n}function ta(n,t,e){return n?n.concat(t).map(function(i,s){return i=nf(i),!e&&s?"["+i+"]":i}).join(e?".":""):t}function im(n){return Y.isArray(n)&&!n.some(w0)}const sm=Y.toFlatObject(Y,{},null,function(t){return/^is[A-Z]/.test(t)});function io(n,t,e){if(!Y.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=Y.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,E){return!Y.isUndefined(E[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&&Y.isSpecCompliantForm(t);if(!Y.isFunction(i))throw new TypeError("visitor must be a function");function l(y){if(y===null)return"";if(Y.isDate(y))return y.toISOString();if(Y.isBoolean(y))return y.toString();if(!c&&Y.isBlob(y))throw new bt("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(y)||Y.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,g,E){let A=y;if(Y.isReactNative(t)&&Y.isReactNativeBlob(y))return t.append(ta(E,g,s),l(y)),!1;if(y&&!E&&typeof y=="object"){if(Y.endsWith(g,"{}"))g=r?g:g.slice(0,-2),y=JSON.stringify(y);else if(Y.isArray(y)&&im(y)||(Y.isFileList(y)||Y.endsWith(g,"[]"))&&(A=Y.toArray(y)))return g=nf(g),A.forEach(function(_,S){!(Y.isUndefined(_)||_===null)&&t.append(o===!0?ta([g],S,s):o===null?g:g+"[]",l(_))}),!1}return w0(y)?!0:(t.append(ta(E,g,s),l(y)),!1)}const h=[],x=Object.assign(sm,{defaultVisitor:f,convertValue:l,isVisitable:w0});function p(y,g,E=0){if(!Y.isUndefined(y)){if(E>u)throw new bt("Object is too deeply nested ("+E+" levels). Max depth: "+u,bt.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(y),Y.forEach(y,function(b,_){(!(Y.isUndefined(b)||b===null)&&i.call(t,b,Y.isString(_)?_.trim():_,g,x))===!0&&p(b,g?g.concat(_):[_],E+1)}),h.pop()}}if(!Y.isObject(n))throw new TypeError("data must be an object");return p(n),t}function Zc(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(n).replace(/[!'()~]|%20/g,function(r){return t[r]})}function j0(n,t){this._pairs=[],n&&io(n,this,t)}const sf=j0.prototype;sf.append=function(t,e){this._pairs.push([t,e])};sf.toString=function(t){const e=t?function(r){return t.call(this,r,Zc)}:Zc;return this._pairs.map(function(i){return e(i[0])+"="+e(i[1])},"").join("&")};function om(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function of(n,t,e){if(!t)return n;const r=e&&e.encode||om,i=Y.isFunction(e)?{serialize:e}:e,s=i&&i.serialize;let o;if(s?o=s(t,i):o=Y.isURLSearchParams(t)?t.toString():new j0(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){Y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const G0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},am=typeof URLSearchParams!="undefined"?URLSearchParams:j0,cm=typeof FormData!="undefined"?FormData:null,um=typeof Blob!="undefined"?Blob:null,lm={isBrowser:!0,classes:{URLSearchParams:am,FormData:cm,Blob:um},protocols:["http","https","file","blob","url","data"]},X0=typeof window!="undefined"&&typeof document!="undefined",b0=typeof navigator=="object"&&navigator||void 0,hm=X0&&(!b0||["ReactNative","NativeScript","NS"].indexOf(b0.product)<0),fm=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dm=X0&&window.location.href||"http://localhost",pm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:X0,hasStandardBrowserEnv:hm,hasStandardBrowserWebWorkerEnv:fm,navigator:b0,origin:dm},Symbol.toStringTag,{value:"Module"})),pe=kt(kt({},pm),lm);function xm(n,t){return io(n,new pe.classes.URLSearchParams,kt({visitor:function(e,r,i,s){return pe.isNode&&Y.isBuffer(e)?(this.append(r,e.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function mm(n){return Y.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ym(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 af(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&&Y.isArray(i)?i.length:o,u?(Y.hasOwnProp(i,o)?i[o]=Y.isArray(i[o])?i[o].concat(r):[i[o],r]:i[o]=r,!a):((!i[o]||!Y.isObject(i[o]))&&(i[o]=[]),t(e,r,i[o],s)&&Y.isArray(i[o])&&(i[o]=ym(i[o])),!a)}if(Y.isFormData(n)&&Y.isFunction(n.entries)){const e={};return Y.forEachEntry(n,(r,i)=>{t(mm(r),i,e,0)}),e}return null}const wn=(n,t)=>n!=null&&Y.hasOwnProp(n,t)?n[t]:void 0;function gm(n,t,e){if(Y.isString(n))try{return(t||JSON.parse)(n),Y.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const zi={transitional:G0,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",i=r.indexOf("application/json")>-1,s=Y.isObject(t);if(s&&Y.isHTMLForm(t)&&(t=new FormData(t)),Y.isFormData(t))return i?JSON.stringify(af(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t)||Y.isReadableStream(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){const u=wn(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return xm(t,u).toString();if((a=Y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=wn(this,"env"),l=c&&c.FormData;return io(a?{"files[]":t}:t,l&&new l,u)}}return s||i?(e.setContentType("application/json",!1),gm(t)):t}],transformResponse:[function(t){const e=wn(this,"transitional")||zi.transitional,r=e&&e.forcedJSONParsing,i=wn(this,"responseType"),s=i==="json";if(Y.isResponse(t)||Y.isReadableStream(t))return t;if(t&&Y.isString(t)&&(r&&!i||s)){const a=!(e&&e.silentJSONParsing)&&s;try{return JSON.parse(t,wn(this,"parseReviver"))}catch(u){if(a)throw u.name==="SyntaxError"?bt.from(u,bt.ERR_BAD_RESPONSE,this,null,wn(this,"response")):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],n=>{zi.headers[n]={}});const vm=Y.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"]),wm=n=>{const t={};let e,r,i;return n&&n.split(`
|
|
5
|
-
`).forEach(function(o){i=o.indexOf(":"),e=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!e||t[e]&&
|
|
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[tu]=this[tu]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=ui(o);r[a]||(Bm(i,o),r[a]=!0)}return Y.isArray(t)?t.forEach(s):s(t),this}};be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Y.reduceDescriptors(be.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}});Y.freezeMethods(be);function ra(n,t){const e=this||zi,r=t||e,i=be.from(r.headers);let s=r.data;return Y.forEach(n,function(a){s=a.call(e,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function cf(n){return!!(n&&n.__CANCEL__)}let ki=class extends bt{constructor(t,e,r){super(t==null?"canceled":t,bt.ERR_CANCELED,e,r),this.name="CanceledError",this.__CANCEL__=!0}};function uf(n,t,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?n(e):t(new bt("Request failed with status code "+e.status,[bt.ERR_BAD_REQUEST,bt.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function Fm(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function Dm(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 x=l&&c-l;return x?Math.round(h*1e3/x):void 0}}function Mm(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 Hs=(n,t,e=3)=>{let r=0;const i=Dm(50,250);return Mm(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)},eu=(n,t)=>{const e=n!=null;return[r=>t[0]({lengthComputable:e,total:n,loaded:r}),t[1]]},ru=n=>(...t)=>Y.asap(()=>n(...t)),Im=pe.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,pe.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(pe.origin),pe.navigator&&/(msie|trident)/i.test(pe.navigator.userAgent)):()=>!0,Tm=pe.hasStandardBrowserEnv?{write(n,t,e,r,i,s,o){if(typeof document=="undefined")return;const a=[`${n}=${encodeURIComponent(t)}`];Y.isNumber(e)&&a.push(`expires=${new Date(e).toUTCString()}`),Y.isString(r)&&a.push(`path=${r}`),Y.isString(i)&&a.push(`domain=${i}`),s===!0&&a.push("secure"),Y.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(n){if(typeof document=="undefined")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Rm(n){return typeof n!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Om(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function lf(n,t,e){let r=!Rm(t);return n&&(r||e===!1)?Om(n,t):t}const nu=n=>n instanceof be?kt({},n):n;function Qr(n,t){t=t||{};const e=Object.create(null);Object.defineProperty(e,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(c,l,f,h){return Y.isPlainObject(c)&&Y.isPlainObject(l)?Y.merge.call({caseless:h},c,l):Y.isPlainObject(l)?Y.merge({},l):Y.isArray(l)?l.slice():l}function i(c,l,f,h){if(Y.isUndefined(l)){if(!Y.isUndefined(c))return r(void 0,c,f,h)}else return r(c,l,f,h)}function s(c,l){if(!Y.isUndefined(l))return r(void 0,l)}function o(c,l){if(Y.isUndefined(l)){if(!Y.isUndefined(c))return r(void 0,c)}else return r(void 0,l)}function a(c,l,f){if(Y.hasOwnProp(t,f))return r(c,l);if(Y.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(nu(c),nu(l),f,!0)};return Y.forEach(Object.keys(kt(kt({},n),t)),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const f=Y.hasOwnProp(u,l)?u[l]:i,h=Y.hasOwnProp(n,l)?n[l]:void 0,x=Y.hasOwnProp(t,l)?t[l]:void 0,p=f(h,x,l);Y.isUndefined(p)&&f!==a||(e[l]=p)}),e}const hf=n=>{const t=Qr({},n),e=h=>Y.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=be.from(a),t.url=of(lf(c,f,l),n.params,n.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),Y.isFormData(r)){if(pe.hasStandardBrowserEnv||pe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(Y.isFunction(r.getHeaders)){const h=r.getHeaders(),x=["content-type","content-length"];Object.entries(h).forEach(([p,y])=>{x.includes(p.toLowerCase())&&a.set(p,y)})}}if(pe.hasStandardBrowserEnv&&(Y.isFunction(i)&&(i=i(t)),i===!0||i==null&&Im(t.url))){const x=s&&o&&Tm.read(o);x&&a.set(s,x)}return t},Pm=typeof XMLHttpRequest!="undefined",zm=Pm&&function(n){return new Promise(function(e,r){const i=hf(n);let s=i.data;const o=be.from(i.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=i,l,f,h,x,p;function y(){x&&x(),p&&p(),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 E(){if(!g)return;const b=be.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:b,config:n,request:g};uf(function(T){e(T),y()},function(T){r(T),y()},S),g=null}"onloadend"in g?g.onloadend=E:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(E)},g.onabort=function(){g&&(r(new bt("Request aborted",bt.ECONNABORTED,n,g)),g=null)},g.onerror=function(_){const S=_&&_.message?_.message:"Network Error",I=new bt(S,bt.ERR_NETWORK,n,g);I.event=_||null,r(I),g=null},g.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const S=i.transitional||G0;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new bt(_,S.clarifyTimeoutError?bt.ETIMEDOUT:bt.ECONNABORTED,n,g)),g=null},s===void 0&&o.setContentType(null),"setRequestHeader"in g&&Y.forEach(o.toJSON(),function(_,S){g.setRequestHeader(S,_)}),Y.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),a&&a!=="json"&&(g.responseType=i.responseType),c&&([h,p]=Hs(c,!0),g.addEventListener("progress",h)),u&&g.upload&&([f,x]=Hs(u),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",x)),(i.cancelToken||i.signal)&&(l=b=>{g&&(r(!b||b.type?new ki(null,n,g):b),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const A=Fm(i.url);if(A&&pe.protocols.indexOf(A)===-1){r(new bt("Unsupported protocol "+A+":",bt.ERR_BAD_REQUEST,n));return}g.send(s||null)})},km=(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 bt?l:new ki(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,s(new bt(`timeout of ${t}ms exceeded`,bt.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=()=>Y.asap(a),u}},Nm=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},Lm=function(n,t){return Mo(this,null,function*(){try{for(var e=bc(Um(n)),r,i,s;r=!(i=yield new Lr(e.next())).done;r=!1){const o=i.value;yield*Io(Nm(o,t))}}catch(i){s=[i]}finally{try{r&&(i=e.return)&&(yield new Lr(i.call(e)))}finally{if(s)throw s[0]}}})},Um=function(n){return Mo(this,null,function*(){if(n[Symbol.asyncIterator]){yield*Io(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())}})},iu=(n,t,e,r)=>{const i=Lm(n,t);let s=0,o,a=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({pull(c){return At(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 x=s+=h;e(x)}c.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}})},cancel(c){return a(c),i.return()}},{highWaterMark:2})},su=64*1024,{isFunction:Zi}=Y,$m=(({Request:n,Response:t})=>({Request:n,Response:t}))(Y.global),{ReadableStream:ou,TextEncoder:au}=Y.global,cu=(n,...t)=>{try{return!!n(...t)}catch(e){return!1}},Hm=n=>{n=Y.merge.call({skipUndefined:!0},$m,n);const{fetch:t,Request:e,Response:r}=n,i=t?Zi(t):typeof fetch=="function",s=Zi(e),o=Zi(r);if(!i)return!1;const a=i&&Zi(ou),u=i&&(typeof au=="function"?(p=>y=>p.encode(y))(new au):p=>At(exports,null,function*(){return new Uint8Array(yield new e(p).arrayBuffer())})),c=s&&a&&cu(()=>{let p=!1;const y=new e(pe.origin,{body:new ou,method:"POST",get duplex(){return p=!0,"half"}}),g=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),p&&!g}),l=o&&a&&cu(()=>Y.isReadableStream(new r("").body)),f={stream:l&&(p=>p.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!f[p]&&(f[p]=(y,g)=>{let E=y&&y[p];if(E)return E.call(y);throw new bt(`Response type '${p}' is not supported`,bt.ERR_NOT_SUPPORT,g)})});const h=p=>At(exports,null,function*(){if(p==null)return 0;if(Y.isBlob(p))return p.size;if(Y.isSpecCompliantForm(p))return(yield new e(pe.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(p)||Y.isArrayBuffer(p))return p.byteLength;if(Y.isURLSearchParams(p)&&(p=p+""),Y.isString(p))return(yield u(p)).byteLength}),x=(p,y)=>At(exports,null,function*(){const g=Y.toFiniteNumber(p.getContentLength());return g==null?h(y):g});return p=>At(exports,null,function*(){let{url:y,method:g,data:E,signal:A,cancelToken:b,timeout:_,onDownloadProgress:S,onUploadProgress:I,responseType:T,headers:P,withCredentials:X="same-origin",fetchOptions:R}=hf(p),O=t||fetch;T=T?(T+"").toLowerCase():"text";let q=km([A,b&&b.toAbortSignal()],_),j=null;const K=q&&q.unsubscribe&&(()=>{q.unsubscribe()});let V;try{if(I&&c&&g!=="get"&&g!=="head"&&(V=yield x(P,E))!==0){let U=new e(y,{method:"POST",body:E,duplex:"half"}),G;if(Y.isFormData(E)&&(G=U.headers.get("content-type"))&&P.setContentType(G),U.body){const[tt,Q]=eu(V,Hs(ru(I)));E=iu(U.body,su,tt,Q)}}Y.isString(X)||(X=X?"include":"omit");const J=s&&"credentials"in e.prototype;if(Y.isFormData(E)){const U=P.getContentType();U&&/^multipart\/form-data/i.test(U)&&!/boundary=/i.test(U)&&P.delete("content-type")}const ot=Pe(kt({},R),{signal:q,method:g.toUpperCase(),headers:P.normalize().toJSON(),body:E,duplex:"half",credentials:J?X:void 0});j=s&&new e(y,ot);let rt=yield s?O(j,R):O(y,ot);const ut=l&&(T==="stream"||T==="response");if(l&&(S||ut&&K)){const U={};["status","statusText","headers"].forEach(wt=>{U[wt]=rt[wt]});const G=Y.toFiniteNumber(rt.headers.get("content-length")),[tt,Q]=S&&eu(G,Hs(ru(S),!0))||[];rt=new r(iu(rt.body,su,tt,()=>{Q&&Q(),K&&K()}),U)}T=T||"text";let at=yield f[Y.findKey(f,T)||"text"](rt,p);return!ut&&K&&K(),yield new Promise((U,G)=>{uf(U,G,{data:at,headers:be.from(rt.headers),status:rt.status,statusText:rt.statusText,config:p,request:j})})}catch(J){throw K&&K(),J&&J.name==="TypeError"&&/Load failed|fetch/i.test(J.message)?Object.assign(new bt("Network Error",bt.ERR_NETWORK,p,j,J&&J.response),{cause:J.cause||J}):bt.from(J,J&&J.code,p,j,J&&J.response)}})},qm=new Map,ff=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=qm;for(;a--;)u=s[a],c=l.get(u),c===void 0&&l.set(u,c=a?new Map:Hm(t)),l=c;return c};ff();const Y0={http:nm,xhr:zm,fetch:{get:ff}};Y.forEach(Y0,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch(e){}Object.defineProperty(n,"adapterName",{value:t})}});const uu=n=>`- ${n}`,Wm=n=>Y.isFunction(n)||n===null||n===!1;function Vm(n,t){n=Y.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,!Wm(r)&&(i=Y0[(a=String(r)).toLowerCase()],i===void 0))throw new bt(`Unknown adapter '${a}'`);if(i&&(Y.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
|
-
`+o.map(
|
|
8
|
-
`):" "+
|
|
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 Id(n,t){var e;if(n.indent===" ")e=" ";else if(typeof n.indent=="number"&&n.indent>0)e=tr.call(Array(n.indent+1)," ");else return null;return{base:e,prev:tr.call(Array(t+1),e)}}function h0(n,t){if(n.length===0)return"";var e=`
|
|
3
|
+
`+t.prev+t.base;return e+tr.call(n,","+e)+`
|
|
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(o){i=o.indexOf(":"),e=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!e||t[e]&&L1[e])&&(e==="set-cookie"?t[e]?t[e].push(r):t[e]=[r]:t[e]=t[e]?t[e]+", "+r:r)}),t},$c=Symbol("internals"),$1=/[^\x09\x20-\x7E\x80-\xFF]/g;function H1(n){let t=0,e=n.length;for(;t<e;){const r=n.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;e>t;){const r=n.charCodeAt(e-1);if(r!==9&&r!==32)break;e-=1}return t===0&&e===n.length?n:n.slice(t,e)}function si(n){return n&&String(n).trim().toLowerCase()}function q1(n){return H1(n.replace($1,""))}function Ss(n){return n===!1||n==null?n:V.isArray(n)?n.map(Ss):q1(String(n))}function W1(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=e.exec(n);)t[r[1]]=r[2];return t}const V1=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Go(n,t,e,r,i){if(V.isFunction(r))return r.call(this,t,e);if(i&&(t=e),!!V.isString(t)){if(V.isString(r))return t.indexOf(r)!==-1;if(V.isRegExp(r))return r.test(t)}}function j1(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function G1(n,t){const e=V.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+e,{__proto__:null,value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}let xe=class{constructor(t){t&&this.set(t)}set(t,e,r){const i=this;function s(a,u,c){const l=si(u);if(!l)throw new Error("header name must be a non-empty string");const f=V.findKey(i,l);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||u]=Ss(a))}const o=(a,u)=>V.forEach(a,(c,l)=>s(c,l,u));if(V.isPlainObject(t)||t instanceof this.constructor)o(t,e);else if(V.isString(t)&&(t=t.trim())&&!V1(t))o(U1(t),e);else if(V.isObject(t)&&V.isIterable(t)){let a={},u,c;for(const l of t){if(!V.isArray(l))throw TypeError("Object iterator must return a key-value pair");a[c=l[0]]=(u=a[c])?V.isArray(u)?[...u,l[1]]:[u,l[1]]:l[1]}o(a,e)}else t!=null&&s(e,t,r);return this}get(t,e){if(t=si(t),t){const r=V.findKey(this,t);if(r){const i=this[r];if(!e)return i;if(e===!0)return W1(i);if(V.isFunction(e))return e.call(this,i,r);if(V.isRegExp(e))return e.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=si(t),t){const r=V.findKey(this,t);return!!(r&&this[r]!==void 0&&(!e||Go(this,this[r],r,e)))}return!1}delete(t,e){const r=this;let i=!1;function s(o){if(o=si(o),o){const a=V.findKey(r,o);a&&(!e||Go(r,r[a],a,e))&&(delete r[a],i=!0)}}return V.isArray(t)?t.forEach(s):s(t),i}clear(t){const e=Object.keys(this);let r=e.length,i=!1;for(;r--;){const s=e[r];(!t||Go(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const e=this,r={};return V.forEach(this,(i,s)=>{const o=V.findKey(r,s);if(o){e[o]=Ss(i),delete e[s];return}const a=t?j1(s):String(s).trim();a!==s&&delete e[s],e[a]=Ss(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return V.forEach(this,(r,i)=>{r!=null&&r!==!1&&(e[i]=t&&V.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
|
|
6
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...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
|
+
`+o.map(Kc).join(`
|
|
8
|
+
`):" "+Kc(o[0]):"as no adapter specified";throw new vt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i}const tf={getAdapter:Im,adapters:V0};function Ko(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Oi(null,n)}function Jc(n){return Ko(n),n.headers=xe.from(n.headers),n.data=Yo.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),tf.getAdapter(n.adapter||Ii.adapter,n)(n).then(function(r){Ko(n),n.response=r;try{r.data=Yo.call(n,n.transformResponse,r)}finally{delete n.response}return r.headers=xe.from(r.headers),r},function(r){if(!Yh(r)&&(Ko(n),r&&r.response)){n.response=r.response;try{r.response.data=Yo.call(n,n.transformResponse,r.response)}finally{delete n.response}r.response.headers=xe.from(r.response.headers)}return Promise.reject(r)})}const Js={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{Js[n]=function(r){return typeof r===n||"a"+(t<1?"n ":" ")+n}});const Zc={};Js.transitional=function(t,e,r){function i(s,o){return"[Axios v"+W0+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(t===!1)throw new vt(i(o," has been removed"+(e?" in "+e:"")),vt.ERR_DEPRECATED);return e&&!Zc[o]&&(Zc[o]=!0,console.warn(i(o," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(s,o,a):!0}};Js.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Om(n,t,e){if(typeof n!="object")throw new vt("options must be an object",vt.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let i=r.length;for(;i-- >0;){const s=r[i],o=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(o){const a=n[s],u=a===void 0||o(a,s,n);if(u!==!0)throw new vt("option "+s+" must be "+u,vt.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new vt("Unknown option "+s,vt.ERR_BAD_OPTION)}}const Bs={assertOptions:Om,validators:Js},Fe=Bs.validators;let Kr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new qc,response:new qc}}request(t,e){return Ct(this,null,function*(){try{return yield this._request(t,e)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=(()=>{if(!i.stack)return"";const o=i.stack.indexOf(`
|
|
9
9
|
`);return o===-1?"":i.stack.slice(o+1)})();try{if(!r.stack)r.stack=s;else if(s){const o=s.indexOf(`
|
|
10
10
|
`),a=o===-1?-1:s.indexOf(`
|
|
11
11
|
`,o+1),u=a===-1?"":s.slice(a+1);String(r.stack).endsWith(u)||(r.stack+=`
|
|
12
|
-
`+s)}}catch(o){}}throw r}})}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=
|
|
12
|
+
`+s)}}catch(o){}}throw r}})}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Zr(this.defaults,e);const{transitional:r,paramsSerializer:i,headers:s}=e;r!==void 0&&Bs.assertOptions(r,{silentJSONParsing:Fe.transitional(Fe.boolean),forcedJSONParsing:Fe.transitional(Fe.boolean),clarifyTimeoutError:Fe.transitional(Fe.boolean),legacyInterceptorReqResOrdering:Fe.transitional(Fe.boolean)},!1),i!=null&&(V.isFunction(i)?e.paramsSerializer={serialize:i}:Bs.assertOptions(i,{encode:Fe.function,serialize:Fe.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),Bs.assertOptions(e,{baseUrl:Fe.spelling("baseURL"),withXsrfToken:Fe.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=s&&V.merge(s.common,s[e.method]);s&&V.forEach(["delete","get","head","post","put","patch","query","common"],x=>{delete s[x]}),e.headers=xe.concat(o,s);const a=[];let u=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(e)===!1)return;u=u&&y.synchronous;const g=e.transitional||H0;g&&g.legacyInterceptorReqResOrdering?a.unshift(y.fulfilled,y.rejected):a.push(y.fulfilled,y.rejected)});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let l,f=0,h;if(!u){const x=[Jc.bind(this),void 0];for(x.unshift(...a),x.push(...c),h=x.length,l=Promise.resolve(e);f<h;)l=l.then(x[f++],x[f++]);return l}h=a.length;let p=e;for(;f<h;){const x=a[f++],y=a[f++];try{p=x(p)}catch(g){y.call(this,g);break}}try{l=Jc.call(this,p)}catch(x){return Promise.reject(x)}for(f=0,h=c.length;f<h;)l=l.then(c[f++],c[f++]);return l}getUri(t){t=Zr(this.defaults,t);const e=Jh(t.baseURL,t.url,t.allowAbsoluteUrls);return Gh(e,t.params,t.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(t){Kr.prototype[t]=function(e,r){return this.request(Zr(r||{},{method:t,url:e,data:(r||{}).data}))}});V.forEach(["post","put","patch","query"],function(t){function e(r){return function(s,o,a){return this.request(Zr(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}Kr.prototype[t]=e(),t!=="query"&&(Kr.prototype[t+"Form"]=e(!0))});let Pm=class ef{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(s){e=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new Oi(s,o,a),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=r=>{t.abort(r)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new ef(function(i){t=i}),cancel:t}}};function zm(n){return function(e){return n.apply(null,e)}}function km(n){return V.isObject(n)&&n.isAxiosError===!0}const y0={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(y0).forEach(([n,t])=>{y0[t]=n});function rf(n){const t=new Kr(n),e=zh(Kr.prototype.request,t);return V.extend(e,Kr.prototype,t,{allOwnKeys:!0}),V.extend(e,t,null,{allOwnKeys:!0}),e.create=function(i){return rf(Zr(n,i))},e}const Jt=rf(Ii);Jt.Axios=Kr;Jt.CanceledError=Oi;Jt.CancelToken=Pm;Jt.isCancel=Yh;Jt.VERSION=W0;Jt.toFormData=Ks;Jt.AxiosError=vt;Jt.Cancel=Jt.CanceledError;Jt.all=function(t){return Promise.all(t)};Jt.spread=zm;Jt.isAxiosError=km;Jt.mergeConfig=Zr;Jt.AxiosHeaders=xe;Jt.formToJSON=n=>Xh(V.isHTMLForm(n)?new FormData(n):n);Jt.getAdapter=tf.getAdapter;Jt.HttpStatusCode=y0;Jt.default=Jt;const{Axios:zw,AxiosError:kw,CanceledError:Nw,isCancel:Lw,CancelToken:Uw,VERSION:$w,all:Hw,Cancel:qw,isAxiosError:Ww,spread:Vw,toFormData:jw,AxiosHeaders:Gw,HttpStatusCode:Xw,formToJSON:Yw,getAdapter:Kw,mergeConfig:Jw,create:Zw}=Jt,dr={NONE:"none",WUJIE:"wujie",QIANKUN:"qiankun",MICROAPP:"microapp"},Qc={ACPOINT:{YCVALUE:"status.platform.ycvalue",YXVALUE:"status.platform.yxvalue"}};var Zs={};/*!
|
|
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(oo,"__esModule",{value:!0});var kn=typeof window!="undefined"?window.proxy||window:{},yf=function(n){kn!=null&&kn.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),kn.qiankunName&&(window.moudleQiankunAppLifeCycles[kn.qiankunName]=n))};oo.default=yf;var Os=oo.qiankunWindow=kn;oo.renderWithQiankun=yf;function Km(){return window.__POWERED_BY_WUJIE__||window.$wujie?xr.WUJIE:window.__POWERED_BY_QIANKUN__||Os!=null&&Os.__POWERED_BY_QIANKUN__?xr.QIANKUN:window.__MICRO_APP_ENVIRONMENT__||window.microApp?xr.MICROAPP:xr.NONE}function Jm(){return{microType:Km()}}const Zm="/",{microType:du}=Jm(),Qm=Os||window;var ah,ch;const ao=du!==xr.NONE?du:(ch=(ah=Qm.meta)==null?void 0:ah.vite.micro)==null?void 0:ch.type,ty=ao===xr.WUJIE,ey=ao===xr.QIANKUN,ry=ao===xr.MICROAPP,ny=window.top!==window.self||ao!==xr.NONE;console.log("🚀 ~ isNested:",ny,ty,ey,ry);const iy=location.origin;var uh,lh,hh,fh,dh,ph,xh,mh,yh,gh,vh,wh;const gf={savePath:((lh=(uh=window.meta)==null?void 0:uh.graph)==null?void 0:lh.savePath)||"/cockpit/drawing",graphPenPath:((fh=(hh=window.meta)==null?void 0:hh.graph)==null?void 0:fh.graphPenPath)||"/cockpit/graph",templatePath:((ph=(dh=window.meta)==null?void 0:dh.graph)==null?void 0:ph.templatePath)||"/cockpit/template",graphImgUploadPath:((mh=(xh=window.meta)==null?void 0:xh.graph)==null?void 0:mh.graphImgUploadPath)||"/cockpit/upload",threeSavePath:((gh=(yh=window.meta)==null?void 0:yh.graph)==null?void 0:gh.threeSavePath)||"/cockpit/threed",threeModelPath:((wh=(vh=window.meta)==null?void 0:vh.graph)==null?void 0:wh.threeModelPath)||"/cockpit/models"},jt=Yt.create({baseURL:iy,timeout:window.meta.axios.timeout||12e4,withCredentials:!1,paramsSerializer:n=>p1.stringify(n)});jt.interceptors.request.use(n=>(n.headers["x-token"]="ewoglCJhbGcilDogpc3",n),n=>Promise.reject(n));jt.interceptors.response.use(n=>{const{data:t}=n;return Promise.resolve(t)},n=>Promise.reject(n));function sy(n,t={},e={}){return new Promise(r=>{jt.get(n,kt({params:t},e)).then(i=>r({res:i,err:null})).catch(i=>r({res:null,err:i}))})}function oy(n,t={},e={}){return new Promise(r=>{jt.post(n,t,e).then(i=>r({res:i,err:null})).catch(i=>r({res:null,err:i}))})}function ay(n,t={},e={}){return jt.get(n,kt({params:t},e))}function cy(n,t={},e={}){return jt.post(n,t,e)}function uy(n,t={}){return jt.get(`/filehandle/${n}`,{params:t})}function ly(n,t={},e={}){return jt.post(`/filehandle/${n}`,t,e)}function hy(n,t={}){return jt.get(`/user/${n}`,{params:t})}function fy(n,t={},e={}){return jt.post(`/user/${n}`,t,e)}function dy(n,t={}){return jt.get(`${n}`,t.local?{params:t,baseURL:Zm}:{params:t})}function py(n,t={}){return jt.get(`/media/${n}/`,{params:t})}function xy(n,t={},e={}){return jt.post(`/media/${n}/`,t,e)}function my(n,t={}){return jt.get(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${n}/`,{params:t})}function yy(n,t={},e={}){return jt.post(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${n}/`,t,e)}function gy(n,t={}){return jt.get(`/history/${n}`,{params:t})}function vy(n,t={},e={}){return jt.post(`/history/${n}`,t,e)}function wy(n,t={}){return jt.get(`/scada/${n}`,{params:t})}function by(n,t={},e={}){return jt.post(`/scada/${n}`,t,e)}function Ey(n,t={}){return jt.get(`/common/factory/${n}`,{params:t})}function Ay(n,t={},e={}){return jt.post(`/common/factory/${n}`,t,e)}function _y(n,t={}){return jt.get(`/factory/${n}`,{params:t})}function Sy(n,t={},e={}){return jt.post(`/factory/${n}`,t,e)}const nr={getApi:sy,postApi:oy,getFileApi:uy,postFileApi:ly,getBaseApi:ay,postBaseApi:cy,getUserApi:hy,postUserApi:fy,getGraphApi:dy,getMediaApi:py,postMediaApi:xy,getScadaApi:wy,postScadaApi:by,getCommonApi:my,postCommonApi:yy,getHistoryApi:gy,postHistoryApi:vy,getFactoryApi:_y,postFactoryApi:Sy,getCommonFactoryApi:Ey,postCommonFactoryApi:Ay};var Cy={exports:{}};(function(n,t){(function(e,r){n.exports=r()})(Et,function(){var e=1e3,r=6e4,i=36e5,s="millisecond",o="second",a="minute",u="hour",c="day",l="week",f="month",h="quarter",x="year",p="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+)?$/,E=/\[([^\]]+)]|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(K){var V=["th","st","nd","rd"],J=K%100;return"["+K+(V[(J-20)%10]||V[J]||V[0])+"]"}},b=function(K,V,J){var ot=String(K);return!ot||ot.length>=V?K:""+Array(V+1-ot.length).join(J)+K},_={s:b,z:function(K){var V=-K.utcOffset(),J=Math.abs(V),ot=Math.floor(J/60),rt=J%60;return(V<=0?"+":"-")+b(ot,2,"0")+":"+b(rt,2,"0")},m:function K(V,J){if(V.date()<J.date())return-K(J,V);var ot=12*(J.year()-V.year())+(J.month()-V.month()),rt=V.clone().add(ot,f),ut=J-rt<0,at=V.clone().add(ot+(ut?-1:1),f);return+(-(ot+(J-rt)/(ut?rt-at:at-rt))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:f,y:x,w:l,d:c,D:p,h:u,m:a,s:o,ms:s,Q:h}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},S="en",I={};I[S]=A;var T="$isDayjsObject",P=function(K){return K instanceof q||!(!K||!K[T])},X=function K(V,J,ot){var rt;if(!V)return S;if(typeof V=="string"){var ut=V.toLowerCase();I[ut]&&(rt=ut),J&&(I[ut]=J,rt=ut);var at=V.split("-");if(!rt&&at.length>1)return K(at[0])}else{var U=V.name;I[U]=V,rt=U}return!ot&&rt&&(S=rt),rt||!ot&&S},R=function(K,V){if(P(K))return K.clone();var J=typeof V=="object"?V:{};return J.date=K,J.args=arguments,new q(J)},O=_;O.l=X,O.i=P,O.w=function(K,V){return R(K,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var q=function(){function K(J){this.$L=X(J.locale,null,!0),this.parse(J),this.$x=this.$x||J.x||{},this[T]=!0}var V=K.prototype;return V.parse=function(J){this.$d=function(ot){var rt=ot.date,ut=ot.utc;if(rt===null)return new Date(NaN);if(O.u(rt))return new Date;if(rt instanceof Date)return new Date(rt);if(typeof rt=="string"&&!/Z$/i.test(rt)){var at=rt.match(g);if(at){var U=at[2]-1||0,G=(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,G)):new Date(at[1],U,at[3]||1,at[4]||0,at[5]||0,at[6]||0,G)}}return new Date(rt)}(J),this.init()},V.init=function(){var J=this.$d;this.$y=J.getFullYear(),this.$M=J.getMonth(),this.$D=J.getDate(),this.$W=J.getDay(),this.$H=J.getHours(),this.$m=J.getMinutes(),this.$s=J.getSeconds(),this.$ms=J.getMilliseconds()},V.$utils=function(){return O},V.isValid=function(){return this.$d.toString()!==y},V.isSame=function(J,ot){var rt=R(J);return this.startOf(ot)<=rt&&rt<=this.endOf(ot)},V.isAfter=function(J,ot){return R(J)<this.startOf(ot)},V.isBefore=function(J,ot){return this.endOf(ot)<R(J)},V.$g=function(J,ot,rt){return O.u(J)?this[ot]:this.set(rt,J)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(J,ot){var rt=this,ut=!!O.u(ot)||ot,at=O.p(J),U=function(__$t__,Lt){var Gt=O.w(rt.$u?Date.UTC(rt.$y,Lt,__$t__):new Date(rt.$y,Lt,__$t__),rt);return ut?Gt:Gt.endOf(c)},G=function(__$t__,Lt){return O.w(rt.toDate()[__$t__].apply(rt.toDate("s"),(ut?[0,0,0,0]:[23,59,59,999]).slice(Lt)),rt)},tt=this.$W,Q=this.$M,wt=this.$D,St="set"+(this.$u?"UTC":"");switch(at){case x:return ut?U(1,0):U(31,11);case f:return ut?U(1,Q):U(0,Q+1);case l:var zt=this.$locale().weekStart||0,vt=(tt<zt?tt+7:tt)-zt;return U(ut?wt-vt:wt+(6-vt),Q);case c:case p:return G(St+"Hours",0);case u:return G(St+"Minutes",1);case a:return G(St+"Seconds",2);case o:return G(St+"Milliseconds",3);default:return this.clone()}},V.endOf=function(J){return this.startOf(J,!1)},V.$set=function(J,ot){var rt,ut=O.p(J),at="set"+(this.$u?"UTC":""),U=(rt={},rt[c]=at+"Date",rt[p]=at+"Date",rt[f]=at+"Month",rt[x]=at+"FullYear",rt[u]=at+"Hours",rt[a]=at+"Minutes",rt[o]=at+"Seconds",rt[s]=at+"Milliseconds",rt)[ut],G=ut===c?this.$D+(ot-this.$W):ot;if(ut===f||ut===x){var tt=this.clone().set(p,1);tt.$d[U](G),tt.init(),this.$d=tt.set(p,Math.min(this.$D,tt.daysInMonth())).$d}else U&&this.$d[U](G);return this.init(),this},V.set=function(J,ot){return this.clone().$set(J,ot)},V.get=function(J){return this[O.p(J)]()},V.add=function(J,ot){var rt,ut=this;J=Number(J);var at=O.p(ot),U=function(Q){var wt=R(ut);return O.w(wt.date(wt.date()+Math.round(Q*J)),ut)};if(at===f)return this.set(f,this.$M+J);if(at===x)return this.set(x,this.$y+J);if(at===c)return U(1);if(at===l)return U(7);var G=(rt={},rt[a]=r,rt[u]=i,rt[o]=e,rt)[at]||1,tt=this.$d.getTime()+J*G;return O.w(tt,this)},V.subtract=function(J,ot){return this.add(-1*J,ot)},V.format=function(J){var ot=this,rt=this.$locale();if(!this.isValid())return rt.invalidDate||y;var ut=J||"YYYY-MM-DDTHH:mm:ssZ",at=O.z(this),U=this.$H,G=this.$m,tt=this.$M,Q=rt.weekdays,wt=rt.months,St=rt.meridiem,zt=function(Lt,Gt,Wt,Mt){return Lt&&(Lt[Gt]||Lt(ot,ut))||Wt[Gt].slice(0,Mt)},vt=function(Lt){return O.s(U%12||12,Lt,"0")},__$t__=St||function(Lt,Gt,Wt){var Mt=Lt<12?"AM":"PM";return Wt?Mt.toLowerCase():Mt};return ut.replace(E,function(Lt,Gt){return Gt||function(Wt){switch(Wt){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 zt(rt.monthsShort,tt,wt,3);case"MMMM":return zt(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 zt(rt.weekdaysMin,ot.$W,Q,2);case"ddd":return zt(rt.weekdaysShort,ot.$W,Q,3);case"dddd":return Q[ot.$W];case"H":return String(U);case"HH":return O.s(U,2,"0");case"h":return vt(1);case"hh":return vt(2);case"a":return __$t__(U,G,!0);case"A":return __$t__(U,G,!1);case"m":return String(G);case"mm":return O.s(G,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}(Lt)||at.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(J,ot,rt){var ut,at=this,U=O.p(ot),G=R(J),tt=(G.utcOffset()-this.utcOffset())*r,Q=this-G,wt=function(){return O.m(at,G)};switch(U){case x:ut=wt()/12;break;case f:ut=wt();break;case h:ut=wt()/3;break;case l:ut=(Q-tt)/6048e5;break;case c:ut=(Q-tt)/864e5;break;case u:ut=Q/i;break;case a:ut=Q/r;break;case o:ut=Q/e;break;default:ut=Q}return rt?ut:O.a(ut)},V.daysInMonth=function(){return this.endOf(f).$D},V.$locale=function(){return I[this.$L]},V.locale=function(J,ot){if(!J)return this.$L;var rt=this.clone(),ut=X(J,ot,!0);return ut&&(rt.$L=ut),rt},V.clone=function(){return O.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},K}(),j=q.prototype;return R.prototype=j,[["$ms",s],["$s",o],["$m",a],["$H",u],["$W",c],["$M",f],["$y",x],["$D",p]].forEach(function(K){j[K[1]]=function(V){return this.$g(V,K[0],K[1])}}),R.extend=function(K,V){return K.$i||(K(V,q,R),K.$i=!0),R},R.locale=X,R.isDayjs=P,R.unix=function(K){return R(1e3*K)},R.en=I[S],R.Ls=I,R.p={},R})})(Cy);const By=()=>{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 pu(n){return Object.prototype.toString.call(n).slice(8,-1)}function A0(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,n=>(n^crypto.getRandomValues(new Uint8Array(1))[0]&15>>n/4).toString(16))}function Fy(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 _0=Fy();class Dy{constructor(t={}){this._options=kt({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 My=(n,t)=>new Promise((e,r)=>{nr.postApi("/filehandle/save",{path:n,data:t}).then(i=>{i.res.success?e(!0):r(!1)})});k0.createPinia();var Iy={exports:{}};function vi(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 ia={exports:{}},xu;function Dt(){return xu||(xu=1,function(n,t){(function(e,r){n.exports=r()})(Et,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 Et!="undefined"&&Et.crypto&&(s=Et.crypto),!s&&typeof vi=="function")try{s=Eh}catch(A){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(A){}if(typeof s.randomBytes=="function")try{return s.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(b){var _;return A.prototype=b,_=new A,A.prototype=null,_}}(),u={},c=u.lib={},l=c.Base=function(){return{extend:function(A){var b=a(this);return A&&b.mixIn(A),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var A=this.extend();return A.init.apply(A,arguments),A},init:function(){},mixIn:function(A){for(var b in A)A.hasOwnProperty(b)&&(this[b]=A[b]);A.hasOwnProperty("toString")&&(this.toString=A.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=c.WordArray=l.extend({init:function(A,b){A=this.words=A||[],b!=i?this.sigBytes=b:this.sigBytes=A.length*4},toString:function(A){return(A||x).stringify(this)},concat:function(A){var b=this.words,_=A.words,S=this.sigBytes,I=A.sigBytes;if(this.clamp(),S%4)for(var T=0;T<I;T++){var P=_[T>>>2]>>>24-T%4*8&255;b[S+T>>>2]|=P<<24-(S+T)%4*8}else for(var X=0;X<I;X+=4)b[S+X>>>2]=_[X>>>2];return this.sigBytes+=I,this},clamp:function(){var A=this.words,b=this.sigBytes;A[b>>>2]&=4294967295<<32-b%4*8,A.length=r.ceil(b/4)},clone:function(){var A=l.clone.call(this);return A.words=this.words.slice(0),A},random:function(A){for(var b=[],_=0;_<A;_+=4)b.push(o());return new f.init(b,A)}}),h=u.enc={},x=h.Hex={stringify:function(A){for(var b=A.words,_=A.sigBytes,S=[],I=0;I<_;I++){var T=b[I>>>2]>>>24-I%4*8&255;S.push((T>>>4).toString(16)),S.push((T&15).toString(16))}return S.join("")},parse:function(A){for(var b=A.length,_=[],S=0;S<b;S+=2)_[S>>>3]|=parseInt(A.substr(S,2),16)<<24-S%8*4;return new f.init(_,b/2)}},p=h.Latin1={stringify:function(A){for(var b=A.words,_=A.sigBytes,S=[],I=0;I<_;I++){var T=b[I>>>2]>>>24-I%4*8&255;S.push(String.fromCharCode(T))}return S.join("")},parse:function(A){for(var b=A.length,_=[],S=0;S<b;S++)_[S>>>2]|=(A.charCodeAt(S)&255)<<24-S%4*8;return new f.init(_,b)}},y=h.Utf8={stringify:function(A){try{return decodeURIComponent(escape(p.stringify(A)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(A){return p.parse(unescape(encodeURIComponent(A)))}},g=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(A){typeof A=="string"&&(A=y.parse(A)),this._data.concat(A),this._nDataBytes+=A.sigBytes},_process:function(A){var b,_=this._data,S=_.words,I=_.sigBytes,T=this.blockSize,P=T*4,X=I/P;A?X=r.ceil(X):X=r.max((X|0)-this._minBufferSize,0);var R=X*T,O=r.min(R*4,I);if(R){for(var q=0;q<R;q+=T)this._doProcessBlock(S,q);b=S.splice(0,R),_.sigBytes-=O}return new f.init(b,O)},clone:function(){var A=l.clone.call(this);return A._data=this._data.clone(),A},_minBufferSize:0});c.Hasher=g.extend({cfg:l.extend(),init:function(A){this.cfg=this.cfg.extend(A),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(A){return this._append(A),this._process(),this},finalize:function(A){A&&this._append(A);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(A){return function(b,_){return new A.init(_).finalize(b)}},_createHmacHelper:function(A){return function(b,_){return new E.HMAC.init(A,_).finalize(b)}}});var E=u.algo={};return u}(Math);return e})}(ia)),ia.exports}var sa={exports:{}},mu;function co(){return mu||(mu=1,function(n,t){(function(e,r){n.exports=r(Dt())})(Et,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 x=c[h];f.push(x.high),f.push(x.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})}(sa)),sa.exports}var oa={exports:{}},yu;function Ty(){return yu||(yu=1,function(n,t){(function(e,r){n.exports=r(Dt())})(Et,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})}(oa)),oa.exports}var aa={exports:{}},gu;function Ry(){return gu||(gu=1,function(n,t){(function(e,r){n.exports=r(Dt())})(Et,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 x=c[h>>>2]>>>16-h%4*8&65535;f.push(String.fromCharCode(x))}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 x=a(c[h>>>2]>>>16-h%4*8&65535);f.push(String.fromCharCode(x))}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})}(aa)),aa.exports}var ca={exports:{}},vu;function nn(){return vu||(vu=1,function(n,t){(function(e,r){n.exports=r(Dt())})(Et,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=[],x=0;x<l;x+=3)for(var p=c[x>>>2]>>>24-x%4*8&255,y=c[x+1>>>2]>>>24-(x+1)%4*8&255,g=c[x+2>>>2]>>>24-(x+2)%4*8&255,E=p<<16|y<<8|g,A=0;A<4&&x+A*.75<l;A++)h.push(f.charAt(E>>>6*(3-A)&63));var b=f.charAt(64);if(b)for(;h.length%4;)h.push(b);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 x=l.charAt(64);if(x){var p=u.indexOf(x);p!==-1&&(c=p)}return a(u,c,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(u,c,l){for(var f=[],h=0,x=0;x<c;x++)if(x%4){var p=l[u.charCodeAt(x-1)]<<x%4*2,y=l[u.charCodeAt(x)]>>>6-x%4*2,g=p|y;f[h>>>2]|=g<<24-h%4*8,h++}return s.create(f,h)}}(),e.enc.Base64})}(ca)),ca.exports}var ua={exports:{}},wu;function Oy(){return wu||(wu=1,function(n,t){(function(e,r){n.exports=r(Dt())})(Et,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 x=[],p=0;p<f;p+=3)for(var y=l[p>>>2]>>>24-p%4*8&255,g=l[p+1>>>2]>>>24-(p+1)%4*8&255,E=l[p+2>>>2]>>>24-(p+2)%4*8&255,A=y<<16|g<<8|E,b=0;b<4&&p+b*.75<f;b++)x.push(h.charAt(A>>>6*(3-b)&63));var _=h.charAt(64);if(_)for(;x.length%4;)x.push(_);return x.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 x=0;x<f.length;x++)h[f.charCodeAt(x)]=x}var p=f.charAt(64);if(p){var y=u.indexOf(p);y!==-1&&(l=y)}return a(u,l,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(u,c,l){for(var f=[],h=0,x=0;x<c;x++)if(x%4){var p=l[u.charCodeAt(x-1)]<<x%4*2,y=l[u.charCodeAt(x)]>>>6-x%4*2,g=p|y;f[h>>>2]|=g<<24-h%4*8,h++}return s.create(f,h)}}(),e.enc.Base64url})}(ua)),ua.exports}var la={exports:{}},bu;function sn(){return bu||(bu=1,function(n,t){(function(e,r){n.exports=r(Dt())})(Et,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 E=0;E<16;E++){var A=g+E,b=y[A];y[A]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var _=this._hash.words,S=y[g+0],I=y[g+1],T=y[g+2],P=y[g+3],X=y[g+4],R=y[g+5],O=y[g+6],q=y[g+7],j=y[g+8],K=y[g+9],V=y[g+10],J=y[g+11],ot=y[g+12],rt=y[g+13],ut=y[g+14],at=y[g+15],U=_[0],G=_[1],tt=_[2],Q=_[3];U=f(U,G,tt,Q,S,7,c[0]),Q=f(Q,U,G,tt,I,12,c[1]),tt=f(tt,Q,U,G,T,17,c[2]),G=f(G,tt,Q,U,P,22,c[3]),U=f(U,G,tt,Q,X,7,c[4]),Q=f(Q,U,G,tt,R,12,c[5]),tt=f(tt,Q,U,G,O,17,c[6]),G=f(G,tt,Q,U,q,22,c[7]),U=f(U,G,tt,Q,j,7,c[8]),Q=f(Q,U,G,tt,K,12,c[9]),tt=f(tt,Q,U,G,V,17,c[10]),G=f(G,tt,Q,U,J,22,c[11]),U=f(U,G,tt,Q,ot,7,c[12]),Q=f(Q,U,G,tt,rt,12,c[13]),tt=f(tt,Q,U,G,ut,17,c[14]),G=f(G,tt,Q,U,at,22,c[15]),U=h(U,G,tt,Q,I,5,c[16]),Q=h(Q,U,G,tt,O,9,c[17]),tt=h(tt,Q,U,G,J,14,c[18]),G=h(G,tt,Q,U,S,20,c[19]),U=h(U,G,tt,Q,R,5,c[20]),Q=h(Q,U,G,tt,V,9,c[21]),tt=h(tt,Q,U,G,at,14,c[22]),G=h(G,tt,Q,U,X,20,c[23]),U=h(U,G,tt,Q,K,5,c[24]),Q=h(Q,U,G,tt,ut,9,c[25]),tt=h(tt,Q,U,G,P,14,c[26]),G=h(G,tt,Q,U,j,20,c[27]),U=h(U,G,tt,Q,rt,5,c[28]),Q=h(Q,U,G,tt,T,9,c[29]),tt=h(tt,Q,U,G,q,14,c[30]),G=h(G,tt,Q,U,ot,20,c[31]),U=x(U,G,tt,Q,R,4,c[32]),Q=x(Q,U,G,tt,j,11,c[33]),tt=x(tt,Q,U,G,J,16,c[34]),G=x(G,tt,Q,U,ut,23,c[35]),U=x(U,G,tt,Q,I,4,c[36]),Q=x(Q,U,G,tt,X,11,c[37]),tt=x(tt,Q,U,G,q,16,c[38]),G=x(G,tt,Q,U,V,23,c[39]),U=x(U,G,tt,Q,rt,4,c[40]),Q=x(Q,U,G,tt,S,11,c[41]),tt=x(tt,Q,U,G,P,16,c[42]),G=x(G,tt,Q,U,O,23,c[43]),U=x(U,G,tt,Q,K,4,c[44]),Q=x(Q,U,G,tt,ot,11,c[45]),tt=x(tt,Q,U,G,at,16,c[46]),G=x(G,tt,Q,U,T,23,c[47]),U=p(U,G,tt,Q,S,6,c[48]),Q=p(Q,U,G,tt,q,10,c[49]),tt=p(tt,Q,U,G,ut,15,c[50]),G=p(G,tt,Q,U,R,21,c[51]),U=p(U,G,tt,Q,ot,6,c[52]),Q=p(Q,U,G,tt,P,10,c[53]),tt=p(tt,Q,U,G,V,15,c[54]),G=p(G,tt,Q,U,I,21,c[55]),U=p(U,G,tt,Q,j,6,c[56]),Q=p(Q,U,G,tt,at,10,c[57]),tt=p(tt,Q,U,G,O,15,c[58]),G=p(G,tt,Q,U,rt,21,c[59]),U=p(U,G,tt,Q,X,6,c[60]),Q=p(Q,U,G,tt,J,10,c[61]),tt=p(tt,Q,U,G,T,15,c[62]),G=p(G,tt,Q,U,K,21,c[63]),_[0]=_[0]+U|0,_[1]=_[1]+G|0,_[2]=_[2]+tt|0,_[3]=_[3]+Q|0},_doFinalize:function(){var y=this._data,g=y.words,E=this._nDataBytes*8,A=y.sigBytes*8;g[A>>>5]|=128<<24-A%32;var b=r.floor(E/4294967296),_=E;g[(A+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,g[(A+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,y.sigBytes=(g.length+1)*4,this._process();for(var S=this._hash,I=S.words,T=0;T<4;T++){var P=I[T];I[T]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}return S},clone:function(){var y=a.clone.call(this);return y._hash=this._hash.clone(),y}});function f(y,g,E,A,b,_,S){var I=y+(g&E|~g&A)+b+S;return(I<<_|I>>>32-_)+g}function h(y,g,E,A,b,_,S){var I=y+(g&A|E&~A)+b+S;return(I<<_|I>>>32-_)+g}function x(y,g,E,A,b,_,S){var I=y+(g^E^A)+b+S;return(I<<_|I>>>32-_)+g}function p(y,g,E,A,b,_,S){var I=y+(E^(g|~A))+b+S;return(I<<_|I>>>32-_)+g}i.MD5=a._createHelper(l),i.HmacMD5=a._createHmacHelper(l)}(Math),e.MD5})}(la)),la.exports}var ha={exports:{}},Eu;function vf(){return Eu||(Eu=1,function(n,t){(function(e,r){n.exports=r(Dt())})(Et,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,x=h[0],p=h[1],y=h[2],g=h[3],E=h[4],A=0;A<80;A++){if(A<16)u[A]=l[f+A]|0;else{var b=u[A-3]^u[A-8]^u[A-14]^u[A-16];u[A]=b<<1|b>>>31}var _=(x<<5|x>>>27)+E+u[A];A<20?_+=(p&y|~p&g)+1518500249:A<40?_+=(p^y^g)+1859775393:A<60?_+=(p&y|p&g|y&g)-1894007588:_+=(p^y^g)-899497514,E=g,g=y,y=p<<30|p>>>2,p=x,x=_}h[0]=h[0]+x|0,h[1]=h[1]+p|0,h[2]=h[2]+y|0,h[3]=h[3]+g|0,h[4]=h[4]+E|0},_doFinalize:function(){var l=this._data,f=l.words,h=this._nDataBytes*8,x=l.sigBytes*8;return f[x>>>5]|=128<<24-x%32,f[(x+64>>>9<<4)+14]=Math.floor(h/4294967296),f[(x+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})}(ha)),ha.exports}var fa={exports:{}},Au;function K0(){return Au||(Au=1,function(n,t){(function(e,r){n.exports=r(Dt())})(Et,function(e){return function(r){var i=e,s=i.lib,o=s.WordArray,a=s.Hasher,u=i.algo,c=[],l=[];(function(){function x(E){for(var A=r.sqrt(E),b=2;b<=A;b++)if(!(E%b))return!1;return!0}function p(E){return(E-(E|0))*4294967296|0}for(var y=2,g=0;g<64;)x(y)&&(g<8&&(c[g]=p(r.pow(y,1/2))),l[g]=p(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(x,p){for(var y=this._hash.words,g=y[0],E=y[1],A=y[2],b=y[3],_=y[4],S=y[5],I=y[6],T=y[7],P=0;P<64;P++){if(P<16)f[P]=x[p+P]|0;else{var X=f[P-15],R=(X<<25|X>>>7)^(X<<14|X>>>18)^X>>>3,O=f[P-2],q=(O<<15|O>>>17)^(O<<13|O>>>19)^O>>>10;f[P]=R+f[P-7]+q+f[P-16]}var j=_&S^~_&I,K=g&E^g&A^E&A,V=(g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22),J=(_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25),ot=T+J+j+l[P]+f[P],rt=V+K;T=I,I=S,S=_,_=b+ot|0,b=A,A=E,E=g,g=ot+rt|0}y[0]=y[0]+g|0,y[1]=y[1]+E|0,y[2]=y[2]+A|0,y[3]=y[3]+b|0,y[4]=y[4]+_|0,y[5]=y[5]+S|0,y[6]=y[6]+I|0,y[7]=y[7]+T|0},_doFinalize:function(){var x=this._data,p=x.words,y=this._nDataBytes*8,g=x.sigBytes*8;return p[g>>>5]|=128<<24-g%32,p[(g+64>>>9<<4)+14]=r.floor(y/4294967296),p[(g+64>>>9<<4)+15]=y,x.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var x=a.clone.call(this);return x._hash=this._hash.clone(),x}});i.SHA256=a._createHelper(h),i.HmacSHA256=a._createHmacHelper(h)}(Math),e.SHA256})}(fa)),fa.exports}var da={exports:{}},_u;function Py(){return _u||(_u=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),K0())})(Et,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})}(da)),da.exports}var pa={exports:{}},Su;function wf(){return Su||(Su=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),co())})(Et,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 p=0;p<80;p++)h[p]=l()})();var x=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(p,y){for(var g=this._hash.words,E=g[0],A=g[1],b=g[2],_=g[3],S=g[4],I=g[5],T=g[6],P=g[7],X=E.high,R=E.low,O=A.high,q=A.low,j=b.high,K=b.low,V=_.high,J=_.low,ot=S.high,rt=S.low,ut=I.high,at=I.low,U=T.high,G=T.low,tt=P.high,Q=P.low,wt=X,St=R,zt=O,vt=q,__$t__=j,Lt=K,Gt=V,Wt=J,Mt=ot,qt=rt,Zt=ut,M=at,d=U,m=G,B=tt,N=Q,Z=0;Z<80;Z++){var nt,mt,gt=h[Z];if(Z<16)mt=gt.high=p[y+Z*2]|0,nt=gt.low=p[y+Z*2+1]|0;else{var It=h[Z-15],Ot=It.high,Tt=It.low,Ie=(Ot>>>1|Tt<<31)^(Ot>>>8|Tt<<24)^Ot>>>7,je=(Tt>>>1|Ot<<31)^(Tt>>>8|Ot<<24)^(Tt>>>7|Ot<<25),Ge=h[Z-2],Te=Ge.high,Xe=Ge.low,cn=(Te>>>19|Xe<<13)^(Te<<3|Xe>>>29)^Te>>>6,Ye=(Xe>>>19|Te<<13)^(Xe<<3|Te>>>29)^(Xe>>>6|Te<<26),un=h[Z-7],ln=un.high,Or=un.low,gr=h[Z-16],Qn=gr.high,Ee=gr.low;nt=je+Or,mt=Ie+ln+(nt>>>0<je>>>0?1:0),nt=nt+Ye,mt=mt+cn+(nt>>>0<Ye>>>0?1:0),nt=nt+Ee,mt=mt+Qn+(nt>>>0<Ee>>>0?1:0),gt.high=mt,gt.low=nt}var ti=Mt&Zt^~Mt&d,hn=qt&M^~qt&m,fn=wt&zt^wt&__$t__^zt&__$t__,ei=St&vt^St&Lt^vt&Lt,ri=(wt>>>28|St<<4)^(wt<<30|St>>>2)^(wt<<25|St>>>7),dn=(St>>>28|wt<<4)^(St<<30|wt>>>2)^(St<<25|wt>>>7),ni=(Mt>>>14|qt<<18)^(Mt>>>18|qt<<14)^(Mt<<23|qt>>>9),ii=(qt>>>14|Mt<<18)^(qt>>>18|Mt<<14)^(qt<<23|Mt>>>9),pn=f[Z],si=pn.high,xn=pn.low,ce=N+ii,Ce=B+ni+(ce>>>0<N>>>0?1:0),ce=ce+hn,Ce=Ce+ti+(ce>>>0<hn>>>0?1:0),ce=ce+xn,Ce=Ce+si+(ce>>>0<xn>>>0?1:0),ce=ce+nt,Ce=Ce+mt+(ce>>>0<nt>>>0?1:0),Pr=dn+ei,oi=ri+fn+(Pr>>>0<dn>>>0?1:0);B=d,N=m,d=Zt,m=M,Zt=Mt,M=qt,qt=Wt+ce|0,Mt=Gt+Ce+(qt>>>0<Wt>>>0?1:0)|0,Gt=__$t__,Wt=Lt,__$t__=zt,Lt=vt,zt=wt,vt=St,St=ce+Pr|0,wt=Ce+oi+(St>>>0<ce>>>0?1:0)|0}R=E.low=R+St,E.high=X+wt+(R>>>0<St>>>0?1:0),q=A.low=q+vt,A.high=O+zt+(q>>>0<vt>>>0?1:0),K=b.low=K+Lt,b.high=j+__$t__+(K>>>0<Lt>>>0?1:0),J=_.low=J+Wt,_.high=V+Gt+(J>>>0<Wt>>>0?1:0),rt=S.low=rt+qt,S.high=ot+Mt+(rt>>>0<qt>>>0?1:0),at=I.low=at+M,I.high=ut+Zt+(at>>>0<M>>>0?1:0),G=T.low=G+m,T.high=U+d+(G>>>0<m>>>0?1:0),Q=P.low=Q+N,P.high=tt+B+(Q>>>0<N>>>0?1:0)},_doFinalize:function(){var p=this._data,y=p.words,g=this._nDataBytes*8,E=p.sigBytes*8;y[E>>>5]|=128<<24-E%32,y[(E+128>>>10<<5)+30]=Math.floor(g/4294967296),y[(E+128>>>10<<5)+31]=g,p.sigBytes=y.length*4,this._process();var A=this._hash.toX32();return A},clone:function(){var p=s.clone.call(this);return p._hash=this._hash.clone(),p},blockSize:1024/32});r.SHA512=s._createHelper(x),r.HmacSHA512=s._createHmacHelper(x)}(),e.SHA512})}(pa)),pa.exports}var xa={exports:{}},Cu;function zy(){return Cu||(Cu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),co(),wf())})(Et,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})}(xa)),xa.exports}var ma={exports:{}},Bu;function ky(){return Bu||(Bu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),co())})(Et,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=[],x=[];(function(){for(var g=1,E=0,A=0;A<24;A++){f[g+5*E]=(A+1)*(A+2)/2%64;var b=E%5,_=(2*g+3*E)%5;g=b,E=_}for(var g=0;g<5;g++)for(var E=0;E<5;E++)h[g+5*E]=E+(2*g+3*E)%5*5;for(var S=1,I=0;I<24;I++){for(var T=0,P=0,X=0;X<7;X++){if(S&1){var R=(1<<X)-1;R<32?P^=1<<R:T^=1<<R-32}S&128?S=S<<1^113:S<<=1}x[I]=c.create(T,P)}})();var p=[];(function(){for(var g=0;g<25;g++)p[g]=c.create()})();var y=l.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var g=this._state=[],E=0;E<25;E++)g[E]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(g,E){for(var A=this._state,b=this.blockSize/2,_=0;_<b;_++){var S=g[E+2*_],I=g[E+2*_+1];S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360;var T=A[_];T.high^=I,T.low^=S}for(var P=0;P<24;P++){for(var X=0;X<5;X++){for(var R=0,O=0,q=0;q<5;q++){var T=A[X+5*q];R^=T.high,O^=T.low}var j=p[X];j.high=R,j.low=O}for(var X=0;X<5;X++)for(var K=p[(X+4)%5],V=p[(X+1)%5],J=V.high,ot=V.low,R=K.high^(J<<1|ot>>>31),O=K.low^(ot<<1|J>>>31),q=0;q<5;q++){var T=A[X+5*q];T.high^=R,T.low^=O}for(var rt=1;rt<25;rt++){var R,O,T=A[rt],ut=T.high,at=T.low,U=f[rt];U<32?(R=ut<<U|at>>>32-U,O=at<<U|ut>>>32-U):(R=at<<U-32|ut>>>64-U,O=ut<<U-32|at>>>64-U);var G=p[h[rt]];G.high=R,G.low=O}var tt=p[0],Q=A[0];tt.high=Q.high,tt.low=Q.low;for(var X=0;X<5;X++)for(var q=0;q<5;q++){var rt=X+5*q,T=A[rt],wt=p[rt],St=p[(X+1)%5+5*q],zt=p[(X+2)%5+5*q];T.high=wt.high^~St.high&zt.high,T.low=wt.low^~St.low&zt.low}var T=A[0],vt=x[P];T.high^=vt.high,T.low^=vt.low}},_doFinalize:function(){var g=this._data,E=g.words;this._nDataBytes*8;var A=g.sigBytes*8,b=this.blockSize*32;E[A>>>5]|=1<<24-A%32,E[(r.ceil((A+1)/b)*b>>>5)-1]|=128,g.sigBytes=E.length*4,this._process();for(var _=this._state,S=this.cfg.outputLength/8,I=S/8,T=[],P=0;P<I;P++){var X=_[P],R=X.high,O=X.low;R=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,T.push(O),T.push(R)}return new o.init(T,S)},clone:function(){for(var g=a.clone.call(this),E=g._state=this._state.slice(0),A=0;A<25;A++)E[A]=E[A].clone();return g}});i.SHA3=a._createHelper(y),i.HmacSHA3=a._createHmacHelper(y)}(Math),e.SHA3})}(ma)),ma.exports}var ya={exports:{}},Fu;function Ny(){return Fu||(Fu=1,function(n,t){(function(e,r){n.exports=r(Dt())})(Et,function(e){/** @preserve
|
|
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
|
|
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,42 +22,38 @@
|
|
|
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]),x=o.create([0,1518500249,1859775393,2400959708,2840853838]),p=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(I,T){for(var P=0;P<16;P++){var X=T+P,R=I[X];I[X]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var O=this._hash.words,q=x.words,j=p.words,K=c.words,V=l.words,J=f.words,ot=h.words,rt,ut,at,U,G,tt,Q,wt,St,zt;tt=rt=O[0],Q=ut=O[1],wt=at=O[2],St=U=O[3],zt=G=O[4];for(var vt,P=0;P<80;P+=1)vt=rt+I[T+K[P]]|0,P<16?vt+=g(ut,at,U)+q[0]:P<32?vt+=E(ut,at,U)+q[1]:P<48?vt+=A(ut,at,U)+q[2]:P<64?vt+=b(ut,at,U)+q[3]:vt+=_(ut,at,U)+q[4],vt=vt|0,vt=S(vt,J[P]),vt=vt+G|0,rt=G,G=U,U=S(at,10),at=ut,ut=vt,vt=tt+I[T+V[P]]|0,P<16?vt+=_(Q,wt,St)+j[0]:P<32?vt+=b(Q,wt,St)+j[1]:P<48?vt+=A(Q,wt,St)+j[2]:P<64?vt+=E(Q,wt,St)+j[3]:vt+=g(Q,wt,St)+j[4],vt=vt|0,vt=S(vt,ot[P]),vt=vt+zt|0,tt=zt,zt=St,St=S(wt,10),wt=Q,Q=vt;vt=O[1]+at+St|0,O[1]=O[2]+U+zt|0,O[2]=O[3]+G+tt|0,O[3]=O[4]+rt+Q|0,O[4]=O[0]+ut+wt|0,O[0]=vt},_doFinalize:function(){var I=this._data,T=I.words,P=this._nDataBytes*8,X=I.sigBytes*8;T[X>>>5]|=128<<24-X%32,T[(X+64>>>9<<4)+14]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,I.sigBytes=(T.length+1)*4,this._process();for(var R=this._hash,O=R.words,q=0;q<5;q++){var j=O[q];O[q]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360}return R},clone:function(){var I=a.clone.call(this);return I._hash=this._hash.clone(),I}});function g(I,T,P){return I^T^P}function E(I,T,P){return I&T|~I&P}function A(I,T,P){return(I|~T)^P}function b(I,T,P){return I&P|T&~P}function _(I,T,P){return I^(T|~P)}function S(I,T){return I<<T|I>>>32-T}i.RIPEMD160=a._createHelper(y),i.HmacRIPEMD160=a._createHmacHelper(y)}(),e.RIPEMD160})}(ya)),ya.exports}var ga={exports:{}},Du;function J0(){return Du||(Du=1,function(n,t){(function(e,r){n.exports=r(Dt())})(Et,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 x=this._oKey=l.clone(),p=this._iKey=l.clone(),y=x.words,g=p.words,E=0;E<f;E++)y[E]^=1549556828,g[E]^=909522486;x.sigBytes=p.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}})})()})}(ga)),ga.exports}var va={exports:{}},Mu;function Ly(){return Mu||(Mu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),K0(),J0())})(Et,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 x=this.cfg,p=c.create(x.hasher,f),y=o.create(),g=o.create([1]),E=y.words,A=g.words,b=x.keySize,_=x.iterations;E.length<b;){var S=p.update(h).finalize(g);p.reset();for(var I=S.words,T=I.length,P=S,X=1;X<_;X++){P=p.finalize(P),p.reset();for(var R=P.words,O=0;O<T;O++)I[O]^=R[O]}y.concat(S),A[0]++}return y.sigBytes=b*4,y}});r.PBKDF2=function(f,h,x){return l.create(x).compute(f,h)}}(),e.PBKDF2})}(va)),va.exports}var wa={exports:{}},Iu;function Rr(){return Iu||(Iu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),vf(),J0())})(Et,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,x=this.cfg,p=x.hasher.create(),y=o.create(),g=y.words,E=x.keySize,A=x.iterations;g.length<E;){h&&p.update(h),h=p.update(l).finalize(f),p.reset();for(var b=1;b<A;b++)h=p.finalize(h),p.reset();y.concat(h)}return y.sigBytes=E*4,y}});r.EvpKDF=function(l,f,h){return c.create(h).compute(l,f)}}(),e.EvpKDF})}(wa)),wa.exports}var ba={exports:{}},Tu;function ae(){return Tu||(Tu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),Rr())})(Et,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,x=s.Cipher=u.extend({cfg:o.extend(),createEncryptor:function(R,O){return this.create(this._ENC_XFORM_MODE,R,O)},createDecryptor:function(R,O){return this.create(this._DEC_XFORM_MODE,R,O)},init:function(R,O,q){this.cfg=this.cfg.extend(q),this._xformMode=R,this._key=O,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(R){return this._append(R),this._process()},finalize:function(R){R&&this._append(R);var O=this._doFinalize();return O},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function R(O){return typeof O=="string"?X:I}return function(O){return{encrypt:function(q,j,K){return R(j).encrypt(O,q,j,K)},decrypt:function(q,j,K){return R(j).decrypt(O,q,j,K)}}}}()});s.StreamCipher=x.extend({_doFinalize:function(){var R=this._process(!0);return R},blockSize:1});var p=i.mode={},y=s.BlockCipherMode=o.extend({createEncryptor:function(R,O){return this.Encryptor.create(R,O)},createDecryptor:function(R,O){return this.Decryptor.create(R,O)},init:function(R,O){this._cipher=R,this._iv=O}}),g=p.CBC=function(){var R=y.extend();R.Encryptor=R.extend({processBlock:function(q,j){var K=this._cipher,V=K.blockSize;O.call(this,q,j,V),K.encryptBlock(q,j),this._prevBlock=q.slice(j,j+V)}}),R.Decryptor=R.extend({processBlock:function(q,j){var K=this._cipher,V=K.blockSize,J=q.slice(j,j+V);K.decryptBlock(q,j),O.call(this,q,j,V),this._prevBlock=J}});function O(q,j,K){var V,J=this._iv;J?(V=J,this._iv=r):V=this._prevBlock;for(var ot=0;ot<K;ot++)q[j+ot]^=V[ot]}return R}(),E=i.pad={},A=E.Pkcs7={pad:function(R,O){for(var q=O*4,j=q-R.sigBytes%q,K=j<<24|j<<16|j<<8|j,V=[],J=0;J<j;J+=4)V.push(K);var ot=a.create(V,j);R.concat(ot)},unpad:function(R){var O=R.words[R.sigBytes-1>>>2]&255;R.sigBytes-=O}};s.BlockCipher=x.extend({cfg:x.cfg.extend({mode:g,padding:A}),reset:function(){var R;x.reset.call(this);var O=this.cfg,q=O.iv,j=O.mode;this._xformMode==this._ENC_XFORM_MODE?R=j.createEncryptor:(R=j.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==R?this._mode.init(this,q&&q.words):(this._mode=R.call(j,this,q&&q.words),this._mode.__creator=R)},_doProcessBlock:function(R,O){this._mode.processBlock(R,O)},_doFinalize:function(){var R,O=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(O.pad(this._data,this.blockSize),R=this._process(!0)):(R=this._process(!0),O.unpad(R)),R},blockSize:128/32});var b=s.CipherParams=o.extend({init:function(R){this.mixIn(R)},toString:function(R){return(R||this.formatter).stringify(this)}}),_=i.format={},S=_.OpenSSL={stringify:function(R){var O,q=R.ciphertext,j=R.salt;return j?O=a.create([1398893684,1701076831]).concat(j).concat(q):O=q,O.toString(l)},parse:function(R){var O,q=l.parse(R),j=q.words;return j[0]==1398893684&&j[1]==1701076831&&(O=a.create(j.slice(2,4)),j.splice(0,4),q.sigBytes-=16),b.create({ciphertext:q,salt:O})}},I=s.SerializableCipher=o.extend({cfg:o.extend({format:S}),encrypt:function(R,O,q,j){j=this.cfg.extend(j);var K=R.createEncryptor(q,j),V=K.finalize(O),J=K.cfg;return b.create({ciphertext:V,key:q,iv:J.iv,algorithm:R,mode:J.mode,padding:J.padding,blockSize:R.blockSize,formatter:j.format})},decrypt:function(R,O,q,j){j=this.cfg.extend(j),O=this._parse(O,j.format);var K=R.createDecryptor(q,j).finalize(O.ciphertext);return K},_parse:function(R,O){return typeof R=="string"?O.parse(R,this):R}}),T=i.kdf={},P=T.OpenSSL={execute:function(R,O,q,j,K){if(j||(j=a.random(64/8)),K)var V=h.create({keySize:O+q,hasher:K}).compute(R,j);else var V=h.create({keySize:O+q}).compute(R,j);var J=a.create(V.words.slice(O),q*4);return V.sigBytes=O*4,b.create({key:V,iv:J,salt:j})}},X=s.PasswordBasedCipher=I.extend({cfg:I.cfg.extend({kdf:P}),encrypt:function(R,O,q,j){j=this.cfg.extend(j);var K=j.kdf.execute(q,R.keySize,R.ivSize,j.salt,j.hasher);j.iv=K.iv;var V=I.encrypt.call(this,R,O,K.key,j);return V.mixIn(K),V},decrypt:function(R,O,q,j){j=this.cfg.extend(j),O=this._parse(O,j.format);var K=j.kdf.execute(q,R.keySize,R.ivSize,O.salt,j.hasher);j.iv=K.iv;var V=I.decrypt.call(this,R,O,K.key,j);return V}})}()})}(ba)),ba.exports}var Ea={exports:{}},Ru;function Uy(){return Ru||(Ru=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),ae())})(Et,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})}(Ea)),Ea.exports}var Aa={exports:{}},Ou;function $y(){return Ou||(Ou=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),ae())})(Et,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})}(Aa)),Aa.exports}var _a={exports:{}},Pu;function Hy(){return Pu||(Pu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),ae())})(Et,function(e){/** @preserve
|
|
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
|
|
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 x=h.slice(0);c.encryptBlock(x,0);for(var p=0;p<l;p++)a[u+p]^=x[p]}});return r.Decryptor=o,r}(),e.mode.CTRGladman})}(_a)),_a.exports}var Sa={exports:{}},zu;function qy(){return zu||(zu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),ae())})(Et,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})}(Sa)),Sa.exports}var Ca={exports:{}},ku;function Wy(){return ku||(ku=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),ae())})(Et,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})}(Ca)),Ca.exports}var Ba={exports:{}},Nu;function Vy(){return Nu||(Nu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),ae())})(Et,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})}(Ba)),Ba.exports}var Fa={exports:{}},Lu;function jy(){return Lu||(Lu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),ae())})(Et,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})}(Fa)),Fa.exports}var Da={exports:{}},Uu;function Gy(){return Uu||(Uu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),ae())})(Et,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})}(Da)),Da.exports}var Ma={exports:{}},$u;function Xy(){return $u||($u=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),ae())})(Et,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})}(Ma)),Ma.exports}var Ia={exports:{}},Hu;function Yy(){return Hu||(Hu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),ae())})(Et,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})}(Ia)),Ia.exports}var Ta={exports:{}},qu;function Ky(){return qu||(qu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),ae())})(Et,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})}(Ta)),Ta.exports}var Ra={exports:{}},Wu;function Jy(){return Wu||(Wu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),nn(),sn(),Rr(),ae())})(Et,function(e){return function(){var r=e,i=r.lib,s=i.BlockCipher,o=r.algo,a=[],u=[],c=[],l=[],f=[],h=[],x=[],p=[],y=[],g=[];(function(){for(var b=[],_=0;_<256;_++)_<128?b[_]=_<<1:b[_]=_<<1^283;for(var S=0,I=0,_=0;_<256;_++){var T=I^I<<1^I<<2^I<<3^I<<4;T=T>>>8^T&255^99,a[S]=T,u[T]=S;var P=b[S],X=b[P],R=b[X],O=b[T]*257^T*16843008;c[S]=O<<24|O>>>8,l[S]=O<<16|O>>>16,f[S]=O<<8|O>>>24,h[S]=O;var O=R*16843009^X*65537^P*257^S*16843008;x[T]=O<<24|O>>>8,p[T]=O<<16|O>>>16,y[T]=O<<8|O>>>24,g[T]=O,S?(S=P^b[b[b[R^P]]],I^=b[b[I]]):S=I=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],A=o.AES=s.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,S=_.words,I=_.sigBytes/4,T=this._nRounds=I+6,P=(T+1)*4,X=this._keySchedule=[],R=0;R<P;R++)R<I?X[R]=S[R]:(b=X[R-1],R%I?I>6&&R%I==4&&(b=a[b>>>24]<<24|a[b>>>16&255]<<16|a[b>>>8&255]<<8|a[b&255]):(b=b<<8|b>>>24,b=a[b>>>24]<<24|a[b>>>16&255]<<16|a[b>>>8&255]<<8|a[b&255],b^=E[R/I|0]<<24),X[R]=X[R-I]^b);for(var O=this._invKeySchedule=[],q=0;q<P;q++){var R=P-q;if(q%4)var b=X[R];else var b=X[R-4];q<4||R<=4?O[q]=b:O[q]=x[a[b>>>24]]^p[a[b>>>16&255]]^y[a[b>>>8&255]]^g[a[b&255]]}}},encryptBlock:function(b,_){this._doCryptBlock(b,_,this._keySchedule,c,l,f,h,a)},decryptBlock:function(b,_){var S=b[_+1];b[_+1]=b[_+3],b[_+3]=S,this._doCryptBlock(b,_,this._invKeySchedule,x,p,y,g,u);var S=b[_+1];b[_+1]=b[_+3],b[_+3]=S},_doCryptBlock:function(b,_,S,I,T,P,X,R){for(var O=this._nRounds,q=b[_]^S[0],j=b[_+1]^S[1],K=b[_+2]^S[2],V=b[_+3]^S[3],J=4,ot=1;ot<O;ot++){var rt=I[q>>>24]^T[j>>>16&255]^P[K>>>8&255]^X[V&255]^S[J++],ut=I[j>>>24]^T[K>>>16&255]^P[V>>>8&255]^X[q&255]^S[J++],at=I[K>>>24]^T[V>>>16&255]^P[q>>>8&255]^X[j&255]^S[J++],U=I[V>>>24]^T[q>>>16&255]^P[j>>>8&255]^X[K&255]^S[J++];q=rt,j=ut,K=at,V=U}var rt=(R[q>>>24]<<24|R[j>>>16&255]<<16|R[K>>>8&255]<<8|R[V&255])^S[J++],ut=(R[j>>>24]<<24|R[K>>>16&255]<<16|R[V>>>8&255]<<8|R[q&255])^S[J++],at=(R[K>>>24]<<24|R[V>>>16&255]<<16|R[q>>>8&255]<<8|R[j&255])^S[J++],U=(R[V>>>24]<<24|R[q>>>16&255]<<16|R[j>>>8&255]<<8|R[K&255])^S[J++];b[_]=rt,b[_+1]=ut,b[_+2]=at,b[_+3]=U},keySize:256/32});r.AES=s._createHelper(A)}(),e.AES})}(Ra)),Ra.exports}var Oa={exports:{}},Vu;function Zy(){return Vu||(Vu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),nn(),sn(),Rr(),ae())})(Et,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],x=a.DES=o.extend({_doReset:function(){for(var E=this._key,A=E.words,b=[],_=0;_<56;_++){var S=u[_]-1;b[_]=A[S>>>5]>>>31-S%32&1}for(var I=this._subKeys=[],T=0;T<16;T++){for(var P=I[T]=[],X=l[T],_=0;_<24;_++)P[_/6|0]|=b[(c[_]-1+X)%28]<<31-_%6,P[4+(_/6|0)]|=b[28+(c[_+24]-1+X)%28]<<31-_%6;P[0]=P[0]<<1|P[0]>>>31;for(var _=1;_<7;_++)P[_]=P[_]>>>(_-1)*4+3;P[7]=P[7]<<5|P[7]>>>27}for(var R=this._invSubKeys=[],_=0;_<16;_++)R[_]=I[15-_]},encryptBlock:function(E,A){this._doCryptBlock(E,A,this._subKeys)},decryptBlock:function(E,A){this._doCryptBlock(E,A,this._invSubKeys)},_doCryptBlock:function(E,A,b){this._lBlock=E[A],this._rBlock=E[A+1],p.call(this,4,252645135),p.call(this,16,65535),y.call(this,2,858993459),y.call(this,8,16711935),p.call(this,1,1431655765);for(var _=0;_<16;_++){for(var S=b[_],I=this._lBlock,T=this._rBlock,P=0,X=0;X<8;X++)P|=f[X][((T^S[X])&h[X])>>>0];this._lBlock=T,this._rBlock=I^P}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,p.call(this,1,1431655765),y.call(this,8,16711935),y.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),E[A]=this._lBlock,E[A+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function p(E,A){var b=(this._lBlock>>>E^this._rBlock)&A;this._rBlock^=b,this._lBlock^=b<<E}function y(E,A){var b=(this._rBlock>>>E^this._lBlock)&A;this._lBlock^=b,this._rBlock^=b<<E}r.DES=o._createHelper(x);var g=a.TripleDES=o.extend({_doReset:function(){var E=this._key,A=E.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 b=A.slice(0,2),_=A.length<4?A.slice(0,2):A.slice(2,4),S=A.length<6?A.slice(0,2):A.slice(4,6);this._des1=x.createEncryptor(s.create(b)),this._des2=x.createEncryptor(s.create(_)),this._des3=x.createEncryptor(s.create(S))},encryptBlock:function(E,A){this._des1.encryptBlock(E,A),this._des2.decryptBlock(E,A),this._des3.encryptBlock(E,A)},decryptBlock:function(E,A){this._des3.decryptBlock(E,A),this._des2.encryptBlock(E,A),this._des1.decryptBlock(E,A)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=o._createHelper(g)}(),e.TripleDES})}(Oa)),Oa.exports}var Pa={exports:{}},ju;function Qy(){return ju||(ju=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),nn(),sn(),Rr(),ae())})(Et,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,x=this._S=[],p=0;p<256;p++)x[p]=p;for(var p=0,y=0;p<256;p++){var g=p%h,E=f[g>>>2]>>>24-g%4*8&255;y=(y+x[p]+E)%256;var A=x[p];x[p]=x[y],x[y]=A}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,x=0,p=0;p<4;p++){f=(f+1)%256,h=(h+l[f])%256;var y=l[f];l[f]=l[h],l[h]=y,x|=l[(l[f]+l[h])%256]<<24-p*8}return this._i=f,this._j=h,x}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})}(Pa)),Pa.exports}var za={exports:{}},Gu;function tg(){return Gu||(Gu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),nn(),sn(),Rr(),ae())})(Et,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,x=this.cfg.iv,p=0;p<4;p++)h[p]=(h[p]<<8|h[p]>>>24)&16711935|(h[p]<<24|h[p]>>>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 p=0;p<4;p++)f.call(this);for(var p=0;p<8;p++)g[p]^=y[p+4&7];if(x){var E=x.words,A=E[0],b=E[1],_=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,S=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,I=_>>>16|S&4294901760,T=S<<16|_&65535;g[0]^=_,g[1]^=I,g[2]^=S,g[3]^=T,g[4]^=_,g[5]^=I,g[6]^=S,g[7]^=T;for(var p=0;p<4;p++)f.call(this)}},_doProcessBlock:function(h,x){var p=this._X;f.call(this),a[0]=p[0]^p[5]>>>16^p[3]<<16,a[1]=p[2]^p[7]>>>16^p[5]<<16,a[2]=p[4]^p[1]>>>16^p[7]<<16,a[3]=p[6]^p[3]>>>16^p[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[x+y]^=a[y]},blockSize:128/32,ivSize:64/32});function f(){for(var h=this._X,x=this._C,p=0;p<8;p++)u[p]=x[p];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<u[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<u[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<u[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<u[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<u[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<u[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<u[6]>>>0?1:0)|0,this._b=x[7]>>>0<u[7]>>>0?1:0;for(var p=0;p<8;p++){var y=h[p]+x[p],g=y&65535,E=y>>>16,A=((g*g>>>17)+g*E>>>15)+E*E,b=((y&4294901760)*y|0)+((y&65535)*y|0);c[p]=A^b}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})}(za)),za.exports}var ka={exports:{}},Xu;function eg(){return Xu||(Xu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),nn(),sn(),Rr(),ae())})(Et,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,x=this.cfg.iv,p=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]^=p[g+4&7];if(x){var E=x.words,A=E[0],b=E[1],_=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,S=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,I=_>>>16|S&4294901760,T=S<<16|_&65535;y[0]^=_,y[1]^=I,y[2]^=S,y[3]^=T,y[4]^=_,y[5]^=I,y[6]^=S,y[7]^=T;for(var g=0;g<4;g++)f.call(this)}},_doProcessBlock:function(h,x){var p=this._X;f.call(this),a[0]=p[0]^p[5]>>>16^p[3]<<16,a[1]=p[2]^p[7]>>>16^p[5]<<16,a[2]=p[4]^p[1]>>>16^p[7]<<16,a[3]=p[6]^p[3]>>>16^p[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[x+y]^=a[y]},blockSize:128/32,ivSize:64/32});function f(){for(var h=this._X,x=this._C,p=0;p<8;p++)u[p]=x[p];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<u[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<u[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<u[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<u[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<u[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<u[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<u[6]>>>0?1:0)|0,this._b=x[7]>>>0<u[7]>>>0?1:0;for(var p=0;p<8;p++){var y=h[p]+x[p],g=y&65535,E=y>>>16,A=((g*g>>>17)+g*E>>>15)+E*E,b=((y&4294901760)*y|0)+((y&65535)*y|0);c[p]=A^b}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})}(ka)),ka.exports}var Na={exports:{}},Yu;function rg(){return Yu||(Yu=1,function(n,t){(function(e,r,i){n.exports=r(Dt(),nn(),sn(),Rr(),ae())})(Et,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,E){let A=E>>24&255,b=E>>16&255,_=E>>8&255,S=E&255,I=g.sbox[0][A]+g.sbox[1][b];return I=I^g.sbox[2][_],I=I+g.sbox[3][S],I}function h(g,E,A){let b=E,_=A,S;for(let I=0;I<a;++I)b=b^g.pbox[I],_=f(g,b)^_,S=b,b=_,_=S;return S=b,b=_,_=S,_=_^g.pbox[a],b=b^g.pbox[a+1],{left:b,right:_}}function x(g,E,A){let b=E,_=A,S;for(let I=a+1;I>1;--I)b=b^g.pbox[I],_=f(g,b)^_,S=b,b=_,_=S;return S=b,b=_,_=S,_=_^g.pbox[1],b=b^g.pbox[0],{left:b,right:_}}function p(g,E,A){for(let T=0;T<4;T++){g.sbox[T]=[];for(let P=0;P<256;P++)g.sbox[T][P]=c[T][P]}let b=0;for(let T=0;T<a+2;T++)g.pbox[T]=u[T]^E[b],b++,b>=A&&(b=0);let _=0,S=0,I=0;for(let T=0;T<a+2;T+=2)I=h(g,_,S),_=I.left,S=I.right,g.pbox[T]=_,g.pbox[T+1]=S;for(let T=0;T<4;T++)for(let P=0;P<256;P+=2)I=h(g,_,S),_=I.left,S=I.right,g.sbox[T][P]=_,g.sbox[T][P+1]=S;return!0}var y=o.Blowfish=s.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var g=this._keyPriorReset=this._key,E=g.words,A=g.sigBytes/4;p(l,E,A)}},encryptBlock:function(g,E){var A=h(l,g[E],g[E+1]);g[E]=A.left,g[E+1]=A.right},decryptBlock:function(g,E){var A=x(l,g[E],g[E+1]);g[E]=A.left,g[E+1]=A.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=s._createHelper(y)}(),e.Blowfish})}(Na)),Na.exports}(function(n,t){(function(e,r,i){n.exports=r(Dt(),co(),Ty(),Ry(),nn(),Oy(),sn(),vf(),K0(),Py(),wf(),zy(),ky(),Ny(),J0(),Ly(),Rr(),ae(),Uy(),$y(),Hy(),qy(),Wy(),Vy(),jy(),Gy(),Xy(),Yy(),Ky(),Jy(),Zy(),Qy(),tg(),eg(),rg())})(Et,function(e){return e})})(Iy);var Ct={},uo={};uo.byteLength=sg;uo.toByteArray=ag;uo.fromByteArray=lg;var rr=[],Me=[],ng=typeof Uint8Array!="undefined"?Uint8Array:Array,La="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var bn=0,ig=La.length;bn<ig;++bn)rr[bn]=La[bn],Me[La.charCodeAt(bn)]=bn;Me[45]=62;Me[95]=63;function bf(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 sg(n){var t=bf(n),e=t[0],r=t[1];return(e+r)*3/4-r}function og(n,t,e){return(t+e)*3/4-e}function ag(n){var t,e=bf(n),r=e[0],i=e[1],s=new ng(og(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 cg(n){return rr[n>>18&63]+rr[n>>12&63]+rr[n>>6&63]+rr[n&63]}function ug(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(cg(r));return i.join("")}function lg(n){for(var t,e=n.length,r=e%3,i=[],s=16383,o=0,a=e-r;o<a;o+=s)i.push(ug(n,o,o+s>a?a:o+s));return r===1?(t=n[e-1],i.push(rr[t>>2]+rr[t<<4&63]+"==")):r===2&&(t=(n[e-2]<<8)+n[e-1],i.push(rr[t>>10]+rr[t>>4&63]+rr[t<<2&63]+"=")),i.join("")}var Z0={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Z0.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,x=n[t+f];for(f+=h,s=x&(1<<-l)-1,x>>=-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:(x?-1:1)*(1/0);o=o+Math.pow(2,r),s=s-c}return(x?-1:1)*o*Math.pow(2,s-r)};Z0.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,x=r?0:s-1,p=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+x]=a&255,x+=p,a/=256,i-=8);for(o=o<<i|a,c+=i;c>0;n[e+x]=o&255,x+=p,o/=256,c-=8);n[e+x-p]|=y*128};/*!
|
|
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};/*!
|
|
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=uo,e=Z0,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=a,n.SlowBuffer=A,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 p(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(Mt(M,ArrayBuffer)||M&&Mt(M.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Mt(M,SharedArrayBuffer)||M&&Mt(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 N=g(M);if(N)return N;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:E(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=b(M,d)|0,B=o(m),N=B.write(M,d);return N!==m&&(B=B.slice(0,N)),B}function x(M){for(var d=M.length<0?0:E(M.length)|0,m=o(d),B=0;B<d;B+=1)m[B]=M[B]&255;return m}function p(M){if(Mt(M,Uint8Array)){var d=new Uint8Array(M);return y(d.buffer,d.byteOffset,d.byteLength)}return x(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=E(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"||qt(M.length)?o(0):x(M);if(M.type==="Buffer"&&Array.isArray(M.data))return x(M.data)}function E(M){if(M>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return M|0}function A(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(Mt(d,Uint8Array)&&(d=a.from(d,d.offset,d.byteLength)),Mt(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,N=m.length,Z=0,nt=Math.min(B,N);Z<nt;++Z)if(d[Z]!==m[Z]){B=d[Z],N=m[Z];break}return B<N?-1:N<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 N=a.allocUnsafe(m),Z=0;for(B=0;B<d.length;++B){var nt=d[B];if(Mt(nt,Uint8Array))Z+nt.length>N.length?a.from(nt).copy(N,Z):Uint8Array.prototype.set.call(N,nt,Z);else if(a.isBuffer(nt))nt.copy(N,Z);else throw new TypeError('"list" argument must be an Array of Buffers');Z+=nt.length}return N};function b(M,d){if(a.isBuffer(M))return M.length;if(ArrayBuffer.isView(M)||Mt(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 N=!1;;)switch(d){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return vt(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m*2;case"hex":return m>>>1;case"base64":return Gt(M).length;default:if(N)return B?-1:vt(M).length;d=(""+d).toLowerCase(),N=!0}}a.byteLength=b;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 K(this,d,m);case"ascii":return ot(this,d,m);case"latin1":case"binary":return rt(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 S(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)S(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)S(this,m,m+3),S(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)S(this,m,m+7),S(this,m+1,m+6),S(this,m+2,m+5),S(this,m+3,m+4);return this},a.prototype.toString=function(){var d=this.length;return d===0?"":arguments.length===0?K(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,N,Z){if(Mt(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),N===void 0&&(N=0),Z===void 0&&(Z=this.length),m<0||B>d.length||N<0||Z>this.length)throw new RangeError("out of range index");if(N>=Z&&m>=B)return 0;if(N>=Z)return-1;if(m>=B)return 1;if(m>>>=0,B>>>=0,N>>>=0,Z>>>=0,this===d)return 0;for(var nt=Z-N,mt=B-m,gt=Math.min(nt,mt),It=this.slice(N,Z),Ot=d.slice(m,B),Tt=0;Tt<gt;++Tt)if(It[Tt]!==Ot[Tt]){nt=It[Tt],mt=Ot[Tt];break}return nt<mt?-1:mt<nt?1:0};function I(M,d,m,B,N){if(M.length===0)return-1;if(typeof m=="string"?(B=m,m=0):m>2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),m=+m,qt(m)&&(m=N?0:M.length-1),m<0&&(m=M.length+m),m>=M.length){if(N)return-1;m=M.length-1}else if(m<0)if(N)m=0;else return-1;if(typeof d=="string"&&(d=a.from(d,B)),a.isBuffer(d))return d.length===0?-1:T(M,d,m,B,N);if(typeof d=="number")return d=d&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(M,d,m):Uint8Array.prototype.lastIndexOf.call(M,d,m):T(M,[d],m,B,N);throw new TypeError("val must be string, number or Buffer")}function T(M,d,m,B,N){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 gt(je,Ge){return Z===1?je[Ge]:je.readUInt16BE(Ge*Z)}var It;if(N){var Ot=-1;for(It=m;It<nt;It++)if(gt(M,It)===gt(d,Ot===-1?0:It-Ot)){if(Ot===-1&&(Ot=It),It-Ot+1===mt)return Ot*Z}else Ot!==-1&&(It-=It-Ot),Ot=-1}else for(m+mt>nt&&(m=nt-mt),It=m;It>=0;It--){for(var Tt=!0,Ie=0;Ie<mt;Ie++)if(gt(M,It+Ie)!==gt(d,Ie)){Tt=!1;break}if(Tt)return It}return-1}a.prototype.includes=function(d,m,B){return this.indexOf(d,m,B)!==-1},a.prototype.indexOf=function(d,m,B){return I(this,d,m,B,!0)},a.prototype.lastIndexOf=function(d,m,B){return I(this,d,m,B,!1)};function P(M,d,m,B){m=Number(m)||0;var N=M.length-m;B?(B=Number(B),B>N&&(B=N)):B=N;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(qt(mt))return nt;M[m+nt]=mt}return nt}function X(M,d,m,B){return Wt(vt(d,M.length-m),M,m,B)}function R(M,d,m,B){return Wt(__$t__(d),M,m,B)}function O(M,d,m,B){return Wt(Gt(d),M,m,B)}function q(M,d,m,B){return Wt(Lt(d,M.length-m),M,m,B)}a.prototype.write=function(d,m,B,N){if(m===void 0)N="utf8",B=this.length,m=0;else if(B===void 0&&typeof m=="string")N=m,B=this.length,m=0;else if(isFinite(m))m=m>>>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 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");N||(N="utf8");for(var nt=!1;;)switch(N){case"hex":return P(this,d,m,B);case"utf8":case"utf-8":return X(this,d,m,B);case"ascii":case"latin1":case"binary":return R(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: "+N);N=(""+N).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 K(M,d,m){m=Math.min(M.length,m);for(var B=[],N=d;N<m;){var Z=M[N],nt=null,mt=Z>239?4:Z>223?3:Z>191?2:1;if(N+mt<=m){var gt,It,Ot,Tt;switch(mt){case 1:Z<128&&(nt=Z);break;case 2:gt=M[N+1],(gt&192)===128&&(Tt=(Z&31)<<6|gt&63,Tt>127&&(nt=Tt));break;case 3:gt=M[N+1],It=M[N+2],(gt&192)===128&&(It&192)===128&&(Tt=(Z&15)<<12|(gt&63)<<6|It&63,Tt>2047&&(Tt<55296||Tt>57343)&&(nt=Tt));break;case 4:gt=M[N+1],It=M[N+2],Ot=M[N+3],(gt&192)===128&&(It&192)===128&&(Ot&192)===128&&(Tt=(Z&15)<<18|(gt&63)<<12|(It&63)<<6|Ot&63,Tt>65535&&Tt<1114112&&(nt=Tt))}}nt===null?(nt=65533,mt=1):nt>65535&&(nt-=65536,B.push(nt>>>10&1023|55296),nt=56320|nt&1023),B.push(nt),N+=mt}return J(B)}var V=4096;function J(M){var d=M.length;if(d<=V)return String.fromCharCode.apply(String,M);for(var m="",B=0;B<d;)m+=String.fromCharCode.apply(String,M.slice(B,B+=V));return m}function ot(M,d,m){var B="";m=Math.min(M.length,m);for(var N=d;N<m;++N)B+=String.fromCharCode(M[N]&127);return B}function rt(M,d,m){var B="";m=Math.min(M.length,m);for(var N=d;N<m;++N)B+=String.fromCharCode(M[N]);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 N="",Z=d;Z<m;++Z)N+=Zt[M[Z]];return N}function at(M,d,m){for(var B=M.slice(d,m),N="",Z=0;Z<B.length-1;Z+=2)N+=String.fromCharCode(B[Z]+B[Z+1]*256);return N}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 N=this.subarray(d,m);return Object.setPrototypeOf(N,a.prototype),N};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 N=this[d],Z=1,nt=0;++nt<m&&(Z*=256);)N+=this[d+nt]*Z;return N},a.prototype.readUintBE=a.prototype.readUIntBE=function(d,m,B){d=d>>>0,m=m>>>0,B||U(d,m,this.length);for(var N=this[d+--m],Z=1;m>0&&(Z*=256);)N+=this[d+--m]*Z;return N},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 N=this[d],Z=1,nt=0;++nt<m&&(Z*=256);)N+=this[d+nt]*Z;return Z*=128,N>=Z&&(N-=Math.pow(2,8*m)),N},a.prototype.readIntBE=function(d,m,B){d=d>>>0,m=m>>>0,B||U(d,m,this.length);for(var N=m,Z=1,nt=this[d+--N];N>0&&(Z*=256);)nt+=this[d+--N]*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 G(M,d,m,B,N,Z){if(!a.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>N||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,N){if(d=+d,m=m>>>0,B=B>>>0,!N){var Z=Math.pow(2,8*B)-1;G(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,N){if(d=+d,m=m>>>0,B=B>>>0,!N){var Z=Math.pow(2,8*B)-1;G(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||G(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||G(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||G(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||G(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||G(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,N){if(d=+d,m=m>>>0,!N){var Z=Math.pow(2,8*B-1);G(this,d,m,B,Z-1,-Z)}var nt=0,mt=1,gt=0;for(this[m]=d&255;++nt<B&&(mt*=256);)d<0&>===0&&this[m+nt-1]!==0&&(gt=1),this[m+nt]=(d/mt>>0)-gt&255;return m+B},a.prototype.writeIntBE=function(d,m,B,N){if(d=+d,m=m>>>0,!N){var Z=Math.pow(2,8*B-1);G(this,d,m,B,Z-1,-Z)}var nt=B-1,mt=1,gt=0;for(this[m+nt]=d&255;--nt>=0&&(mt*=256);)d<0&>===0&&this[m+nt+1]!==0&&(gt=1),this[m+nt]=(d/mt>>0)-gt&255;return m+B},a.prototype.writeInt8=function(d,m,B){return d=+d,m=m>>>0,B||G(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||G(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||G(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||G(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||G(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,N,Z){if(m+B>M.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function Q(M,d,m,B,N){return d=+d,m=m>>>0,N||tt(M,d,m,4),e.write(M,d,m,B,23,4),m+4}a.prototype.writeFloatLE=function(d,m,B){return Q(this,d,m,!0,B)},a.prototype.writeFloatBE=function(d,m,B){return Q(this,d,m,!1,B)};function wt(M,d,m,B,N){return d=+d,m=m>>>0,N||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,N){if(!a.isBuffer(d))throw new TypeError("argument should be a Buffer");if(B||(B=0),!N&&N!==0&&(N=this.length),m>=d.length&&(m=d.length),m||(m=0),N>0&&N<B&&(N=B),N===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(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),d.length-m<N-B&&(N=d.length-m+B);var Z=N-B;return this===d&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(m,B,N):Uint8Array.prototype.set.call(d,this.subarray(B,N),m),Z},a.prototype.fill=function(d,m,B,N){if(typeof d=="string"){if(typeof m=="string"?(N=m,m=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(d.length===1){var Z=d.charCodeAt(0);(N==="utf8"&&Z<128||N==="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,N),gt=mt.length;if(gt===0)throw new TypeError('The value "'+d+'" is invalid for argument "value"');for(nt=0;nt<B-m;++nt)this[nt+m]=mt[nt%gt]}return this};var St=/[^+/0-9A-Za-z-_]/g;function zt(M){if(M=M.split("=")[0],M=M.trim().replace(St,""),M.length<2)return"";for(;M.length%4!==0;)M=M+"=";return M}function vt(M,d){d=d||1/0;for(var m,B=M.length,N=null,Z=[],nt=0;nt<B;++nt){if(m=M.charCodeAt(nt),m>55295&&m<57344){if(!N){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}N=m;continue}if(m<56320){(d-=3)>-1&&Z.push(239,191,189),N=m;continue}m=(N-55296<<10|m-56320)+65536}else N&&(d-=3)>-1&&Z.push(239,191,189);if(N=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 __$t__(M){for(var d=[],m=0;m<M.length;++m)d.push(M.charCodeAt(m)&255);return d}function Lt(M,d){for(var m,B,N,Z=[],nt=0;nt<M.length&&!((d-=2)<0);++nt)m=M.charCodeAt(nt),B=m>>8,N=m%256,Z.push(N),Z.push(B);return Z}function Gt(M){return t.toByteArray(zt(M))}function Wt(M,d,m,B){for(var N=0;N<B&&!(N+m>=d.length||N>=M.length);++N)d[N+m]=M[N];return N}function Mt(M,d){return M instanceof d||M!=null&&M.constructor!=null&&M.constructor.name!=null&&M.constructor.name===d.name}function qt(M){return M!==M}var Zt=function(){for(var M="0123456789abcdef",d=new Array(256),m=0;m<16;++m)for(var B=m*16,N=0;N<16;++N)d[B+N]=M[m]+M[N];return d}()})(Ct);var hg=Ct.Buffer,fg=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(hg.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 Fi=L0(fg);var Ef={exports:{}};(function(n,t){(function(){var e,r=0xdeadbeefcafe,i=(r&16777215)==15715070;function s(v,w,F){v!=null&&(typeof v=="number"?this.fromNumber(v,w,F):w==null&&typeof v!="string"?this.fromString(v,256):this.fromString(v,w))}function o(){return new s(null)}function a(v,w,F,H,it,lt){for(;--lt>=0;){var pt=w*this[v++]+F[H]+it;it=Math.floor(pt/67108864),F[H++]=pt&67108863}return it}function u(v,w,F,H,it,lt){for(var pt=w&32767,xt=w>>15;--lt>=0;){var Ut=this[v]&32767,ne=this[v++]>>15,Be=xt*Ut+ne*pt;Ut=pt*Ut+((Be&32767)<<15)+F[H]+(it&1073741823),it=(Ut>>>30)+(Be>>>15)+xt*ne+(it>>>30),F[H++]=Ut&1073741823}return it}function c(v,w,F,H,it,lt){for(var pt=w&16383,xt=w>>14;--lt>=0;){var Ut=this[v]&16383,ne=this[v++]>>14,Be=xt*Ut+ne*pt;Ut=pt*Ut+((Be&16383)<<14)+F[H]+it,it=(Ut>>28)+(Be>>14)+xt*ne,F[H++]=Ut&268435455}return it}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",x=new Array,p,y;for(p=48,y=0;y<=9;++y)x[p++]=y;for(p=97,y=10;y<36;++y)x[p++]=y;for(p=65,y=10;y<36;++y)x[p++]=y;function g(v){return h.charAt(v)}function E(v,w){var F=x[v.charCodeAt(w)];return F==null?-1:F}function A(v){for(var w=this.t-1;w>=0;--w)v[w]=this[w];v.t=this.t,v.s=this.s}function b(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 w=o();return w.fromInt(v),w}function S(v,w){var F;if(w==16)F=4;else if(w==8)F=3;else if(w==256)F=8;else if(w==2)F=1;else if(w==32)F=5;else if(w==4)F=2;else{this.fromRadix(v,w);return}this.t=0,this.s=0;for(var H=v.length,it=!1,lt=0;--H>=0;){var pt=F==8?v[H]&255:E(v,H);if(pt<0){v.charAt(H)=="-"&&(it=!0);continue}it=!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(),it&&s.ZERO.subTo(this,this)}function I(){for(var v=this.s&this.DM;this.t>0&&this[this.t-1]==v;)--this.t}function T(v){if(this.s<0)return"-"+this.negate().toString(v);var w;if(v==16)w=4;else if(v==8)w=3;else if(v==2)w=1;else if(v==32)w=5;else if(v==4)w=2;else return this.toRadix(v);var F=(1<<w)-1,H,it=!1,lt="",pt=this.t,xt=this.DB-pt*this.DB%w;if(pt-- >0)for(xt<this.DB&&(H=this[pt]>>xt)>0&&(it=!0,lt=g(H));pt>=0;)xt<w?(H=(this[pt]&(1<<xt)-1)<<w-xt,H|=this[--pt]>>(xt+=this.DB-w)):(H=this[pt]>>(xt-=w)&F,xt<=0&&(xt+=this.DB,--pt)),H>0&&(it=!0),it&&(lt+=g(H));return it?lt:"0"}function P(){var v=o();return s.ZERO.subTo(this,v),v}function X(){return this.s<0?this.negate():this}function R(v){var w=this.s-v.s;if(w!=0)return w;var F=this.t;if(w=F-v.t,w!=0)return this.s<0?-w:w;for(;--F>=0;)if((w=this[F]-v[F])!=0)return w;return 0}function O(v){var w=1,F;return(F=v>>>16)!=0&&(v=F,w+=16),(F=v>>8)!=0&&(v=F,w+=8),(F=v>>4)!=0&&(v=F,w+=4),(F=v>>2)!=0&&(v=F,w+=2),(F=v>>1)!=0&&(v=F,w+=1),w}function q(){return this.t<=0?0:this.DB*(this.t-1)+O(this[this.t-1]^this.s&this.DM)}function j(v,w){var F;for(F=this.t-1;F>=0;--F)w[F+v]=this[F];for(F=v-1;F>=0;--F)w[F]=0;w.t=this.t+v,w.s=this.s}function K(v,w){for(var F=v;F<this.t;++F)w[F-v]=this[F];w.t=Math.max(this.t-v,0),w.s=this.s}function V(v,w){var F=v%this.DB,H=this.DB-F,it=(1<<H)-1,lt=Math.floor(v/this.DB),pt=this.s<<F&this.DM,xt;for(xt=this.t-1;xt>=0;--xt)w[xt+lt+1]=this[xt]>>H|pt,pt=(this[xt]&it)<<F;for(xt=lt-1;xt>=0;--xt)w[xt]=0;w[lt]=pt,w.t=this.t+lt+1,w.s=this.s,w.clamp()}function J(v,w){w.s=this.s;var F=Math.floor(v/this.DB);if(F>=this.t){w.t=0;return}var H=v%this.DB,it=this.DB-H,lt=(1<<H)-1;w[0]=this[F]>>H;for(var pt=F+1;pt<this.t;++pt)w[pt-F-1]|=(this[pt]<)<<it,w[pt-F]=this[pt]>>H;H>0&&(w[this.t-F-1]|=(this.s<)<<it),w.t=this.t-F,w.clamp()}function ot(v,w){for(var F=0,H=0,it=Math.min(v.t,this.t);F<it;)H+=this[F]-v[F],w[F++]=H&this.DM,H>>=this.DB;if(v.t<this.t){for(H-=v.s;F<this.t;)H+=this[F],w[F++]=H&this.DM,H>>=this.DB;H+=this.s}else{for(H+=this.s;F<v.t;)H-=v[F],w[F++]=H&this.DM,H>>=this.DB;H-=v.s}w.s=H<0?-1:0,H<-1?w[F++]=this.DV+H:H>0&&(w[F++]=H),w.t=F,w.clamp()}function rt(v,w){var F=this.abs(),H=v.abs(),it=F.t;for(w.t=it+H.t;--it>=0;)w[it]=0;for(it=0;it<H.t;++it)w[it+F.t]=F.am(0,H[it],w,it,0,F.t);w.s=0,w.clamp(),this.s!=v.s&&s.ZERO.subTo(w,w)}function ut(v){for(var w=this.abs(),F=v.t=2*w.t;--F>=0;)v[F]=0;for(F=0;F<w.t-1;++F){var H=w.am(F,w[F],v,2*F,0,1);(v[F+w.t]+=w.am(F+1,2*w[F],v,2*F+1,H,w.t-F-1))>=w.DV&&(v[F+w.t]-=w.DV,v[F+w.t+1]=1)}v.t>0&&(v[v.t-1]+=w.am(F,w[F],v,2*F,0,1)),v.s=0,v.clamp()}function at(v,w,F){var H=v.abs();if(!(H.t<=0)){var it=this.abs();if(it.t<H.t){w!=null&&w.fromInt(0),F!=null&&this.copyTo(F);return}F==null&&(F=o());var lt=o(),pt=this.s,xt=v.s,Ut=this.DB-O(H[H.t-1]);Ut>0?(H.lShiftTo(Ut,lt),it.lShiftTo(Ut,F)):(H.copyTo(lt),it.copyTo(F));var ne=lt.t,Be=lt[ne-1];if(Be!=0){var Ae=Be*(1<<this.F1)+(ne>1?lt[ne-2]>>this.F2:0),ar=this.FV/Ae,ji=(1<<this.F1)/Ae,Re=1<<this.F2,Oe=F.t,Gi=Oe-ne,wr=w==null?o():w;for(lt.dlShiftTo(Gi,wr),F.compareTo(wr)>=0&&(F[F.t++]=1,F.subTo(wr,F)),s.ONE.dlShiftTo(ne,wr),wr.subTo(lt,lt);lt.t<ne;)lt[lt.t++]=0;for(;--Gi>=0;){var Fo=F[--Oe]==Be?this.DM:Math.floor(F[Oe]*ar+(F[Oe-1]+Re)*ji);if((F[Oe]+=lt.am(0,Fo,F,Gi,0,ne))<Fo)for(lt.dlShiftTo(Gi,wr),F.subTo(wr,F);F[Oe]<--Fo;)F.subTo(wr,F)}w!=null&&(F.drShiftTo(ne,w),pt!=xt&&s.ZERO.subTo(w,w)),F.t=ne,F.clamp(),Ut>0&&F.rShiftTo(Ut,F),pt<0&&s.ZERO.subTo(F,F)}}}function U(v){var w=o();return this.abs().divRemTo(v,null,w),this.s<0&&w.compareTo(s.ZERO)>0&&v.subTo(w,w),w}function G(v){this.m=v}function tt(v){return v.s<0||v.compareTo(this.m)>=0?v.mod(this.m):v}function Q(v){return v}function wt(v){v.divRemTo(this.m,null,v)}function St(v,w,F){v.multiplyTo(w,F),this.reduce(F)}function zt(v,w){v.squareTo(w),this.reduce(w)}G.prototype.convert=tt,G.prototype.revert=Q,G.prototype.reduce=wt,G.prototype.mulTo=St,G.prototype.sqrTo=zt;function vt(){if(this.t<1)return 0;var v=this[0];if(!(v&1))return 0;var w=v&3;return w=w*(2-(v&15)*w)&15,w=w*(2-(v&255)*w)&255,w=w*(2-((v&65535)*w&65535))&65535,w=w*(2-v*w%this.DV)%this.DV,w>0?this.DV-w:-w}function __$t__(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 Lt(v){var w=o();return v.abs().dlShiftTo(this.m.t,w),w.divRemTo(this.m,null,w),v.s<0&&w.compareTo(s.ZERO)>0&&this.m.subTo(w,w),w}function Gt(v){var w=o();return v.copyTo(w),this.reduce(w),w}function Wt(v){for(;v.t<=this.mt2;)v[v.t++]=0;for(var w=0;w<this.m.t;++w){var F=v[w]&32767,H=F*this.mpl+((F*this.mph+(v[w]>>15)*this.mpl&this.um)<<15)&v.DM;for(F=w+this.m.t,v[F]+=this.m.am(0,H,v,w,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 Mt(v,w){v.squareTo(w),this.reduce(w)}function qt(v,w,F){v.multiplyTo(w,F),this.reduce(F)}__$t__.prototype.convert=Lt,__$t__.prototype.revert=Gt,__$t__.prototype.reduce=Wt,__$t__.prototype.mulTo=qt,__$t__.prototype.sqrTo=Mt;function Zt(){return(this.t>0?this[0]&1:this.s)==0}function M(v,w){if(v>4294967295||v<1)return s.ONE;var F=o(),H=o(),it=w.convert(this),lt=O(v)-1;for(it.copyTo(F);--lt>=0;)if(w.sqrTo(F,H),(v&1<<lt)>0)w.mulTo(H,it,F);else{var pt=F;F=H,H=pt}return w.revert(F)}function d(v,w){var F;return v<256||w.isEven()?F=new G(w):F=new __$t__(w),this.exp(v,F)}s.prototype.copyTo=A,s.prototype.fromInt=b,s.prototype.fromString=S,s.prototype.clamp=I,s.prototype.dlShiftTo=j,s.prototype.drShiftTo=K,s.prototype.lShiftTo=V,s.prototype.rShiftTo=J,s.prototype.subTo=ot,s.prototype.multiplyTo=rt,s.prototype.squareTo=ut,s.prototype.divRemTo=at,s.prototype.invDigit=vt,s.prototype.isEven=Zt,s.prototype.exp=M,s.prototype.toString=T,s.prototype.negate=P,s.prototype.abs=X,s.prototype.compareTo=R,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 N(){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 gt(v){if(v==null&&(v=10),this.signum()==0||v<2||v>36)return"0";var w=this.chunkSize(v),F=Math.pow(v,w),H=_(F),it=o(),lt=o(),pt="";for(this.divRemTo(H,it,lt);it.signum()>0;)pt=(F+lt.intValue()).toString(v).substr(1)+pt,it.divRemTo(H,it,lt);return lt.intValue().toString(v)+pt}function It(v,w){this.fromInt(0),w==null&&(w=10);for(var F=this.chunkSize(w),H=Math.pow(w,F),it=!1,lt=0,pt=0,xt=0;xt<v.length;++xt){var Ut=E(v,xt);if(Ut<0){v.charAt(xt)=="-"&&this.signum()==0&&(it=!0);continue}pt=w*pt+Ut,++lt>=F&&(this.dMultiply(H),this.dAddOffset(pt,0),lt=0,pt=0)}lt>0&&(this.dMultiply(Math.pow(w,lt)),this.dAddOffset(pt,0)),it&&s.ZERO.subTo(this,this)}function Ot(v,w,F){if(typeof w=="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(w);)this.dAddOffset(2,0),this.bitLength()>v&&this.subTo(s.ONE.shiftLeft(v-1),this);else{var H=new Array,it=v&7;H.length=(v>>3)+1,w.nextBytes(H),it>0?H[0]&=(1<<it)-1:H[0]=0,this.fromString(H,256)}}function Tt(){var v=this.t,w=new Array;w[0]=this.s;var F=this.DB-v*this.DB%8,H,it=0;if(v-- >0)for(F<this.DB&&(H=this[v]>>F)!=(this.s&this.DM)>>F&&(w[it++]=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),it==0&&(this.s&128)!=(H&128)&&++it,(it>0||H!=this.s)&&(w[it++]=H);return w}function Ie(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 Te(v,w,F){var H,it,lt=Math.min(v.t,this.t);for(H=0;H<lt;++H)F[H]=w(this[H],v[H]);if(v.t<this.t){for(it=v.s&this.DM,H=lt;H<this.t;++H)F[H]=w(this[H],it);F.t=this.t}else{for(it=this.s&this.DM,H=lt;H<v.t;++H)F[H]=w(it,v[H]);F.t=v.t}F.s=w(this.s,v.s),F.clamp()}function Xe(v,w){return v&w}function cn(v){var w=o();return this.bitwiseTo(v,Xe,w),w}function Ye(v,w){return v|w}function un(v){var w=o();return this.bitwiseTo(v,Ye,w),w}function ln(v,w){return v^w}function Or(v){var w=o();return this.bitwiseTo(v,ln,w),w}function gr(v,w){return v&~w}function Qn(v){var w=o();return this.bitwiseTo(v,gr,w),w}function Ee(){for(var v=o(),w=0;w<this.t;++w)v[w]=this.DM&~this[w];return v.t=this.t,v.s=~this.s,v}function ti(v){var w=o();return v<0?this.rShiftTo(-v,w):this.lShiftTo(v,w),w}function hn(v){var w=o();return v<0?this.lShiftTo(-v,w):this.rShiftTo(v,w),w}function fn(v){if(v==0)return-1;var w=0;return v&65535||(v>>=16,w+=16),v&255||(v>>=8,w+=8),v&15||(v>>=4,w+=4),v&3||(v>>=2,w+=2),v&1||++w,w}function ei(){for(var v=0;v<this.t;++v)if(this[v]!=0)return v*this.DB+fn(this[v]);return this.s<0?this.t*this.DB:-1}function ri(v){for(var w=0;v!=0;)v&=v-1,++w;return w}function dn(){for(var v=0,w=this.s&this.DM,F=0;F<this.t;++F)v+=ri(this[F]^w);return v}function ni(v){var w=Math.floor(v/this.DB);return w>=this.t?this.s!=0:(this[w]&1<<v%this.DB)!=0}function ii(v,w){var F=s.ONE.shiftLeft(v);return this.bitwiseTo(F,w,F),F}function pn(v){return this.changeBit(v,Ye)}function si(v){return this.changeBit(v,gr)}function xn(v){return this.changeBit(v,ln)}function ce(v,w){for(var F=0,H=0,it=Math.min(v.t,this.t);F<it;)H+=this[F]+v[F],w[F++]=H&this.DM,H>>=this.DB;if(v.t<this.t){for(H+=v.s;F<this.t;)H+=this[F],w[F++]=H&this.DM,H>>=this.DB;H+=this.s}else{for(H+=this.s;F<v.t;)H+=v[F],w[F++]=H&this.DM,H>>=this.DB;H+=v.s}w.s=H<0?-1:0,H>0?w[F++]=H:H<-1&&(w[F++]=this.DV+H),w.t=F,w.clamp()}function Ce(v){var w=o();return this.addTo(v,w),w}function Pr(v){var w=o();return this.subTo(v,w),w}function oi(v){var w=o();return this.multiplyTo(v,w),w}function ho(){var v=o();return this.squareTo(v),v}function fo(v){var w=o();return this.divRemTo(v,w,null),w}function po(v){var w=o();return this.divRemTo(v,null,w),w}function xo(v){var w=o(),F=o();return this.divRemTo(v,w,F),new Array(w,F)}function mo(v){this[this.t]=this.am(0,v-1,this,0,0,this.t),++this.t,this.clamp()}function yo(v,w){if(v!=0){for(;this.t<=w;)this[this.t++]=0;for(this[w]+=v;this[w]>=this.DV;)this[w]-=this.DV,++w>=this.t&&(this[this.t++]=0),++this[w]}}function zr(){}function qi(v){return v}function go(v,w,F){v.multiplyTo(w,F)}function vo(v,w){v.squareTo(w)}zr.prototype.convert=qi,zr.prototype.revert=qi,zr.prototype.mulTo=go,zr.prototype.sqrTo=vo;function wo(v){return this.exp(v,new zr)}function bo(v,w,F){var H=Math.min(this.t+v.t,w);for(F.s=0,F.t=H;H>0;)F[--H]=0;var it;for(it=F.t-this.t;H<it;++H)F[H+this.t]=this.am(0,v[H],F,H,0,this.t);for(it=Math.min(v.t,w);H<it;++H)this.am(0,v[H],F,H,0,w-H);F.clamp()}function Eo(v,w,F){--w;var H=F.t=this.t+v.t-w;for(F.s=0;--H>=0;)F[H]=0;for(H=Math.max(w-this.t,0);H<v.t;++H)F[this.t+H-w]=this.am(w-H,v[H],F,0,0,this.t+H-w);F.clamp(),F.drShiftTo(1,F)}function or(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 Wi(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 w=o();return v.copyTo(w),this.reduce(w),w}function kr(v){return v}function Vi(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,w){v.squareTo(w),this.reduce(w)}function Ao(v,w,F){v.multiplyTo(w,F),this.reduce(F)}or.prototype.convert=Wi,or.prototype.revert=kr,or.prototype.reduce=Vi,or.prototype.mulTo=Ao,or.prototype.sqrTo=vr;function mn(v,w){var F=v.bitLength(),H,it=_(1),lt;if(F<=0)return it;F<18?H=1:F<48?H=3:F<144?H=4:F<768?H=5:H=6,F<8?lt=new G(w):w.isEven()?lt=new or(w):lt=new __$t__(w);var pt=new Array,xt=3,Ut=H-1,ne=(1<<H)-1;if(pt[1]=lt.convert(this),H>1){var Be=o();for(lt.sqrTo(pt[1],Be);xt<=ne;)pt[xt]=o(),lt.mulTo(Be,pt[xt-2],pt[xt]),xt+=2}var Ae=v.t-1,ar,ji=!0,Re=o(),Oe;for(F=O(v[Ae])-1;Ae>=0;){for(F>=Ut?ar=v[Ae]>>F-Ut&ne:(ar=(v[Ae]&(1<<F+1)-1)<<Ut-F,Ae>0&&(ar|=v[Ae-1]>>this.DB+F-Ut)),xt=H;!(ar&1);)ar>>=1,--xt;if((F-=xt)<0&&(F+=this.DB,--Ae),ji)pt[ar].copyTo(it),ji=!1;else{for(;xt>1;)lt.sqrTo(it,Re),lt.sqrTo(Re,it),xt-=2;xt>0?lt.sqrTo(it,Re):(Oe=it,it=Re,Re=Oe),lt.mulTo(Re,pt[ar],it)}for(;Ae>=0&&!(v[Ae]&1<<F);)lt.sqrTo(it,Re),Oe=it,it=Re,Re=Oe,--F<0&&(F=this.DB-1,--Ae)}return lt.revert(it)}function ai(v){var w=this.s<0?this.negate():this.clone(),F=v.s<0?v.negate():v.clone();if(w.compareTo(F)<0){var H=w;w=F,F=H}var it=w.getLowestSetBit(),lt=F.getLowestSetBit();if(lt<0)return w;for(it<lt&&(lt=it),lt>0&&(w.rShiftTo(lt,w),F.rShiftTo(lt,F));w.signum()>0;)(it=w.getLowestSetBit())>0&&w.rShiftTo(it,w),(it=F.getLowestSetBit())>0&&F.rShiftTo(it,F),w.compareTo(F)>=0?(w.subTo(F,w),w.rShiftTo(1,w)):(F.subTo(w,F),F.rShiftTo(1,F));return lt>0&&F.lShiftTo(lt,F),F}function _o(v){if(v<=0)return 0;var w=this.DV%v,F=this.s<0?v-1:0;if(this.t>0)if(w==0)F=this[0]%v;else for(var H=this.t-1;H>=0;--H)F=(w*F+this[H])%v;return F}function So(v){var w=v.isEven();if(this.isEven()&&w||v.signum()==0)return s.ZERO;for(var F=v.clone(),H=this.clone(),it=_(1),lt=_(0),pt=_(0),xt=_(1);F.signum()!=0;){for(;F.isEven();)F.rShiftTo(1,F),w?((!it.isEven()||!lt.isEven())&&(it.addTo(this,it),lt.subTo(v,lt)),it.rShiftTo(1,it)):lt.isEven()||lt.subTo(v,lt),lt.rShiftTo(1,lt);for(;H.isEven();)H.rShiftTo(1,H),w?((!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),w&&it.subTo(pt,it),lt.subTo(xt,lt)):(H.subTo(F,H),w&&pt.subTo(it,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 Qt=[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],Co=(1<<26)/Qt[Qt.length-1];function Bo(v){var w,F=this.abs();if(F.t==1&&F[0]<=Qt[Qt.length-1]){for(w=0;w<Qt.length;++w)if(F[0]==Qt[w])return!0;return!1}if(F.isEven())return!1;for(w=1;w<Qt.length;){for(var H=Qt[w],it=w+1;it<Qt.length&&H<Co;)H*=Qt[it++];for(H=F.modInt(H);w<it;)if(H%Qt[w++]==0)return!1}return F.millerRabin(v)}function C(v){var w=this.subtract(s.ONE),F=w.getLowestSetBit();if(F<=0)return!1;var H=w.shiftRight(F);v=v+1>>1,v>Qt.length&&(v=Qt.length);for(var it=o(),lt=0;lt<v;++lt){it.fromInt(Qt[Math.floor(Math.random()*Qt.length)]);var pt=it.modPow(H,this);if(pt.compareTo(s.ONE)!=0&&pt.compareTo(w)!=0){for(var xt=1;xt++<F&&pt.compareTo(w)!=0;)if(pt=pt.modPowInt(2,this),pt.compareTo(s.ONE)==0)return!1;if(pt.compareTo(w)!=0)return!1}}return!0}s.prototype.chunkSize=nt,s.prototype.toRadix=gt,s.prototype.fromRadix=It,s.prototype.fromNumber=Ot,s.prototype.bitwiseTo=Te,s.prototype.changeBit=ii,s.prototype.addTo=ce,s.prototype.dMultiply=mo,s.prototype.dAddOffset=yo,s.prototype.multiplyLowerTo=bo,s.prototype.multiplyUpperTo=Eo,s.prototype.modInt=_o,s.prototype.millerRabin=C,s.prototype.clone=m,s.prototype.intValue=B,s.prototype.byteValue=N,s.prototype.shortValue=Z,s.prototype.signum=mt,s.prototype.toByteArray=Tt,s.prototype.equals=Ie,s.prototype.min=je,s.prototype.max=Ge,s.prototype.and=cn,s.prototype.or=un,s.prototype.xor=Or,s.prototype.andNot=Qn,s.prototype.not=Ee,s.prototype.shiftLeft=ti,s.prototype.shiftRight=hn,s.prototype.getLowestSetBit=ei,s.prototype.bitCount=dn,s.prototype.testBit=ni,s.prototype.setBit=pn,s.prototype.clearBit=si,s.prototype.flipBit=xn,s.prototype.add=Ce,s.prototype.subtract=Pr,s.prototype.multiply=oi,s.prototype.divide=fo,s.prototype.remainder=po,s.prototype.divideAndRemainder=xo,s.prototype.modPow=mn,s.prototype.modInverse=So,s.prototype.pow=wo,s.prototype.gcd=ai,s.prototype.isProbablePrime=Bo,s.prototype.square=ho,s.prototype.Barrett=or;var k,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>=Ht&&(L-=Ht)}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<Ht;)et=Math.floor(65536*Math.random()),D[L++]=et>>>8,D[L++]=et&255;L=0,$()}function ft(){if(k==null){for($(),k=Xt(),k.init(D),L=0;L<D.length;++L)D[L]=0;L=0}return k.next()}function dt(v){var w;for(w=0;w<v.length;++w)v[w]=ft()}function yt(){}yt.prototype.nextBytes=dt;function _t(){this.i=0,this.j=0,this.S=new Array}function Rt(v){var w,F,H;for(w=0;w<256;++w)this.S[w]=w;for(F=0,w=0;w<256;++w)F=F+this.S[w]+v[w%v.length]&255,H=this.S[w],this.S[w]=this.S[F],this.S[F]=H;this.i=0,this.j=0}function Pt(){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]}_t.prototype.init=Rt,_t.prototype.next=Pt;function Xt(){return new _t}var Ht=256;n.exports={default:s,BigInteger:s,SecureRandom:yt}}).call(Et)})(Ef);var Nt=Ef.exports,dg=Nt.BigInteger.prototype.Barrett;function me(n,t){this.x=t,this.q=n}function ge(n,t,e,r){this.curve=n,this.x=t,this.y=e,this.z=r==null?Nt.BigInteger.ONE:r,this.zinv=null}function Qe(n,t,e){this.q=n,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(e),this.infinity=new ge(this,null,null),this.reducer=new dg(this.q)}me.prototype.equals=function(n){return n==this||this.q.equals(n.q)&&this.x.equals(n.x)},me.prototype.toBigInteger=function(){return this.x},me.prototype.negate=function(){return new me(this.q,this.x.negate().mod(this.q))},me.prototype.add=function(n){return new me(this.q,this.x.add(n.toBigInteger()).mod(this.q))},me.prototype.subtract=function(n){return new me(this.q,this.x.subtract(n.toBigInteger()).mod(this.q))},me.prototype.multiply=function(n){return new me(this.q,this.x.multiply(n.toBigInteger()).mod(this.q))},me.prototype.square=function(){return new me(this.q,this.x.square().mod(this.q))},me.prototype.divide=function(n){return new me(this.q,this.x.multiply(n.toBigInteger().modInverse(this.q)).mod(this.q))},ge.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)},ge.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)},ge.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(Nt.BigInteger.ZERO)&&n.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(n.z)).mod(this.curve.q).equals(Nt.BigInteger.ZERO))},ge.prototype.isInfinity=function(){return this.x==null&&this.y==null||this.z.equals(Nt.BigInteger.ZERO)&&!this.y.toBigInteger().equals(Nt.BigInteger.ZERO)},ge.prototype.negate=function(){return new ge(this.curve,this.x,this.y.negate(),this.z)},ge.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(Nt.BigInteger.ZERO.equals(e))return Nt.BigInteger.ZERO.equals(t)?this.twice():this.curve.getInfinity();var r=new Nt.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 ge(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(f),h)},ge.prototype.twice=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var n=new Nt.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);Nt.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 ge(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(u),c)},ge.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 Nt.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},ge.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},Qe.prototype.getQ=function(){return this.q},Qe.prototype.getA=function(){return this.a},Qe.prototype.getB=function(){return this.b},Qe.prototype.equals=function(n){return n==this||this.q.equals(n.q)&&this.a.equals(n.a)&&this.b.equals(n.b)},Qe.prototype.getInfinity=function(){return this.infinity},Qe.prototype.fromBigInteger=function(n){return new me(this.q,n)},Qe.prototype.reduce=function(n){this.reducer.reduce(n)},Qe.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 ge(this,this.fromBigInteger(new Nt.BigInteger(e,16)),this.fromBigInteger(new Nt.BigInteger(r,16)));default:return null}},Qe.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 se=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},pg=function(n){return n<16?2043430169:2055708042},xg=function(n,t,e,r){return r<16?n^t^e:n&t|n&e|t&e},mg=function(n,t,e,r){return r<16?n^t^e:n&t|~n&e},yg=function(n,t,e){for(var r,i,s,o,a,u=function(A){var b,_=new Array(132);A.forEach(function(T,P){_[P]=T});for(var S=16;S<68;S++)_[S]=(b=_[S-16]^_[S-9]^se(_[S-3],15))^se(b,15)^se(b,23)^se(_[S-13],7)^_[S-6];for(var I=0;I<64;I++)_[I+68]=_[I]^_[I+4];return _}(t),c=n[0],l=n[1],f=n[2],h=n[3],x=n[4],p=n[5],y=n[6],g=n[7],E=0;E<64;E++)i=(r=se(se(c,12)+x+se(pg(E),E),7))^se(c,12),s=xg(c,l,f,E)+h+i+u[E+68],o=mg(x,p,y,E)+g+r+u[E],h=f,f=se(l,9),l=c,c=s,g=y,y=se(p,19),p=x,x=(a=o)^se(a,9)^se(a,17);return[c^n[0],l^n[1],f^n[2],h^n[3],x^n[4],p^n[5],y^n[6],g^n[7]]},S0=function(n,t,e){if(typeof n=="string"?n=Ct.Buffer.from(n,t||"utf8"):n instanceof ArrayBuffer&&(n=Ct.Buffer.from(n)),!Ct.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=Ct.Buffer.alloc(1,128),o=Ct.Buffer.alloc(s=(s=r.length%64)>=56?64-s%56-1:56-s-1,0),a=Ct.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=Ct.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 x=new Array(c);x[0]=[1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214];for(var p=0;p<c;p++)x[p+1]=yg(x[p],l[p]);var y=Ct.Buffer.alloc(32);return x[c].forEach(function(g,E){return y.writeInt32BE(g,4*E)}),e?y.toString(e):Fi(y)},Ku=new Nt.SecureRandom,Q0=function(){var n=new Qe(new Nt.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),new Nt.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),new Nt.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16)),t=n.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:n,G:t,n:new Nt.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}(),Ju=Q0.curve,Zu=Q0.G,Qi=Q0.n;function Qu(n,t){for(var e=[],r=Math.ceil(t/32),i=t%32,s=1;s<=r;s++){var o=Ct.Buffer.allocUnsafe(4);o.writeUInt32BE(s);var a=S0(Ct.Buffer.concat([n,o]));e.push(s===r&&i?Ct.Buffer.from(a).slice(0,i):Ct.Buffer.from(a))}return Ct.Buffer.concat(e,t)}var gg={__proto__:null,constants:{C1C2C3:0,C1C3C2:1,PC:"04"},generateKeyPair:function(){var n=new Nt.BigInteger(Qi.bitLength(),Ku).mod(Qi.subtract(new Nt.BigInteger("2"))).add(Nt.BigInteger.ONE),t=Je(n.toString(16),64),e=Zu.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=Ct.Buffer.from(n,r.inputEncoding||"utf8"):n instanceof ArrayBuffer&&(n=Ct.Buffer.from(n)),!Ct.Buffer.isBuffer(n))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(n)+'"');var u=new Nt.BigInteger(Qi.bitLength(),Ku).mod(Qi.subtract(Nt.BigInteger.ONE)).add(Nt.BigInteger.ONE),c=Zu.multiply(u),l=Je(c.getX().toBigInteger().toString(16),64)+Je(c.getY().toBigInteger().toString(16),64),f=Ju.decodePointHex(t).multiply(u),h=Je(f.getX().toBigInteger().toString(16),64),x=Je(f.getY().toBigInteger().toString(16),64),p=Qu(Ct.Buffer.from(h+x,"hex"),n.length),y=Je(new Nt.BigInteger(n.toString("hex"),16).xor(new Nt.BigInteger(p.toString("hex"),16)).toString(16),2*n.length),g=S0(h+n.toString("hex")+x,"hex","hex"),E=Ct.Buffer.from((a?"04":"")+(s===0?l+y+g:l+g+y),"hex");return o?E.toString(o):Fi(E)},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=Ct.Buffer.from(n,r.inputEncoding):n instanceof ArrayBuffer&&(n=Ct.Buffer.from(n)),!Ct.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=Ju.decodePointHex("04"+u+c).multiply(new Nt.BigInteger(t,16)),f=Je(l.getX().toBigInteger().toString(16),64),h=Je(l.getY().toBigInteger().toString(16),64),x=n.slice(64,96),p=n.slice(96);s===0&&(x=n.slice(n.length-32),p=n.slice(64,n.length-32));var y=Qu(Ct.Buffer.from(f+h,"hex"),p.length),g=new Nt.BigInteger(p.toString("hex"),16).xor(new Nt.BigInteger(y.toString("hex"),16)).toString(16),E=S0(f+g+h,"hex","hex")===x.toString("hex")?Ct.Buffer.from(g,"hex"):Ct.Buffer.alloc(0);return o?E.toString(o):Fi(E)}},ts=[[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]],es=[2746333894,1453994832,1736282519,2993693404],vg=[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],rs=/^[0-9a-f]{32}$/i,Af=function(n){return ts[(4026531840&n)>>>28][(251658240&n)>>>24]<<24|ts[(15728640&n)>>>20][(983040&n)>>>16]<<16|ts[(61440&n)>>>12][(3840&n)>>>8]<<8|ts[(240&n)>>>4][(15&n)>>>0]<<0},_f=function(n){return(t=Af(n))^se(t,2)^se(t,10)^se(t,18)^se(t,24);var t},Sf=function(n){var t,e=new Array(36);e[0]=n[0]^es[0],e[1]=n[1]^es[1],e[2]=n[2]^es[2],e[3]=n[3]^es[3];for(var r=new Array(32),i=0;i<32;i++)e[i+4]=e[i]^(t=Af(e[i+1]^e[i+2]^e[i+3]^vg[i]))^se(t,13)^se(t,23),r[i]=e[i+4];return r},tl=function(n,t){for(var e=Sf(t),r=0;r<32;r++)n[r+4]=n[r]^_f(n[r+1]^n[r+2]^n[r+3]^e[r]);return[n[35],n[34],n[33],n[32]]},el=function(n,t){for(var e=Sf(t).reverse(),r=0;r<32;r++)n[r+4]=n[r]^_f(n[r+1]^n[r+2]^n[r+3]^e[r]);return[n[35],n[34],n[33],n[32]]},ns=function(n){return[n.readInt32BE(0),n.readInt32BE(4),n.readInt32BE(8),n.readInt32BE(12)]},is=function(n){for(var t=Ct.Buffer.alloc(16),e=0;e<4;e++)t.writeInt32BE(n[e],4*e);return t},jn={__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=Ct.Buffer.from(n,r.inputEncoding||"utf8"):n instanceof ArrayBuffer&&(n=Ct.Buffer.from(n)),!Ct.Buffer.isBuffer(n))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(n)+'"');if(!rs.test(t))throw new TypeError("Invalid value of cipher `key`");if(t=Ct.Buffer.from(t,"hex"),i===2&&!rs.test(s))throw new TypeError("Invalid value of `iv` option");return function(a,u,c,l){c&&(c=ns(c)),u=ns(u);for(var f=[],h=(a=function(S){var I=16-S.length%16,T=Ct.Buffer.alloc(I,I);return Ct.Buffer.concat([S,T],S.length+I)}(a)).length/16,x=0;x<h;x++)if(c){var p=16*x,y=[c[0]^a.readInt32BE(p),c[1]^a.readInt32BE(p+4),c[2]^a.readInt32BE(p+8),c[3]^a.readInt32BE(p+12)],g=tl(y,u);f.push(is(g)),c=g.slice(0)}else{var E=16*x,A=[a.readInt32BE(E),a.readInt32BE(E+4),a.readInt32BE(E+8),a.readInt32BE(E+12)],b=tl(A,u);f.push(is(b))}var _=Ct.Buffer.concat(f,a.length);return l?_.toString(l):Fi(_)}(n,t,s=i===2?Ct.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=Ct.Buffer.from(n,r.inputEncoding):n instanceof ArrayBuffer&&(n=Ct.Buffer.from(n)),!Ct.Buffer.isBuffer(n))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(n)+'"');if(!rs.test(t))throw new TypeError("Invalid value of cipher `key`");if(t=Ct.Buffer.from(t,"hex"),i===2&&!rs.test(s))throw new TypeError("Invalid value of `iv` option");return function(a,u,c,l){c&&(c=ns(c)),u=ns(u);var f=[],h=a.length/16;if(c)for(var x=h-1;x>=0;x--){var p,y=16*x;p=x>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)],E=el(g,u);f.unshift(is([E[0]^p[0],E[1]^p[1],E[2]^p[2],E[3]^p[3]]))}else for(var A=0;A<h;A++){var b=16*A,_=[a.readInt32BE(b),a.readInt32BE(b+4),a.readInt32BE(b+8),a.readInt32BE(b+12)],S=el(_,u);f.push(is(S))}var I=Ct.Buffer.concat(f,a.length-f[f.length-1][15]);return l?I.toString(l):Fi(I)}(n,t,s=i===2?Ct.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 wg(){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 bg(){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 Eg(n){if(this.connect=!1,this.ready_func_=null,this.callbacks_=new bg,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 Ag={HID:0},ss={PRODUCT_ID:0,USER_ID:1,HARDWARE_ID:2},rl={USER:0};class Cf{constructor(){Nr(this,"Base64",new wg);Nr(this,"AtlCtrl",null);Nr(this,"ArmCount",0);Nr(this,"ArmIndex",0);Nr(this,"ArmHandle",0);Nr(this,"ArmRandom","");try{this.AtlCtrl=new Eg("{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=rl.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=ss.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 ss.USER_ID:this.ArmUid=o;break;case ss.PRODUCT_ID:this.ArmPid=o;break;case ss.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=Ag.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=rl.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 Bf=Symbol(),Ps="el",_g="is-",Ur=(n,t,e,r,i)=>{let s=`${n}-${t}`;return e&&(s+=`-${e}`),r&&(s+=`__${r}`),i&&(s+=`--${i}`),s},Ff=Symbol("namespaceContextKey"),Sg=n=>{const t=n||(z.getCurrentInstance()?z.inject(Ff,z.ref(Ps)):z.ref(Ps));return z.computed(()=>z.unref(t)||Ps)},tc=(n,t)=>{const e=Sg(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,E)=>y&&g&&E?Ur(e.value,n,y,g,E):"",is:(y,...g)=>{const E=g.length>=1?g[0]:!0;return y&&E?`${_g}${y}`:""},cssVar:y=>{const g={};for(const E in y)y[E]&&(g[`--${e.value}-${E}`]=y[E]);return g},cssVarName:y=>`--${e.value}-${y}`,cssVarBlock:y=>{const g={};for(const E in y)y[E]&&(g[`--${e.value}-${n}-${E}`]=y[E]);return g},cssVarBlockName:y=>`--${e.value}-${n}-${y}`}};/**
|
|
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}`}};/**
|
|
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 Xg={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 Yg=n=>(t,e)=>Kg(t,e,z.unref(n)),Kg=(n,t,e)=>N0.get(e,n,n).replace(/\{(\w+)\}/g,(r,i)=>{var s;return`${(s=t==null?void 0:t[i])!=null?s:`{${i}}`}`}),Jg=n=>{const t=z.computed(()=>z.unref(n).name),e=z.isRef(n)?n:z.ref(n);return{lang:t,locale:e,t:Yg(n)}},Of=Symbol("localeContextKey"),Zg=n=>{const t=n||z.inject(Of,z.ref());return Jg(z.computed(()=>t.value||Xg))},Pf="__epPropKey",ve=n=>n,Qg=n=>Df(n)&&!!n[Pf],zf=(n,t)=>{if(!Df(n)||Qg(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),C0(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(x=>JSON.stringify(x)).join(", ");z.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return l}:void 0,[Pf]:!0};return C0(n,"default")&&(u.default=i),u},Li=n=>N0.fromPairs(Object.entries(n).map(([t,e])=>[t,zf(e,t)])),tv=["","default","small","large"],ev=zf({type:String,values:tv,required:!1}),rv=Symbol("size"),nv=Symbol("emptyValuesContextKey"),iv=Li({emptyValues:Array,valueOnClear:{type:ve([String,Number,Boolean,Function]),default:void 0,validator:n=>(n=qs(n)?n():n,Bg(n)?n.every(t=>!t):!n)}}),dl=n=>Object.keys(n),Ws=z.ref();function kf(n,t=void 0){return z.getCurrentInstance()?z.inject(Bf,Ws):Ws}function sv(n,t){const e=kf(),r=tc(n,z.computed(()=>{var a;return((a=e.value)==null?void 0:a.namespace)||Ps})),i=Zg(z.computed(()=>{var a;return(a=e.value)==null?void 0:a.locale})),s=Gg(z.computed(()=>{var a;return((a=e.value)==null?void 0:a.zIndex)||Tf})),o=z.computed(()=>{var a;return z.unref(t)||((a=e.value)==null?void 0:a.size)||""});return Nf(z.computed(()=>z.unref(e)||{})),{ns:r,locale:i,zIndex:s,size:o}}const Nf=(n,t,e=!1)=>{var r;const i=!!z.getCurrentInstance(),s=i?kf():void 0,o=(r=void 0)!=null?r:i?z.provide:void 0;if(!o){Ni("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const a=z.computed(()=>{const u=z.unref(n);return s!=null&&s.value?ov(s.value,u):u});return o(Bf,a),o(Of,z.computed(()=>a.value.locale)),o(Ff,z.computed(()=>a.value.namespace)),o(Rf,z.computed(()=>a.value.zIndex)),o(rv,{size:z.computed(()=>a.value.size||"")}),o(nv,z.computed(()=>({emptyValues:a.value.emptyValues,valueOnClear:a.value.valueOnClear}))),(e||!Ws.value)&&(Ws.value=a.value),a},ov=(n,t)=>{const e=[...new Set([...dl(n),...dl(t)])],r={};for(const i of e)r[i]=t[i]!==void 0?t[i]:n[i];return r};var nc=(n,t)=>{const e=n.__vccOpts||n;for(const[r,i]of t)e[r]=i;return e};const av="utils/dom/style";function B0(n,t="px"){if(!n&&n!==0)return"";if(tn(n)||Dg(n))return`${n}${t}`;if(Kn(n))return n;Ni(av,"binding value must be a string or number")}const Lf=(n,t)=>(n.install=e=>{for(const r of[n,...Object.values({})])e.component(r.name,r)},n),cv=(n,t)=>(n.install=e=>{n._context=e._context,e.config.globalProperties[t]=n},n),uv=Li({size:{type:ve([Number,String])},color:{type:String}}),lv=z.defineComponent({name:"ElIcon",inheritAttrs:!1}),hv=z.defineComponent(Pe(kt({},lv),{props:uv,setup(n){const t=n,e=tc("icon"),r=z.computed(()=>{const{size:i,color:s}=t,o=B0(i);return!o&&!s?{}:{fontSize:o,"--color":s}});return(i,s)=>(z.openBlock(),z.createElementBlock("i",z.mergeProps({class:z.unref(e).b(),style:z.unref(r)},i.$attrs),[z.renderSlot(i.$slots,"default")],16))}}));var fv=nc(hv,[["__file","icon.vue"]]);const pl=Lf(fv);/*! Element Plus Icons Vue v2.3.2 */var dv=z.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(n){return(t,e)=>(z.openBlock(),z.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z.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"})]))}}),pv=dv,xv=z.defineComponent({name:"Close",__name:"close",setup(n){return(t,e)=>(z.openBlock(),z.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z.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"})]))}}),mv=xv,yv=z.defineComponent({name:"InfoFilled",__name:"info-filled",setup(n){return(t,e)=>(z.openBlock(),z.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z.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"})]))}}),xl=yv,gv=z.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(n){return(t,e)=>(z.openBlock(),z.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z.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"})]))}}),vv=gv,wv=z.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(n){return(t,e)=>(z.openBlock(),z.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[z.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"})]))}}),bv=wv;const Ev=ve([String,Object,Function]),Av={Close:mv},ml={primary:xl,success:vv,warning:bv,error:pv,info:xl},_v=()=>on&&/android/i.test(window.navigator.userAgent),Sv=n=>n,F0={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"},Cv=n=>{if(n.code&&n.code!=="Unidentified")return n.code;const t=Bv(n);if(t){if(Object.values(F0).includes(t))return t;switch(t){case" ":return F0.space;default:return""}}return""},Bv=n=>{let t=n.key&&n.key!=="Unidentified"?n.key:"";if(!t&&n.type==="keyup"&&_v()){const e=n.target;t=e.value.charAt(e.selectionStart-1)}return t},Fv=Li({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:ve([String,Object,Array])},offset:{type:ve(Array),default:[0,0]},badgeClass:{type:String}}),Dv=z.defineComponent({name:"ElBadge"}),Mv=z.defineComponent(Pe(kt({},Dv),{props:Fv,setup(n,{expose:t}){const e=n,r=tc("badge"),i=z.computed(()=>e.isDot?"":tn(e.value)&&tn(e.max)?e.max<e.value?`${e.max}+`:`${e.value}`:`${e.value}`),s=z.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)=>(z.openBlock(),z.createElementBlock("div",{class:z.normalizeClass(z.unref(r).b())},[z.renderSlot(o.$slots,"default"),z.createVNode(z.Transition,{name:`${z.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:z.withCtx(()=>[z.withDirectives(z.createElementVNode("sup",{class:z.normalizeClass([z.unref(r).e("content"),z.unref(r).em("content",o.type),z.unref(r).is("fixed",!!o.$slots.default),z.unref(r).is("dot",o.isDot),z.unref(r).is("hide-zero",!o.showZero&&o.value===0),o.badgeClass]),style:z.normalizeStyle(z.unref(s))},[z.renderSlot(o.$slots,"content",{value:z.unref(i)},()=>[z.createTextVNode(z.toDisplayString(z.unref(i)),1)])],6),[[z.vShow,!o.hidden&&(z.unref(i)||o.isDot||o.$slots.content)]])]),_:3},8,["name"])],2))}}));var Iv=nc(Mv,[["__file","badge.vue"]]);const Tv=Lf(Iv),Rv=Li(kt({a11y:{type:Boolean,default:!0},locale:{type:ve(Object)},size:ev,button:{type:ve(Object)},card:{type:ve(Object)},dialog:{type:ve(Object)},link:{type:ve(Object)},experimentalFeatures:{type:ve(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ve(Object)},zIndex:Number,namespace:{type:String,default:"el"}},iv)),de={placement:"top"};z.defineComponent({name:"ElConfigProvider",props:Rv,setup(n,{slots:t}){const e=Nf(n);return z.watch(()=>n.message,r=>{var i,s;Object.assign(de,(s=(i=e==null?void 0:e.value)==null?void 0:i.message)!=null?s:{},r!=null?r:{})},{immediate:!0,deep:!0}),()=>z.renderSlot(t,"default",{config:e==null?void 0:e.value})}});const Uf=["primary","success","info","warning","error"],$f=["top","top-left","top-right","bottom","bottom-left","bottom-right"],Un="top",fe=Sv({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:on?document.body:void 0}),Ov=Li({customClass:{type:String,default:fe.customClass},dangerouslyUseHTMLString:{type:Boolean,default:fe.dangerouslyUseHTMLString},duration:{type:Number,default:fe.duration},icon:{type:Ev,default:fe.icon},id:{type:String,default:fe.id},message:{type:ve([String,Object,Function]),default:fe.message},onClose:{type:ve(Function),default:fe.onClose},showClose:{type:Boolean,default:fe.showClose},type:{type:String,values:Uf,default:fe.type},plain:{type:Boolean,default:fe.plain},offset:{type:Number,default:fe.offset},placement:{type:String,values:$f,default:fe.placement},zIndex:{type:Number,default:fe.zIndex},grouping:{type:Boolean,default:fe.grouping},repeatNum:{type:Number,default:fe.repeatNum}}),Pv={destroy:()=>!0},qe=z.shallowReactive({}),zv=n=>(qe[n]||(qe[n]=z.shallowReactive([])),qe[n]),kv=(n,t)=>{const e=qe[t]||[],r=e.findIndex(o=>o.id===n),i=e[r];let s;return r>0&&(s=e[r-1]),{current:i,prev:s}},Nv=(n,t)=>{const{prev:e}=kv(n,t);return e?e.vm.exposed.bottom.value:0},Lv=(n,t,e)=>(qe[e]||[]).findIndex(s=>s.id===n)>0?16:t,Uv=z.defineComponent({name:"ElMessage"}),$v=z.defineComponent(Pe(kt({},Uv),{props:Ov,emits:Pv,setup(n,{expose:t,emit:e}){const r=n,{Close:i}=Av,s=z.ref(!1),{ns:o,zIndex:a}=sv("message"),{currentZIndex:u,nextZIndex:c}=a,l=z.ref(),f=z.ref(!1),h=z.ref(0);let x;const p=z.computed(()=>r.type?r.type==="error"?"danger":r.type:"info"),y=z.computed(()=>{const q=r.type;return{[o.bm("icon",q)]:q&&ml[q]}}),g=z.computed(()=>r.icon||ml[r.type]||""),E=z.computed(()=>r.placement||Un),A=z.computed(()=>Nv(r.id,E.value)),b=z.computed(()=>Lv(r.id,r.offset,E.value)+A.value),_=z.computed(()=>h.value+b.value),S=z.computed(()=>E.value.includes("left")?o.is("left"):E.value.includes("right")?o.is("right"):o.is("center")),I=z.computed(()=>E.value.startsWith("top")?"top":"bottom"),T=z.computed(()=>({[I.value]:`${b.value}px`,zIndex:u.value}));function P(){r.duration!==0&&({stop:x}=Og(()=>{R()},r.duration))}function X(){x==null||x()}function R(){f.value=!1,z.nextTick(()=>{var q;s.value||((q=r.onClose)==null||q.call(r),e("destroy"))})}function O(q){Cv(q)===F0.esc&&R()}return z.onMounted(()=>{P(),c(),f.value=!0}),z.watch(()=>r.repeatNum,()=>{X(),P()}),Pg(document,"keydown",O),Ug(l,()=>{h.value=l.value.getBoundingClientRect().height}),t({visible:f,bottom:_,close:R}),(q,j)=>(z.openBlock(),z.createBlock(z.Transition,{name:z.unref(o).b("fade"),onBeforeEnter:K=>s.value=!0,onBeforeLeave:q.onClose,onAfterLeave:K=>q.$emit("destroy"),persisted:""},{default:z.withCtx(()=>[z.withDirectives(z.createElementVNode("div",{id:q.id,ref_key:"messageRef",ref:l,class:z.normalizeClass([z.unref(o).b(),{[z.unref(o).m(q.type)]:q.type},z.unref(o).is("closable",q.showClose),z.unref(o).is("plain",q.plain),z.unref(o).is("bottom",z.unref(I)==="bottom"),z.unref(S),q.customClass]),style:z.normalizeStyle(z.unref(T)),role:"alert",onMouseenter:X,onMouseleave:P},[q.repeatNum>1?(z.openBlock(),z.createBlock(z.unref(Tv),{key:0,value:q.repeatNum,type:z.unref(p),class:z.normalizeClass(z.unref(o).e("badge"))},null,8,["value","type","class"])):z.createCommentVNode("v-if",!0),z.unref(g)?(z.openBlock(),z.createBlock(z.unref(pl),{key:1,class:z.normalizeClass([z.unref(o).e("icon"),z.unref(y)])},{default:z.withCtx(()=>[(z.openBlock(),z.createBlock(z.resolveDynamicComponent(z.unref(g))))]),_:1},8,["class"])):z.createCommentVNode("v-if",!0),z.renderSlot(q.$slots,"default",{},()=>[q.dangerouslyUseHTMLString?(z.openBlock(),z.createElementBlock(z.Fragment,{key:1},[z.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),z.createElementVNode("p",{class:z.normalizeClass(z.unref(o).e("content")),innerHTML:q.message},null,10,["innerHTML"])],2112)):(z.openBlock(),z.createElementBlock("p",{key:0,class:z.normalizeClass(z.unref(o).e("content"))},z.toDisplayString(q.message),3))]),q.showClose?(z.openBlock(),z.createBlock(z.unref(pl),{key:2,class:z.normalizeClass(z.unref(o).e("closeBtn")),onClick:z.withModifiers(R,["stop"])},{default:z.withCtx(()=>[z.createVNode(z.unref(i))]),_:1},8,["class","onClick"])):z.createCommentVNode("v-if",!0)],46,["id"]),[[z.vShow,f.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}}));var Hv=nc($v,[["__file","message.vue"]]);let qv=1;const Wv=n=>{if(!n.appendTo)n.appendTo=document.body;else if(Kn(n.appendTo)){let e=document.querySelector(n.appendTo);Fg(e)||(Ni("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),e=document.body),n.appendTo=e}},Vv=n=>{!n.placement&&Kn(de.placement)&&de.placement&&(n.placement=de.placement),n.placement||(n.placement=Un),$f.includes(n.placement)||(Ni("ElMessage",`Invalid placement: ${n.placement}. Falling back to '${Un}'.`),n.placement=Un)},Hf=n=>{const t=!n||Kn(n)||z.isVNode(n)||qs(n)?{message:n}:n,e=kt(kt({},fe),t);return Wv(e),Vv(e),Ua(de.grouping)&&!e.grouping&&(e.grouping=de.grouping),tn(de.duration)&&e.duration===3e3&&(e.duration=de.duration),tn(de.offset)&&e.offset===16&&(e.offset=de.offset),Ua(de.showClose)&&!e.showClose&&(e.showClose=de.showClose),Ua(de.plain)&&!e.plain&&(e.plain=de.plain),e},jv=n=>{const t=n.props.placement||Un,e=qe[t],r=e.indexOf(n);if(r===-1)return;e.splice(r,1);const{handler:i}=n;i.close()},Gv=(r,e)=>{var i=r,{appendTo:n}=i,t=wc(i,["appendTo"]);const s=`message_${qv++}`,o=t.onClose,a=document.createElement("div"),u=Pe(kt({},t),{id:s,onClose:()=>{o==null||o(),jv(h)},onDestroy:()=>{z.render(null,a)}}),c=z.createVNode(Hv,u,qs(u.message)||z.isVNode(u.message)?{default:qs(u.message)?u.message:()=>u.message}:null);c.appContext=e||en._context,z.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},en=(n={},t)=>{if(!on)return{close:()=>{}};const e=Hf(n),r=zv(e.placement||Un);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(tn(de.max)&&r.length>=de.max)return{close:()=>{}};const i=Gv(e,t);return r.push(i),i.handler};Uf.forEach(n=>{en[n]=(t={},e)=>{const r=Hf(t);return en(Pe(kt({},r),{type:n}),e)}});function Xv(n){for(const t in qe)if(C0(qe,t)){const e=[...qe[t]];for(const r of e)(!n||n===r.props.type)&&r.handler.close()}}function Yv(n){if(!qe[n])return;[...qe[n]].forEach(e=>e.handler.close())}en.closeAll=Xv;en.closeAllByPlacement=Yv;en._context=null;const Mr=cv(en,"$message"),qf="0123456789abcdeffedcba9876543210",Wf="4b0de988570c3a0f",Kv=window.ENCRYPT;let $n=Kv&&new Cf;function Vf(n=16,t="0123456789abcdefghijklmnopqrstuvwxyz"){let e="",r=t.length;for(;n>0;)e+=t[Math.floor(Math.random()*r)],n--;return e}function jf(){return At(this,null,function*(){return $n||($n=new Cf),new Promise((n,t)=>{$n.armEnum().then(e=>{n(+e)}).catch(e=>{Mr({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),t(e)})})})}N0.throttle(()=>At(exports,null,function*(){const n=yield jf(),t={};if(typeof n!="number"||n<=0)Mr({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),t.resetToken();else{const e=yield Zv();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 Jv(n=0){return At(this,null,function*(){return $n?new Promise((t,e)=>{$n.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 Zv(){return At(this,null,function*(){if(!$n)return Mr({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"});const n=yield jf();let t=[];for(let e=0;e<n;e++){const r=yield Jv(e);t.push(r)}return t})}Vf(16);Vf(16);const Gf=window.meta.app.inspect?jn.constants.CBC:jn.constants.ECB;gg.generateKeyPair();function yl(n,t,e={}){const r=Xf(Wf),i=e.mode||Gf;e=i===jn.constants.ECB?kt({mode:i,inputEncoding:"utf8",outputEncoding:"hex"},e):kt({iv:qf,mode:i,inputEncoding:"utf8",outputEncoding:"hex"},e);let s="";try{s=jn.encrypt(n,r,e)}catch(o){console.log("err: ",o)}return s}function gl(n,t,e={}){const r=Xf(Wf),i=e.mode||Gf;return e=i===jn.constants.ECB?kt({mode:i,inputEncoding:"hex",outputEncoding:"utf8"},e):kt({iv:qf,mode:i,inputEncoding:"hex",outputEncoding:"utf8"},e),jn.decrypt(n,r,e)}function Xf(n){return[...n].map(t=>t.charCodeAt().toString(16)).join("")}const ic={getLocal:n=>{try{let t=window.localStorage.getItem(n);return t=t!==null?gl(t):t,JSON.parse(t)}catch(t){console.error(t)}},setLocal:(n,t)=>{try{let e=JSON.stringify(t);e=e!==null?yl(e):e,window.localStorage.setItem(n,e)}catch(e){console.error(e)}},eachLocal:n=>{if(!n||pu(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?gl(t):t,JSON.parse(t)}catch(t){console.error(t)}},setSession:(n,t)=>{try{let e=JSON.stringify(t);e=e!==null?yl(e):e,window.sessionStorage.setItem(n,e)}catch(e){console.error(e)}},eachSession:n=>{if(!n||pu(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)}},Qv="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='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",vl="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",t2="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";/**
|
|
39
|
+
**/process.env.NODE_ENV!=="production"&&Object.freeze({});process.env.NODE_ENV!=="production"&&Object.freeze([]);const pg=Object.prototype.hasOwnProperty,E0=(n,t)=>pg.call(n,t),xg=Array.isArray,ks=n=>typeof n=="function",Xn=n=>typeof n=="string",mf=n=>n!==null&&typeof n=="object",Ia=n=>typeof n=="boolean",Qr=n=>typeof n=="number",mg=n=>typeof Element=="undefined"?!1:n instanceof Element,yg=n=>Xn(n)?!Number.isNaN(Number(n)):!1;var Wu;const sn=typeof window!="undefined",gg=n=>typeof n=="string",vg=()=>{};sn&&((Wu=window==null?void 0:window.navigator)!=null&&Wu.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function J0(n){return typeof n=="function"?n():P.unref(n)}function wg(n){return n}function Z0(n){return P.getCurrentScope()?(P.onScopeDispose(n),!0):!1}function Eg(n,t=!0){P.getCurrentInstance()?P.onMounted(n):t?n():P.nextTick(n)}function bg(n,t,e={}){const{immediate:r=!0}=e,i=P.ref(!1);let s=null;function o(){s&&(clearTimeout(s),s=null)}function a(){i.value=!1,o()}function u(...c){o(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=null,n(...c)},J0(t))}return r&&(i.value=!0,sn&&u()),Z0(a),{isPending:P.readonly(i),start:u,stop:a}}function yf(n){var t;const e=J0(n);return(t=e==null?void 0:e.$el)!=null?t:e}const gf=sn?window:void 0;function Ag(...n){let t,e,r,i;if(gg(n[0])||Array.isArray(n[0])?([e,r,i]=n,t=gf):[t,e,r,i]=n,!t)return vg;Array.isArray(e)||(e=[e]),Array.isArray(r)||(r=[r]);const s=[],o=()=>{s.forEach(l=>l()),s.length=0},a=(l,f,h,p)=>(l.addEventListener(f,h,p),()=>l.removeEventListener(f,h,p)),u=P.watch(()=>[yf(t),J0(i)],([l,f])=>{o(),l&&s.push(...e.flatMap(h=>r.map(p=>a(l,h,p,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),o()};return Z0(c),c}function _g(n,t=!1){const e=P.ref(),r=()=>e.value=!!n();return r(),Eg(r,t),e}const Vu=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ju="__vueuse_ssr_handlers__";Vu[ju]=Vu[ju]||{};var Gu=Object.getOwnPropertySymbols,Cg=Object.prototype.hasOwnProperty,Sg=Object.prototype.propertyIsEnumerable,Bg=(n,t)=>{var e={};for(var r in n)Cg.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&Gu)for(var r of Gu(n))t.indexOf(r)<0&&Sg.call(n,r)&&(e[r]=n[r]);return e};function Fg(n,t,e={}){const r=e,{window:i=gf}=r,s=Bg(r,["window"]);let o;const a=_g(()=>i&&"ResizeObserver"in i),u=()=>{o&&(o.disconnect(),o=void 0)},c=P.watch(()=>yf(n),f=>{u(),a.value&&i&&f&&(o=new ResizeObserver(t),o.observe(f,s))},{immediate:!0,flush:"post"}),l=()=>{u(),c()};return Z0(l),{isSupported:a,stop:l}}var Xu;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(Xu||(Xu={}));var Dg=Object.defineProperty,Yu=Object.getOwnPropertySymbols,Mg=Object.prototype.hasOwnProperty,Tg=Object.prototype.propertyIsEnumerable,Ku=(n,t,e)=>t in n?Dg(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Rg=(n,t)=>{for(var e in t||(t={}))Mg.call(t,e)&&Ku(n,e,t[e]);if(Yu)for(var e of Yu(t))Tg.call(t,e)&&Ku(n,e,t[e]);return n};const Ig={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]};Rg({linear:wg},Ig);class Og extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Pi(n,t){if(typeof process!="undefined"&&process.env.NODE_ENV!=="production"){const e=Xn(n)?new Og(`[${n}] ${t}`):n;console.warn(e)}}const Ju={current:0},Zu=P.ref(0),vf=2e3,Qu=Symbol("elZIndexContextKey"),wf=Symbol("zIndexContextKey"),Pg=n=>{const t=P.getCurrentInstance()?P.inject(Qu,Ju):Ju,e=n||(P.getCurrentInstance()?P.inject(wf,void 0):void 0),r=P.computed(()=>{const o=P.unref(e);return Qr(o)?o:vf}),i=P.computed(()=>r.value+Zu.value),s=()=>(t.current++,Zu.value=t.current,i.value);return!sn&&!P.inject(Qu)&&Pi("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: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
41
|
* @license
|
|
42
|
-
* Copyright 2010-
|
|
42
|
+
* Copyright 2010-2025 Three.js Authors
|
|
43
43
|
* SPDX-License-Identifier: MIT
|
|
44
|
-
*/const Yf="184",D0=0,Kf=1,wl=1,bl=100,El=204,Al=205,_l=3,Jf=0,Zf=300,Sl=1e3,os=1001,Cl=1002,Bl=1003,e2=1006,r2=1008,Qf=1009,td=1015,n2=1023,i2=1028,ed=0,rd="",$e="srgb",Fl="srgb-linear",Dl="linear",$a="srgb",En=7680,Ml=519,Il=35044,Yr=2e3,Vs=2001;function s2(n){for(let t=n.length-1;t>=0;--t)if(n[t]>=65535)return!0;return!1}function Tl(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}const Rl={};function nd(n){const t=n[0];if(typeof t=="string"&&t.startsWith("TSL:")){const e=n[1];e&&e.isStackTrace?n[0]+=" "+e.getLocation():n[1]='Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.'}return n}function xe(...n){n=nd(n);const t="THREE."+n.shift();{const e=n[0];e&&e.isStackTrace?console.warn(e.getError(t)):console.warn(t,...n)}}function Gr(...n){n=nd(n);const t="THREE."+n.shift();{const e=n[0];e&&e.isStackTrace?console.error(e.getError(t)):console.error(t,...n)}}function Ol(...n){const t=n.join(" ");t in Rl||(Rl[t]=!0,xe(...n))}class Ui{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 le=["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"],Ha=Math.PI/180,M0=180/Math.PI;function $i(){const n=Math.random()*4294967295|0,t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return(le[n&255]+le[n>>8&255]+le[n>>16&255]+le[n>>24&255]+"-"+le[t&255]+le[t>>8&255]+"-"+le[t>>16&15|64]+le[t>>24&255]+"-"+le[e&63|128]+le[e>>8&255]+"-"+le[e>>16&255]+le[e>>24&255]+le[r&255]+le[r>>8&255]+le[r>>16&255]+le[r>>24&255]).toLowerCase()}function Ft(n,t,e){return Math.max(t,Math.min(e,n))}function o2(n,t){return(n%t+t)%t}function qa(n,t,e){return(1-e)*n+e*t}function li(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 ye(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.")}}const fc=class fc{constructor(t=0,e=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=Ft(this.x,t.x,e.x),this.y=Ft(this.y,t.y,e.y),this}clampScalar(t,e){return this.x=Ft(this.x,t,e),this.y=Ft(this.y,t,e),this}clampLength(t,e){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Ft(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(Ft(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}};fc.prototype.isVector2=!0;let ee=fc;class Jn{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],h=s[o+0],x=s[o+1],p=s[o+2],y=s[o+3];if(f!==y||u!==h||c!==x||l!==p){let g=u*h+c*x+l*p+f*y;g<0&&(h=-h,x=-x,p=-p,y=-y,g=-g);let E=1-a;if(g<.9995){const A=Math.acos(g),b=Math.sin(A);E=Math.sin(E*A)/b,a=Math.sin(a*A)/b,u=u*E+h*a,c=c*E+x*a,l=l*E+p*a,f=f*E+y*a}else{u=u*E+h*a,c=c*E+x*a,l=l*E+p*a,f=f*E+y*a;const A=1/Math.sqrt(u*u+c*c+l*l+f*f);u*=A,c*=A,l*=A,f*=A}}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],x=s[o+2],p=s[o+3];return t[e]=a*p+l*f+u*x-c*h,t[e+1]=u*p+l*h+c*f-a*x,t[e+2]=c*p+l*x+a*h-u*f,t[e+3]=l*p-a*f-u*h-c*x,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),x=u(i/2),p=u(s/2);switch(o){case"XYZ":this._x=h*l*f+c*x*p,this._y=c*x*f-h*l*p,this._z=c*l*p+h*x*f,this._w=c*l*f-h*x*p;break;case"YXZ":this._x=h*l*f+c*x*p,this._y=c*x*f-h*l*p,this._z=c*l*p-h*x*f,this._w=c*l*f+h*x*p;break;case"ZXY":this._x=h*l*f-c*x*p,this._y=c*x*f+h*l*p,this._z=c*l*p+h*x*f,this._w=c*l*f-h*x*p;break;case"ZYX":this._x=h*l*f-c*x*p,this._y=c*x*f+h*l*p,this._z=c*l*p-h*x*f,this._w=c*l*f+h*x*p;break;case"YZX":this._x=h*l*f+c*x*p,this._y=c*x*f+h*l*p,this._z=c*l*p-h*x*f,this._w=c*l*f-h*x*p;break;case"XZY":this._x=h*l*f-c*x*p,this._y=c*x*f-h*l*p,this._z=c*l*p+h*x*f,this._w=c*l*f+h*x*p;break;default:xe("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 x=.5/Math.sqrt(h+1);this._w=.25/x,this._x=(l-u)*x,this._y=(s-c)*x,this._z=(o-i)*x}else if(r>a&&r>f){const x=2*Math.sqrt(1+r-a-f);this._w=(l-u)/x,this._x=.25*x,this._y=(i+o)/x,this._z=(s+c)/x}else if(a>f){const x=2*Math.sqrt(1+a-r-f);this._w=(s-c)/x,this._x=(i+o)/x,this._y=.25*x,this._z=(u+l)/x}else{const x=2*Math.sqrt(1+f-r-a);this._w=(o-i)/x,this._x=(s+c)/x,this._y=(u+l)/x,this._z=.25*x}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(Ft(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){let r=t._x,i=t._y,s=t._z,o=t._w,a=this.dot(t);a<0&&(r=-r,i=-i,s=-s,o=-o,a=-a);let u=1-e;if(a<.9995){const c=Math.acos(a),l=Math.sin(c);u=Math.sin(u*c)/l,e=Math.sin(e*c)/l,this._x=this._x*u+r*e,this._y=this._y*u+i*e,this._z=this._z*u+s*e,this._w=this._w*u+o*e,this._onChangeCallback()}else this._x=this._x*u+r*e,this._y=this._y*u+i*e,this._z=this._z*u+s*e,this._w=this._w*u+o*e,this.normalize();return 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}}const dc=class dc{constructor(t=0,e=0,r=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(Pl.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(Pl.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=Ft(this.x,t.x,e.x),this.y=Ft(this.y,t.y,e.y),this.z=Ft(this.z,t.z,e.z),this}clampScalar(t,e){return this.x=Ft(this.x,t,e),this.y=Ft(this.y,t,e),this.z=Ft(this.z,t,e),this}clampLength(t,e){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Ft(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 Wa.copy(this).projectOnVector(t),this.sub(Wa)}reflect(t){return this.sub(Wa.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(Ft(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}};dc.prototype.isVector3=!0;let st=dc;const Wa=new st,Pl=new Jn,pc=class pc{constructor(t,e,r,i,s,o,a,u,c){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],x=r[5],p=r[8],y=i[0],g=i[3],E=i[6],A=i[1],b=i[4],_=i[7],S=i[2],I=i[5],T=i[8];return s[0]=o*y+a*A+u*S,s[3]=o*g+a*b+u*I,s[6]=o*E+a*_+u*T,s[1]=c*y+l*A+f*S,s[4]=c*g+l*b+f*I,s[7]=c*E+l*_+f*T,s[2]=h*y+x*A+p*S,s[5]=h*g+x*b+p*I,s[8]=h*E+x*_+p*T,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,x=c*s-o*u,p=e*f+r*h+i*x;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);const y=1/p;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]=x*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(Va.makeScale(t,e)),this}rotate(t){return this.premultiply(Va.makeRotation(-t)),this}translate(t,e){return this.premultiply(Va.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)}};pc.prototype.isMatrix3=!0;let We=pc;const Va=new We,zl=new We().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),kl=new We().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function a2(){const n={enabled:!0,workingColorSpace:Fl,spaces:{},convert:function(i,s,o){return this.enabled===!1||s===o||!s||!o||(this.spaces[s].transfer===$a&&(i.r=mr(i.r),i.g=mr(i.g),i.b=mr(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===$a&&(i.r=Hn(i.r),i.g=Hn(i.g),i.b=Hn(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===rd?Dl: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 Ol("ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."),n.workingToColorSpace(i,s)},toWorkingColorSpace:function(i,s){return Ol("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({[Fl]:{primaries:t,whitePoint:r,transfer:Dl,toXYZ:zl,fromXYZ:kl,luminanceCoefficients:e,workingColorSpaceConfig:{unpackColorSpace:$e},outputColorSpaceConfig:{drawingBufferColorSpace:$e}},[$e]:{primaries:t,whitePoint:r,transfer:$a,toXYZ:zl,fromXYZ:kl,luminanceCoefficients:e,outputColorSpaceConfig:{drawingBufferColorSpace:$e}}}),n}const ze=a2();function mr(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function Hn(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let An;class c2{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{An===void 0&&(An=Tl("canvas")),An.width=t.width,An.height=t.height;const i=An.getContext("2d");t instanceof ImageData?i.putImageData(t,0,0):i.drawImage(t,0,0,t.width,t.height),r=An}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=Tl("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]=mr(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(mr(e[r]/255)*255):e[r]=mr(e[r]);return{data:e,width:t.width,height:t.height}}else return xe("ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),t}}let u2=0;class l2{constructor(t=null){this.isSource=!0,Object.defineProperty(this,"id",{value:u2++}),this.uuid=$i(),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):typeof VideoFrame!="undefined"&&e instanceof VideoFrame?t.set(e.displayWidth,e.displayHeight,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(ja(i[o].image)):s.push(ja(i[o]))}else s=ja(i);r.url=s}return e||(t.images[this.uuid]=r),r}}function ja(n){return typeof HTMLImageElement!="undefined"&&n instanceof HTMLImageElement||typeof HTMLCanvasElement!="undefined"&&n instanceof HTMLCanvasElement||typeof ImageBitmap!="undefined"&&n instanceof ImageBitmap?c2.getDataURL(n):n.data?{data:Array.from(n.data),width:n.width,height:n.height,type:n.data.constructor.name}:(xe("Texture: Unable to serialize Texture."),{})}let h2=0;const Ga=new st;class Ir extends Ui{constructor(t=Ir.DEFAULT_IMAGE,e=Ir.DEFAULT_MAPPING,r=os,i=os,s=e2,o=r2,a=n2,u=Qf,c=Ir.DEFAULT_ANISOTROPY,l=rd){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:h2++}),this.uuid=$i(),this.name="",this.source=new l2(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 ee(0,0),this.repeat=new ee(1,1),this.center=new ee(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new We,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,this.normalized=!1}get width(){return this.source.getSize(Ga).x}get height(){return this.source.getSize(Ga).y}get depth(){return this.source.getSize(Ga).z}get image(){return this.source.data}set image(t){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.normalized=t.normalized,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){xe(`Texture.setValues(): parameter '${e}' has value of undefined.`);continue}const i=this[e];if(i===void 0){xe(`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,normalized:this.normalized,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!==Zf)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case Sl:t.x=t.x-Math.floor(t.x);break;case os:t.x=t.x<0?0:1;break;case Cl: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 Sl:t.y=t.y-Math.floor(t.y);break;case os:t.y=t.y<0?0:1;break;case Cl: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++}}Ir.DEFAULT_IMAGE=null;Ir.DEFAULT_MAPPING=Zf;Ir.DEFAULT_ANISOTROPY=1;const xc=class xc{constructor(t=0,e=0,r=0,i=1){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],x=u[5],p=u[9],y=u[2],g=u[6],E=u[10];if(Math.abs(l-h)<.01&&Math.abs(f-y)<.01&&Math.abs(p-g)<.01){if(Math.abs(l+h)<.1&&Math.abs(f+y)<.1&&Math.abs(p+g)<.1&&Math.abs(c+x+E-3)<.1)return this.set(1,0,0,0),this;e=Math.PI;const b=(c+1)/2,_=(x+1)/2,S=(E+1)/2,I=(l+h)/4,T=(f+y)/4,P=(p+g)/4;return b>_&&b>S?b<.01?(r=0,i=.707106781,s=.707106781):(r=Math.sqrt(b),i=I/r,s=T/r):_>S?_<.01?(r=.707106781,i=0,s=.707106781):(i=Math.sqrt(_),r=I/i,s=P/i):S<.01?(r=.707106781,i=.707106781,s=0):(s=Math.sqrt(S),r=T/s,i=P/s),this.set(r,i,s,e),this}let A=Math.sqrt((g-p)*(g-p)+(f-y)*(f-y)+(h-l)*(h-l));return Math.abs(A)<.001&&(A=1),this.x=(g-p)/A,this.y=(f-y)/A,this.z=(h-l)/A,this.w=Math.acos((c+x+E-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=Ft(this.x,t.x,e.x),this.y=Ft(this.y,t.y,e.y),this.z=Ft(this.z,t.z,e.z),this.w=Ft(this.w,t.w,e.w),this}clampScalar(t,e){return this.x=Ft(this.x,t,e),this.y=Ft(this.y,t,e),this.z=Ft(this.z,t,e),this.w=Ft(this.w,t,e),this}clampLength(t,e){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Ft(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}};xc.prototype.isVector4=!0;let Gn=xc;const Xs=class Xs{constructor(t,e,r,i,s,o,a,u,c,l,f,h,x,p,y,g){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,x,p,y,g)}set(t,e,r,i,s,o,a,u,c,l,f,h,x,p,y,g){const E=this.elements;return E[0]=t,E[4]=e,E[8]=r,E[12]=i,E[1]=s,E[5]=o,E[9]=a,E[13]=u,E[2]=c,E[6]=l,E[10]=f,E[14]=h,E[3]=x,E[7]=p,E[11]=y,E[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 Xs().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 this.determinant()===0?(t.set(1,0,0),e.set(0,1,0),r.set(0,0,1),this):(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){if(t.determinant()===0)return this.identity();const e=this.elements,r=t.elements,i=1/_n.setFromMatrixColumn(t,0).length(),s=1/_n.setFromMatrixColumn(t,1).length(),o=1/_n.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,x=o*f,p=a*l,y=a*f;e[0]=u*l,e[4]=-u*f,e[8]=c,e[1]=x+p*c,e[5]=h-y*c,e[9]=-a*u,e[2]=y-h*c,e[6]=p+x*c,e[10]=o*u}else if(t.order==="YXZ"){const h=u*l,x=u*f,p=c*l,y=c*f;e[0]=h+y*a,e[4]=p*a-x,e[8]=o*c,e[1]=o*f,e[5]=o*l,e[9]=-a,e[2]=x*a-p,e[6]=y+h*a,e[10]=o*u}else if(t.order==="ZXY"){const h=u*l,x=u*f,p=c*l,y=c*f;e[0]=h-y*a,e[4]=-o*f,e[8]=p+x*a,e[1]=x+p*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,x=o*f,p=a*l,y=a*f;e[0]=u*l,e[4]=p*c-x,e[8]=h*c+y,e[1]=u*f,e[5]=y*c+h,e[9]=x*c-p,e[2]=-c,e[6]=a*u,e[10]=o*u}else if(t.order==="YZX"){const h=o*u,x=o*c,p=a*u,y=a*c;e[0]=u*l,e[4]=y-h*f,e[8]=p*f+x,e[1]=f,e[5]=o*l,e[9]=-a*l,e[2]=-c*l,e[6]=x*f+p,e[10]=h-y*f}else if(t.order==="XZY"){const h=o*u,x=o*c,p=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]=x*f-p,e[2]=p*f-x,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(f2,t,d2)}lookAt(t,e,r){const i=this.elements;return _e.subVectors(t,e),_e.lengthSq()===0&&(_e.z=1),_e.normalize(),br.crossVectors(r,_e),br.lengthSq()===0&&(Math.abs(r.z)===1?_e.x+=1e-4:_e.z+=1e-4,_e.normalize(),br.crossVectors(r,_e)),br.normalize(),as.crossVectors(_e,br),i[0]=br.x,i[4]=as.x,i[8]=_e.x,i[1]=br.y,i[5]=as.y,i[9]=_e.y,i[2]=br.z,i[6]=as.z,i[10]=_e.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],x=r[13],p=r[2],y=r[6],g=r[10],E=r[14],A=r[3],b=r[7],_=r[11],S=r[15],I=i[0],T=i[4],P=i[8],X=i[12],R=i[1],O=i[5],q=i[9],j=i[13],K=i[2],V=i[6],J=i[10],ot=i[14],rt=i[3],ut=i[7],at=i[11],U=i[15];return s[0]=o*I+a*R+u*K+c*rt,s[4]=o*T+a*O+u*V+c*ut,s[8]=o*P+a*q+u*J+c*at,s[12]=o*X+a*j+u*ot+c*U,s[1]=l*I+f*R+h*K+x*rt,s[5]=l*T+f*O+h*V+x*ut,s[9]=l*P+f*q+h*J+x*at,s[13]=l*X+f*j+h*ot+x*U,s[2]=p*I+y*R+g*K+E*rt,s[6]=p*T+y*O+g*V+E*ut,s[10]=p*P+y*q+g*J+E*at,s[14]=p*X+y*j+g*ot+E*U,s[3]=A*I+b*R+_*K+S*rt,s[7]=A*T+b*O+_*V+S*ut,s[11]=A*P+b*q+_*J+S*at,s[15]=A*X+b*j+_*ot+S*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],x=t[14],p=t[3],y=t[7],g=t[11],E=t[15],A=u*x-c*h,b=a*x-c*f,_=a*h-u*f,S=o*x-c*l,I=o*h-u*l,T=o*f-a*l;return e*(y*A-g*b+E*_)-r*(p*A-g*S+E*I)+i*(p*b-y*S+E*T)-s*(p*_-y*I+g*T)}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],x=t[11],p=t[12],y=t[13],g=t[14],E=t[15],A=e*a-r*o,b=e*u-i*o,_=e*c-s*o,S=r*u-i*a,I=r*c-s*a,T=i*c-s*u,P=l*y-f*p,X=l*g-h*p,R=l*E-x*p,O=f*g-h*y,q=f*E-x*y,j=h*E-x*g,K=A*j-b*q+_*O+S*R-I*X+T*P;if(K===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const V=1/K;return t[0]=(a*j-u*q+c*O)*V,t[1]=(i*q-r*j-s*O)*V,t[2]=(y*T-g*I+E*S)*V,t[3]=(h*I-f*T-x*S)*V,t[4]=(u*R-o*j-c*X)*V,t[5]=(e*j-i*R+s*X)*V,t[6]=(g*_-p*T-E*b)*V,t[7]=(l*T-h*_+x*b)*V,t[8]=(o*q-a*R+c*P)*V,t[9]=(r*R-e*q-s*P)*V,t[10]=(p*I-y*_+E*A)*V,t[11]=(f*_-l*I-x*A)*V,t[12]=(a*X-o*O-u*P)*V,t[13]=(e*O-r*X+i*P)*V,t[14]=(y*b-p*S-g*A)*V,t[15]=(l*S-f*b+h*A)*V,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,x=s*l,p=s*f,y=o*l,g=o*f,E=a*f,A=u*c,b=u*l,_=u*f,S=r.x,I=r.y,T=r.z;return i[0]=(1-(y+E))*S,i[1]=(x+_)*S,i[2]=(p-b)*S,i[3]=0,i[4]=(x-_)*I,i[5]=(1-(h+E))*I,i[6]=(g+A)*I,i[7]=0,i[8]=(p+b)*T,i[9]=(g-A)*T,i[10]=(1-(h+y))*T,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;t.x=i[12],t.y=i[13],t.z=i[14];const s=this.determinant();if(s===0)return r.set(1,1,1),e.identity(),this;let o=_n.set(i[0],i[1],i[2]).length();const a=_n.set(i[4],i[5],i[6]).length(),u=_n.set(i[8],i[9],i[10]).length();s<0&&(o=-o),ke.copy(this);const c=1/o,l=1/a,f=1/u;return ke.elements[0]*=c,ke.elements[1]*=c,ke.elements[2]*=c,ke.elements[4]*=l,ke.elements[5]*=l,ke.elements[6]*=l,ke.elements[8]*=f,ke.elements[9]*=f,ke.elements[10]*=f,e.setFromRotationMatrix(ke),r.x=o,r.y=a,r.z=u,this}makePerspective(t,e,r,i,s,o,a=Yr,u=!1){const c=this.elements,l=2*s/(e-t),f=2*s/(r-i),h=(e+t)/(e-t),x=(r+i)/(r-i);let p,y;if(u)p=s/(o-s),y=o*s/(o-s);else if(a===Yr)p=-(o+s)/(o-s),y=-2*o*s/(o-s);else if(a===Vs)p=-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]=x,c[13]=0,c[2]=0,c[6]=0,c[10]=p,c[14]=y,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(t,e,r,i,s,o,a=Yr,u=!1){const c=this.elements,l=2/(e-t),f=2/(r-i),h=-(e+t)/(e-t),x=-(r+i)/(r-i);let p,y;if(u)p=1/(o-s),y=o/(o-s);else if(a===Yr)p=-2/(o-s),y=-(o+s)/(o-s);else if(a===Vs)p=-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]=x,c[2]=0,c[6]=0,c[10]=p,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}};Xs.prototype.isMatrix4=!0;let Jt=Xs;const _n=new st,ke=new Jt,f2=new st(0,0,0),d2=new st(1,1,1),br=new st,as=new st,_e=new st,Nl=new Jt,Ll=new Jn;class yr{constructor(t=0,e=0,r=0,i=yr.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],x=i[10];switch(e){case"XYZ":this._y=Math.asin(Ft(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-l,x),this._z=Math.atan2(-o,s)):(this._x=Math.atan2(h,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Ft(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(a,x),this._z=Math.atan2(u,c)):(this._y=Math.atan2(-f,s),this._z=0);break;case"ZXY":this._x=Math.asin(Ft(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-f,x),this._z=Math.atan2(-o,c)):(this._y=0,this._z=Math.atan2(u,s));break;case"ZYX":this._y=Math.asin(-Ft(f,-1,1)),Math.abs(f)<.9999999?(this._x=Math.atan2(h,x),this._z=Math.atan2(u,s)):(this._x=0,this._z=Math.atan2(-o,c));break;case"YZX":this._z=Math.asin(Ft(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,x));break;case"XZY":this._z=Math.asin(-Ft(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(h,c),this._y=Math.atan2(a,s)):(this._x=Math.atan2(-l,x),this._y=0);break;default:xe("Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,r===!0&&this._onChangeCallback(),this}setFromQuaternion(t,e,r){return Nl.makeRotationFromQuaternion(t),this.setFromRotationMatrix(Nl,e,r)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return Ll.setFromEuler(this),this.setFromQuaternion(Ll,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}}yr.DEFAULT_ORDER="XYZ";class p2{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 x2=0;const Ul=new st,Sn=new Jn,cr=new Jt,cs=new st,hi=new st,m2=new st,y2=new Jn,$l=new st(1,0,0),Hl=new st(0,1,0),ql=new st(0,0,1),Wl={type:"added"},g2={type:"removed"},Cn={type:"childadded",child:null},Xa={type:"childremoved",child:null};class re extends Ui{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:x2++}),this.uuid=$i(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=re.DEFAULT_UP.clone();const t=new st,e=new yr,r=new Jn,i=new st(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 Jt},normalMatrix:{value:new We}}),this.matrix=new Jt,this.matrixWorld=new Jt,this.matrixAutoUpdate=re.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=re.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new p2,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.static=!1,this.userData={},this.pivot=null}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 Sn.setFromAxisAngle(t,e),this.quaternion.multiply(Sn),this}rotateOnWorldAxis(t,e){return Sn.setFromAxisAngle(t,e),this.quaternion.premultiply(Sn),this}rotateX(t){return this.rotateOnAxis($l,t)}rotateY(t){return this.rotateOnAxis(Hl,t)}rotateZ(t){return this.rotateOnAxis(ql,t)}translateOnAxis(t,e){return Ul.copy(t).applyQuaternion(this.quaternion),this.position.add(Ul.multiplyScalar(e)),this}translateX(t){return this.translateOnAxis($l,t)}translateY(t){return this.translateOnAxis(Hl,t)}translateZ(t){return this.translateOnAxis(ql,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?cs.copy(t):cs.set(t,e,r);const i=this.parent;this.updateWorldMatrix(!0,!1),hi.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?cr.lookAt(hi,cs,this.up):cr.lookAt(cs,hi,this.up),this.quaternion.setFromRotationMatrix(cr),i&&(cr.extractRotation(i.matrixWorld),Sn.setFromRotationMatrix(cr),this.quaternion.premultiply(Sn.invert()))}add(t){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return t===this?(Gr("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(Wl),Cn.child=t,this.dispatchEvent(Cn),Cn.child=null):Gr("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(g2),Xa.child=t,this.dispatchEvent(Xa),Xa.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(Wl),Cn.child=t,this.dispatchEvent(Cn),Cn.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(hi,t,m2),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(hi,y2,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);const t=this.pivot;if(t!==null){const e=t.x,r=t.y,i=t.z,s=this.matrix.elements;s[12]+=e-s[0]*e-s[4]*r-s[8]*i,s[13]+=r-s[1]*e-s[5]*r-s[9]*i,s[14]+=i-s[2]*e-s[6]*r-s[10]*i}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),this.static!==!1&&(i.static=this.static),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.pivot!==null&&(i.pivot=this.pivot.toArray()),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.morphTargetDictionary!==void 0&&(i.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(i.morphTargetInfluences=this.morphTargetInfluences.slice()),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=>Pe(kt({},a),{boundingBox:a.boundingBox?a.boundingBox.toJSON():void 0,boundingSphere:a.boundingSphere?a.boundingSphere.toJSON():void 0})),i.instanceInfo=this._instanceInfo.map(a=>kt({},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),x=o(t.animations),p=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),x.length>0&&(r.animations=x),p.length>0&&(r.nodes=p)}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.pivot=t.pivot!==null?t.pivot.clone():null,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.static=t.static,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}}re.DEFAULT_UP=new st(0,1,0);re.DEFAULT_MATRIX_AUTO_UPDATE=!0;re.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const id={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},Er={h:0,s:0,l:0},us={h:0,s:0,l:0};function Ya(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 sr{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=$e){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,ze.colorSpaceToWorking(this,e),this}setRGB(t,e,r,i=ze.workingColorSpace){return this.r=t,this.g=e,this.b=r,ze.colorSpaceToWorking(this,i),this}setHSL(t,e,r,i=ze.workingColorSpace){if(t=o2(t,1),e=Ft(e,0,1),r=Ft(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=Ya(o,s,t+1/3),this.g=Ya(o,s,t),this.b=Ya(o,s,t-1/3)}return ze.colorSpaceToWorking(this,i),this}setStyle(t,e=$e){function r(s){s!==void 0&&parseFloat(s)<1&&xe("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:xe("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);xe("Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,e);return this}setColorName(t,e=$e){const r=id[t.toLowerCase()];return r!==void 0?this.setHex(r,e):xe("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=mr(t.r),this.g=mr(t.g),this.b=mr(t.b),this}copyLinearToSRGB(t){return this.r=Hn(t.r),this.g=Hn(t.g),this.b=Hn(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=$e){return ze.workingToColorSpace(he.copy(this),t),Math.round(Ft(he.r*255,0,255))*65536+Math.round(Ft(he.g*255,0,255))*256+Math.round(Ft(he.b*255,0,255))}getHexString(t=$e){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=ze.workingColorSpace){ze.workingToColorSpace(he.copy(this),e);const r=he.r,i=he.g,s=he.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=ze.workingColorSpace){return ze.workingToColorSpace(he.copy(this),e),t.r=he.r,t.g=he.g,t.b=he.b,t}getStyle(t=$e){ze.workingToColorSpace(he.copy(this),t);const e=he.r,r=he.g,i=he.b;return t!==$e?`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(Er),this.setHSL(Er.h+t,Er.s+e,Er.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(Er),t.getHSL(us);const r=qa(Er.h,us.h,e),i=qa(Er.s,us.s,e),s=qa(Er.l,us.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 he=new sr;sr.NAMES=id;class sd extends re{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 yr,this.environmentIntensity=1,this.environmentRotation=new yr,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}}const Ne=new st,ur=new st,Ka=new st,lr=new st,Bn=new st,Fn=new st,Vl=new st,Ja=new st,Za=new st,Qa=new st,t0=new Gn,e0=new Gn,r0=new Gn;class He{constructor(t=new st,e=new st,r=new st){this.a=t,this.b=e,this.c=r}static getNormal(t,e,r,i){i.subVectors(r,e),Ne.subVectors(t,e),i.cross(Ne);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){Ne.subVectors(i,e),ur.subVectors(r,e),Ka.subVectors(t,e);const o=Ne.dot(Ne),a=Ne.dot(ur),u=Ne.dot(Ka),c=ur.dot(ur),l=ur.dot(Ka),f=o*c-a*a;if(f===0)return s.set(0,0,0),null;const h=1/f,x=(c*u-a*l)*h,p=(o*l-a*u)*h;return s.set(1-x-p,p,x)}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 t0.setScalar(0),e0.setScalar(0),r0.setScalar(0),t0.fromBufferAttribute(t,e),e0.fromBufferAttribute(t,r),r0.fromBufferAttribute(t,i),o.setScalar(0),o.addScaledVector(t0,s.x),o.addScaledVector(e0,s.y),o.addScaledVector(r0,s.z),o}static isFrontFacing(t,e,r,i){return Ne.subVectors(r,e),ur.subVectors(t,e),Ne.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 Ne.subVectors(this.c,this.b),ur.subVectors(this.a,this.b),Ne.cross(ur).length()*.5}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return He.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return He.getBarycoord(t,this.a,this.b,this.c,e)}getInterpolation(t,e,r,i,s){return He.getInterpolation(t,this.a,this.b,this.c,e,r,i,s)}containsPoint(t){return He.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return He.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;Bn.subVectors(i,r),Fn.subVectors(s,r),Ja.subVectors(t,r);const u=Bn.dot(Ja),c=Fn.dot(Ja);if(u<=0&&c<=0)return e.copy(r);Za.subVectors(t,i);const l=Bn.dot(Za),f=Fn.dot(Za);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(Bn,o);Qa.subVectors(t,s);const x=Bn.dot(Qa),p=Fn.dot(Qa);if(p>=0&&x<=p)return e.copy(s);const y=x*c-u*p;if(y<=0&&c>=0&&p<=0)return a=c/(c-p),e.copy(r).addScaledVector(Fn,a);const g=l*p-x*f;if(g<=0&&f-l>=0&&x-p>=0)return Vl.subVectors(s,i),a=(f-l)/(f-l+(x-p)),e.copy(i).addScaledVector(Vl,a);const E=1/(g+y+h);return o=y*E,a=h*E,e.copy(r).addScaledVector(Bn,o).addScaledVector(Fn,a)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}class an{constructor(t=new st(1/0,1/0,1/0),e=new st(-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(Le.fromArray(t,e));return this}setFromBufferAttribute(t){this.makeEmpty();for(let e=0,r=t.count;e<r;e++)this.expandByPoint(Le.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=Le.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,Le):Le.fromBufferAttribute(s,o),Le.applyMatrix4(t.matrixWorld),this.expandByPoint(Le);else t.boundingBox!==void 0?(t.boundingBox===null&&t.computeBoundingBox(),ls.copy(t.boundingBox)):(r.boundingBox===null&&r.computeBoundingBox(),ls.copy(r.boundingBox)),ls.applyMatrix4(t.matrixWorld),this.union(ls)}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,Le),Le.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(fi),hs.subVectors(this.max,fi),Dn.subVectors(t.a,fi),Mn.subVectors(t.b,fi),In.subVectors(t.c,fi),Ar.subVectors(Mn,Dn),_r.subVectors(In,Mn),$r.subVectors(Dn,In);let e=[0,-Ar.z,Ar.y,0,-_r.z,_r.y,0,-$r.z,$r.y,Ar.z,0,-Ar.x,_r.z,0,-_r.x,$r.z,0,-$r.x,-Ar.y,Ar.x,0,-_r.y,_r.x,0,-$r.y,$r.x,0];return!n0(e,Dn,Mn,In,hs)||(e=[1,0,0,0,1,0,0,0,1],!n0(e,Dn,Mn,In,hs))?!1:(fs.crossVectors(Ar,_r),e=[fs.x,fs.y,fs.z],n0(e,Dn,Mn,In,hs))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,Le).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=this.getSize(Le).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:(hr[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),hr[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),hr[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),hr[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),hr[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),hr[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),hr[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),hr[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(hr),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 hr=[new st,new st,new st,new st,new st,new st,new st,new st],Le=new st,ls=new an,Dn=new st,Mn=new st,In=new st,Ar=new st,_r=new st,$r=new st,fi=new st,hs=new st,fs=new st,Hr=new st;function n0(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 Kt=new st,ds=new ee;let v2=0;class Zr extends Ui{constructor(t,e,r=!1){if(super(),Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:v2++}),this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=r,this.usage=Il,this.updateRanges=[],this.gpuType=td,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++)ds.fromBufferAttribute(this,e),ds.applyMatrix3(t),this.setXY(e,ds.x,ds.y);else if(this.itemSize===3)for(let e=0,r=this.count;e<r;e++)Kt.fromBufferAttribute(this,e),Kt.applyMatrix3(t),this.setXYZ(e,Kt.x,Kt.y,Kt.z);return this}applyMatrix4(t){for(let e=0,r=this.count;e<r;e++)Kt.fromBufferAttribute(this,e),Kt.applyMatrix4(t),this.setXYZ(e,Kt.x,Kt.y,Kt.z);return this}applyNormalMatrix(t){for(let e=0,r=this.count;e<r;e++)Kt.fromBufferAttribute(this,e),Kt.applyNormalMatrix(t),this.setXYZ(e,Kt.x,Kt.y,Kt.z);return this}transformDirection(t){for(let e=0,r=this.count;e<r;e++)Kt.fromBufferAttribute(this,e),Kt.transformDirection(t),this.setXYZ(e,Kt.x,Kt.y,Kt.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=li(r,this.array)),r}setComponent(t,e,r){return this.normalized&&(r=ye(r,this.array)),this.array[t*this.itemSize+e]=r,this}getX(t){let e=this.array[t*this.itemSize];return this.normalized&&(e=li(e,this.array)),e}setX(t,e){return this.normalized&&(e=ye(e,this.array)),this.array[t*this.itemSize]=e,this}getY(t){let e=this.array[t*this.itemSize+1];return this.normalized&&(e=li(e,this.array)),e}setY(t,e){return this.normalized&&(e=ye(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=li(e,this.array)),e}setZ(t,e){return this.normalized&&(e=ye(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=li(e,this.array)),e}setW(t,e){return this.normalized&&(e=ye(e,this.array)),this.array[t*this.itemSize+3]=e,this}setXY(t,e,r){return t*=this.itemSize,this.normalized&&(e=ye(e,this.array),r=ye(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=ye(e,this.array),r=ye(r,this.array),i=ye(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=ye(e,this.array),r=ye(r,this.array),i=ye(i,this.array),s=ye(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!==Il&&(t.usage=this.usage),t}dispose(){this.dispatchEvent({type:"dispose"})}}class w2 extends Zr{constructor(t,e,r){super(new Uint16Array(t),e,r)}}class b2 extends Zr{constructor(t,e,r){super(new Uint32Array(t),e,r)}}class zs extends Zr{constructor(t,e,r){super(new Float32Array(t),e,r)}}const E2=new an,di=new st,i0=new st;class Hi{constructor(t=new st,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):E2.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;di.subVectors(t,this.center);const e=di.lengthSq();if(e>this.radius*this.radius){const r=Math.sqrt(e),i=(r-this.radius)*.5;this.center.addScaledVector(di,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):(i0.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(di.copy(t.center).add(i0)),this.expandByPoint(di.copy(t.center).sub(i0))),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}}let A2=0;const De=new Jt,s0=new re,Tn=new st,Se=new an,pi=new an,ie=new st;class lo extends Ui{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:A2++}),this.uuid=$i(),this.name="",this.type="BufferGeometry",this.index=null,this.indirect=null,this.indirectOffset=0,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(s2(t)?b2:w2)(t,1):this.index=t,this}setIndirect(t,e=0){return this.indirect=t,this.indirectOffset=e,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 We().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 s0.lookAt(t),s0.updateMatrix(),this.applyMatrix4(s0.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 zs(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&&xe("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 an);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute){Gr("BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new st(-1/0,-1/0,-1/0),new st(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];Se.setFromBufferAttribute(s),this.morphTargetsRelative?(ie.addVectors(this.boundingBox.min,Se.min),this.boundingBox.expandByPoint(ie),ie.addVectors(this.boundingBox.max,Se.max),this.boundingBox.expandByPoint(ie)):(this.boundingBox.expandByPoint(Se.min),this.boundingBox.expandByPoint(Se.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&Gr('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 Hi);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute){Gr("BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),this.boundingSphere.set(new st,1/0);return}if(t){const r=this.boundingSphere.center;if(Se.setFromBufferAttribute(t),e)for(let s=0,o=e.length;s<o;s++){const a=e[s];pi.setFromBufferAttribute(a),this.morphTargetsRelative?(ie.addVectors(Se.min,pi.min),Se.expandByPoint(ie),ie.addVectors(Se.max,pi.max),Se.expandByPoint(ie)):(Se.expandByPoint(pi.min),Se.expandByPoint(pi.max))}Se.getCenter(r);let i=0;for(let s=0,o=t.count;s<o;s++)ie.fromBufferAttribute(t,s),i=Math.max(i,r.distanceToSquared(ie));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++)ie.fromBufferAttribute(a,c),u&&(Tn.fromBufferAttribute(t,c),ie.add(Tn)),i=Math.max(i,r.distanceToSquared(ie))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&Gr('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){Gr("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 Zr(new Float32Array(4*r.count),4));const o=this.getAttribute("tangent"),a=[],u=[];for(let P=0;P<r.count;P++)a[P]=new st,u[P]=new st;const c=new st,l=new st,f=new st,h=new ee,x=new ee,p=new ee,y=new st,g=new st;function E(P,X,R){c.fromBufferAttribute(r,P),l.fromBufferAttribute(r,X),f.fromBufferAttribute(r,R),h.fromBufferAttribute(s,P),x.fromBufferAttribute(s,X),p.fromBufferAttribute(s,R),l.sub(c),f.sub(c),x.sub(h),p.sub(h);const O=1/(x.x*p.y-p.x*x.y);isFinite(O)&&(y.copy(l).multiplyScalar(p.y).addScaledVector(f,-x.y).multiplyScalar(O),g.copy(f).multiplyScalar(x.x).addScaledVector(l,-p.x).multiplyScalar(O),a[P].add(y),a[X].add(y),a[R].add(y),u[P].add(g),u[X].add(g),u[R].add(g))}let A=this.groups;A.length===0&&(A=[{start:0,count:t.count}]);for(let P=0,X=A.length;P<X;++P){const R=A[P],O=R.start,q=R.count;for(let j=O,K=O+q;j<K;j+=3)E(t.getX(j+0),t.getX(j+1),t.getX(j+2))}const b=new st,_=new st,S=new st,I=new st;function T(P){S.fromBufferAttribute(i,P),I.copy(S);const X=a[P];b.copy(X),b.sub(S.multiplyScalar(S.dot(X))).normalize(),_.crossVectors(I,X);const O=_.dot(u[P])<0?-1:1;o.setXYZW(P,b.x,b.y,b.z,O)}for(let P=0,X=A.length;P<X;++P){const R=A[P],O=R.start,q=R.count;for(let j=O,K=O+q;j<K;j+=3)T(t.getX(j+0)),T(t.getX(j+1)),T(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 Zr(new Float32Array(e.count*3),3),this.setAttribute("normal",r);else for(let h=0,x=r.count;h<x;h++)r.setXYZ(h,0,0,0);const i=new st,s=new st,o=new st,a=new st,u=new st,c=new st,l=new st,f=new st;if(t)for(let h=0,x=t.count;h<x;h+=3){const p=t.getX(h+0),y=t.getX(h+1),g=t.getX(h+2);i.fromBufferAttribute(e,p),s.fromBufferAttribute(e,y),o.fromBufferAttribute(e,g),l.subVectors(o,s),f.subVectors(i,s),l.cross(f),a.fromBufferAttribute(r,p),u.fromBufferAttribute(r,y),c.fromBufferAttribute(r,g),a.add(l),u.add(l),c.add(l),r.setXYZ(p,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,x=e.count;h<x;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++)ie.fromBufferAttribute(t,e),ie.normalize(),t.setXYZ(e,ie.x,ie.y,ie.z)}toNonIndexed(){function t(a,u){const c=a.array,l=a.itemSize,f=a.normalized,h=new c.constructor(u.length*l);let x=0,p=0;for(let y=0,g=u.length;y<g;y++){a.isInterleavedBufferAttribute?x=u[y]*a.data.stride+a.offset:x=u[y]*l;for(let E=0;E<l;E++)h[p++]=c[x++]}return new Zr(h,l,f)}if(this.index===null)return xe("BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const e=new lo,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],x=t(h,r);u.push(x)}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 x=c[f];l.push(x.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,x=f.length;h<x;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"})}}let _2=0;class sc extends Ui{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:_2++}),this.uuid=$i(),this.name="",this.type="Material",this.blending=wl,this.side=D0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=El,this.blendDst=Al,this.blendEquation=bl,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new sr(0,0,0),this.blendAlpha=0,this.depthFunc=_l,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=Ml,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){xe(`Material: parameter '${e}' has value of undefined.`);continue}const i=this[e];if(i===void 0){xe(`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!==wl&&(r.blending=this.blending),this.side!==D0&&(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!==El&&(r.blendSrc=this.blendSrc),this.blendDst!==Al&&(r.blendDst=this.blendDst),this.blendEquation!==bl&&(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!==_l&&(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!==Ml&&(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.allowOverride===!1&&(r.allowOverride=!1),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.allowOverride=t.allowOverride,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++}}const fr=new st,o0=new st,ps=new st,Sr=new st,a0=new st,xs=new st,c0=new st;class S2{constructor(t=new st,e=new st(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,fr)),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=fr.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(fr.copy(this.origin).addScaledVector(this.direction,e),fr.distanceToSquared(t))}distanceSqToSegment(t,e,r,i){o0.copy(t).add(e).multiplyScalar(.5),ps.copy(e).sub(t).normalize(),Sr.copy(this.origin).sub(o0);const s=t.distanceTo(e)*.5,o=-this.direction.dot(ps),a=Sr.dot(this.direction),u=-Sr.dot(ps),c=Sr.lengthSq(),l=Math.abs(1-o*o);let f,h,x,p;if(l>0)if(f=o*u-a,h=o*a-u,p=s*l,f>=0)if(h>=-p)if(h<=p){const y=1/l;f*=y,h*=y,x=f*(f+o*h+2*a)+h*(o*f+h+2*u)+c}else h=s,f=Math.max(0,-(o*h+a)),x=-f*f+h*(h+2*u)+c;else h=-s,f=Math.max(0,-(o*h+a)),x=-f*f+h*(h+2*u)+c;else h<=-p?(f=Math.max(0,-(-o*s+a)),h=f>0?-s:Math.min(Math.max(-s,-u),s),x=-f*f+h*(h+2*u)+c):h<=p?(f=0,h=Math.min(Math.max(-s,-u),s),x=h*(h+2*u)+c):(f=Math.max(0,-(o*s+a)),h=f>0?s:Math.min(Math.max(-s,-u),s),x=-f*f+h*(h+2*u)+c);else h=o>0?-s:s,f=Math.max(0,-(o*h+a)),x=-f*f+h*(h+2*u)+c;return r&&r.copy(this.origin).addScaledVector(this.direction,f),i&&i.copy(o0).addScaledVector(ps,h),x}intersectSphere(t,e){fr.subVectors(t.center,this.origin);const r=fr.dot(this.direction),i=fr.dot(fr)-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,fr)!==null}intersectTriangle(t,e,r,i,s){a0.subVectors(e,t),xs.subVectors(r,t),c0.crossVectors(a0,xs);let o=this.direction.dot(c0),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;Sr.subVectors(this.origin,t);const u=a*this.direction.dot(xs.crossVectors(Sr,xs));if(u<0)return null;const c=a*this.direction.dot(a0.cross(Sr));if(c<0||u+c>o)return null;const l=-a*Sr.dot(c0);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 C2 extends sc{constructor(t){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new sr(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 yr,this.combine=Jf,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 jl=new Jt,qr=new S2,ms=new Hi,Gl=new st,ys=new st,gs=new st,vs=new st,u0=new st,ws=new st,Xl=new st,bs=new st;class pr extends re{constructor(t=new lo,e=new C2){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){ws.set(0,0,0);for(let u=0,c=s.length;u<c;u++){const l=a[u],f=s[u];l!==0&&(u0.fromBufferAttribute(f,t),o?ws.addScaledVector(u0,l):ws.addScaledVector(u0.sub(e),l))}e.add(ws)}return e}raycast(t,e){const r=this.geometry,i=this.material,s=this.matrixWorld;i!==void 0&&(r.boundingSphere===null&&r.computeBoundingSphere(),ms.copy(r.boundingSphere),ms.applyMatrix4(s),qr.copy(t.ray).recast(t.near),!(ms.containsPoint(qr.origin)===!1&&(qr.intersectSphere(ms,Gl)===null||qr.origin.distanceToSquared(Gl)>vc(t.far-t.near,2)))&&(jl.copy(s).invert(),qr.copy(t.ray).applyMatrix4(jl),!(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,x=s.drawRange;if(a!==null)if(Array.isArray(o))for(let p=0,y=h.length;p<y;p++){const g=h[p],E=o[g.materialIndex],A=Math.max(g.start,x.start),b=Math.min(a.count,Math.min(g.start+g.count,x.start+x.count));for(let _=A,S=b;_<S;_+=3){const I=a.getX(_),T=a.getX(_+1),P=a.getX(_+2);i=Es(this,E,t,r,c,l,f,I,T,P),i&&(i.faceIndex=Math.floor(_/3),i.face.materialIndex=g.materialIndex,e.push(i))}}else{const p=Math.max(0,x.start),y=Math.min(a.count,x.start+x.count);for(let g=p,E=y;g<E;g+=3){const A=a.getX(g),b=a.getX(g+1),_=a.getX(g+2);i=Es(this,o,t,r,c,l,f,A,b,_),i&&(i.faceIndex=Math.floor(g/3),e.push(i))}}else if(u!==void 0)if(Array.isArray(o))for(let p=0,y=h.length;p<y;p++){const g=h[p],E=o[g.materialIndex],A=Math.max(g.start,x.start),b=Math.min(u.count,Math.min(g.start+g.count,x.start+x.count));for(let _=A,S=b;_<S;_+=3){const I=_,T=_+1,P=_+2;i=Es(this,E,t,r,c,l,f,I,T,P),i&&(i.faceIndex=Math.floor(_/3),i.face.materialIndex=g.materialIndex,e.push(i))}}else{const p=Math.max(0,x.start),y=Math.min(u.count,x.start+x.count);for(let g=p,E=y;g<E;g+=3){const A=g,b=g+1,_=g+2;i=Es(this,o,t,r,c,l,f,A,b,_),i&&(i.faceIndex=Math.floor(g/3),e.push(i))}}}}function B2(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===D0,a),u===null)return null;bs.copy(a),bs.applyMatrix4(n.matrixWorld);const c=e.ray.origin.distanceTo(bs);return c<e.near||c>e.far?null:{distance:c,point:bs.clone(),object:n}}function Es(n,t,e,r,i,s,o,a,u,c){n.getVertexPosition(a,ys),n.getVertexPosition(u,gs),n.getVertexPosition(c,vs);const l=B2(n,t,e,r,ys,gs,vs,Xl);if(l){const f=new st;He.getBarycoord(Xl,ys,gs,vs,f),i&&(l.uv=He.getInterpolatedAttribute(i,a,u,c,f,new ee)),s&&(l.uv1=He.getInterpolatedAttribute(s,a,u,c,f,new ee)),o&&(l.normal=He.getInterpolatedAttribute(o,a,u,c,f,new st),l.normal.dot(r.direction)>0&&l.normal.multiplyScalar(-1));const h={a,b:u,c,normal:new st,materialIndex:0};He.getNormal(ys,gs,vs,h.normal),l.face=h,l.barycoord=f}return l}class F2 extends Ir{constructor(t=null,e=1,r=1,i,s,o,a,u,c=Bl,l=Bl,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 Yl extends Zr{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 Jt,Kl=new Jt,As=[],Jl=new an,D2=new Jt,xi=new pr,mi=new Hi;class M2 extends pr{constructor(t,e,r){super(t,e),this.isInstancedMesh=!0,this.instanceMatrix=new Yl(new Float32Array(r*16),16),this.previousInstanceMatrix=null,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,D2)}computeBoundingBox(){const t=this.geometry,e=this.count;this.boundingBox===null&&(this.boundingBox=new an),t.boundingBox===null&&t.computeBoundingBox(),this.boundingBox.makeEmpty();for(let r=0;r<e;r++)this.getMatrixAt(r,Rn),Jl.copy(t.boundingBox).applyMatrix4(Rn),this.boundingBox.union(Jl)}computeBoundingSphere(){const t=this.geometry,e=this.count;this.boundingSphere===null&&(this.boundingSphere=new Hi),t.boundingSphere===null&&t.computeBoundingSphere(),this.boundingSphere.makeEmpty();for(let r=0;r<e;r++)this.getMatrixAt(r,Rn),mi.copy(t.boundingSphere).applyMatrix4(Rn),this.boundingSphere.union(mi)}copy(t,e){return super.copy(t,e),this.instanceMatrix.copy(t.instanceMatrix),t.previousInstanceMatrix!==null&&(this.previousInstanceMatrix=t.previousInstanceMatrix.clone()),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){return this.instanceColor===null?e.setRGB(1,1,1):e.fromArray(this.instanceColor.array,t*3)}getMatrixAt(t,e){return 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(xi.geometry=this.geometry,xi.material=this.material,xi.material!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),mi.copy(this.boundingSphere),mi.applyMatrix4(r),t.ray.intersectsSphere(mi)!==!1))for(let s=0;s<i;s++){this.getMatrixAt(s,Rn),Kl.multiplyMatrices(r,Rn),xi.matrixWorld=Kl,xi.raycast(t,As);for(let o=0,a=As.length;o<a;o++){const u=As[o];u.instanceId=s,u.object=this,e.push(u)}As.length=0}}setColorAt(t,e){return this.instanceColor===null&&(this.instanceColor=new Yl(new Float32Array(this.instanceMatrix.count*3).fill(1),3)),e.toArray(this.instanceColor.array,t*3),this}setMatrixAt(t,e){return e.toArray(this.instanceMatrix.array,t*16),this}setMorphAt(t,e){const r=e.morphTargetInfluences,i=r.length+1;this.morphTexture===null&&(this.morphTexture=new F2(new Float32Array(i*this.count),i,this.count,i2,td));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;return s[u]=a,s.set(r,u+1),this}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"}),this.morphTexture!==null&&(this.morphTexture.dispose(),this.morphTexture=null)}}const l0=new st,I2=new st,T2=new We;class On{constructor(t=new st(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=l0.subVectors(r,e).cross(I2.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,r=!0){const i=t.delta(l0),s=this.normal.dot(i);if(s===0)return this.distanceToPoint(t.start)===0?e.copy(t.start):null;const o=-(t.start.dot(this.normal)+this.constant)/s;return r===!0&&(o<0||o>1)?null:e.copy(t.start).addScaledVector(i,o)}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||T2.getNormalMatrix(t),i=this.coplanarPoint(l0).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 Hi,R2=new ee(.5,.5),_s=new st;class O2{constructor(t=new On,e=new On,r=new On,i=new On,s=new On,o=new On){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=Yr,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],x=s[7],p=s[8],y=s[9],g=s[10],E=s[11],A=s[12],b=s[13],_=s[14],S=s[15];if(i[0].setComponents(c-o,x-l,E-p,S-A).normalize(),i[1].setComponents(c+o,x+l,E+p,S+A).normalize(),i[2].setComponents(c+a,x+f,E+y,S+b).normalize(),i[3].setComponents(c-a,x-f,E-y,S-b).normalize(),r)i[4].setComponents(u,h,g,_).normalize(),i[5].setComponents(c-u,x-h,E-g,S-_).normalize();else if(i[4].setComponents(c-u,x-h,E-g,S-_).normalize(),e===Yr)i[5].setComponents(c+u,x+h,E+g,S+_).normalize();else if(e===Vs)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=R2.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(_s.x=i.normal.x>0?t.max.x:t.min.x,_s.y=i.normal.y>0?t.max.y:t.min.y,_s.z=i.normal.z>0?t.max.z:t.min.z,i.distanceToPoint(_s)<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 oc extends lo{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,x=0;p("z","y","x",-1,-1,r,e,t,o,s,0),p("z","y","x",1,-1,r,e,-t,o,s,1),p("x","z","y",1,1,t,r,e,i,o,2),p("x","z","y",1,-1,t,r,-e,i,o,3),p("x","y","z",1,-1,t,e,r,i,s,4),p("x","y","z",-1,-1,t,e,-r,i,s,5),this.setIndex(u),this.setAttribute("position",new zs(c,3)),this.setAttribute("normal",new zs(l,3)),this.setAttribute("uv",new zs(f,2));function p(y,g,E,A,b,_,S,I,T,P,X){const R=_/T,O=S/P,q=_/2,j=S/2,K=I/2,V=T+1,J=P+1;let ot=0,rt=0;const ut=new st;for(let at=0;at<J;at++){const U=at*O-j;for(let G=0;G<V;G++){const tt=G*R-q;ut[y]=tt*A,ut[g]=U*b,ut[E]=K,c.push(ut.x,ut.y,ut.z),ut[y]=0,ut[g]=0,ut[E]=I>0?1:-1,l.push(ut.x,ut.y,ut.z),f.push(G/T),f.push(1-at/P),ot+=1}}for(let at=0;at<P;at++)for(let U=0;U<T;U++){const G=h+U+V*at,tt=h+U+V*(at+1),Q=h+(U+1)+V*(at+1),wt=h+(U+1)+V*at;u.push(G,tt,wt),u.push(tt,Q,wt),rt+=6}a.addGroup(x,rt,X),x+=rt,h+=ot}}copy(t){return super.copy(t),this.parameters=Object.assign({},t.parameters),this}static fromJSON(t){return new oc(t.width,t.height,t.depth,t.widthSegments,t.heightSegments,t.depthSegments)}}class Zl extends sc{constructor(t){super(),this.isMeshStandardMaterial=!0,this.type="MeshStandardMaterial",this.defines={STANDARD:""},this.color=new sr(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 sr(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ed,this.normalScale=new ee(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 yr,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 P2 extends sc{constructor(t){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new sr(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new sr(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ed,this.normalScale=new ee(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new yr,this.combine=Jf,this.reflectivity=1,this.envMapIntensity=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.envMapIntensity=t.envMapIntensity,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 Zn extends re{constructor(t,e=1){super(),this.isLight=!0,this.type="Light",this.color=new sr(t),this.intensity=e}dispose(){this.dispatchEvent({type:"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,e}}class z2 extends Zn{constructor(t,e,r){super(t,r),this.isHemisphereLight=!0,this.type="HemisphereLight",this.position.copy(re.DEFAULT_UP),this.updateMatrix(),this.groundColor=new sr(e)}copy(t,e){return super.copy(t,e),this.groundColor.copy(t.groundColor),this}toJSON(t){const e=super.toJSON(t);return e.object.groundColor=this.groundColor.getHex(),e}}const h0=new Jt,Ql=new st,th=new st;class ac{constructor(t){this.camera=t,this.intensity=1,this.bias=0,this.biasNode=null,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new ee(512,512),this.mapType=Qf,this.map=null,this.mapPass=null,this.matrix=new Jt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new O2,this._frameExtents=new ee(1,1),this._viewportCount=1,this._viewports=[new Gn(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),th.setFromMatrixPosition(t.target.matrixWorld),e.lookAt(th),e.updateMatrixWorld(),h0.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),this._frustum.setFromProjectionMatrix(h0,e.coordinateSystem,e.reversedDepth),e.coordinateSystem===Vs||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(h0)}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.biasNode=t.biasNode,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 Ss=new st,Cs=new Jn,Ze=new st;class od extends re{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Jt,this.projectionMatrix=new Jt,this.projectionMatrixInverse=new Jt,this.coordinateSystem=Yr,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.matrixWorld.decompose(Ss,Cs,Ze),Ze.x===1&&Ze.y===1&&Ze.z===1?this.matrixWorldInverse.copy(this.matrixWorld).invert():this.matrixWorldInverse.compose(Ss,Cs,Ze.set(1,1,1)).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorld.decompose(Ss,Cs,Ze),Ze.x===1&&Ze.y===1&&Ze.z===1?this.matrixWorldInverse.copy(this.matrixWorld).invert():this.matrixWorldInverse.compose(Ss,Cs,Ze.set(1,1,1)).invert()}clone(){return new this.constructor().copy(this)}}const Cr=new st,eh=new ee,rh=new ee;class ad extends od{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=M0*2*Math.atan(e),this.updateProjectionMatrix()}getFocalLength(){const t=Math.tan(Ha*.5*this.fov);return .5*this.getFilmHeight()/t}getEffectiveFOV(){return M0*2*Math.atan(Math.tan(Ha*.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){Cr.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),e.set(Cr.x,Cr.y).multiplyScalar(-t/Cr.z),Cr.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),r.set(Cr.x,Cr.y).multiplyScalar(-t/Cr.z)}getViewSize(t,e){return this.getViewBounds(t,eh,rh),e.subVectors(rh,eh)}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(Ha*.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 k2 extends ac{constructor(){super(new ad(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1,this.aspect=1}updateMatrices(t){const e=this.camera,r=M0*2*t.angle*this.focus,i=this.mapSize.width/this.mapSize.height*this.aspect,s=t.distance||e.far;(r!==e.fov||i!==e.aspect||s!==e.far)&&(e.fov=r,e.aspect=i,e.far=s,e.updateProjectionMatrix()),super.updateMatrices(t)}copy(t){return super.copy(t),this.focus=t.focus,this}}class N2 extends Zn{constructor(t,e,r=0,i=Math.PI/3,s=0,o=2){super(t,e),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(re.DEFAULT_UP),this.updateMatrix(),this.target=new re,this.distance=r,this.angle=i,this.penumbra=s,this.decay=o,this.map=null,this.shadow=new k2}get power(){return this.intensity*Math.PI}set power(t){this.intensity=t/Math.PI}dispose(){super.dispose(),this.shadow.dispose()}copy(t,e){return super.copy(t,e),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.map=t.map,this.shadow=t.shadow.clone(),this}toJSON(t){const e=super.toJSON(t);return e.object.distance=this.distance,e.object.angle=this.angle,e.object.decay=this.decay,e.object.penumbra=this.penumbra,e.object.target=this.target.uuid,this.map&&this.map.isTexture&&(e.object.map=this.map.toJSON(t).uuid),e.object.shadow=this.shadow.toJSON(),e}}class L2 extends ac{constructor(){super(new ad(90,1,.5,500)),this.isPointLightShadow=!0}}class cd extends Zn{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 L2}get power(){return this.intensity*4*Math.PI}set power(t){this.intensity=t/(4*Math.PI)}dispose(){super.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}toJSON(t){const e=super.toJSON(t);return e.object.distance=this.distance,e.object.decay=this.decay,e.object.shadow=this.shadow.toJSON(),e}}class U2 extends od{constructor(t=-1,e=1,r=1,i=-1,s=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t,this.right=e,this.top=r,this.bottom=i,this.near=s,this.far=o,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=t.view===null?null:Object.assign({},t.view),this}setViewOffset(t,e,r,i,s,o){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.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),r=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let s=r-t,o=r+t,a=i+e,u=i-e;if(this.view!==null&&this.view.enabled){const c=(this.right-this.left)/this.view.fullWidth/this.zoom,l=(this.top-this.bottom)/this.view.fullHeight/this.zoom;s+=c*this.view.offsetX,o=s+c*this.view.width,a-=l*this.view.offsetY,u=a-l*this.view.height}this.projectionMatrix.makeOrthographic(s,o,a,u,this.near,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.zoom=this.zoom,e.object.left=this.left,e.object.right=this.right,e.object.top=this.top,e.object.bottom=this.bottom,e.object.near=this.near,e.object.far=this.far,this.view!==null&&(e.object.view=Object.assign({},this.view)),e}}class $2 extends ac{constructor(){super(new U2(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class H2 extends Zn{constructor(t,e){super(t,e),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(re.DEFAULT_UP),this.updateMatrix(),this.target=new re,this.shadow=new $2}dispose(){super.dispose(),this.shadow.dispose()}copy(t){return super.copy(t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}toJSON(t){const e=super.toJSON(t);return e.object.shadow=this.shadow.toJSON(),e.object.target=this.target.uuid,e}}class q2 extends Zn{constructor(t,e){super(t,e),this.isAmbientLight=!0,this.type="AmbientLight"}}class W2 extends Zn{constructor(t,e,r=10,i=10){super(t,e),this.isRectAreaLight=!0,this.type="RectAreaLight",this.width=r,this.height=i}get power(){return this.intensity*this.width*this.height*Math.PI}set power(t){this.intensity=t/(this.width*this.height*Math.PI)}copy(t){return super.copy(t),this.width=t.width,this.height=t.height,this}toJSON(t){const e=super.toJSON(t);return e.object.width=this.width,e.object.height=this.height,e}}const mc=class mc{constructor(t,e,r,i){this.elements=[1,0,0,1],t!==void 0&&this.set(t,e,r,i)}identity(){return this.set(1,0,0,1),this}fromArray(t,e=0){for(let r=0;r<4;r++)this.elements[r]=t[r+e];return this}set(t,e,r,i){const s=this.elements;return s[0]=t,s[2]=e,s[1]=r,s[3]=i,this}};mc.prototype.isMatrix2=!0;let nh=mc;typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:Yf}}));typeof window!="undefined"&&(window.__THREE__?xe("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=Yf);/**
|
|
45
|
-
* @license
|
|
46
|
-
* Copyright 2010-2026 Three.js Authors
|
|
47
|
-
* SPDX-License-Identifier: MIT
|
|
48
|
-
*/const V2=new We;V2.set(-1,0,0,0,1,0,0,0,1);const j2=new We;j2.set(-1,0,0,0,1,0,0,0,1);class G2 extends re{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 ee(.5,.5),this.addEventListener("removed",function(){this.traverse(function(e){e.element&&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 Jt;new Jt;const X2={name:"局放测点",label:"局放测点",create:function(n,t){return At(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=vl,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=A0()),s.innerHTML=`
|
|
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=`
|
|
49
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>
|
|
50
46
|
<div style="font-size: 14px; color: #cae4ff;">幅值峰值</div>
|
|
51
47
|
<div style="display: flex; align-items: flex-end; gap: 10px; color: #FF716C;">
|
|
52
48
|
<span id="${n.valueEleId}" style="font-size: 24px;font-weight: 600;">${n.value}</span>
|
|
53
49
|
<span style="font-size: 14px;">dBm</span>
|
|
54
50
|
</div>
|
|
55
|
-
`;const o=new
|
|
51
|
+
`;const o=new Tv(r);o.dataId=n.id,o.userData.params=n,i.addEventListener("mouseover",()=>{s.style.display="flex"}),i.addEventListener("mouseleave",()=>{s.style.display="none"}),i.addEventListener("click",()=>{v0.emit("three-event",{type:"pd-sensor-click",data:o}),n.preview||setTimeout(()=>{e.attach(o)},100)}),r.append(s);const a=c=>{c===0?i.src=ol:c===1?i.src=$2:c===2&&(i.src=H2)},u=c=>{const l=document.getElementById(n.valueEleId);l&&(l.innerText=c)};return o.changeState=a,o.changeValue=u,setTimeout(()=>{a(n.state),u(n.value)},200),o})},getStorage:function(n){return n.userData.params}};var Vf={exports:{}};/*!
|
|
56
52
|
localForage -- Offline Storage, Improved
|
|
57
53
|
Version 1.10.0
|
|
58
54
|
https://localforage.github.io/localForage
|
|
59
55
|
(c) 2013-2017 Mozilla, Apache License 2.0
|
|
60
|
-
*/(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 vi=="function"&&vi;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 x=i[c]={exports:{}};r[c][0].call(x.exports,function(p){var y=r[c][1][p];return o(y||p)},x,x.exports,e,r,i,s)}return i[c].exports}for(var a=typeof vi=="function"&&vi,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(p),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=p,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(){p(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},s.document.documentElement.appendChild(g)}:a=function(){setTimeout(p,0)};var h,x=[];function p(){h=!0;for(var g,E,A=x.length;A;){for(E=x,x=[],g=-1;++g<A;)E[g]();A=x.length}h=!1}r.exports=y;function y(g){x.push(g)===1&&!h&&a()}}).call(this,typeof Et!="undefined"?Et: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(S){if(typeof S!="function")throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,S!==o&&y(this,S)}f.prototype.catch=function(S){return this.then(null,S)},f.prototype.then=function(S,I){if(typeof S!="function"&&this.state===c||typeof I!="function"&&this.state===u)return this;var T=new this.constructor(o);if(this.state!==l){var P=this.state===c?S:I;x(T,P,this.outcome)}else this.queue.push(new h(T,S,I));return T};function h(S,I,T){this.promise=S,typeof I=="function"&&(this.onFulfilled=I,this.callFulfilled=this.otherCallFulfilled),typeof T=="function"&&(this.onRejected=T,this.callRejected=this.otherCallRejected)}h.prototype.callFulfilled=function(S){a.resolve(this.promise,S)},h.prototype.otherCallFulfilled=function(S){x(this.promise,this.onFulfilled,S)},h.prototype.callRejected=function(S){a.reject(this.promise,S)},h.prototype.otherCallRejected=function(S){x(this.promise,this.onRejected,S)};function x(S,I,T){s(function(){var P;try{P=I(T)}catch(X){return a.reject(S,X)}P===S?a.reject(S,new TypeError("Cannot resolve promise with itself")):a.resolve(S,P)})}a.resolve=function(S,I){var T=g(p,I);if(T.status==="error")return a.reject(S,T.value);var P=T.value;if(P)y(S,P);else{S.state=c,S.outcome=I;for(var X=-1,R=S.queue.length;++X<R;)S.queue[X].callFulfilled(I)}return S},a.reject=function(S,I){S.state=u,S.outcome=I;for(var T=-1,P=S.queue.length;++T<P;)S.queue[T].callRejected(I);return S};function p(S){var I=S&&S.then;if(S&&(typeof S=="object"||typeof S=="function")&&typeof I=="function")return function(){I.apply(S,arguments)}}function y(S,I){var T=!1;function P(q){T||(T=!0,a.reject(S,q))}function X(q){T||(T=!0,a.resolve(S,q))}function R(){I(X,P)}var O=g(R);O.status==="error"&&P(O.value)}function g(S,I){var T={};try{T.value=S(I),T.status="success"}catch(P){T.status="error",T.value=P}return T}f.resolve=E;function E(S){return S instanceof this?S:a.resolve(new this(o),S)}f.reject=A;function A(S){var I=new this(o);return a.reject(I,S)}f.all=b;function b(S){var I=this;if(Object.prototype.toString.call(S)!=="[object Array]")return this.reject(new TypeError("must be an array"));var T=S.length,P=!1;if(!T)return this.resolve([]);for(var X=new Array(T),R=0,O=-1,q=new this(o);++O<T;)j(S[O],O);return q;function j(K,V){I.resolve(K).then(J,function(ot){P||(P=!0,a.reject(q,ot))});function J(ot){X[V]=ot,++R===T&&!P&&(P=!0,a.resolve(q,X))}}}f.race=_;function _(S){var I=this;if(Object.prototype.toString.call(S)!=="[object Array]")return this.reject(new TypeError("must be an array"));var T=S.length,P=!1;if(!T)return this.resolve([]);for(var X=-1,R=new this(o);++X<T;)O(S[X]);return R;function O(q){I.resolve(q).then(function(j){P||(P=!0,a.resolve(R,j))},function(j){P||(P=!0,a.reject(R,j))})}}},{1:1}],3:[function(e,r,i){(function(s){typeof s.Promise!="function"&&(s.Promise=e(2))}).call(this,typeof Et!="undefined"?Et: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(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C};function o(C,k){if(!(C instanceof k))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(C){return}}var u=a();function c(){try{if(!u||!u.open)return!1;var C=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),k=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!C||k)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(D){return!1}}function l(C,k){C=C||[],k=k||{};try{return new Blob(C,k)}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<C.length;W+=1)L.append(C[W]);return L.getBlob(k.type)}}typeof Promise=="undefined"&&e(3);var f=Promise;function h(C,k){k&&C.then(function(D){k(null,D)},function(D){k(D)})}function x(C,k,D){typeof k=="function"&&C.then(k),typeof D=="function"&&C.catch(D)}function p(C){return typeof C!="string"&&(console.warn(C+" used as a key, but it is not a string."),C=String(C)),C}function y(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var g="local-forage-detect-blob-support",E=void 0,A={},b=Object.prototype.toString,_="readonly",S="readwrite";function I(C){for(var k=C.length,D=new ArrayBuffer(k),L=new Uint8Array(D),W=0;W<k;W++)L[W]=C.charCodeAt(W);return D}function T(C){return new f(function(k){var D=C.transaction(g,S),L=l([""]);D.objectStore(g).put(L,"key"),D.onabort=function(W){W.preventDefault(),W.stopPropagation(),k(!1)},D.oncomplete=function(){var W=navigator.userAgent.match(/Chrome\/(\d+)/),$=navigator.userAgent.match(/Edge\//);k($||!W||parseInt(W[1],10)>=43)}}).catch(function(){return!1})}function P(C){return typeof E=="boolean"?f.resolve(E):T(C).then(function(k){return E=k,E})}function X(C){var k=A[C.name],D={};D.promise=new f(function(L,W){D.resolve=L,D.reject=W}),k.deferredOperations.push(D),k.dbReady?k.dbReady=k.dbReady.then(function(){return D.promise}):k.dbReady=D.promise}function R(C){var k=A[C.name],D=k.deferredOperations.pop();if(D)return D.resolve(),D.promise}function O(C,k){var D=A[C.name],L=D.deferredOperations.pop();if(L)return L.reject(k),L.promise}function q(C,k){return new f(function(D,L){if(A[C.name]=A[C.name]||G(),C.db)if(k)X(C),C.db.close();else return D(C.db);var W=[C.name];k&&W.push(C.version);var $=u.open.apply(u,W);k&&($.onupgradeneeded=function(et){var ct=$.result;try{ct.createObjectStore(C.storeName),et.oldVersion<=1&&ct.createObjectStore(g)}catch(ht){if(ht.name==="ConstraintError")console.warn('The database "'+C.name+'" has been upgraded from version '+et.oldVersion+" to version "+et.newVersion+', but the storage "'+C.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),R(C)}})}function j(C){return q(C,!1)}function K(C){return q(C,!0)}function V(C,k){if(!C.db)return!0;var D=!C.db.objectStoreNames.contains(C.storeName),L=C.version<C.db.version,W=C.version>C.db.version;if(L&&(C.version!==k&&console.warn('The database "'+C.name+`" can't be downgraded from version `+C.db.version+" to version "+C.version+"."),C.version=C.db.version),W||D){if(D){var $=C.db.version+1;$>C.version&&(C.version=$)}return!0}return!1}function J(C){return new f(function(k,D){var L=new FileReader;L.onerror=D,L.onloadend=function(W){var $=btoa(W.target.result||"");k({__local_forage_encoded_blob:!0,data:$,type:C.type})},L.readAsBinaryString(C)})}function ot(C){var k=I(atob(C.data));return l([k],{type:C.type})}function rt(C){return C&&C.__local_forage_encoded_blob}function ut(C){var k=this,D=k._initReady().then(function(){var L=A[k._dbInfo.name];if(L&&L.dbReady)return L.dbReady});return x(D,C,C),D}function at(C){X(C);for(var k=A[C.name],D=k.forages,L=0;L<D.length;L++){var W=D[L];W._dbInfo.db&&(W._dbInfo.db.close(),W._dbInfo.db=null)}return C.db=null,j(C).then(function($){return C.db=$,V(C)?K(C):$}).then(function($){C.db=k.db=$;for(var et=0;et<D.length;et++)D[et]._dbInfo.db=$}).catch(function($){throw O(C,$),$})}function U(C,k,D,L){L===void 0&&(L=1);try{var W=C.db.transaction(C.storeName,k);D(null,W)}catch($){if(L>0&&(!C.db||$.name==="InvalidStateError"||$.name==="NotFoundError"))return f.resolve().then(function(){if(!C.db||$.name==="NotFoundError"&&!C.db.objectStoreNames.contains(C.storeName)&&C.version<=C.db.version)return C.db&&(C.version=C.db.version+1),K(C)}).then(function(){return at(C).then(function(){U(C,k,D,L-1)})}).catch(D);D($)}}function G(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function tt(C){var k=this,D={db:null};if(C)for(var L in C)D[L]=C[L];var W=A[D.name];W||(W=G(),A[D.name]=W),W.forages.push(k),k._initReady||(k._initReady=k.ready,k.ready=ut);var $=[];function et(){return f.resolve()}for(var ct=0;ct<W.forages.length;ct++){var ht=W.forages[ct];ht!==k&&$.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,V(D,k._defaultConfig.version)?K(D):dt}).then(function(dt){D.db=W.db=dt,k._dbInfo=D;for(var yt=0;yt<ft.length;yt++){var _t=ft[yt];_t!==k&&(_t._dbInfo.db=D.db,_t._dbInfo.version=D.version)}})}function Q(C,k){var D=this;C=p(C);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(C);ft.onsuccess=function(){var dt=ft.result;dt===void 0&&(dt=null),rt(dt)&&(dt=ot(dt)),W(dt)},ft.onerror=function(){$(ft.error)}}catch(dt){$(dt)}})}).catch($)});return h(L,k),L}function wt(C,k){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 yt=ft.result;if(yt){var _t=yt.value;rt(_t)&&(_t=ot(_t));var Rt=C(_t,yt.key,dt++);Rt!==void 0?W(Rt):yt.continue()}else W()},ft.onerror=function(){$(ft.error)}}catch(yt){$(yt)}})}).catch($)});return h(L,k),L}function St(C,k,D){var L=this;C=p(C);var W=new f(function($,et){var ct;L.ready().then(function(){return ct=L._dbInfo,b.call(k)==="[object Blob]"?P(ct.db).then(function(ht){return ht?k:J(k)}):k}).then(function(ht){U(L._dbInfo,S,function(ft,dt){if(ft)return et(ft);try{var yt=dt.objectStore(L._dbInfo.storeName);ht===null&&(ht=void 0);var _t=yt.put(ht,C);dt.oncomplete=function(){ht===void 0&&(ht=null),$(ht)},dt.onabort=dt.onerror=function(){var Rt=_t.error?_t.error:_t.transaction.error;et(Rt)}}catch(Rt){et(Rt)}})}).catch(et)});return h(W,D),W}function zt(C,k){var D=this;C=p(C);var L=new f(function(W,$){D.ready().then(function(){U(D._dbInfo,S,function(et,ct){if(et)return $(et);try{var ht=ct.objectStore(D._dbInfo.storeName),ft=ht.delete(C);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,k),L}function vt(C){var k=this,D=new f(function(L,W){k.ready().then(function(){U(k._dbInfo,S,function($,et){if($)return W($);try{var ct=et.objectStore(k._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,C),D}function __$t__(C){var k=this,D=new f(function(L,W){k.ready().then(function(){U(k._dbInfo,_,function($,et){if($)return W($);try{var ct=et.objectStore(k._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,C),D}function Lt(C,k){var D=this,L=new f(function(W,$){if(C<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 yt=dt.result;if(!yt){W(null);return}C===0||ft?W(yt.key):(ft=!0,yt.advance(C))},dt.onerror=function(){$(dt.error)}}catch(yt){$(yt)}})}).catch($)});return h(L,k),L}function Gt(C){var k=this,D=new f(function(L,W){k.ready().then(function(){U(k._dbInfo,_,function($,et){if($)return W($);try{var ct=et.objectStore(k._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,C),D}function Wt(C,k){k=y.apply(this,arguments);var D=this.config();C=typeof C!="function"&&C||{},C.name||(C.name=C.name||D.name,C.storeName=C.storeName||D.storeName);var L=this,W;if(!C.name)W=f.reject("Invalid arguments");else{var $=C.name===D.name&&L._dbInfo.db,et=$?f.resolve(L._dbInfo.db):j(C).then(function(ct){var ht=A[C.name],ft=ht.forages;ht.db=ct;for(var dt=0;dt<ft.length;dt++)ft[dt]._dbInfo.db=ct;return ct});C.storeName?W=et.then(function(ct){if(ct.objectStoreNames.contains(C.storeName)){var ht=ct.version+1;X(C);var ft=A[C.name],dt=ft.forages;ct.close();for(var yt=0;yt<dt.length;yt++){var _t=dt[yt];_t._dbInfo.db=null,_t._dbInfo.version=ht}var Rt=new f(function(Pt,Xt){var Ht=u.open(C.name,ht);Ht.onerror=function(v){var w=Ht.result;w.close(),Xt(v)},Ht.onupgradeneeded=function(){var v=Ht.result;v.deleteObjectStore(C.storeName)},Ht.onsuccess=function(){var v=Ht.result;v.close(),Pt(v)}});return Rt.then(function(Pt){ft.db=Pt;for(var Xt=0;Xt<dt.length;Xt++){var Ht=dt[Xt];Ht._dbInfo.db=Pt,R(Ht._dbInfo)}}).catch(function(Pt){throw(O(C,Pt)||f.resolve()).catch(function(){}),Pt})}}):W=et.then(function(ct){X(C);var ht=A[C.name],ft=ht.forages;ct.close();for(var dt=0;dt<ft.length;dt++){var yt=ft[dt];yt._dbInfo.db=null}var _t=new f(function(Rt,Pt){var Xt=u.deleteDatabase(C.name);Xt.onerror=function(){var Ht=Xt.result;Ht&&Ht.close(),Pt(Xt.error)},Xt.onblocked=function(){console.warn('dropInstance blocked for database "'+C.name+'" until all open connections are closed')},Xt.onsuccess=function(){var Ht=Xt.result;Ht&&Ht.close(),Rt(Ht)}});return _t.then(function(Rt){ht.db=Rt;for(var Pt=0;Pt<ft.length;Pt++){var Xt=ft[Pt];R(Xt._dbInfo)}}).catch(function(Rt){throw(O(C,Rt)||f.resolve()).catch(function(){}),Rt})})}return h(W,k),W}var Mt={_driver:"asyncStorage",_initStorage:tt,_support:c(),iterate:wt,getItem:Q,setItem:St,removeItem:zt,clear:vt,length:__$t__,key:Lt,keys:Gt,dropInstance:Wt};function qt(){return typeof openDatabase=="function"}var Zt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M="~~local_forage_type~",d=/^~~local_forage_type~([^~]+)~/,m="__lfsc__:",B=m.length,N="arbf",Z="blob",nt="si08",mt="ui08",gt="uic8",It="si16",Ot="si32",Tt="ur16",Ie="ui32",je="fl32",Ge="fl64",Te=B+N.length,Xe=Object.prototype.toString;function cn(C){var k=C.length*.75,D=C.length,L,W=0,$,et,ct,ht;C[C.length-1]==="="&&(k--,C[C.length-2]==="="&&k--);var ft=new ArrayBuffer(k),dt=new Uint8Array(ft);for(L=0;L<D;L+=4)$=Zt.indexOf(C[L]),et=Zt.indexOf(C[L+1]),ct=Zt.indexOf(C[L+2]),ht=Zt.indexOf(C[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(C){var k=new Uint8Array(C),D="",L;for(L=0;L<k.length;L+=3)D+=Zt[k[L]>>2],D+=Zt[(k[L]&3)<<4|k[L+1]>>4],D+=Zt[(k[L+1]&15)<<2|k[L+2]>>6],D+=Zt[k[L+2]&63];return k.length%3===2?D=D.substring(0,D.length-1)+"=":k.length%3===1&&(D=D.substring(0,D.length-2)+"=="),D}function un(C,k){var D="";if(C&&(D=Xe.call(C)),C&&(D==="[object ArrayBuffer]"||C.buffer&&Xe.call(C.buffer)==="[object ArrayBuffer]")){var L,W=m;C instanceof ArrayBuffer?(L=C,W+=N):(L=C.buffer,D==="[object Int8Array]"?W+=nt:D==="[object Uint8Array]"?W+=mt:D==="[object Uint8ClampedArray]"?W+=gt:D==="[object Int16Array]"?W+=It:D==="[object Uint16Array]"?W+=Tt:D==="[object Int32Array]"?W+=Ot:D==="[object Uint32Array]"?W+=Ie:D==="[object Float32Array]"?W+=je:D==="[object Float64Array]"?W+=Ge:k(new Error("Failed to get type for BinaryArray"))),k(W+Ye(L))}else if(D==="[object Blob]"){var $=new FileReader;$.onload=function(){var et=M+C.type+"~"+Ye(this.result);k(m+Z+et)},$.readAsArrayBuffer(C)}else try{k(JSON.stringify(C))}catch(et){console.error("Couldn't convert value into a JSON string: ",C),k(null,et)}}function ln(C){if(C.substring(0,B)!==m)return JSON.parse(C);var k=C.substring(Te),D=C.substring(B,Te),L;if(D===Z&&d.test(k)){var W=k.match(d);L=W[1],k=k.substring(W[0].length)}var $=cn(k);switch(D){case N:return $;case Z:return l([$],{type:L});case nt:return new Int8Array($);case mt:return new Uint8Array($);case gt:return new Uint8ClampedArray($);case It:return new Int16Array($);case Tt:return new Uint16Array($);case Ot:return new Int32Array($);case Ie:return new Uint32Array($);case je:return new Float32Array($);case Ge:return new Float64Array($);default:throw new Error("Unkown type: "+D)}}var Or={serialize:un,deserialize:ln,stringToBuffer:cn,bufferToString:Ye};function gr(C,k,D,L){C.executeSql("CREATE TABLE IF NOT EXISTS "+k.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],D,L)}function Qn(C){var k=this,D={db:null};if(C)for(var L in C)D[L]=typeof C[L]!="string"?C[L].toString():C[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(){k._dbInfo=D,$()},function(ht,ft){et(ft)})},et)});return D.serializer=Or,W}function Ee(C,k,D,L,W,$){C.executeSql(D,L,W,function(et,ct){ct.code===ct.SYNTAX_ERR?et.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[k.storeName],function(ht,ft){ft.rows.length?$(ht,ct):gr(ht,k,function(){ht.executeSql(D,L,W,$)},$)},$):$(et,ct)},$)}function ti(C,k){var D=this;C=p(C);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",[C],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,k),L}function hn(C,k){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,yt=dt.length,_t=0;_t<yt;_t++){var Rt=dt.item(_t),Pt=Rt.value;if(Pt&&(Pt=et.serializer.deserialize(Pt)),Pt=C(Pt,Rt.key,_t+1),Pt!==void 0){W(Pt);return}}W()},function(ht,ft){$(ft)})})}).catch($)});return h(L,k),L}function fn(C,k,D,L){var W=this;C=p(C);var $=new f(function(et,ct){W.ready().then(function(){k===void 0&&(k=null);var ht=k,ft=W._dbInfo;ft.serializer.serialize(k,function(dt,yt){yt?ct(yt):ft.db.transaction(function(_t){Ee(_t,ft,"INSERT OR REPLACE INTO "+ft.storeName+" (key, value) VALUES (?, ?)",[C,dt],function(){et(ht)},function(Rt,Pt){ct(Pt)})},function(_t){if(_t.code===_t.QUOTA_ERR){if(L>0){et(fn.apply(W,[C,ht,D,L-1]));return}ct(_t)}})})}).catch(ct)});return h($,D),$}function ei(C,k,D){return fn.apply(this,[C,k,D,1])}function ri(C,k){var D=this;C=p(C);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 = ?",[C],function(){W()},function(ht,ft){$(ft)})})}).catch($)});return h(L,k),L}function dn(C){var k=this,D=new f(function(L,W){k.ready().then(function(){var $=k._dbInfo;$.db.transaction(function(et){Ee(et,$,"DELETE FROM "+$.storeName,[],function(){L()},function(ct,ht){W(ht)})})}).catch(W)});return h(D,C),D}function ni(C){var k=this,D=new f(function(L,W){k.ready().then(function(){var $=k._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,C),D}function ii(C,k){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",[C+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,k),L}function pn(C){var k=this,D=new f(function(L,W){k.ready().then(function(){var $=k._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,C),D}function si(C){return new f(function(k,D){C.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);k({db:C,storeNames:et})},function(W,$){D($)})},function(L){D(L)})})}function xn(C,k){k=y.apply(this,arguments);var D=this.config();C=typeof C!="function"&&C||{},C.name||(C.name=C.name||D.name,C.storeName=C.storeName||D.storeName);var L=this,W;return C.name?W=new f(function($){var et;C.name===D.name?et=L._dbInfo.db:et=openDatabase(C.name,"","",0),C.storeName?$({db:et,storeNames:[C.storeName]}):$(si(et))}).then(function($){return new f(function(et,ct){$.db.transaction(function(ht){function ft(Rt){return new f(function(Pt,Xt){ht.executeSql("DROP TABLE IF EXISTS "+Rt,[],function(){Pt()},function(Ht,v){Xt(v)})})}for(var dt=[],yt=0,_t=$.storeNames.length;yt<_t;yt++)dt.push(ft($.storeNames[yt]));f.all(dt).then(function(){et()}).catch(function(Rt){ct(Rt)})},function(ht){ct(ht)})})}):W=f.reject("Invalid arguments"),h(W,k),W}var ce={_driver:"webSQLStorage",_initStorage:Qn,_support:qt(),iterate:hn,getItem:ti,setItem:ei,removeItem:ri,clear:dn,length:ni,key:ii,keys:pn,dropInstance:xn};function Ce(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(C){return!1}}function Pr(C,k){var D=C.name+"/";return C.storeName!==k.storeName&&(D+=C.storeName+"/"),D}function oi(){var C="_localforage_support_test";try{return localStorage.setItem(C,!0),localStorage.removeItem(C),!1}catch(k){return!0}}function ho(){return!oi()||localStorage.length>0}function fo(C){var k=this,D={};if(C)for(var L in C)D[L]=C[L];return D.keyPrefix=Pr(C,k._defaultConfig),ho()?(k._dbInfo=D,D.serializer=Or,f.resolve()):f.reject()}function po(C){var k=this,D=k.ready().then(function(){for(var L=k._dbInfo.keyPrefix,W=localStorage.length-1;W>=0;W--){var $=localStorage.key(W);$.indexOf(L)===0&&localStorage.removeItem($)}});return h(D,C),D}function xo(C,k){var D=this;C=p(C);var L=D.ready().then(function(){var W=D._dbInfo,$=localStorage.getItem(W.keyPrefix+C);return $&&($=W.serializer.deserialize($)),$});return h(L,k),L}function mo(C,k){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 yt=localStorage.getItem(dt);if(yt&&(yt=W.serializer.deserialize(yt)),yt=C(yt,dt.substring(et),ht++),yt!==void 0)return yt}}});return h(L,k),L}function yo(C,k){var D=this,L=D.ready().then(function(){var W=D._dbInfo,$;try{$=localStorage.key(C)}catch(et){$=null}return $&&($=$.substring(W.keyPrefix.length)),$});return h(L,k),L}function zr(C){var k=this,D=k.ready().then(function(){for(var L=k._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,C),D}function qi(C){var k=this,D=k.keys().then(function(L){return L.length});return h(D,C),D}function go(C,k){var D=this;C=p(C);var L=D.ready().then(function(){var W=D._dbInfo;localStorage.removeItem(W.keyPrefix+C)});return h(L,k),L}function vo(C,k,D){var L=this;C=p(C);var W=L.ready().then(function(){k===void 0&&(k=null);var $=k;return new f(function(et,ct){var ht=L._dbInfo;ht.serializer.serialize(k,function(ft,dt){if(dt)ct(dt);else try{localStorage.setItem(ht.keyPrefix+C,ft),et($)}catch(yt){(yt.name==="QuotaExceededError"||yt.name==="NS_ERROR_DOM_QUOTA_REACHED")&&ct(yt),ct(yt)}})})});return h(W,D),W}function wo(C,k){if(k=y.apply(this,arguments),C=typeof C!="function"&&C||{},!C.name){var D=this.config();C.name=C.name||D.name,C.storeName=C.storeName||D.storeName}var L=this,W;return C.name?W=new f(function($){C.storeName?$(Pr(C,L._defaultConfig)):$(C.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,k),W}var bo={_driver:"localStorageWrapper",_initStorage:fo,_support:Ce(),iterate:mo,getItem:xo,setItem:vo,removeItem:go,clear:po,length:qi,key:yo,keys:zr,dropInstance:wo},Eo=function(k,D){return k===D||typeof k=="number"&&typeof D=="number"&&isNaN(k)&&isNaN(D)},or=function(k,D){for(var L=k.length,W=0;W<L;){if(Eo(k[W],D))return!0;W++}return!1},Wi=Array.isArray||function(C){return Object.prototype.toString.call(C)==="[object Array]"},kr={},Vi={},vr={INDEXEDDB:Mt,WEBSQL:ce,LOCALSTORAGE:bo},Ao=[vr.INDEXEDDB._driver,vr.WEBSQL._driver,vr.LOCALSTORAGE._driver],mn=["dropInstance"],ai=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(mn),_o={description:"",driver:Ao.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function So(C,k){C[k]=function(){var D=arguments;return C.ready().then(function(){return C[k].apply(C,D)})}}function Qt(){for(var C=1;C<arguments.length;C++){var k=arguments[C];if(k)for(var D in k)k.hasOwnProperty(D)&&(Wi(k[D])?arguments[0][D]=k[D].slice():arguments[0][D]=k[D])}return arguments[0]}var Co=function(){function C(k){o(this,C);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=Qt({},_o),this._config=Qt({},this._defaultConfig,k),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return C.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},C.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=ai.concat("_initStorage"),yt=0,_t=dt.length;yt<_t;yt++){var Rt=dt[yt],Pt=!or(mn,Rt);if((Pt||D[Rt])&&typeof D[Rt]!="function"){ct(ft);return}}var Xt=function(){for(var w=function(pt){return function(){var xt=new Error("Method "+pt+" is not implemented by the current driver"),Ut=f.reject(xt);return h(Ut,arguments[arguments.length-1]),Ut}},F=0,H=mn.length;F<H;F++){var it=mn[F];D[it]||(D[it]=w(it))}};Xt();var Ht=function(w){kr[ht]&&console.info("Redefining LocalForage driver: "+ht),kr[ht]=D,Vi[ht]=w,et()};"_support"in D?D._support&&typeof D._support=="function"?D._support().then(Ht,ct):Ht(!!D._support):Ht(!0)}catch(v){ct(v)}});return x($,L,W),$},C.prototype.driver=function(){return this._driver||null},C.prototype.getDriver=function(D,L,W){var $=kr[D]?f.resolve(kr[D]):f.reject(new Error("Driver not found."));return x($,L,W),$},C.prototype.getSerializer=function(D){var L=f.resolve(Or);return x(L,D),L},C.prototype.ready=function(D){var L=this,W=L._driverSet.then(function(){return L._ready===null&&(L._ready=L._initDriver()),L._ready});return x(W,D,D),W},C.prototype.setDriver=function(D,L,W){var $=this;Wi(D)||(D=[D]);var et=this._getSupportedDrivers(D);function ct(){$._config.driver=$.driver()}function ht(yt){return $._extend(yt),ct(),$._ready=$._initStorage($._config),$._ready}function ft(yt){return function(){var _t=0;function Rt(){for(;_t<yt.length;){var Pt=yt[_t];return _t++,$._dbInfo=null,$._ready=null,$.getDriver(Pt).then(ht).catch(Rt)}ct();var Xt=new Error("No available storage method found.");return $._driverSet=f.reject(Xt),$._driverSet}return Rt()}}var dt=this._driverSet!==null?this._driverSet.catch(function(){return f.resolve()}):f.resolve();return this._driverSet=dt.then(function(){var yt=et[0];return $._dbInfo=null,$._ready=null,$.getDriver(yt).then(function(_t){$._driver=_t._driver,ct(),$._wrapLibraryMethodsWithReady(),$._initDriver=ft(et)})}).catch(function(){ct();var yt=new Error("No available storage method found.");return $._driverSet=f.reject(yt),$._driverSet}),x(this._driverSet,L,W),this._driverSet},C.prototype.supports=function(D){return!!Vi[D]},C.prototype._extend=function(D){Qt(this,D)},C.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},C.prototype._wrapLibraryMethodsWithReady=function(){for(var D=0,L=ai.length;D<L;D++)So(this,ai[D])},C.prototype.createInstance=function(D){return new C(D)},C}(),Bo=new Co;r.exports=Bo},{3:3}]},{},[4])(4)})})(ud);var Y2=ud.exports;const ue=L0(Y2);var bh;ue.config(kt({driver:[ue.INDEXEDDB,ue.LOCALSTORAGE],name:"SGP7000",size:4980736,storeName:"keyvaluepairs",version:1,description:"SGP7000"},((bh=window.meta.storage)==null?void 0:bh.config)||{}));function K2(){return{getKey:p=>At(this,null,function*(){return yield ue.key(p)}),getKeys:()=>At(this,null,function*(){return yield ue.keys()}),getItem:p=>At(this,null,function*(){if(p)return yield ue.getItem(p)}),setItem:(p,y)=>At(this,null,function*(){if(p)return yield ue.setItem(p,y)}),removeItem:p=>At(this,null,function*(){if(p)return yield ue.removeItem(p)}),clearItems:()=>At(this,null,function*(){return yield ue.clear()}),iterateItems:(p,y)=>At(this,null,function*(){if(p)return yield ue.iterate(p,y)}),getReady:()=>At(this,null,function*(){return yield ue.ready()}),getLength:()=>At(this,null,function*(){return yield ue.length()}),getDriver:()=>At(this,null,function*(){return yield ue.driver()}),setDriver:p=>At(this,null,function*(){if(p)return yield ue.setDriver(p)}),setConfig:p=>At(this,null,function*(){if(p)return yield ue.config(p)}),dropInstance:p=>At(this,null,function*(){if(p)return yield ue.dropInstance(p)}),createInstance:p=>At(this,null,function*(){if(p)return yield ue.createInstance(p)})}}const J2="THREED_LOG_BUFFER",Z2="THREED_CURRSCENE",Q2="THREED_ACTIVE_MENU",tw="THREED_PIXEL_RATIO",ks="THREED_MODEL_DBNAME",I0="THREED_MODEL_DBSTORE",ew="THREED_SCENE_PREVIEW",T0="THREED_MODEL_LOAD_KEY",wi="THREED_PREVIEW_URL_KEY",rw="THREED_ADDON_EDITOR_JSON",nw="THREED_SCENE_STORAGE_SUFFIX",R0={step:.1},iw=80,ld=30,sw=1e3,ow=1200,aw=3e5,cw="三维测试",uw="灯光",lw=1,hw=["环境光","平行光","点光源","聚光灯","半球光","平面光"],hd=new Set(["syncStatus","disposeTargets","statusMaterials","syncPanelPlacement"]),fw=["AxesHelper","GridHelper","Box3Helper","PerspectiveCamera"],fd=new Set(["GridHelper","AxesHelper","CameraHelper","SpotLightHelper","PointLightHelper","TransformControls","HemisphereLightHelper","DirectionalLightHelper","TransformControlsPlane"]),dd=new Set(["CSS2DObject","CSS3DObject"]),dw=Object.assign({"/src/views/threed/models/pd-sensor.js":X2}),pw=Object.assign({}),xw={环境光:()=>new q2(16777215,1),平行光:()=>new H2(16777215,1),点光源:()=>new cd(16777215,1,0,0),聚光灯:()=>new N2(16777215,1,0,Math.PI/6,0,0),半球光:()=>new z2(16777215,0,1),平面光:()=>new W2(16777215,1,100,100)},mw=[{name:"荧光流动",commonUniforms:!0,vertex:"vUv-material",fragment:`
|
|
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:`
|
|
61
57
|
vec4 o = gl_FragColor.rgba;
|
|
62
58
|
vec2 u = gl_FragCoord.xy;
|
|
63
59
|
vec2 v = iResolution.xy;
|
|
@@ -95,4 +91,4 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,curr
|
|
|
95
91
|
uv *= 2.0 * ( cos(iTime * 2.0) -2.5);
|
|
96
92
|
float anim = sin(iTime * 12.0) * 0.1 + 1.0;
|
|
97
93
|
vec3 col = cheap_star(uv, anim) * vec3(0.35,0.2,0.15);
|
|
98
|
-
`,key:"col",commonFinish:!0,render:"iTime+speed"}];let yi=null,Ue=null;const ih=n=>(n==null?void 0:n.name)||(n==null?void 0:n.label)||"",pd=(n={})=>Object.values(n).filter(t=>t&&(t.label||t.name)),yw=pd(dw),gw=pd(pw),vw=()=>({THREED_GUI_PARAMS:R0,THREED_LOG_BUFFER:J2,THREED_CURRSCENE:Z2,THREED_ACTIVE_MENU:Q2,THREED_PIXEL_RATIO:tw,THREED_IMPORT_SIZE:iw,THREED_LIGHT_TYPES:hw,THREED_EXPORT_BATCH:ld,THREED_RELOAD_DELAY:sw,THREED_MODEL_DBNAME:ks,THREED_MODEL_DBSTORE:I0,THREED_SCENE_PREVIEW:ew,THREED_USER_DATA_KEYS:hd,THREED_MODEL_LOAD_KEY:T0,THREED_PREVIEW_URL_KEY:wi,THREED_ADDON_EDITOR_JSON:rw,THREED_EXPORT_NODE_COUNT:ow,THREED_DEFAULT_SCENE_NAME:cw,THREED_DEFAULT_ACTIVE_MENU:uw,THREED_DEFAULT_PIXEL_RATIO:lw,THREED_EXPORT_VERTEX_COUNT:aw,THREED_SCENE_EXCLUDE_TYPES:fw,THREED_EXPORT_EXCLUDE_TYPES:fd,THREED_EXPORT_RUNTIME_TYPES:dd,THREED_SCENE_STORAGE_SUFFIX:nw});function ww(){const{createInstance:n,dropInstance:t}=K2(),e="/",r=d=>URL.createObjectURL(d),i=()=>At(this,null,function*(){return yield a(),{clearRequest:s,getAllRequest:h,getRequest:f,status:!0,message:"数据库打开成功",DATABASE:Ue}}),s=d=>At(this,null,function*(){if(!d)return{status:!1,message:"删除失败"};yield a(),yield Ue.removeItem(d);const m=l();return m.list=m.list.filter(B=>B.name!==d),{status:!0,message:"删除成功"}}),o=(...m)=>At(this,[...m],function*(d=ks){Ue=null,yi=null,yield t({name:d,storeName:I0})}),a=()=>At(this,null,function*(){return Ue||(yi||(yi=n({name:ks,storeName:I0}).then(d=>(Ue=d,d))),yield yi)}),u=d=>{if(!d)return!1;const m=String(d.message||"");return d.name==="DataError"||m.includes("in-line keys")},c=()=>At(this,null,function*(){Ue=null,yi=null,yield t({name:ks}),yield a()}),l=()=>(window.threeEditorDB||(window.threeEditorDB={db:null,list:[]}),window.threeEditorDB),f=d=>At(this,null,function*(){if(!d)return{status:!1,message:"获取失败"};yield a();const m=yield Ue.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(gt=>gt.blob()),N={blob:B};try{yield Ue.setItem(d,N)}catch(gt){if(!u(gt))throw gt;yield c(),yield Ue.setItem(d,N)}const Z=l(),nt=kt({url:d},N),mt=Z.list.findIndex(gt=>gt.url===d);return mt>-1?Z.list.splice(mt,1,nt):Z.list.push(nt),{status:!0,message:"文件缓存成功",url:r(B)}}),h=()=>At(this,null,function*(){const d=l();yield a();const m=[];return yield Ue.iterate((B,N)=>{m.push(Pe(kt({},B||{}),{name:N}))}),d.list=m,{status:!0,message:"获取成功",data:m}}),x=()=>At(this,null,function*(){const d=yield nr.getApi("/filehandle/scan",{path:gf.threeModelPath,extension:"glb,gltf"}),{children:m}=d.res,B=[];if(m!=null&&m.length)for(const N of m)B.push({name:N.name,path:"/"+N.path});return B}),p=()=>window.GUI_PARAMS||R0,y=()=>window.threeEditor||null,g=()=>window.editorJsons||[],E=()=>({width:window.innerWidth||0,height:window.innerHeight||0}),A=()=>yw,b=()=>l(),_=()=>xw||{},S=()=>window[wi]||"",I=()=>gw,T=()=>window.devicePixelRatio||1,P=()=>window[wi]||"",X=()=>{const d=A(),m=I();return{modelDesigns:d,componentDesigns:m,modelList:d.map(B=>B.label),componentList:m.map(B=>B.label)}},R=(d,m)=>{var B;return(B=d==null?void 0:d.__DESIGNS__)==null?void 0:B.find(N=>N.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[T0];typeof m=="function"&&m(d)},j=d=>!!d&&Number.isFinite(d.x)&&Number.isFinite(d.y)&&Number.isFinite(d.z),K=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")||fd.has(d.type)||dd.has(d.type)||d.isCSS2DObject||d.isCSS3DObject?!1:d.isMesh||d.isGroup||d.isObject3D||d.isLine},V=(d,m)=>d&&Number.isFinite(d.x)&&Number.isFinite(d.y)&&Number.isFinite(d.z)?d:m,J=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=V(d.position,{x:0,y:0,z:0});d.position.set(m.x,m.y,m.z);const B=V(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 N=V(d.up,{x:0,y:1,z:0});d.up.set(N.x,N.y,N.z);const Z=J(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)},rt=(d,m="_blank")=>window.open(d,m),ut=(d,m="")=>window.prompt(d,m),at=()=>window.location.reload(),U=()=>document.documentElement.classList.remove("dark"),G=d=>{if(!Array.isArray(d==null?void 0:d.__DESIGNS__))return X();const m=[...A(),...I()],B=new Set(d.__DESIGNS__.map(N=>ih(N)));return m.forEach(N=>{const Z=ih(N);!Z||B.has(Z)||(B.add(Z),d.__DESIGNS__.unshift(N))}),X()},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));mw.forEach(B=>{m.has(B.name)||(m.add(B.name),d.__GLSLLIB__.push(B))})},Q=(d={})=>{const m={};return Object.entries(d||{}).forEach(([B,N])=>{if(!(hd.has(B)||typeof N=="function")){if(!N||["string","number","boolean"].includes(typeof N)){m[B]=N;return}if(Array.isArray(N)){try{m[B]=structuredClone(N)}catch(Z){return}return}if(!(N.isObject3D||N.isMaterial||N.isTexture||N.nodeType))try{m[B]=structuredClone(N)}catch(Z){return}}}),m},wt=(d=R0)=>{window.GUI_PARAMS=d},St=d=>{window.threeEditor=d},zt=d=>{window.threeEditorDB=d},vt=d=>{window[T0]=d},__$t__=(d="")=>{window[wi]=d},Lt=(d="")=>{window[wi]=d},Gt=d=>{var B;const m=[];return(B=d==null?void 0:d.children)==null||B.forEach(N=>{K(N)&&m.push(N)}),m},Wt=(d=[])=>{const m={rootCount:d.length,nodeCount:0,meshCount:0,vertexCount:0,skippedCount:0};return d.forEach(B=>{B.traverse(N=>{var Z,nt,mt;if(K(N)){m.nodeCount+=1,N.isMesh&&(m.meshCount+=1,m.vertexCount+=((mt=(nt=(Z=N.geometry)==null?void 0:Z.attributes)==null?void 0:nt.position)==null?void 0:mt.count)||0);return}N!==B&&(m.skippedCount+=1)})}),m},Mt=()=>new Promise(d=>requestAnimationFrame(()=>setTimeout(d,0))),qt=()=>new Promise(d=>{if(typeof window.requestIdleCallback=="function"){window.requestIdleCallback(()=>d(),{timeout:80});return}setTimeout(d,0)}),Zt=(d,m)=>At(this,null,function*(){var Z;if(!K(d))return null;const B=d.clone(!1);B.userData=Q(d.userData),j(d.pivot)?B.pivot=new st(d.pivot.x,d.pivot.y,d.pivot.z):"pivot"in B&&delete B.pivot,ot(B);const N=[{source:d,clone:B}];for(;N.length;){const nt=N.shift();for(const mt of nt.source.children){if(!K(mt)){m.skippedCount+=1;continue}const gt=mt.clone(!1);gt.userData=Q(mt.userData),j(mt.pivot)?gt.pivot=new st(mt.pivot.x,mt.pivot.y,mt.pivot.z):"pivot"in gt&&delete gt.pivot,ot(gt),nt.clone.add(gt),N.push({source:mt,clone:gt}),m.processedCount+=1,m.processedCount%ld===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 Mt())}}return B});return{baseUrl:e,getModels:x,getRequest:f,reloadPage:at,promptInput:ut,waitForIdle:qt,waitForPaint:Mt,clearRequest:s,getGuiParams:p,setGuiParams:wt,getAllRequest:h,getEditorJsons:g,getThreeEditor:y,formatFileSize:O,setThreeEditor:St,removeDarkClass:U,openExternalUrl:rt,getThreedModels:A,getViewportSize:E,buildExportScene:(B,...N)=>At(this,[B,...N],function*(d,m={}){const Z=Gt(d),nt=Wt(Z),mt=new sd,gt={totalCount:nt.nodeCount,processedCount:0,skippedCount:0,onProgress:m.onProgress};for(const It of Z){const Ot=yield Zt(It,gt);Ot&&mt.add(Ot),yield qt()}return mt.updateMatrixWorld(!0),nt.skippedCount+=gt.skippedCount,{exportScene:mt,exportObjects:Z,stats:nt}}),createModelDbApi:i,getEditorPreviewSceneUrl:P,getThreeEditorDB:b,sanitizeUserData:Q,setThreeEditorDB:zt,findThreedDesign:R,getThreedLightMap:_,collectExportStats:Wt,getPreviewSceneUrl:S,setEditorPreviewSceneUrl:Lt,setPreviewSceneUrl:__$t__,setModelLoadHander:vt,isExportableObject:K,deleteThreeEditorDB:o,ensureThreeEditorDB:l,getDevicePixelRatio:T,getThreedComponents:I,collectExportObjects:Gt,resetModelDbInstance:c,ensureModelDbInstance:a,getLocalDesignMenuData:X,invokeModelLoadHandler:q,isLegacyInlineKeyError:u,ensureThreedShaderLibrary:tt,ensureThreedDesignRegistry:G}}const{THREED_LOG_BUFFER:cc,THREED_CURRSCENE:js,THREED_ACTIVE_MENU:uc,THREED_PIXEL_RATIO:lc,THREED_SCENE_PREVIEW:hc,THREED_ADDON_EDITOR_JSON:Gs,THREED_DEFAULT_SCENE_NAME:bw,THREED_DEFAULT_ACTIVE_MENU:O0,THREED_DEFAULT_PIXEL_RATIO:P0,THREED_SCENE_STORAGE_SUFFIX:sh}=vw(),Ew=[cc,js,uc,lc,hc,Gs],Fr=(n,t)=>{const e=ic.getLocal(n);return e==null?t:e},Br=(n,t)=>{n&&ic.setLocal(n,t)},f0=n=>{n&&ic.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)||bw},z0=(n=[])=>Array.isArray(n)?n.filter(t=>typeof t=="string"&&t):[],oh=()=>{const n=[],t=Fr(js,{name:"",path:""}),e=Number.parseFloat(Fr(lc,P0));return{taskState:{busy:!1,type:"",title:"",message:"",description:"",progress:0},currScene:t,sceneList:n,previewScene:!!Fr(hc,!1),activeMenuTitle:Fr(uc,O0)||O0,pixelRatio:Number.isFinite(e)&&e>0?e:P0,logarithmicDepthBuffer:Fr(cc,!0)!==!1,addonEditorJson:z0(Fr(Gs,[]))}},xd=k0.defineStore("threed",{state:()=>oh(),actions:{getSceneList(){return At(this,null,function*(){var t;const n=yield nr.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(js,this.sceneName)},createScene(n){return At(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=gf.threeSavePath+"/"+A0()+".json",r=A0();if(!(yield nr.postCommonApi("query/threedfloorplan/create",{data:[{name:t,path:e,guid:r}]})).success)return!1;if(yield My(e,"")){const u=yield nr.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 At(this,null,function*(){var r;if(!n)return;if(!(yield nr.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 At(this,null,function*(){this.currScene=n,Br(js,this.currScene)})},setPreviewMode(n){this.previewScene=!!n,Br(hc,this.previewScene)},setActiveMenuTitle(n){this.activeMenuTitle=n||O0,Br(uc,this.activeMenuTitle)},setPixelRatio(n){const t=Number.parseFloat(n);this.pixelRatio=Number.isFinite(t)&&t>0?t:P0,Br(lc,this.pixelRatio)},setLogarithmicDepthBuffer(n){this.logarithmicDepthBuffer=!!n,Br(cc,this.logarithmicDepthBuffer)},getSceneStorageKey(n){return`${n||this.sceneName}${sh}`},getSceneStorageParams(n,t=null){return Fr(this.getSceneStorageKey(n),t)},setSceneStorageParams(n,t){n&&Br(this.getSceneStorageKey(n),t)},removeSceneStorageParams(n){n&&f0(this.getSceneStorageKey(n))},resetTaskState(){return At(this,null,function*(){yield new Promise(n=>setTimeout(n,120)),this.taskState={busy:!1,type:"",title:"",message:"",description:"",progress:0}})},getAddonEditorJson(){return this.addonEditorJson=z0(Fr(Gs,this.addonEditorJson)),this.addonEditorJson},setAddonEditorJson(n){this.addonEditorJson=z0(n),Br(Gs,this.addonEditorJson)},clearThreedStorage(){Ew.forEach(t=>f0(t)),Object.keys(window.localStorage).filter(t=>t.endsWith(sh)).forEach(t=>f0(t));const n=oh();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}}}),Ci=n=>{const{onClose:t,customClass:e}=n;return Mr(Pe(kt({},n),{center:!0,customClass:`sy-message ${e||""}`,onClose:i=>{t&&t(i)}}))};["success","warning","info","error"].forEach(n=>{Ci[n]=t=>Ci(typeof t=="string"?{type:n,message:t}:Pe(kt({},t),{type:n}))});const _w={backgroundBlurriness:0,backgroundIntensity:1,backgroundUrls:null,environmentEnabled:!1},Sw={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}},Cw={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}]},Bw={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}},Mw={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}}},Iw=[{name:"环境光",type:"AmbientLight",visible:!0,position:{x:0,y:0,z:0},color:16777215,intensity:1,castShadow:!1,layers:{mask:1}}],Tw=[],Rw=[],Ow=[],Pw=[],zw=[],kw={},Nw=[],Lw={viewAngleList:[],clipping:{size:20,clipList:[]}},Uw={scene:_w,perspectiveCamera:Sw,webglRenderer:Cw,orbitControls:Bw,transformControls:Fw,effectComposer:Dw,handler:Mw,lightCores:Iw,innerCores:Tw,modelCores:Rw,drawCores:Ow,textCores:Pw,particleCores:zw,geoCores:kw,designCores:Nw,other:Lw};class $w extends sd{constructor(){super(),this.name="RoomEnvironment",this.position.y=-3.5;const t=new oc;t.deleteAttribute("uv");const e=new Zl({side:Kf}),r=new Zl,i=new cd(16777215,900,28,2);i.position.set(.418,16.199,.3),this.add(i);const s=new pr(t,e);s.position.set(-.757,13.219,.717),s.scale.set(31.713,28.305,28.591),this.add(s);const o=new M2(t,r,6),a=new re;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 pr(t,Pn(50));u.position.set(-16.116,14.37,8.208),u.scale.set(.1,2.428,2.739),this.add(u);const c=new pr(t,Pn(50));c.position.set(-16.109,18.021,-8.207),c.scale.set(.1,2.425,2.751),this.add(c);const l=new pr(t,Pn(17));l.position.set(14.904,12.198,-1.832),l.scale.set(.15,4.265,6.331),this.add(l);const f=new pr(t,Pn(43));f.position.set(-.462,8.89,14.52),f.scale.set(4.38,5.441,.088),this.add(f);const h=new pr(t,Pn(20));h.position.set(3.235,11.486,-12.541),h.scale.set(2.5,2,.1),this.add(h);const x=new pr(t,Pn(100));x.position.set(0,20,0),x.scale.set(1,.1,1),this.add(x)}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 Pn(n){return new P2({color:0,emissive:16777215,emissiveIntensity:n})}const md=(n,t)=>{const e=n.__vccOpts||n;for(const[r,i]of t)e[r]=i;return e},Hw=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=xd(),{currScene:s}=k0.storeToRefs(i),o=e;Yi.ThreeEditor.dracoPath="/draco/";let a=null,u=null;const c=z.ref(null),{setGuiParams:l,getDevicePixelRatio:f,ensureThreedDesignRegistry:h}=ww();h(Yi.ThreeEditor),l({step:.1});const x=()=>{var b;return(b=a==null?void 0:a.renderSceneResize)==null?void 0:b.call(a)};let p=[];const y=()=>{p.forEach(b=>URL.revokeObjectURL(b)),p=[]},g=()=>At(this,null,function*(){var _,S;let b=Uw;try{if(r.data&&Object.keys(r.data).length)b=r.data;else if((_=s.value)!=null&&_.path){const I=yield nr.getApi((S=s.value)==null?void 0:S.path).catch(()=>({}));console.log("初始化三维场景:",I),I.res&&(b=I.res)}b.designCores.forEach(I=>{I.preview=r.preview}),a?a.resetEditorStorage(b):a=new Yi.ThreeEditor(c.value,{fps:null,pixelRatio:f()*i.pixelRatio,webglRenderParams:{antialias:!0,alpha:!0,logarithmicDepthBuffer:i.logarithmicDepthBuffer},sceneParams:b})}catch(I){a==null||a.resetEditorStorage(b)}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),E()}o("emit-three-editor",a),window.addEventListener("resize",x)}),E=()=>{a!=null&&a.renderer&&(u=new Yi.THREE.PMREMGenerator(a.renderer),u.compileEquirectangularShader(),a.scene.environment=u.fromScene(new $w).texture)},A=()=>a;return z.watch(()=>s.value.path,()=>At(this,null,function*(){g()})),z.watch(()=>r.data,()=>{g()},{deep:!0}),z.onMounted(()=>{r.preview||g()}),z.onUnmounted(()=>{window.removeEventListener("resize",x),y(),a==null||a.destroySceneRender(),i.setCurrScene({name:"",path:""})}),t({getEditorInstance:A}),(b,_)=>(z.openBlock(),z.createElementBlock("div",{ref_key:"editorRef",ref:c,class:"threed-editor",onDragover:_[0]||(_[0]=z.withModifiers(()=>{},["prevent"])),onDrop:_[1]||(_[1]=z.withModifiers(()=>{},["prevent"]))},null,544))}}),qw=md(Hw,[["__scopeId","data-v-65e621f7"]]),Ww={class:"threed-preview"},Vw={__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=z.shallowRef({});const o=z.ref(),a=xd(),u={};let c=null;const l=E=>{var b,_,S;if(!E)return;if((b=E==null?void 0:E.includes)!=null&&b.call(E,"token 必传"))return Ci({message:E,type:"warning"});const A=typeof E=="string"?JSON.parse(E):E;if((A==null?void 0:A.data)==="服务错误"||(S=(_=A==null?void 0:A.data)==null?void 0:_.includes)!=null&&S.call(_,"token is expired"))return Ci({message:A.data,type:"warning"});switch(A.action){case fu.ACPOINT.YCVALUE:case fu.ACPOINT.YXVALUE:console.warn("遥测信息");break}},f=()=>{try{c=new Dy({socketUrl:r.socketUrl,token:r.token,onMessage:l})}catch(E){console.warn("三维场景消息处理失败",E)}},h=E=>At(this,null,function*(){var b;const A=yield nr.postCommonApi("queryrealtimepoint",{point_id:E.join(",")});if((b=A==null?void 0:A.data)!=null&&b.length){A.data.forEach(S=>{u[S.guid]=S.value_disp||S.value});const _=g();E.forEach(S=>{const I=_.scene.getObjectByProperty("dataId",S);I&&(I.userData.params.state=u[S],I.userData.params.value=u[S])})}}),x=E=>{console.log("🚀 ~ handleGraphEvent:",E),i("graph-event",E)},p=E=>{var _;console.log("🚀 ~ handleEditorReady:",E),r.socketUrl&&f();const A=E.saveSceneEdit();let b=[];(_=A==null?void 0:A.designCores)==null||_.forEach(S=>{S.designType==="局放测点"&&S.id&&b.push(S.id)}),b!=null&&b.length&&h(b),i("loaded",E)},y=()=>At(this,null,function*(){if(s.value&&Object.keys(s.value).length)return;const E=By(),A=r.url||E.url;if(A){const S=yield nr.getApi(A).catch(()=>({}));S.res&&(s.value=S.res);return}if(!(r.id||E.id)){console.warn("三维场景渲染失败,场景id为空!");return}const _=yield nr.getCommonApi("threedfloorplan",{guid:r.id});_.data.length?a.setCurrScene(_.data[0]):console.warn("三维场景渲染失败,场景id为:"+r.id+"不存在!")}),g=()=>o.value?o.value.getEditorInstance():null;return z.watch(()=>r.data,E=>{s.value=E,y()},{deep:!0,immediate:!0}),z.watch(()=>r.id,()=>{y()},{deep:!0,immediate:!0}),z.onMounted(()=>{_0.on("three-event",x)}),z.onUnmounted(()=>{c&&c.destroy(),_0.off("three-event",x)}),t({getEditorInstance:g}),(E,A)=>(z.openBlock(),z.createElementBlock("div",Ww,[z.createVNode(qw,{ref_key:"threedEditorRef",ref:o,data:z.unref(s),preview:"",onGraphEvent:x,onEmitThreeEditor:p},null,8,["data"])]))}},Di=md(Vw,[["__scopeId","data-v-a0197fe6"]]);Di.name||(Di.name="SyThreedGraph");const jw=n=>{n.component(Di.name||"SyThreedGraph",Di)},Gw={install:jw};exports.SyThreedGraph=Di;exports.default=Gw;
|
|
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;
|