zigap-utils 0.0.463 → 0.0.466

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.
@@ -1,14 +0,0 @@
1
- "use client";"use strict";var W=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yx(S){return S&&S.__esModule&&Object.prototype.hasOwnProperty.call(S,"default")?S.default:S}function Mx(S){if(S.__esModule)return S;var P=S.default;if(typeof P=="function"){var d=function a(){return this instanceof a?Reflect.construct(P,arguments,this.constructor):P.apply(this,arguments)};d.prototype=P.prototype}else d={};return Object.defineProperty(d,"__esModule",{value:!0}),Object.keys(S).forEach(function(a){var p=Object.getOwnPropertyDescriptor(S,a);Object.defineProperty(d,a,p.get?p:{enumerable:!0,get:function(){return S[a]}})}),d}var Vx={exports:{}};function Jx(S){throw new Error('Could not dynamically require "'+S+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var F0={exports:{}};const lr={},Cr=Object.freeze(Object.defineProperty({__proto__:null,default:lr},Symbol.toStringTag,{value:"Module"})),xr=Mx(Cr);var hx;function O(){return hx||(hx=1,function(S,P){(function(d,a){S.exports=a()})(W,function(){var d=d||function(a,p){var D;if(typeof window<"u"&&window.crypto&&(D=window.crypto),typeof self<"u"&&self.crypto&&(D=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(D=globalThis.crypto),!D&&typeof window<"u"&&window.msCrypto&&(D=window.msCrypto),!D&&typeof W<"u"&&W.crypto&&(D=W.crypto),!D&&typeof Jx=="function")try{D=xr}catch{}var w=function(){if(D){if(typeof D.getRandomValues=="function")try{return D.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof D.randomBytes=="function")try{return D.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function t(){}return function(n){var i;return t.prototype=n,i=new t,t.prototype=null,i}}(),h={},x=h.lib={},e=x.Base=function(){return{extend:function(t){var n=u(this);return t&&n.mixIn(t),(!n.hasOwnProperty("init")||this.init===n.init)&&(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),B=x.WordArray=e.extend({init:function(t,n){t=this.words=t||[],n!=p?this.sigBytes=n:this.sigBytes=t.length*4},toString:function(t){return(t||s).stringify(this)},concat:function(t){var n=this.words,i=t.words,E=this.sigBytes,C=t.sigBytes;if(this.clamp(),E%4)for(var A=0;A<C;A++){var _=i[A>>>2]>>>24-A%4*8&255;n[E+A>>>2]|=_<<24-(E+A)%4*8}else for(var R=0;R<C;R+=4)n[E+R>>>2]=i[R>>>2];return this.sigBytes+=C,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=a.ceil(n/4)},clone:function(){var t=e.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],i=0;i<t;i+=4)n.push(w());return new B.init(n,t)}}),r=h.enc={},s=r.Hex={stringify:function(t){for(var n=t.words,i=t.sigBytes,E=[],C=0;C<i;C++){var A=n[C>>>2]>>>24-C%4*8&255;E.push((A>>>4).toString(16)),E.push((A&15).toString(16))}return E.join("")},parse:function(t){for(var n=t.length,i=[],E=0;E<n;E+=2)i[E>>>3]|=parseInt(t.substr(E,2),16)<<24-E%8*4;return new B.init(i,n/2)}},o=r.Latin1={stringify:function(t){for(var n=t.words,i=t.sigBytes,E=[],C=0;C<i;C++){var A=n[C>>>2]>>>24-C%4*8&255;E.push(String.fromCharCode(A))}return E.join("")},parse:function(t){for(var n=t.length,i=[],E=0;E<n;E++)i[E>>>2]|=(t.charCodeAt(E)&255)<<24-E%4*8;return new B.init(i,n)}},c=r.Utf8={stringify:function(t){try{return decodeURIComponent(escape(o.stringify(t)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(t){return o.parse(unescape(encodeURIComponent(t)))}},f=x.BufferedBlockAlgorithm=e.extend({reset:function(){this._data=new B.init,this._nDataBytes=0},_append:function(t){typeof t=="string"&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var n,i=this._data,E=i.words,C=i.sigBytes,A=this.blockSize,_=A*4,R=C/_;t?R=a.ceil(R):R=a.max((R|0)-this._minBufferSize,0);var v=R*A,F=a.min(v*4,C);if(v){for(var y=0;y<v;y+=A)this._doProcessBlock(E,y);n=E.splice(0,v),i.sigBytes-=F}return new B.init(n,F)},clone:function(){var t=e.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});x.Hasher=f.extend({cfg:e.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var n=this._doFinalize();return n},blockSize:16,_createHelper:function(t){return function(n,i){return new t.init(i).finalize(n)}},_createHmacHelper:function(t){return function(n,i){return new l.HMAC.init(t,i).finalize(n)}}});var l=h.algo={};return h}(Math);return d})}(F0)),F0.exports}var D0={exports:{}},lx;function C0(){return lx||(lx=1,function(S,P){(function(d,a){S.exports=a(O())})(W,function(d){return function(a){var p=d,D=p.lib,w=D.Base,u=D.WordArray,h=p.x64={};h.Word=w.extend({init:function(x,e){this.high=x,this.low=e}}),h.WordArray=w.extend({init:function(x,e){x=this.words=x||[],e!=a?this.sigBytes=e:this.sigBytes=x.length*8},toX32:function(){for(var x=this.words,e=x.length,B=[],r=0;r<e;r++){var s=x[r];B.push(s.high),B.push(s.low)}return u.create(B,this.sigBytes)},clone:function(){for(var x=w.clone.call(this),e=x.words=this.words.slice(0),B=e.length,r=0;r<B;r++)e[r]=e[r].clone();return x}})}(),d})}(D0)),D0.exports}var p0={exports:{}},Cx;function Er(){return Cx||(Cx=1,function(S,P){(function(d,a){S.exports=a(O())})(W,function(d){return function(){if(typeof ArrayBuffer=="function"){var a=d,p=a.lib,D=p.WordArray,w=D.init,u=D.init=function(h){if(h instanceof ArrayBuffer&&(h=new Uint8Array(h)),(h instanceof Int8Array||typeof Uint8ClampedArray<"u"&&h instanceof Uint8ClampedArray||h instanceof Int16Array||h instanceof Uint16Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array)&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),h instanceof Uint8Array){for(var x=h.byteLength,e=[],B=0;B<x;B++)e[B>>>2]|=h[B]<<24-B%4*8;w.call(this,e,x)}else w.apply(this,arguments)};u.prototype=D}}(),d.lib.WordArray})}(p0)),p0.exports}var _0={exports:{}},Ex;function Ar(){return Ex||(Ex=1,function(S,P){(function(d,a){S.exports=a(O())})(W,function(d){return function(){var a=d,p=a.lib,D=p.WordArray,w=a.enc;w.Utf16=w.Utf16BE={stringify:function(h){for(var x=h.words,e=h.sigBytes,B=[],r=0;r<e;r+=2){var s=x[r>>>2]>>>16-r%4*8&65535;B.push(String.fromCharCode(s))}return B.join("")},parse:function(h){for(var x=h.length,e=[],B=0;B<x;B++)e[B>>>1]|=h.charCodeAt(B)<<16-B%2*16;return D.create(e,x*2)}},w.Utf16LE={stringify:function(h){for(var x=h.words,e=h.sigBytes,B=[],r=0;r<e;r+=2){var s=u(x[r>>>2]>>>16-r%4*8&65535);B.push(String.fromCharCode(s))}return B.join("")},parse:function(h){for(var x=h.length,e=[],B=0;B<x;B++)e[B>>>1]|=u(h.charCodeAt(B)<<16-B%2*16);return D.create(e,x*2)}};function u(h){return h<<8&4278255360|h>>>8&16711935}}(),d.enc.Utf16})}(_0)),_0.exports}var b0={exports:{}},Ax;function e0(){return Ax||(Ax=1,function(S,P){(function(d,a){S.exports=a(O())})(W,function(d){return function(){var a=d,p=a.lib,D=p.WordArray,w=a.enc;w.Base64={stringify:function(h){var x=h.words,e=h.sigBytes,B=this._map;h.clamp();for(var r=[],s=0;s<e;s+=3)for(var o=x[s>>>2]>>>24-s%4*8&255,c=x[s+1>>>2]>>>24-(s+1)%4*8&255,f=x[s+2>>>2]>>>24-(s+2)%4*8&255,l=o<<16|c<<8|f,t=0;t<4&&s+t*.75<e;t++)r.push(B.charAt(l>>>6*(3-t)&63));var n=B.charAt(64);if(n)for(;r.length%4;)r.push(n);return r.join("")},parse:function(h){var x=h.length,e=this._map,B=this._reverseMap;if(!B){B=this._reverseMap=[];for(var r=0;r<e.length;r++)B[e.charCodeAt(r)]=r}var s=e.charAt(64);if(s){var o=h.indexOf(s);o!==-1&&(x=o)}return u(h,x,B)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(h,x,e){for(var B=[],r=0,s=0;s<x;s++)if(s%4){var o=e[h.charCodeAt(s-1)]<<s%4*2,c=e[h.charCodeAt(s)]>>>6-s%4*2,f=o|c;B[r>>>2]|=f<<24-r%4*8,r++}return D.create(B,r)}}(),d.enc.Base64})}(b0)),b0.exports}var y0={exports:{}},Fx;function Fr(){return Fx||(Fx=1,function(S,P){(function(d,a){S.exports=a(O())})(W,function(d){return function(){var a=d,p=a.lib,D=p.WordArray,w=a.enc;w.Base64url={stringify:function(h,x){x===void 0&&(x=!0);var e=h.words,B=h.sigBytes,r=x?this._safe_map:this._map;h.clamp();for(var s=[],o=0;o<B;o+=3)for(var c=e[o>>>2]>>>24-o%4*8&255,f=e[o+1>>>2]>>>24-(o+1)%4*8&255,l=e[o+2>>>2]>>>24-(o+2)%4*8&255,t=c<<16|f<<8|l,n=0;n<4&&o+n*.75<B;n++)s.push(r.charAt(t>>>6*(3-n)&63));var i=r.charAt(64);if(i)for(;s.length%4;)s.push(i);return s.join("")},parse:function(h,x){x===void 0&&(x=!0);var e=h.length,B=x?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var s=0;s<B.length;s++)r[B.charCodeAt(s)]=s}var o=B.charAt(64);if(o){var c=h.indexOf(o);c!==-1&&(e=c)}return u(h,e,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function u(h,x,e){for(var B=[],r=0,s=0;s<x;s++)if(s%4){var o=e[h.charCodeAt(s-1)]<<s%4*2,c=e[h.charCodeAt(s)]>>>6-s%4*2,f=o|c;B[r>>>2]|=f<<24-r%4*8,r++}return D.create(B,r)}}(),d.enc.Base64url})}(y0)),y0.exports}var g0={exports:{}},Dx;function t0(){return Dx||(Dx=1,function(S,P){(function(d,a){S.exports=a(O())})(W,function(d){return function(a){var p=d,D=p.lib,w=D.WordArray,u=D.Hasher,h=p.algo,x=[];(function(){for(var c=0;c<64;c++)x[c]=a.abs(a.sin(c+1))*4294967296|0})();var e=h.MD5=u.extend({_doReset:function(){this._hash=new w.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(c,f){for(var l=0;l<16;l++){var t=f+l,n=c[t];c[t]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360}var i=this._hash.words,E=c[f+0],C=c[f+1],A=c[f+2],_=c[f+3],R=c[f+4],v=c[f+5],F=c[f+6],y=c[f+7],g=c[f+8],z=c[f+9],q=c[f+10],L=c[f+11],U=c[f+12],I=c[f+13],X=c[f+14],N=c[f+15],b=i[0],H=i[1],m=i[2],k=i[3];b=B(b,H,m,k,E,7,x[0]),k=B(k,b,H,m,C,12,x[1]),m=B(m,k,b,H,A,17,x[2]),H=B(H,m,k,b,_,22,x[3]),b=B(b,H,m,k,R,7,x[4]),k=B(k,b,H,m,v,12,x[5]),m=B(m,k,b,H,F,17,x[6]),H=B(H,m,k,b,y,22,x[7]),b=B(b,H,m,k,g,7,x[8]),k=B(k,b,H,m,z,12,x[9]),m=B(m,k,b,H,q,17,x[10]),H=B(H,m,k,b,L,22,x[11]),b=B(b,H,m,k,U,7,x[12]),k=B(k,b,H,m,I,12,x[13]),m=B(m,k,b,H,X,17,x[14]),H=B(H,m,k,b,N,22,x[15]),b=r(b,H,m,k,C,5,x[16]),k=r(k,b,H,m,F,9,x[17]),m=r(m,k,b,H,L,14,x[18]),H=r(H,m,k,b,E,20,x[19]),b=r(b,H,m,k,v,5,x[20]),k=r(k,b,H,m,q,9,x[21]),m=r(m,k,b,H,N,14,x[22]),H=r(H,m,k,b,R,20,x[23]),b=r(b,H,m,k,z,5,x[24]),k=r(k,b,H,m,X,9,x[25]),m=r(m,k,b,H,_,14,x[26]),H=r(H,m,k,b,g,20,x[27]),b=r(b,H,m,k,I,5,x[28]),k=r(k,b,H,m,A,9,x[29]),m=r(m,k,b,H,y,14,x[30]),H=r(H,m,k,b,U,20,x[31]),b=s(b,H,m,k,v,4,x[32]),k=s(k,b,H,m,g,11,x[33]),m=s(m,k,b,H,L,16,x[34]),H=s(H,m,k,b,X,23,x[35]),b=s(b,H,m,k,C,4,x[36]),k=s(k,b,H,m,R,11,x[37]),m=s(m,k,b,H,y,16,x[38]),H=s(H,m,k,b,q,23,x[39]),b=s(b,H,m,k,I,4,x[40]),k=s(k,b,H,m,E,11,x[41]),m=s(m,k,b,H,_,16,x[42]),H=s(H,m,k,b,F,23,x[43]),b=s(b,H,m,k,z,4,x[44]),k=s(k,b,H,m,U,11,x[45]),m=s(m,k,b,H,N,16,x[46]),H=s(H,m,k,b,A,23,x[47]),b=o(b,H,m,k,E,6,x[48]),k=o(k,b,H,m,y,10,x[49]),m=o(m,k,b,H,X,15,x[50]),H=o(H,m,k,b,v,21,x[51]),b=o(b,H,m,k,U,6,x[52]),k=o(k,b,H,m,_,10,x[53]),m=o(m,k,b,H,q,15,x[54]),H=o(H,m,k,b,C,21,x[55]),b=o(b,H,m,k,g,6,x[56]),k=o(k,b,H,m,N,10,x[57]),m=o(m,k,b,H,F,15,x[58]),H=o(H,m,k,b,I,21,x[59]),b=o(b,H,m,k,R,6,x[60]),k=o(k,b,H,m,L,10,x[61]),m=o(m,k,b,H,A,15,x[62]),H=o(H,m,k,b,z,21,x[63]),i[0]=i[0]+b|0,i[1]=i[1]+H|0,i[2]=i[2]+m|0,i[3]=i[3]+k|0},_doFinalize:function(){var c=this._data,f=c.words,l=this._nDataBytes*8,t=c.sigBytes*8;f[t>>>5]|=128<<24-t%32;var n=a.floor(l/4294967296),i=l;f[(t+64>>>9<<4)+15]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,f[(t+64>>>9<<4)+14]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,c.sigBytes=(f.length+1)*4,this._process();for(var E=this._hash,C=E.words,A=0;A<4;A++){var _=C[A];C[A]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return E},clone:function(){var c=u.clone.call(this);return c._hash=this._hash.clone(),c}});function B(c,f,l,t,n,i,E){var C=c+(f&l|~f&t)+n+E;return(C<<i|C>>>32-i)+f}function r(c,f,l,t,n,i,E){var C=c+(f&t|l&~t)+n+E;return(C<<i|C>>>32-i)+f}function s(c,f,l,t,n,i,E){var C=c+(f^l^t)+n+E;return(C<<i|C>>>32-i)+f}function o(c,f,l,t,n,i,E){var C=c+(l^(f|~t))+n+E;return(C<<i|C>>>32-i)+f}p.MD5=u._createHelper(e),p.HmacMD5=u._createHmacHelper(e)}(Math),d.MD5})}(g0)),g0.exports}var k0={exports:{}},px;function rr(){return px||(px=1,function(S,P){(function(d,a){S.exports=a(O())})(W,function(d){return function(){var a=d,p=a.lib,D=p.WordArray,w=p.Hasher,u=a.algo,h=[],x=u.SHA1=w.extend({_doReset:function(){this._hash=new D.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,B){for(var r=this._hash.words,s=r[0],o=r[1],c=r[2],f=r[3],l=r[4],t=0;t<80;t++){if(t<16)h[t]=e[B+t]|0;else{var n=h[t-3]^h[t-8]^h[t-14]^h[t-16];h[t]=n<<1|n>>>31}var i=(s<<5|s>>>27)+l+h[t];t<20?i+=(o&c|~o&f)+1518500249:t<40?i+=(o^c^f)+1859775393:t<60?i+=(o&c|o&f|c&f)-1894007588:i+=(o^c^f)-899497514,l=f,f=c,c=o<<30|o>>>2,o=s,s=i}r[0]=r[0]+s|0,r[1]=r[1]+o|0,r[2]=r[2]+c|0,r[3]=r[3]+f|0,r[4]=r[4]+l|0},_doFinalize:function(){var e=this._data,B=e.words,r=this._nDataBytes*8,s=e.sigBytes*8;return B[s>>>5]|=128<<24-s%32,B[(s+64>>>9<<4)+14]=Math.floor(r/4294967296),B[(s+64>>>9<<4)+15]=r,e.sigBytes=B.length*4,this._process(),this._hash},clone:function(){var e=w.clone.call(this);return e._hash=this._hash.clone(),e}});a.SHA1=w._createHelper(x),a.HmacSHA1=w._createHmacHelper(x)}(),d.SHA1})}(k0)),k0.exports}var w0={exports:{}},_x;function rx(){return _x||(_x=1,function(S,P){(function(d,a){S.exports=a(O())})(W,function(d){return function(a){var p=d,D=p.lib,w=D.WordArray,u=D.Hasher,h=p.algo,x=[],e=[];(function(){function s(l){for(var t=a.sqrt(l),n=2;n<=t;n++)if(!(l%n))return!1;return!0}function o(l){return(l-(l|0))*4294967296|0}for(var c=2,f=0;f<64;)s(c)&&(f<8&&(x[f]=o(a.pow(c,1/2))),e[f]=o(a.pow(c,1/3)),f++),c++})();var B=[],r=h.SHA256=u.extend({_doReset:function(){this._hash=new w.init(x.slice(0))},_doProcessBlock:function(s,o){for(var c=this._hash.words,f=c[0],l=c[1],t=c[2],n=c[3],i=c[4],E=c[5],C=c[6],A=c[7],_=0;_<64;_++){if(_<16)B[_]=s[o+_]|0;else{var R=B[_-15],v=(R<<25|R>>>7)^(R<<14|R>>>18)^R>>>3,F=B[_-2],y=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10;B[_]=v+B[_-7]+y+B[_-16]}var g=i&E^~i&C,z=f&l^f&t^l&t,q=(f<<30|f>>>2)^(f<<19|f>>>13)^(f<<10|f>>>22),L=(i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25),U=A+L+g+e[_]+B[_],I=q+z;A=C,C=E,E=i,i=n+U|0,n=t,t=l,l=f,f=U+I|0}c[0]=c[0]+f|0,c[1]=c[1]+l|0,c[2]=c[2]+t|0,c[3]=c[3]+n|0,c[4]=c[4]+i|0,c[5]=c[5]+E|0,c[6]=c[6]+C|0,c[7]=c[7]+A|0},_doFinalize:function(){var s=this._data,o=s.words,c=this._nDataBytes*8,f=s.sigBytes*8;return o[f>>>5]|=128<<24-f%32,o[(f+64>>>9<<4)+14]=a.floor(c/4294967296),o[(f+64>>>9<<4)+15]=c,s.sigBytes=o.length*4,this._process(),this._hash},clone:function(){var s=u.clone.call(this);return s._hash=this._hash.clone(),s}});p.SHA256=u._createHelper(r),p.HmacSHA256=u._createHmacHelper(r)}(Math),d.SHA256})}(w0)),w0.exports}var H0={exports:{}},bx;function Dr(){return bx||(bx=1,function(S,P){(function(d,a,p){S.exports=a(O(),rx())})(W,function(d){return function(){var a=d,p=a.lib,D=p.WordArray,w=a.algo,u=w.SHA256,h=w.SHA224=u.extend({_doReset:function(){this._hash=new D.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var x=u._doFinalize.call(this);return x.sigBytes-=4,x}});a.SHA224=u._createHelper(h),a.HmacSHA224=u._createHmacHelper(h)}(),d.SHA224})}(H0)),H0.exports}var m0={exports:{}},yx;function er(){return yx||(yx=1,function(S,P){(function(d,a,p){S.exports=a(O(),C0())})(W,function(d){return function(){var a=d,p=a.lib,D=p.Hasher,w=a.x64,u=w.Word,h=w.WordArray,x=a.algo;function e(){return u.create.apply(u,arguments)}var B=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],r=[];(function(){for(var o=0;o<80;o++)r[o]=e()})();var s=x.SHA512=D.extend({_doReset:function(){this._hash=new h.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(o,c){for(var f=this._hash.words,l=f[0],t=f[1],n=f[2],i=f[3],E=f[4],C=f[5],A=f[6],_=f[7],R=l.high,v=l.low,F=t.high,y=t.low,g=n.high,z=n.low,q=i.high,L=i.low,U=E.high,I=E.low,X=C.high,N=C.low,b=A.high,H=A.low,m=_.high,k=_.low,G=R,K=v,$=F,T=y,i0=g,a0=z,E0=q,f0=L,M=U,j=I,d0=X,s0=N,h0=b,c0=H,A0=m,v0=k,V=0;V<80;V++){var Y,J,l0=r[V];if(V<16)J=l0.high=o[c+V*2]|0,Y=l0.low=o[c+V*2+1]|0;else{var tx=r[V-15],n0=tx.high,u0=tx.low,tr=(n0>>>1|u0<<31)^(n0>>>8|u0<<24)^n0>>>7,ax=(u0>>>1|n0<<31)^(u0>>>8|n0<<24)^(u0>>>7|n0<<25),nx=r[V-2],o0=nx.high,B0=nx.low,ar=(o0>>>19|B0<<13)^(o0<<3|B0>>>29)^o0>>>6,ox=(B0>>>19|o0<<13)^(B0<<3|o0>>>29)^(B0>>>6|o0<<26),ix=r[V-7],nr=ix.high,or=ix.low,fx=r[V-16],ir=fx.high,sx=fx.low;Y=ax+or,J=tr+nr+(Y>>>0<ax>>>0?1:0),Y=Y+ox,J=J+ar+(Y>>>0<ox>>>0?1:0),Y=Y+sx,J=J+ir+(Y>>>0<sx>>>0?1:0),l0.high=J,l0.low=Y}var fr=M&d0^~M&h0,cx=j&s0^~j&c0,sr=G&$^G&i0^$&i0,cr=K&T^K&a0^T&a0,vr=(G>>>28|K<<4)^(G<<30|K>>>2)^(G<<25|K>>>7),vx=(K>>>28|G<<4)^(K<<30|G>>>2)^(K<<25|G>>>7),ur=(M>>>14|j<<18)^(M>>>18|j<<14)^(M<<23|j>>>9),Br=(j>>>14|M<<18)^(j>>>18|M<<14)^(j<<23|M>>>9),ux=B[V],dr=ux.high,Bx=ux.low,Q=v0+Br,x0=A0+ur+(Q>>>0<v0>>>0?1:0),Q=Q+cx,x0=x0+fr+(Q>>>0<cx>>>0?1:0),Q=Q+Bx,x0=x0+dr+(Q>>>0<Bx>>>0?1:0),Q=Q+Y,x0=x0+J+(Q>>>0<Y>>>0?1:0),dx=vx+cr,hr=vr+sr+(dx>>>0<vx>>>0?1:0);A0=h0,v0=c0,h0=d0,c0=s0,d0=M,s0=j,j=f0+Q|0,M=E0+x0+(j>>>0<f0>>>0?1:0)|0,E0=i0,f0=a0,i0=$,a0=T,$=G,T=K,K=Q+dx|0,G=x0+hr+(K>>>0<Q>>>0?1:0)|0}v=l.low=v+K,l.high=R+G+(v>>>0<K>>>0?1:0),y=t.low=y+T,t.high=F+$+(y>>>0<T>>>0?1:0),z=n.low=z+a0,n.high=g+i0+(z>>>0<a0>>>0?1:0),L=i.low=L+f0,i.high=q+E0+(L>>>0<f0>>>0?1:0),I=E.low=I+j,E.high=U+M+(I>>>0<j>>>0?1:0),N=C.low=N+s0,C.high=X+d0+(N>>>0<s0>>>0?1:0),H=A.low=H+c0,A.high=b+h0+(H>>>0<c0>>>0?1:0),k=_.low=k+v0,_.high=m+A0+(k>>>0<v0>>>0?1:0)},_doFinalize:function(){var o=this._data,c=o.words,f=this._nDataBytes*8,l=o.sigBytes*8;c[l>>>5]|=128<<24-l%32,c[(l+128>>>10<<5)+30]=Math.floor(f/4294967296),c[(l+128>>>10<<5)+31]=f,o.sigBytes=c.length*4,this._process();var t=this._hash.toX32();return t},clone:function(){var o=D.clone.call(this);return o._hash=this._hash.clone(),o},blockSize:1024/32});a.SHA512=D._createHelper(s),a.HmacSHA512=D._createHmacHelper(s)}(),d.SHA512})}(m0)),m0.exports}var S0={exports:{}},gx;function pr(){return gx||(gx=1,function(S,P){(function(d,a,p){S.exports=a(O(),C0(),er())})(W,function(d){return function(){var a=d,p=a.x64,D=p.Word,w=p.WordArray,u=a.algo,h=u.SHA512,x=u.SHA384=h.extend({_doReset:function(){this._hash=new w.init([new D.init(3418070365,3238371032),new D.init(1654270250,914150663),new D.init(2438529370,812702999),new D.init(355462360,4144912697),new D.init(1731405415,4290775857),new D.init(2394180231,1750603025),new D.init(3675008525,1694076839),new D.init(1203062813,3204075428)])},_doFinalize:function(){var e=h._doFinalize.call(this);return e.sigBytes-=16,e}});a.SHA384=h._createHelper(x),a.HmacSHA384=h._createHmacHelper(x)}(),d.SHA384})}(S0)),S0.exports}var R0={exports:{}},kx;function _r(){return kx||(kx=1,function(S,P){(function(d,a,p){S.exports=a(O(),C0())})(W,function(d){return function(a){var p=d,D=p.lib,w=D.WordArray,u=D.Hasher,h=p.x64,x=h.Word,e=p.algo,B=[],r=[],s=[];(function(){for(var f=1,l=0,t=0;t<24;t++){B[f+5*l]=(t+1)*(t+2)/2%64;var n=l%5,i=(2*f+3*l)%5;f=n,l=i}for(var f=0;f<5;f++)for(var l=0;l<5;l++)r[f+5*l]=l+(2*f+3*l)%5*5;for(var E=1,C=0;C<24;C++){for(var A=0,_=0,R=0;R<7;R++){if(E&1){var v=(1<<R)-1;v<32?_^=1<<v:A^=1<<v-32}E&128?E=E<<1^113:E<<=1}s[C]=x.create(A,_)}})();var o=[];(function(){for(var f=0;f<25;f++)o[f]=x.create()})();var c=e.SHA3=u.extend({cfg:u.cfg.extend({outputLength:512}),_doReset:function(){for(var f=this._state=[],l=0;l<25;l++)f[l]=new x.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(f,l){for(var t=this._state,n=this.blockSize/2,i=0;i<n;i++){var E=f[l+2*i],C=f[l+2*i+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360;var A=t[i];A.high^=C,A.low^=E}for(var _=0;_<24;_++){for(var R=0;R<5;R++){for(var v=0,F=0,y=0;y<5;y++){var A=t[R+5*y];v^=A.high,F^=A.low}var g=o[R];g.high=v,g.low=F}for(var R=0;R<5;R++)for(var z=o[(R+4)%5],q=o[(R+1)%5],L=q.high,U=q.low,v=z.high^(L<<1|U>>>31),F=z.low^(U<<1|L>>>31),y=0;y<5;y++){var A=t[R+5*y];A.high^=v,A.low^=F}for(var I=1;I<25;I++){var v,F,A=t[I],X=A.high,N=A.low,b=B[I];b<32?(v=X<<b|N>>>32-b,F=N<<b|X>>>32-b):(v=N<<b-32|X>>>64-b,F=X<<b-32|N>>>64-b);var H=o[r[I]];H.high=v,H.low=F}var m=o[0],k=t[0];m.high=k.high,m.low=k.low;for(var R=0;R<5;R++)for(var y=0;y<5;y++){var I=R+5*y,A=t[I],G=o[I],K=o[(R+1)%5+5*y],$=o[(R+2)%5+5*y];A.high=G.high^~K.high&$.high,A.low=G.low^~K.low&$.low}var A=t[0],T=s[_];A.high^=T.high,A.low^=T.low}},_doFinalize:function(){var f=this._data,l=f.words;this._nDataBytes*8;var t=f.sigBytes*8,n=this.blockSize*32;l[t>>>5]|=1<<24-t%32,l[(a.ceil((t+1)/n)*n>>>5)-1]|=128,f.sigBytes=l.length*4,this._process();for(var i=this._state,E=this.cfg.outputLength/8,C=E/8,A=[],_=0;_<C;_++){var R=i[_],v=R.high,F=R.low;v=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,A.push(F),A.push(v)}return new w.init(A,E)},clone:function(){for(var f=u.clone.call(this),l=f._state=this._state.slice(0),t=0;t<25;t++)l[t]=l[t].clone();return f}});p.SHA3=u._createHelper(c),p.HmacSHA3=u._createHmacHelper(c)}(Math),d.SHA3})}(R0)),R0.exports}var z0={exports:{}},wx;function br(){return wx||(wx=1,function(S,P){(function(d,a){S.exports=a(O())})(W,function(d){/** @preserve
2
- (c) 2012 by Cédric Mesnil. All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
-
6
- - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
- - 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.
8
-
9
- 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.
10
- */return function(a){var p=d,D=p.lib,w=D.WordArray,u=D.Hasher,h=p.algo,x=w.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]),e=w.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]),B=w.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]),r=w.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]),s=w.create([0,1518500249,1859775393,2400959708,2840853838]),o=w.create([1352829926,1548603684,1836072691,2053994217,0]),c=h.RIPEMD160=u.extend({_doReset:function(){this._hash=w.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,A){for(var _=0;_<16;_++){var R=A+_,v=C[R];C[R]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var F=this._hash.words,y=s.words,g=o.words,z=x.words,q=e.words,L=B.words,U=r.words,I,X,N,b,H,m,k,G,K,$;m=I=F[0],k=X=F[1],G=N=F[2],K=b=F[3],$=H=F[4];for(var T,_=0;_<80;_+=1)T=I+C[A+z[_]]|0,_<16?T+=f(X,N,b)+y[0]:_<32?T+=l(X,N,b)+y[1]:_<48?T+=t(X,N,b)+y[2]:_<64?T+=n(X,N,b)+y[3]:T+=i(X,N,b)+y[4],T=T|0,T=E(T,L[_]),T=T+H|0,I=H,H=b,b=E(N,10),N=X,X=T,T=m+C[A+q[_]]|0,_<16?T+=i(k,G,K)+g[0]:_<32?T+=n(k,G,K)+g[1]:_<48?T+=t(k,G,K)+g[2]:_<64?T+=l(k,G,K)+g[3]:T+=f(k,G,K)+g[4],T=T|0,T=E(T,U[_]),T=T+$|0,m=$,$=K,K=E(G,10),G=k,k=T;T=F[1]+N+K|0,F[1]=F[2]+b+$|0,F[2]=F[3]+H+m|0,F[3]=F[4]+I+k|0,F[4]=F[0]+X+G|0,F[0]=T},_doFinalize:function(){var C=this._data,A=C.words,_=this._nDataBytes*8,R=C.sigBytes*8;A[R>>>5]|=128<<24-R%32,A[(R+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,C.sigBytes=(A.length+1)*4,this._process();for(var v=this._hash,F=v.words,y=0;y<5;y++){var g=F[y];F[y]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}return v},clone:function(){var C=u.clone.call(this);return C._hash=this._hash.clone(),C}});function f(C,A,_){return C^A^_}function l(C,A,_){return C&A|~C&_}function t(C,A,_){return(C|~A)^_}function n(C,A,_){return C&_|A&~_}function i(C,A,_){return C^(A|~_)}function E(C,A){return C<<A|C>>>32-A}p.RIPEMD160=u._createHelper(c),p.HmacRIPEMD160=u._createHmacHelper(c)}(),d.RIPEMD160})}(z0)),z0.exports}var q0={exports:{}},Hx;function ex(){return Hx||(Hx=1,function(S,P){(function(d,a){S.exports=a(O())})(W,function(d){(function(){var a=d,p=a.lib,D=p.Base,w=a.enc,u=w.Utf8,h=a.algo;h.HMAC=D.extend({init:function(x,e){x=this._hasher=new x.init,typeof e=="string"&&(e=u.parse(e));var B=x.blockSize,r=B*4;e.sigBytes>r&&(e=x.finalize(e)),e.clamp();for(var s=this._oKey=e.clone(),o=this._iKey=e.clone(),c=s.words,f=o.words,l=0;l<B;l++)c[l]^=1549556828,f[l]^=909522486;s.sigBytes=o.sigBytes=r,this.reset()},reset:function(){var x=this._hasher;x.reset(),x.update(this._iKey)},update:function(x){return this._hasher.update(x),this},finalize:function(x){var e=this._hasher,B=e.finalize(x);e.reset();var r=e.finalize(this._oKey.clone().concat(B));return r}})})()})}(q0)),q0.exports}var P0={exports:{}},mx;function yr(){return mx||(mx=1,function(S,P){(function(d,a,p){S.exports=a(O(),rx(),ex())})(W,function(d){return function(){var a=d,p=a.lib,D=p.Base,w=p.WordArray,u=a.algo,h=u.SHA256,x=u.HMAC,e=u.PBKDF2=D.extend({cfg:D.extend({keySize:128/32,hasher:h,iterations:25e4}),init:function(B){this.cfg=this.cfg.extend(B)},compute:function(B,r){for(var s=this.cfg,o=x.create(s.hasher,B),c=w.create(),f=w.create([1]),l=c.words,t=f.words,n=s.keySize,i=s.iterations;l.length<n;){var E=o.update(r).finalize(f);o.reset();for(var C=E.words,A=C.length,_=E,R=1;R<i;R++){_=o.finalize(_),o.reset();for(var v=_.words,F=0;F<A;F++)C[F]^=v[F]}c.concat(E),t[0]++}return c.sigBytes=n*4,c}});a.PBKDF2=function(B,r,s){return e.create(s).compute(B,r)}}(),d.PBKDF2})}(P0)),P0.exports}var W0={exports:{}},Sx;function r0(){return Sx||(Sx=1,function(S,P){(function(d,a,p){S.exports=a(O(),rr(),ex())})(W,function(d){return function(){var a=d,p=a.lib,D=p.Base,w=p.WordArray,u=a.algo,h=u.MD5,x=u.EvpKDF=D.extend({cfg:D.extend({keySize:128/32,hasher:h,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,B){for(var r,s=this.cfg,o=s.hasher.create(),c=w.create(),f=c.words,l=s.keySize,t=s.iterations;f.length<l;){r&&o.update(r),r=o.update(e).finalize(B),o.reset();for(var n=1;n<t;n++)r=o.finalize(r),o.reset();c.concat(r)}return c.sigBytes=l*4,c}});a.EvpKDF=function(e,B,r){return x.create(r).compute(e,B)}}(),d.EvpKDF})}(W0)),W0.exports}var L0={exports:{}},Rx;function Z(){return Rx||(Rx=1,function(S,P){(function(d,a,p){S.exports=a(O(),r0())})(W,function(d){d.lib.Cipher||function(a){var p=d,D=p.lib,w=D.Base,u=D.WordArray,h=D.BufferedBlockAlgorithm,x=p.enc;x.Utf8;var e=x.Base64,B=p.algo,r=B.EvpKDF,s=D.Cipher=h.extend({cfg:w.extend(),createEncryptor:function(v,F){return this.create(this._ENC_XFORM_MODE,v,F)},createDecryptor:function(v,F){return this.create(this._DEC_XFORM_MODE,v,F)},init:function(v,F,y){this.cfg=this.cfg.extend(y),this._xformMode=v,this._key=F,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(v){return this._append(v),this._process()},finalize:function(v){v&&this._append(v);var F=this._doFinalize();return F},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function v(F){return typeof F=="string"?R:C}return function(F){return{encrypt:function(y,g,z){return v(g).encrypt(F,y,g,z)},decrypt:function(y,g,z){return v(g).decrypt(F,y,g,z)}}}}()});D.StreamCipher=s.extend({_doFinalize:function(){var v=this._process(!0);return v},blockSize:1});var o=p.mode={},c=D.BlockCipherMode=w.extend({createEncryptor:function(v,F){return this.Encryptor.create(v,F)},createDecryptor:function(v,F){return this.Decryptor.create(v,F)},init:function(v,F){this._cipher=v,this._iv=F}}),f=o.CBC=function(){var v=c.extend();v.Encryptor=v.extend({processBlock:function(y,g){var z=this._cipher,q=z.blockSize;F.call(this,y,g,q),z.encryptBlock(y,g),this._prevBlock=y.slice(g,g+q)}}),v.Decryptor=v.extend({processBlock:function(y,g){var z=this._cipher,q=z.blockSize,L=y.slice(g,g+q);z.decryptBlock(y,g),F.call(this,y,g,q),this._prevBlock=L}});function F(y,g,z){var q,L=this._iv;L?(q=L,this._iv=a):q=this._prevBlock;for(var U=0;U<z;U++)y[g+U]^=q[U]}return v}(),l=p.pad={},t=l.Pkcs7={pad:function(v,F){for(var y=F*4,g=y-v.sigBytes%y,z=g<<24|g<<16|g<<8|g,q=[],L=0;L<g;L+=4)q.push(z);var U=u.create(q,g);v.concat(U)},unpad:function(v){var F=v.words[v.sigBytes-1>>>2]&255;v.sigBytes-=F}};D.BlockCipher=s.extend({cfg:s.cfg.extend({mode:f,padding:t}),reset:function(){var v;s.reset.call(this);var F=this.cfg,y=F.iv,g=F.mode;this._xformMode==this._ENC_XFORM_MODE?v=g.createEncryptor:(v=g.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==v?this._mode.init(this,y&&y.words):(this._mode=v.call(g,this,y&&y.words),this._mode.__creator=v)},_doProcessBlock:function(v,F){this._mode.processBlock(v,F)},_doFinalize:function(){var v,F=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(F.pad(this._data,this.blockSize),v=this._process(!0)):(v=this._process(!0),F.unpad(v)),v},blockSize:128/32});var n=D.CipherParams=w.extend({init:function(v){this.mixIn(v)},toString:function(v){return(v||this.formatter).stringify(this)}}),i=p.format={},E=i.OpenSSL={stringify:function(v){var F,y=v.ciphertext,g=v.salt;return g?F=u.create([1398893684,1701076831]).concat(g).concat(y):F=y,F.toString(e)},parse:function(v){var F,y=e.parse(v),g=y.words;return g[0]==1398893684&&g[1]==1701076831&&(F=u.create(g.slice(2,4)),g.splice(0,4),y.sigBytes-=16),n.create({ciphertext:y,salt:F})}},C=D.SerializableCipher=w.extend({cfg:w.extend({format:E}),encrypt:function(v,F,y,g){g=this.cfg.extend(g);var z=v.createEncryptor(y,g),q=z.finalize(F),L=z.cfg;return n.create({ciphertext:q,key:y,iv:L.iv,algorithm:v,mode:L.mode,padding:L.padding,blockSize:v.blockSize,formatter:g.format})},decrypt:function(v,F,y,g){g=this.cfg.extend(g),F=this._parse(F,g.format);var z=v.createDecryptor(y,g).finalize(F.ciphertext);return z},_parse:function(v,F){return typeof v=="string"?F.parse(v,this):v}}),A=p.kdf={},_=A.OpenSSL={execute:function(v,F,y,g,z){if(g||(g=u.random(64/8)),z)var q=r.create({keySize:F+y,hasher:z}).compute(v,g);else var q=r.create({keySize:F+y}).compute(v,g);var L=u.create(q.words.slice(F),y*4);return q.sigBytes=F*4,n.create({key:q,iv:L,salt:g})}},R=D.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:_}),encrypt:function(v,F,y,g){g=this.cfg.extend(g);var z=g.kdf.execute(y,v.keySize,v.ivSize,g.salt,g.hasher);g.iv=z.iv;var q=C.encrypt.call(this,v,F,z.key,g);return q.mixIn(z),q},decrypt:function(v,F,y,g){g=this.cfg.extend(g),F=this._parse(F,g.format);var z=g.kdf.execute(y,v.keySize,v.ivSize,F.salt,g.hasher);g.iv=z.iv;var q=C.decrypt.call(this,v,F,z.key,g);return q}})}()})}(L0)),L0.exports}var T0={exports:{}},zx;function gr(){return zx||(zx=1,function(S,P){(function(d,a,p){S.exports=a(O(),Z())})(W,function(d){return d.mode.CFB=function(){var a=d.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(D,w){var u=this._cipher,h=u.blockSize;p.call(this,D,w,h,u),this._prevBlock=D.slice(w,w+h)}}),a.Decryptor=a.extend({processBlock:function(D,w){var u=this._cipher,h=u.blockSize,x=D.slice(w,w+h);p.call(this,D,w,h,u),this._prevBlock=x}});function p(D,w,u,h){var x,e=this._iv;e?(x=e.slice(0),this._iv=void 0):x=this._prevBlock,h.encryptBlock(x,0);for(var B=0;B<u;B++)D[w+B]^=x[B]}return a}(),d.mode.CFB})}(T0)),T0.exports}var O0={exports:{}},qx;function kr(){return qx||(qx=1,function(S,P){(function(d,a,p){S.exports=a(O(),Z())})(W,function(d){return d.mode.CTR=function(){var a=d.lib.BlockCipherMode.extend(),p=a.Encryptor=a.extend({processBlock:function(D,w){var u=this._cipher,h=u.blockSize,x=this._iv,e=this._counter;x&&(e=this._counter=x.slice(0),this._iv=void 0);var B=e.slice(0);u.encryptBlock(B,0),e[h-1]=e[h-1]+1|0;for(var r=0;r<h;r++)D[w+r]^=B[r]}});return a.Decryptor=p,a}(),d.mode.CTR})}(O0)),O0.exports}var I0={exports:{}},Px;function wr(){return Px||(Px=1,function(S,P){(function(d,a,p){S.exports=a(O(),Z())})(W,function(d){/** @preserve
11
- * Counter block mode compatible with Dr Brian Gladman fileenc.c
12
- * derived from CryptoJS.mode.CTR
13
- * Jan Hruby jhruby.web@gmail.com
14
- */return d.mode.CTRGladman=function(){var a=d.lib.BlockCipherMode.extend();function p(u){if((u>>24&255)===255){var h=u>>16&255,x=u>>8&255,e=u&255;h===255?(h=0,x===255?(x=0,e===255?e=0:++e):++x):++h,u=0,u+=h<<16,u+=x<<8,u+=e}else u+=1<<24;return u}function D(u){return(u[0]=p(u[0]))===0&&(u[1]=p(u[1])),u}var w=a.Encryptor=a.extend({processBlock:function(u,h){var x=this._cipher,e=x.blockSize,B=this._iv,r=this._counter;B&&(r=this._counter=B.slice(0),this._iv=void 0),D(r);var s=r.slice(0);x.encryptBlock(s,0);for(var o=0;o<e;o++)u[h+o]^=s[o]}});return a.Decryptor=w,a}(),d.mode.CTRGladman})}(I0)),I0.exports}var N0={exports:{}},Wx;function Hr(){return Wx||(Wx=1,function(S,P){(function(d,a,p){S.exports=a(O(),Z())})(W,function(d){return d.mode.OFB=function(){var a=d.lib.BlockCipherMode.extend(),p=a.Encryptor=a.extend({processBlock:function(D,w){var u=this._cipher,h=u.blockSize,x=this._iv,e=this._keystream;x&&(e=this._keystream=x.slice(0),this._iv=void 0),u.encryptBlock(e,0);for(var B=0;B<h;B++)D[w+B]^=e[B]}});return a.Decryptor=p,a}(),d.mode.OFB})}(N0)),N0.exports}var X0={exports:{}},Lx;function mr(){return Lx||(Lx=1,function(S,P){(function(d,a,p){S.exports=a(O(),Z())})(W,function(d){return d.mode.ECB=function(){var a=d.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(p,D){this._cipher.encryptBlock(p,D)}}),a.Decryptor=a.extend({processBlock:function(p,D){this._cipher.decryptBlock(p,D)}}),a}(),d.mode.ECB})}(X0)),X0.exports}var K0={exports:{}},Tx;function Sr(){return Tx||(Tx=1,function(S,P){(function(d,a,p){S.exports=a(O(),Z())})(W,function(d){return d.pad.AnsiX923={pad:function(a,p){var D=a.sigBytes,w=p*4,u=w-D%w,h=D+u-1;a.clamp(),a.words[h>>>2]|=u<<24-h%4*8,a.sigBytes+=u},unpad:function(a){var p=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=p}},d.pad.Ansix923})}(K0)),K0.exports}var U0={exports:{}},Ox;function Rr(){return Ox||(Ox=1,function(S,P){(function(d,a,p){S.exports=a(O(),Z())})(W,function(d){return d.pad.Iso10126={pad:function(a,p){var D=p*4,w=D-a.sigBytes%D;a.concat(d.lib.WordArray.random(w-1)).concat(d.lib.WordArray.create([w<<24],1))},unpad:function(a){var p=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=p}},d.pad.Iso10126})}(U0)),U0.exports}var G0={exports:{}},Ix;function zr(){return Ix||(Ix=1,function(S,P){(function(d,a,p){S.exports=a(O(),Z())})(W,function(d){return d.pad.Iso97971={pad:function(a,p){a.concat(d.lib.WordArray.create([2147483648],1)),d.pad.ZeroPadding.pad(a,p)},unpad:function(a){d.pad.ZeroPadding.unpad(a),a.sigBytes--}},d.pad.Iso97971})}(G0)),G0.exports}var Z0={exports:{}},Nx;function qr(){return Nx||(Nx=1,function(S,P){(function(d,a,p){S.exports=a(O(),Z())})(W,function(d){return d.pad.ZeroPadding={pad:function(a,p){var D=p*4;a.clamp(),a.sigBytes+=D-(a.sigBytes%D||D)},unpad:function(a){for(var p=a.words,D=a.sigBytes-1,D=a.sigBytes-1;D>=0;D--)if(p[D>>>2]>>>24-D%4*8&255){a.sigBytes=D+1;break}}},d.pad.ZeroPadding})}(Z0)),Z0.exports}var $0={exports:{}},Xx;function Pr(){return Xx||(Xx=1,function(S,P){(function(d,a,p){S.exports=a(O(),Z())})(W,function(d){return d.pad.NoPadding={pad:function(){},unpad:function(){}},d.pad.NoPadding})}($0)),$0.exports}var j0={exports:{}},Kx;function Wr(){return Kx||(Kx=1,function(S,P){(function(d,a,p){S.exports=a(O(),Z())})(W,function(d){return function(a){var p=d,D=p.lib,w=D.CipherParams,u=p.enc,h=u.Hex,x=p.format;x.Hex={stringify:function(e){return e.ciphertext.toString(h)},parse:function(e){var B=h.parse(e);return w.create({ciphertext:B})}}}(),d.format.Hex})}(j0)),j0.exports}var Q0={exports:{}},Ux;function Lr(){return Ux||(Ux=1,function(S,P){(function(d,a,p){S.exports=a(O(),e0(),t0(),r0(),Z())})(W,function(d){return function(){var a=d,p=a.lib,D=p.BlockCipher,w=a.algo,u=[],h=[],x=[],e=[],B=[],r=[],s=[],o=[],c=[],f=[];(function(){for(var n=[],i=0;i<256;i++)i<128?n[i]=i<<1:n[i]=i<<1^283;for(var E=0,C=0,i=0;i<256;i++){var A=C^C<<1^C<<2^C<<3^C<<4;A=A>>>8^A&255^99,u[E]=A,h[A]=E;var _=n[E],R=n[_],v=n[R],F=n[A]*257^A*16843008;x[E]=F<<24|F>>>8,e[E]=F<<16|F>>>16,B[E]=F<<8|F>>>24,r[E]=F;var F=v*16843009^R*65537^_*257^E*16843008;s[A]=F<<24|F>>>8,o[A]=F<<16|F>>>16,c[A]=F<<8|F>>>24,f[A]=F,E?(E=_^n[n[n[v^_]]],C^=n[n[C]]):E=C=1}})();var l=[0,1,2,4,8,16,32,64,128,27,54],t=w.AES=D.extend({_doReset:function(){var n;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var i=this._keyPriorReset=this._key,E=i.words,C=i.sigBytes/4,A=this._nRounds=C+6,_=(A+1)*4,R=this._keySchedule=[],v=0;v<_;v++)v<C?R[v]=E[v]:(n=R[v-1],v%C?C>6&&v%C==4&&(n=u[n>>>24]<<24|u[n>>>16&255]<<16|u[n>>>8&255]<<8|u[n&255]):(n=n<<8|n>>>24,n=u[n>>>24]<<24|u[n>>>16&255]<<16|u[n>>>8&255]<<8|u[n&255],n^=l[v/C|0]<<24),R[v]=R[v-C]^n);for(var F=this._invKeySchedule=[],y=0;y<_;y++){var v=_-y;if(y%4)var n=R[v];else var n=R[v-4];y<4||v<=4?F[y]=n:F[y]=s[u[n>>>24]]^o[u[n>>>16&255]]^c[u[n>>>8&255]]^f[u[n&255]]}}},encryptBlock:function(n,i){this._doCryptBlock(n,i,this._keySchedule,x,e,B,r,u)},decryptBlock:function(n,i){var E=n[i+1];n[i+1]=n[i+3],n[i+3]=E,this._doCryptBlock(n,i,this._invKeySchedule,s,o,c,f,h);var E=n[i+1];n[i+1]=n[i+3],n[i+3]=E},_doCryptBlock:function(n,i,E,C,A,_,R,v){for(var F=this._nRounds,y=n[i]^E[0],g=n[i+1]^E[1],z=n[i+2]^E[2],q=n[i+3]^E[3],L=4,U=1;U<F;U++){var I=C[y>>>24]^A[g>>>16&255]^_[z>>>8&255]^R[q&255]^E[L++],X=C[g>>>24]^A[z>>>16&255]^_[q>>>8&255]^R[y&255]^E[L++],N=C[z>>>24]^A[q>>>16&255]^_[y>>>8&255]^R[g&255]^E[L++],b=C[q>>>24]^A[y>>>16&255]^_[g>>>8&255]^R[z&255]^E[L++];y=I,g=X,z=N,q=b}var I=(v[y>>>24]<<24|v[g>>>16&255]<<16|v[z>>>8&255]<<8|v[q&255])^E[L++],X=(v[g>>>24]<<24|v[z>>>16&255]<<16|v[q>>>8&255]<<8|v[y&255])^E[L++],N=(v[z>>>24]<<24|v[q>>>16&255]<<16|v[y>>>8&255]<<8|v[g&255])^E[L++],b=(v[q>>>24]<<24|v[y>>>16&255]<<16|v[g>>>8&255]<<8|v[z&255])^E[L++];n[i]=I,n[i+1]=X,n[i+2]=N,n[i+3]=b},keySize:256/32});a.AES=D._createHelper(t)}(),d.AES})}(Q0)),Q0.exports}var Y0={exports:{}},Gx;function Tr(){return Gx||(Gx=1,function(S,P){(function(d,a,p){S.exports=a(O(),e0(),t0(),r0(),Z())})(W,function(d){return function(){var a=d,p=a.lib,D=p.WordArray,w=p.BlockCipher,u=a.algo,h=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],x=[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],e=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],B=[{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}],r=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],s=u.DES=w.extend({_doReset:function(){for(var l=this._key,t=l.words,n=[],i=0;i<56;i++){var E=h[i]-1;n[i]=t[E>>>5]>>>31-E%32&1}for(var C=this._subKeys=[],A=0;A<16;A++){for(var _=C[A]=[],R=e[A],i=0;i<24;i++)_[i/6|0]|=n[(x[i]-1+R)%28]<<31-i%6,_[4+(i/6|0)]|=n[28+(x[i+24]-1+R)%28]<<31-i%6;_[0]=_[0]<<1|_[0]>>>31;for(var i=1;i<7;i++)_[i]=_[i]>>>(i-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var v=this._invSubKeys=[],i=0;i<16;i++)v[i]=C[15-i]},encryptBlock:function(l,t){this._doCryptBlock(l,t,this._subKeys)},decryptBlock:function(l,t){this._doCryptBlock(l,t,this._invSubKeys)},_doCryptBlock:function(l,t,n){this._lBlock=l[t],this._rBlock=l[t+1],o.call(this,4,252645135),o.call(this,16,65535),c.call(this,2,858993459),c.call(this,8,16711935),o.call(this,1,1431655765);for(var i=0;i<16;i++){for(var E=n[i],C=this._lBlock,A=this._rBlock,_=0,R=0;R<8;R++)_|=B[R][((A^E[R])&r[R])>>>0];this._lBlock=A,this._rBlock=C^_}var v=this._lBlock;this._lBlock=this._rBlock,this._rBlock=v,o.call(this,1,1431655765),c.call(this,8,16711935),c.call(this,2,858993459),o.call(this,16,65535),o.call(this,4,252645135),l[t]=this._lBlock,l[t+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function o(l,t){var n=(this._lBlock>>>l^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<l}function c(l,t){var n=(this._rBlock>>>l^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<l}a.DES=w._createHelper(s);var f=u.TripleDES=w.extend({_doReset:function(){var l=this._key,t=l.words;if(t.length!==2&&t.length!==4&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),E=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=s.createEncryptor(D.create(n)),this._des2=s.createEncryptor(D.create(i)),this._des3=s.createEncryptor(D.create(E))},encryptBlock:function(l,t){this._des1.encryptBlock(l,t),this._des2.decryptBlock(l,t),this._des3.encryptBlock(l,t)},decryptBlock:function(l,t){this._des3.decryptBlock(l,t),this._des2.encryptBlock(l,t),this._des1.decryptBlock(l,t)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=w._createHelper(f)}(),d.TripleDES})}(Y0)),Y0.exports}var M0={exports:{}},Zx;function Or(){return Zx||(Zx=1,function(S,P){(function(d,a,p){S.exports=a(O(),e0(),t0(),r0(),Z())})(W,function(d){return function(){var a=d,p=a.lib,D=p.StreamCipher,w=a.algo,u=w.RC4=D.extend({_doReset:function(){for(var e=this._key,B=e.words,r=e.sigBytes,s=this._S=[],o=0;o<256;o++)s[o]=o;for(var o=0,c=0;o<256;o++){var f=o%r,l=B[f>>>2]>>>24-f%4*8&255;c=(c+s[o]+l)%256;var t=s[o];s[o]=s[c],s[c]=t}this._i=this._j=0},_doProcessBlock:function(e,B){e[B]^=h.call(this)},keySize:256/32,ivSize:0});function h(){for(var e=this._S,B=this._i,r=this._j,s=0,o=0;o<4;o++){B=(B+1)%256,r=(r+e[B])%256;var c=e[B];e[B]=e[r],e[r]=c,s|=e[(e[B]+e[r])%256]<<24-o*8}return this._i=B,this._j=r,s}a.RC4=D._createHelper(u);var x=w.RC4Drop=u.extend({cfg:u.cfg.extend({drop:192}),_doReset:function(){u._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)h.call(this)}});a.RC4Drop=D._createHelper(x)}(),d.RC4})}(M0)),M0.exports}var V0={exports:{}},$x;function Ir(){return $x||($x=1,function(S,P){(function(d,a,p){S.exports=a(O(),e0(),t0(),r0(),Z())})(W,function(d){return function(){var a=d,p=a.lib,D=p.StreamCipher,w=a.algo,u=[],h=[],x=[],e=w.Rabbit=D.extend({_doReset:function(){for(var r=this._key.words,s=this.cfg.iv,o=0;o<4;o++)r[o]=(r[o]<<8|r[o]>>>24)&16711935|(r[o]<<24|r[o]>>>8)&4278255360;var c=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],f=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var o=0;o<4;o++)B.call(this);for(var o=0;o<8;o++)f[o]^=c[o+4&7];if(s){var l=s.words,t=l[0],n=l[1],i=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360,E=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,C=i>>>16|E&4294901760,A=E<<16|i&65535;f[0]^=i,f[1]^=C,f[2]^=E,f[3]^=A,f[4]^=i,f[5]^=C,f[6]^=E,f[7]^=A;for(var o=0;o<4;o++)B.call(this)}},_doProcessBlock:function(r,s){var o=this._X;B.call(this),u[0]=o[0]^o[5]>>>16^o[3]<<16,u[1]=o[2]^o[7]>>>16^o[5]<<16,u[2]=o[4]^o[1]>>>16^o[7]<<16,u[3]=o[6]^o[3]>>>16^o[1]<<16;for(var c=0;c<4;c++)u[c]=(u[c]<<8|u[c]>>>24)&16711935|(u[c]<<24|u[c]>>>8)&4278255360,r[s+c]^=u[c]},blockSize:128/32,ivSize:64/32});function B(){for(var r=this._X,s=this._C,o=0;o<8;o++)h[o]=s[o];s[0]=s[0]+1295307597+this._b|0,s[1]=s[1]+3545052371+(s[0]>>>0<h[0]>>>0?1:0)|0,s[2]=s[2]+886263092+(s[1]>>>0<h[1]>>>0?1:0)|0,s[3]=s[3]+1295307597+(s[2]>>>0<h[2]>>>0?1:0)|0,s[4]=s[4]+3545052371+(s[3]>>>0<h[3]>>>0?1:0)|0,s[5]=s[5]+886263092+(s[4]>>>0<h[4]>>>0?1:0)|0,s[6]=s[6]+1295307597+(s[5]>>>0<h[5]>>>0?1:0)|0,s[7]=s[7]+3545052371+(s[6]>>>0<h[6]>>>0?1:0)|0,this._b=s[7]>>>0<h[7]>>>0?1:0;for(var o=0;o<8;o++){var c=r[o]+s[o],f=c&65535,l=c>>>16,t=((f*f>>>17)+f*l>>>15)+l*l,n=((c&4294901760)*c|0)+((c&65535)*c|0);x[o]=t^n}r[0]=x[0]+(x[7]<<16|x[7]>>>16)+(x[6]<<16|x[6]>>>16)|0,r[1]=x[1]+(x[0]<<8|x[0]>>>24)+x[7]|0,r[2]=x[2]+(x[1]<<16|x[1]>>>16)+(x[0]<<16|x[0]>>>16)|0,r[3]=x[3]+(x[2]<<8|x[2]>>>24)+x[1]|0,r[4]=x[4]+(x[3]<<16|x[3]>>>16)+(x[2]<<16|x[2]>>>16)|0,r[5]=x[5]+(x[4]<<8|x[4]>>>24)+x[3]|0,r[6]=x[6]+(x[5]<<16|x[5]>>>16)+(x[4]<<16|x[4]>>>16)|0,r[7]=x[7]+(x[6]<<8|x[6]>>>24)+x[5]|0}a.Rabbit=D._createHelper(e)}(),d.Rabbit})}(V0)),V0.exports}var J0={exports:{}},jx;function Nr(){return jx||(jx=1,function(S,P){(function(d,a,p){S.exports=a(O(),e0(),t0(),r0(),Z())})(W,function(d){return function(){var a=d,p=a.lib,D=p.StreamCipher,w=a.algo,u=[],h=[],x=[],e=w.RabbitLegacy=D.extend({_doReset:function(){var r=this._key.words,s=this.cfg.iv,o=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],c=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var f=0;f<4;f++)B.call(this);for(var f=0;f<8;f++)c[f]^=o[f+4&7];if(s){var l=s.words,t=l[0],n=l[1],i=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360,E=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,C=i>>>16|E&4294901760,A=E<<16|i&65535;c[0]^=i,c[1]^=C,c[2]^=E,c[3]^=A,c[4]^=i,c[5]^=C,c[6]^=E,c[7]^=A;for(var f=0;f<4;f++)B.call(this)}},_doProcessBlock:function(r,s){var o=this._X;B.call(this),u[0]=o[0]^o[5]>>>16^o[3]<<16,u[1]=o[2]^o[7]>>>16^o[5]<<16,u[2]=o[4]^o[1]>>>16^o[7]<<16,u[3]=o[6]^o[3]>>>16^o[1]<<16;for(var c=0;c<4;c++)u[c]=(u[c]<<8|u[c]>>>24)&16711935|(u[c]<<24|u[c]>>>8)&4278255360,r[s+c]^=u[c]},blockSize:128/32,ivSize:64/32});function B(){for(var r=this._X,s=this._C,o=0;o<8;o++)h[o]=s[o];s[0]=s[0]+1295307597+this._b|0,s[1]=s[1]+3545052371+(s[0]>>>0<h[0]>>>0?1:0)|0,s[2]=s[2]+886263092+(s[1]>>>0<h[1]>>>0?1:0)|0,s[3]=s[3]+1295307597+(s[2]>>>0<h[2]>>>0?1:0)|0,s[4]=s[4]+3545052371+(s[3]>>>0<h[3]>>>0?1:0)|0,s[5]=s[5]+886263092+(s[4]>>>0<h[4]>>>0?1:0)|0,s[6]=s[6]+1295307597+(s[5]>>>0<h[5]>>>0?1:0)|0,s[7]=s[7]+3545052371+(s[6]>>>0<h[6]>>>0?1:0)|0,this._b=s[7]>>>0<h[7]>>>0?1:0;for(var o=0;o<8;o++){var c=r[o]+s[o],f=c&65535,l=c>>>16,t=((f*f>>>17)+f*l>>>15)+l*l,n=((c&4294901760)*c|0)+((c&65535)*c|0);x[o]=t^n}r[0]=x[0]+(x[7]<<16|x[7]>>>16)+(x[6]<<16|x[6]>>>16)|0,r[1]=x[1]+(x[0]<<8|x[0]>>>24)+x[7]|0,r[2]=x[2]+(x[1]<<16|x[1]>>>16)+(x[0]<<16|x[0]>>>16)|0,r[3]=x[3]+(x[2]<<8|x[2]>>>24)+x[1]|0,r[4]=x[4]+(x[3]<<16|x[3]>>>16)+(x[2]<<16|x[2]>>>16)|0,r[5]=x[5]+(x[4]<<8|x[4]>>>24)+x[3]|0,r[6]=x[6]+(x[5]<<16|x[5]>>>16)+(x[4]<<16|x[4]>>>16)|0,r[7]=x[7]+(x[6]<<8|x[6]>>>24)+x[5]|0}a.RabbitLegacy=D._createHelper(e)}(),d.RabbitLegacy})}(J0)),J0.exports}var xx={exports:{}},Qx;function Xr(){return Qx||(Qx=1,function(S,P){(function(d,a,p){S.exports=a(O(),e0(),t0(),r0(),Z())})(W,function(d){return function(){var a=d,p=a.lib,D=p.BlockCipher,w=a.algo;const u=16,h=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],x=[[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 e={pbox:[],sbox:[]};function B(f,l){let t=l>>24&255,n=l>>16&255,i=l>>8&255,E=l&255,C=f.sbox[0][t]+f.sbox[1][n];return C=C^f.sbox[2][i],C=C+f.sbox[3][E],C}function r(f,l,t){let n=l,i=t,E;for(let C=0;C<u;++C)n=n^f.pbox[C],i=B(f,n)^i,E=n,n=i,i=E;return E=n,n=i,i=E,i=i^f.pbox[u],n=n^f.pbox[u+1],{left:n,right:i}}function s(f,l,t){let n=l,i=t,E;for(let C=u+1;C>1;--C)n=n^f.pbox[C],i=B(f,n)^i,E=n,n=i,i=E;return E=n,n=i,i=E,i=i^f.pbox[1],n=n^f.pbox[0],{left:n,right:i}}function o(f,l,t){for(let A=0;A<4;A++){f.sbox[A]=[];for(let _=0;_<256;_++)f.sbox[A][_]=x[A][_]}let n=0;for(let A=0;A<u+2;A++)f.pbox[A]=h[A]^l[n],n++,n>=t&&(n=0);let i=0,E=0,C=0;for(let A=0;A<u+2;A+=2)C=r(f,i,E),i=C.left,E=C.right,f.pbox[A]=i,f.pbox[A+1]=E;for(let A=0;A<4;A++)for(let _=0;_<256;_+=2)C=r(f,i,E),i=C.left,E=C.right,f.sbox[A][_]=i,f.sbox[A][_+1]=E;return!0}var c=w.Blowfish=D.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var f=this._keyPriorReset=this._key,l=f.words,t=f.sigBytes/4;o(e,l,t)}},encryptBlock:function(f,l){var t=r(e,f[l],f[l+1]);f[l]=t.left,f[l+1]=t.right},decryptBlock:function(f,l){var t=s(e,f[l],f[l+1]);f[l]=t.left,f[l+1]=t.right},blockSize:64/32,keySize:128/32,ivSize:64/32});a.Blowfish=D._createHelper(c)}(),d.Blowfish})}(xx)),xx.exports}(function(S,P){(function(d,a,p){S.exports=a(O(),C0(),Er(),Ar(),e0(),Fr(),t0(),rr(),rx(),Dr(),er(),pr(),_r(),br(),ex(),yr(),r0(),Z(),gr(),kr(),wr(),Hr(),mr(),Sr(),Rr(),zr(),qr(),Pr(),Wr(),Lr(),Tr(),Or(),Ir(),Nr(),Xr())})(W,function(d){return d})})(Vx);var Kr=Vx.exports;const Ur=Yx(Kr);exports.CryptoJS=Ur;exports.commonjsGlobal=W;exports.commonjsRequire=Jx;exports.getAugmentedNamespace=Mx;exports.getDefaultExportFromCjs=Yx;exports.require$$0=xr;
@@ -1 +0,0 @@
1
- "use client";"use strict";var ve=Object.defineProperty;var ke=(n,e,t)=>e in n?ve(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var A=(n,e,t)=>(ke(n,typeof e!="symbol"?e+"":e,t),t);const J=require("./index.cjs2.js"),d=Object.create(null);d.open="0";d.close="1";d.ping="2";d.pong="3";d.message="4";d.upgrade="5";d.noop="6";const S=Object.create(null);Object.keys(d).forEach(n=>{S[d[n]]=n});const P={type:"error",data:"parser error"},re=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",oe=typeof ArrayBuffer=="function",ce=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,$=({type:n,data:e},t,s)=>re&&e instanceof Blob?t?s(e):Q(e,s):oe&&(e instanceof ArrayBuffer||ce(e))?t?s(e):Q(new Blob([e]),s):s(d[n]+(e||"")),Q=(n,e)=>{const t=new FileReader;return t.onload=function(){const s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(n)};function X(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let L;function Ee(n,e){if(re&&n.data instanceof Blob)return n.data.arrayBuffer().then(X).then(e);if(oe&&(n.data instanceof ArrayBuffer||ce(n.data)))return e(X(n.data));$(n,!1,t=>{L||(L=new TextEncoder),e(L.encode(t))})}const j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<j.length;n++)_[j.charCodeAt(n)]=n;const _e=n=>{let e=n.length*.75,t=n.length,s,i=0,r,o,a,h;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const g=new ArrayBuffer(e),y=new Uint8Array(g);for(s=0;s<t;s+=4)r=_[n.charCodeAt(s)],o=_[n.charCodeAt(s+1)],a=_[n.charCodeAt(s+2)],h=_[n.charCodeAt(s+3)],y[i++]=r<<2|o>>4,y[i++]=(o&15)<<4|a>>2,y[i++]=(a&3)<<6|h&63;return g},Ae=typeof ArrayBuffer=="function",H=(n,e)=>{if(typeof n!="string")return{type:"message",data:ae(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:Re(n.substring(1),e)}:S[t]?n.length>1?{type:S[t],data:n.substring(1)}:{type:S[t]}:P},Re=(n,e)=>{if(Ae){const t=_e(n);return ae(t,e)}else return{base64:!0,data:n}},ae=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},he="",Te=(n,e)=>{const t=n.length,s=new Array(t);let i=0;n.forEach((r,o)=>{$(r,!1,a=>{s[o]=a,++i===t&&e(s.join(he))})})},Oe=(n,e)=>{const t=n.split(he),s=[];for(let i=0;i<t.length;i++){const r=H(t[i],e);if(s.push(r),r.type==="error")break}return s};function Ce(){return new TransformStream({transform(n,e){Ee(n,t=>{const s=t.length;let i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);const r=new DataView(i.buffer);r.setUint8(0,126),r.setUint16(1,s)}else{i=new Uint8Array(9);const r=new DataView(i.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let q;function R(n){return n.reduce((e,t)=>e+t.length,0)}function T(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let s=0;for(let i=0;i<e;i++)t[i]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),t}function Se(n,e){q||(q=new TextDecoder);const t=[];let s=0,i=-1,r=!1;return new TransformStream({transform(o,a){for(t.push(o);;){if(s===0){if(R(t)<1)break;const h=T(t,1);r=(h[0]&128)===128,i=h[0]&127,i<126?s=3:i===126?s=1:s=2}else if(s===1){if(R(t)<2)break;const h=T(t,2);i=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),s=3}else if(s===2){if(R(t)<8)break;const h=T(t,8),g=new DataView(h.buffer,h.byteOffset,h.length),y=g.getUint32(0);if(y>Math.pow(2,21)-1){a.enqueue(P);break}i=y*Math.pow(2,32)+g.getUint32(4),s=3}else{if(R(t)<i)break;const h=T(t,i);a.enqueue(H(r?h:q.decode(h),e)),s=0}if(i===0||i>n){a.enqueue(P);break}}}})}const fe=4;function f(n){if(n)return Be(n)}function Be(n){for(var e in f.prototype)n[e]=f.prototype[e];return n}f.prototype.on=f.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};f.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};f.prototype.off=f.prototype.removeListener=f.prototype.removeAllListeners=f.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,i=0;i<t.length;i++)if(s=t[i],s===e||s.fn===e){t.splice(i,1);break}return t.length===0&&delete this._callbacks["$"+n],this};f.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+n],s=1;s<arguments.length;s++)e[s-1]=arguments[s];if(t){t=t.slice(0);for(var s=0,i=t.length;s<i;++s)t[s].apply(this,e)}return this};f.prototype.emitReserved=f.prototype.emit;f.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};f.prototype.hasListeners=function(n){return!!this.listeners(n).length};const u=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function ue(n,...e){return e.reduce((t,s)=>(n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}const xe=u.setTimeout,Ne=u.clearTimeout;function N(n,e){e.useNativeTimers?(n.setTimeoutFn=xe.bind(u),n.clearTimeoutFn=Ne.bind(u)):(n.setTimeoutFn=u.setTimeout.bind(u),n.clearTimeoutFn=u.clearTimeout.bind(u))}const Le=1.33;function qe(n){return typeof n=="string"?Pe(n):Math.ceil((n.byteLength||n.size)*Le)}function Pe(n){let e=0,t=0;for(let s=0,i=n.length;s<i;s++)e=n.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function Ie(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function De(n){let e={},t=n.split("&");for(let s=0,i=t.length;s<i;s++){let r=t[s].split("=");e[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return e}class Ue extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class K extends f{constructor(e){super(),this.writable=!1,N(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,s){return super.emitReserved("error",new Ue(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=H(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=Ie(e);return t.length?"?"+t:""}}const le="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),I=64,Me={};let G=0,O=0,Z;function ee(n){let e="";do e=le[n%I]+e,n=Math.floor(n/I);while(n>0);return e}function pe(){const n=ee(+new Date);return n!==Z?(G=0,Z=n):n+"."+ee(G++)}for(;O<I;O++)Me[le[O]]=O;let de=!1;try{de=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Ve=de;function ye(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Ve))return new XMLHttpRequest}catch{}if(!e)try{return new u[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Fe(){}const $e=function(){return new ye({xdomain:!1}).responseType!=null}();class He extends K{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const s=location.protocol==="https:";let i=location.port;i||(i=s?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}const t=e&&e.forceBase64;this.supportsBinary=$e&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let s=0;this.polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Oe(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,Te(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=pe()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new p(this.uri(),e)}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,r)=>{this.onError("xhr post error",i,r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class p extends f{constructor(e,t){super(),N(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=t.data!==void 0?t.data:null,this.create()}create(){var e;const t=ue(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const s=this.xhr=new ye(t);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(s.timeout=this.opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(s)),s.readyState===4&&(s.status===200||s.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof s.status=="number"?s.status:0)},0))},s.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=p.requestsCount++,p.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Fe,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete p.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}p.requestsCount=0;p.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",te);else if(typeof addEventListener=="function"){const n="onpagehide"in u?"pagehide":"unload";addEventListener(n,te,!1)}}function te(){for(let n in p.requests)p.requests.hasOwnProperty(n)&&p.requests[n].abort()}const W=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),C=u.WebSocket||u.MozWebSocket,se=!0,Ke="arraybuffer",ne=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class We extends K{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,s=ne?{}:ue(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=se&&!ne?t?new C(e,t):new C(e):new C(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;$(s,this.supportsBinary,r=>{const o={};try{se&&this.ws.send(r)}catch{}i&&W(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=pe()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!C}}class ze extends K{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=Se(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=Ce();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();const r=()=>{s.read().then(({done:a,value:h})=>{a||(this.onPacket(h),r())}).catch(a=>{})};r();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;this.writer.write(s).then(()=>{i&&W(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const Ye={websocket:We,webtransport:ze,polling:He},Je=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Qe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function D(n){if(n.length>2e3)throw"URI too long";const e=n,t=n.indexOf("["),s=n.indexOf("]");t!=-1&&s!=-1&&(n=n.substring(0,t)+n.substring(t,s).replace(/:/g,";")+n.substring(s,n.length));let i=Je.exec(n||""),r={},o=14;for(;o--;)r[Qe[o]]=i[o]||"";return t!=-1&&s!=-1&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=Xe(r,r.path),r.queryKey=je(r,r.query),r}function Xe(n,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function je(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,r){i&&(t[i]=r)}),t}let ge=class b extends f{constructor(e,t={}){super(),this.binaryType=Ke,this.writeBuffer=[],e&&typeof e=="object"&&(t=e,e=null),e?(e=D(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=D(t.host).host),N(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=De(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=fe,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new Ye[e](s)}open(){let e;if(this.opts.rememberUpgrade&&b.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",t=>this.onClose("transport close",t))}probe(e){let t=this.createTransport(e),s=!1;b.priorWebsocketSuccess=!1;const i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",w=>{if(!s)if(w.type==="pong"&&w.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;b.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(y(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const k=new Error("probe error");k.transport=t.name,this.emitReserved("upgradeError",k)}}))};function r(){s||(s=!0,y(),t.close(),t=null)}const o=w=>{const k=new Error("probe error: "+w);k.transport=t.name,r(),this.emitReserved("upgradeError",k)};function a(){o("transport closed")}function h(){o("socket closed")}function g(w){t&&w.name!==t.name&&r()}const y=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",a),this.off("close",h),this.off("upgrading",g)};t.once("open",i),t.once("error",o),t.once("close",a),this.once("close",h),this.once("upgrading",g),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onOpen(){if(this.readyState="open",b.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s<this.writeBuffer.length;s++){const i=this.writeBuffer[s].data;if(i&&(t+=qe(i)),s>0&&t>this.maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}write(e,t,s){return this.sendPacket("message",e,t,s),this}send(e,t,s){return this.sendPacket("message",e,t,s),this}sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const r={type:e,data:t,options:s};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}onError(e){b.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let s=0;const i=e.length;for(;s<i;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}};ge.protocol=fe;function Ge(n,e="",t){let s=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),s=D(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const r=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+r+":"+s.port+e,s.href=s.protocol+"://"+r+(t&&t.port===s.port?"":":"+s.port),s}const Ze=typeof ArrayBuffer=="function",et=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,me=Object.prototype.toString,tt=typeof Blob=="function"||typeof Blob<"u"&&me.call(Blob)==="[object BlobConstructor]",st=typeof File=="function"||typeof File<"u"&&me.call(File)==="[object FileConstructor]";function z(n){return Ze&&(n instanceof ArrayBuffer||et(n))||tt&&n instanceof Blob||st&&n instanceof File}function B(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,s=n.length;t<s;t++)if(B(n[t]))return!0;return!1}if(z(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return B(n.toJSON(),!0);for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&B(n[t]))return!0;return!1}function nt(n){const e=[],t=n.data,s=n;return s.data=U(t,e),s.attachments=e.length,{packet:s,buffers:e}}function U(n,e){if(!n)return n;if(z(n)){const t={_placeholder:!0,num:e.length};return e.push(n),t}else if(Array.isArray(n)){const t=new Array(n.length);for(let s=0;s<n.length;s++)t[s]=U(n[s],e);return t}else if(typeof n=="object"&&!(n instanceof Date)){const t={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=U(n[s],e));return t}return n}function it(n,e){return n.data=M(n.data,e),delete n.attachments,n}function M(n,e){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<e.length)return e[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let t=0;t<n.length;t++)n[t]=M(n[t],e);else if(typeof n=="object")for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(n[t]=M(n[t],e));return n}const rt=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ot=5;var c;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(c||(c={}));class ct{constructor(e){this.replacer=e}encode(e){return(e.type===c.EVENT||e.type===c.ACK)&&B(e)?this.encodeAsBinary({type:e.type===c.EVENT?c.BINARY_EVENT:c.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===c.BINARY_EVENT||e.type===c.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=nt(e),s=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(s),i}}function ie(n){return Object.prototype.toString.call(n)==="[object Object]"}class Y extends f{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const s=t.type===c.BINARY_EVENT;s||t.type===c.BINARY_ACK?(t.type=s?c.EVENT:c.ACK,this.reconstructor=new at(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(z(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const s={type:Number(e.charAt(0))};if(c[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===c.BINARY_EVENT||s.type===c.BINARY_ACK){const r=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const o=e.substring(r,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");s.attachments=Number(o)}if(e.charAt(t+1)==="/"){const r=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););s.nsp=e.substring(r,t)}else s.nsp="/";const i=e.charAt(t+1);if(i!==""&&Number(i)==i){const r=t+1;for(;++t;){const o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}s.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(Y.isPayloadValid(s.type,r))s.data=r;else throw new Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case c.CONNECT:return ie(t);case c.DISCONNECT:return t===void 0;case c.CONNECT_ERROR:return typeof t=="string"||ie(t);case c.EVENT:case c.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&rt.indexOf(t[0])===-1);case c.ACK:case c.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class at{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=it(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const ht=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Y,Encoder:ct,get PacketType(){return c},protocol:ot},Symbol.toStringTag,{value:"Module"}));function l(n,e,t){return n.on(e,t),function(){n.off(e,t)}}const ft=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class we extends f{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[l(e,"open",this.onopen.bind(this)),l(e,"packet",this.onpacket.bind(this)),l(e,"error",this.onerror.bind(this)),l(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(ft.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const s={type:c.EVENT,data:t};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const o=this.ids++,a=t.pop();this._registerAckCallback(o,a),s.id=o}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(e,t){var s;const i=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(i===void 0){this.acks[e]=t;return}const r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);t.call(this,new Error("operation has timed out"))},i),o=(...a)=>{this.io.clearTimeoutFn(r),t.apply(this,a)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((s,i)=>{const r=(o,a)=>o?i(o):s(a);r.withError=!0,t.push(r),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...r)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...r)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:c.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case c.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case c.EVENT:case c.BINARY_EVENT:this.onevent(e);break;case c.ACK:case c.BINARY_ACK:this.onack(e);break;case c.DISCONNECT:this.ondisconnect();break;case c.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...i){s||(s=!0,t.packet({type:c.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:c.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const s of t)s.apply(this,e.data)}}}function v(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}v.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};v.prototype.reset=function(){this.attempts=0};v.prototype.setMin=function(n){this.ms=n};v.prototype.setMax=function(n){this.max=n};v.prototype.setJitter=function(n){this.jitter=n};class V extends f{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,N(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new v({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||ht;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ge(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const i=l(t,"open",function(){s.onopen(),e&&e()}),r=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=l(t,"error",r);if(this._timeout!==!1){const a=this._timeout,h=this.setTimeoutFn(()=>{i(),r(new Error("timeout")),t.close()},a);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(l(e,"ping",this.onping.bind(this)),l(e,"data",this.ondata.bind(this)),l(e,"error",this.onerror.bind(this)),l(e,"close",this.onclose.bind(this)),l(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){W(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new we(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const s of t)if(this.nsps[s].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;s<t.length;s++)this.engine.write(t[s],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const E={};function x(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=Ge(n,e.path||"/socket.io"),s=t.source,i=t.id,r=t.path,o=E[i]&&r in E[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let h;return a?h=new V(s,e):(E[i]||(E[i]=new V(s,e)),h=E[i]),t.query&&!e.query&&(e.query=t.queryKey),h.socket(t.path,e)}Object.assign(x,{Manager:V,Socket:we,io:x,connect:x});const ut="https://ws.zigap.io",m=class m{constructor(){A(this,"socket");this.socket=x(ut)}static getInstance(){return m.instance||(m.instance=new m),m.instance}};A(m,"instance");let F=m;class lt{constructor(){A(this,"socketInstance");this.socketInstance=F.getInstance()}joinRoom(e){this.socketInstance.socket.emit("joinRoom",e)}leaveRoom(e){this.socketInstance.socket.emit("leaveRoom",e),this.socketInstance.socket.disconnect()}confirmMessage(e,t){return this.socketInstance.socket.emit("confirmMessage",e,t)}onMessageReceived(e,t){e==="accountInfo"?this.socketInstance.socket.on("accountInfo",s=>{t(s)}):e==="requestMessage"?this.socketInstance.socket.on("requestMessage",s=>{t(s)}):e==="addressProvide"&&this.socketInstance.socket.on("addressProvide",s=>{t(s)})}offMessageReceived(e){e==="accountInfo"?this.socketInstance.socket.off("accountInfo"):e==="requestMessage"?this.socketInstance.socket.off("requestMessage"):e==="addressProvide"&&this.socketInstance.socket.off("addressProvide")}}const be=new lt;class pt{generateQrCode(e,t,s,i){const r=J.CryptoJS.lib.WordArray.random(16).toString(J.CryptoJS.enc.Hex);let o="";return e==="login"?o=`http://172.30.1.61:3000/qrCode/scan?type=login&roomId=${r}&dapp=${t}&url=${s}&network=${i}`:e==="send"?o=`zigap://send?roomId=${r}&dapp=${t}`:e==="provide"&&(o=`zigap://provide?roomId=${r}&dapp=${t}`),be.joinRoom(r),{qrCode:o,roomId:r}}}const dt=new pt;exports.Qr=dt;exports.SocketService=be;