UNPKG

@frames.js/debugger

Version:

Debug your Frames.js applications

1 lines 357 kB
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6428],{29208:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(61422),n=r(1076);function s(e,t,r,s,o){if(void 0===o&&(o=0),32!==e.length)throw Error("ChaCha: key size must be 32 bytes");if(s.length<r.length)throw Error("ChaCha: destination is shorter than source");if(0===o){if(8!==t.length&&12!==t.length)throw Error("ChaCha nonce must be 8 or 12 bytes");c=(a=new Uint8Array(16)).length-t.length,a.set(t,c)}else{if(16!==t.length)throw Error("ChaCha nonce with counter must be 16 bytes");a=t,c=o}for(var a,c,u=new Uint8Array(64),h=0;h<r.length;h+=64){!function(e,t,r){for(var n=r[3]<<24|r[2]<<16|r[1]<<8|r[0],s=r[7]<<24|r[6]<<16|r[5]<<8|r[4],o=r[11]<<24|r[10]<<16|r[9]<<8|r[8],a=r[15]<<24|r[14]<<16|r[13]<<8|r[12],c=r[19]<<24|r[18]<<16|r[17]<<8|r[16],u=r[23]<<24|r[22]<<16|r[21]<<8|r[20],h=r[27]<<24|r[26]<<16|r[25]<<8|r[24],l=r[31]<<24|r[30]<<16|r[29]<<8|r[28],p=t[3]<<24|t[2]<<16|t[1]<<8|t[0],f=t[7]<<24|t[6]<<16|t[5]<<8|t[4],d=t[11]<<24|t[10]<<16|t[9]<<8|t[8],g=t[15]<<24|t[14]<<16|t[13]<<8|t[12],y=1634760805,v=857760878,m=2036477234,b=1797285236,w=n,_=s,E=o,D=a,I=c,S=u,C=h,P=l,O=p,x=f,A=d,R=g,N=0;N<20;N+=2)O^=y=y+w|0,w^=I=I+(O=O>>>16|O<<16)|0,w=w>>>20|w<<12,x^=v=v+_|0,_^=S=S+(x=x>>>16|x<<16)|0,_=_>>>20|_<<12,A^=m=m+E|0,E^=C=C+(A=A>>>16|A<<16)|0,E=E>>>20|E<<12,R^=b=b+D|0,D^=P=P+(R=R>>>16|R<<16)|0,D=D>>>20|D<<12,A^=m=m+E|0,E^=C=C+(A=A>>>24|A<<8)|0,E=E>>>25|E<<7,R^=b=b+D|0,D^=P=P+(R=R>>>24|R<<8)|0,D=D>>>25|D<<7,x^=v=v+_|0,_^=S=S+(x=x>>>24|x<<8)|0,_=_>>>25|_<<7,O^=y=y+w|0,w^=I=I+(O=O>>>24|O<<8)|0,w=w>>>25|w<<7,R^=y=y+_|0,_^=C=C+(R=R>>>16|R<<16)|0,_=_>>>20|_<<12,O^=v=v+E|0,E^=P=P+(O=O>>>16|O<<16)|0,E=E>>>20|E<<12,x^=m=m+D|0,D^=I=I+(x=x>>>16|x<<16)|0,D=D>>>20|D<<12,A^=b=b+w|0,w^=S=S+(A=A>>>16|A<<16)|0,w=w>>>20|w<<12,x^=m=m+D|0,D^=I=I+(x=x>>>24|x<<8)|0,D=D>>>25|D<<7,A^=b=b+w|0,w^=S=S+(A=A>>>24|A<<8)|0,w=w>>>25|w<<7,O^=v=v+E|0,E^=P=P+(O=O>>>24|O<<8)|0,E=E>>>25|E<<7,R^=y=y+_|0,_^=C=C+(R=R>>>24|R<<8)|0,_=_>>>25|_<<7;i.writeUint32LE(y+1634760805|0,e,0),i.writeUint32LE(v+857760878|0,e,4),i.writeUint32LE(m+2036477234|0,e,8),i.writeUint32LE(b+1797285236|0,e,12),i.writeUint32LE(w+n|0,e,16),i.writeUint32LE(_+s|0,e,20),i.writeUint32LE(E+o|0,e,24),i.writeUint32LE(D+a|0,e,28),i.writeUint32LE(I+c|0,e,32),i.writeUint32LE(S+u|0,e,36),i.writeUint32LE(C+h|0,e,40),i.writeUint32LE(P+l|0,e,44),i.writeUint32LE(O+p|0,e,48),i.writeUint32LE(x+f|0,e,52),i.writeUint32LE(A+d|0,e,56),i.writeUint32LE(R+g|0,e,60)}(u,a,e);for(var l=h;l<h+64&&l<r.length;l++)s[l]=r[l]^u[l-h];!function(e,t,r){for(var i=1;r--;)i=i+(255&e[t])|0,e[t]=255&i,i>>>=8,t++;if(i>0)throw Error("ChaCha: counter overflow")}(a,0,c)}return n.wipe(u),0===o&&n.wipe(a),s}t.streamXOR=s,t.stream=function(e,t,r,i){return void 0===i&&(i=0),n.wipe(r),s(e,t,r,r,i)}},98224:function(e,t,r){"use strict";var i=r(29208),n=r(89525),s=r(1076),o=r(61422),a=r(11505);t.Cv=32,t.WH=12,t.pg=16;var c=new Uint8Array(16),u=function(){function e(e){if(this.nonceLength=t.WH,this.tagLength=t.pg,e.length!==t.Cv)throw Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,r,n){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");var o,a=new Uint8Array(16);a.set(e,a.length-e.length);var c=new Uint8Array(32);i.stream(this._key,a,c,4);var u=t.length+this.tagLength;if(n){if(n.length!==u)throw Error("ChaCha20Poly1305: incorrect destination length");o=n}else o=new Uint8Array(u);return i.streamXOR(this._key,a,t,o,4),this._authenticate(o.subarray(o.length-this.tagLength,o.length),c,o.subarray(0,o.length-this.tagLength),r),s.wipe(a),o},e.prototype.open=function(e,t,r,n){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");if(t.length<this.tagLength)return null;var o,c=new Uint8Array(16);c.set(e,c.length-e.length);var u=new Uint8Array(32);i.stream(this._key,c,u,4);var h=new Uint8Array(this.tagLength);if(this._authenticate(h,u,t.subarray(0,t.length-this.tagLength),r),!a.equal(h,t.subarray(t.length-this.tagLength,t.length)))return null;var l=t.length-this.tagLength;if(n){if(n.length!==l)throw Error("ChaCha20Poly1305: incorrect destination length");o=n}else o=new Uint8Array(l);return i.streamXOR(this._key,c,t.subarray(0,t.length-this.tagLength),o,4),s.wipe(c),o},e.prototype.clean=function(){return s.wipe(this._key),this},e.prototype._authenticate=function(e,t,r,i){var a=new n.Poly1305(t);i&&(a.update(i),i.length%16>0&&a.update(c.subarray(i.length%16))),a.update(r),r.length%16>0&&a.update(c.subarray(r.length%16));var u=new Uint8Array(8);i&&o.writeUint64LE(i.length,u),a.update(u),o.writeUint64LE(r.length,u),a.update(u);for(var h=a.digest(),l=0;l<h.length;l++)e[l]=h[l];a.clean(),s.wipe(h),s.wipe(u)},e}();t.OK=u},11505:function(e,t){"use strict";function r(e,t){if(e.length!==t.length)return 0;for(var r=0,i=0;i<e.length;i++)r|=e[i]^t[i];return 1&r-1>>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,r){return~(e-1)&t|e-1&r},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},41282:function(e,t,r){"use strict";t.Xx=t._w=t.aP=t.KS=t.jQ=void 0,r(51841);let i=r(54336);function n(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}r(1076),t.jQ=64,t.KS=64,t.aP=32,new Uint8Array(32)[0]=9;let s=n(),o=n([1]),a=(n([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),n([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222])),c=n([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),u=n([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]);function h(e,t){for(let r=0;r<16;r++)e[r]=0|t[r]}function l(e){let t=1;for(let r=0;r<16;r++){let i=e[r]+t+65535;t=Math.floor(i/65536),e[r]=i-65536*t}e[0]+=t-1+37*(t-1)}function p(e,t,r){let i=~(r-1);for(let r=0;r<16;r++){let n=i&(e[r]^t[r]);e[r]^=n,t[r]^=n}}function f(e,t){let r=n(),i=n();for(let e=0;e<16;e++)i[e]=t[e];l(i),l(i),l(i);for(let e=0;e<2;e++){r[0]=i[0]-65517;for(let e=1;e<15;e++)r[e]=i[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=i[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,p(i,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&i[t],e[2*t+1]=i[t]>>8}n([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function d(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]+r[i]}function g(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]-r[i]}function y(e,t,r){let i,n,s=0,o=0,a=0,c=0,u=0,h=0,l=0,p=0,f=0,d=0,g=0,y=0,v=0,m=0,b=0,w=0,_=0,E=0,D=0,I=0,S=0,C=0,P=0,O=0,x=0,A=0,R=0,N=0,T=0,k=0,j=0,L=r[0],M=r[1],q=r[2],U=r[3],z=r[4],$=r[5],H=r[6],F=r[7],B=r[8],K=r[9],V=r[10],W=r[11],G=r[12],Y=r[13],J=r[14],Q=r[15];s+=(i=t[0])*L,o+=i*M,a+=i*q,c+=i*U,u+=i*z,h+=i*$,l+=i*H,p+=i*F,f+=i*B,d+=i*K,g+=i*V,y+=i*W,v+=i*G,m+=i*Y,b+=i*J,w+=i*Q,o+=(i=t[1])*L,a+=i*M,c+=i*q,u+=i*U,h+=i*z,l+=i*$,p+=i*H,f+=i*F,d+=i*B,g+=i*K,y+=i*V,v+=i*W,m+=i*G,b+=i*Y,w+=i*J,_+=i*Q,a+=(i=t[2])*L,c+=i*M,u+=i*q,h+=i*U,l+=i*z,p+=i*$,f+=i*H,d+=i*F,g+=i*B,y+=i*K,v+=i*V,m+=i*W,b+=i*G,w+=i*Y,_+=i*J,E+=i*Q,c+=(i=t[3])*L,u+=i*M,h+=i*q,l+=i*U,p+=i*z,f+=i*$,d+=i*H,g+=i*F,y+=i*B,v+=i*K,m+=i*V,b+=i*W,w+=i*G,_+=i*Y,E+=i*J,D+=i*Q,u+=(i=t[4])*L,h+=i*M,l+=i*q,p+=i*U,f+=i*z,d+=i*$,g+=i*H,y+=i*F,v+=i*B,m+=i*K,b+=i*V,w+=i*W,_+=i*G,E+=i*Y,D+=i*J,I+=i*Q,h+=(i=t[5])*L,l+=i*M,p+=i*q,f+=i*U,d+=i*z,g+=i*$,y+=i*H,v+=i*F,m+=i*B,b+=i*K,w+=i*V,_+=i*W,E+=i*G,D+=i*Y,I+=i*J,S+=i*Q,l+=(i=t[6])*L,p+=i*M,f+=i*q,d+=i*U,g+=i*z,y+=i*$,v+=i*H,m+=i*F,b+=i*B,w+=i*K,_+=i*V,E+=i*W,D+=i*G,I+=i*Y,S+=i*J,C+=i*Q,p+=(i=t[7])*L,f+=i*M,d+=i*q,g+=i*U,y+=i*z,v+=i*$,m+=i*H,b+=i*F,w+=i*B,_+=i*K,E+=i*V,D+=i*W,I+=i*G,S+=i*Y,C+=i*J,P+=i*Q,f+=(i=t[8])*L,d+=i*M,g+=i*q,y+=i*U,v+=i*z,m+=i*$,b+=i*H,w+=i*F,_+=i*B,E+=i*K,D+=i*V,I+=i*W,S+=i*G,C+=i*Y,P+=i*J,O+=i*Q,d+=(i=t[9])*L,g+=i*M,y+=i*q,v+=i*U,m+=i*z,b+=i*$,w+=i*H,_+=i*F,E+=i*B,D+=i*K,I+=i*V,S+=i*W,C+=i*G,P+=i*Y,O+=i*J,x+=i*Q,g+=(i=t[10])*L,y+=i*M,v+=i*q,m+=i*U,b+=i*z,w+=i*$,_+=i*H,E+=i*F,D+=i*B,I+=i*K,S+=i*V,C+=i*W,P+=i*G,O+=i*Y,x+=i*J,A+=i*Q,y+=(i=t[11])*L,v+=i*M,m+=i*q,b+=i*U,w+=i*z,_+=i*$,E+=i*H,D+=i*F,I+=i*B,S+=i*K,C+=i*V,P+=i*W,O+=i*G,x+=i*Y,A+=i*J,R+=i*Q,v+=(i=t[12])*L,m+=i*M,b+=i*q,w+=i*U,_+=i*z,E+=i*$,D+=i*H,I+=i*F,S+=i*B,C+=i*K,P+=i*V,O+=i*W,x+=i*G,A+=i*Y,R+=i*J,N+=i*Q,m+=(i=t[13])*L,b+=i*M,w+=i*q,_+=i*U,E+=i*z,D+=i*$,I+=i*H,S+=i*F,C+=i*B,P+=i*K,O+=i*V,x+=i*W,A+=i*G,R+=i*Y,N+=i*J,T+=i*Q,b+=(i=t[14])*L,w+=i*M,_+=i*q,E+=i*U,D+=i*z,I+=i*$,S+=i*H,C+=i*F,P+=i*B,O+=i*K,x+=i*V,A+=i*W,R+=i*G,N+=i*Y,T+=i*J,k+=i*Q,w+=(i=t[15])*L,_+=i*M,E+=i*q,D+=i*U,I+=i*z,S+=i*$,C+=i*H,P+=i*F,O+=i*B,x+=i*K,A+=i*V,R+=i*W,N+=i*G,T+=i*Y,k+=i*J,j+=i*Q,s+=38*_,o+=38*E,a+=38*D,c+=38*I,u+=38*S,h+=38*C,l+=38*P,p+=38*O,f+=38*x,d+=38*A,g+=38*R,y+=38*N,v+=38*T,m+=38*k,b+=38*j,n=Math.floor((i=s+(n=1)+65535)/65536),s=i-65536*n,n=Math.floor((i=o+n+65535)/65536),o=i-65536*n,n=Math.floor((i=a+n+65535)/65536),a=i-65536*n,n=Math.floor((i=c+n+65535)/65536),c=i-65536*n,n=Math.floor((i=u+n+65535)/65536),u=i-65536*n,n=Math.floor((i=h+n+65535)/65536),h=i-65536*n,n=Math.floor((i=l+n+65535)/65536),l=i-65536*n,n=Math.floor((i=p+n+65535)/65536),p=i-65536*n,n=Math.floor((i=f+n+65535)/65536),f=i-65536*n,n=Math.floor((i=d+n+65535)/65536),d=i-65536*n,n=Math.floor((i=g+n+65535)/65536),g=i-65536*n,n=Math.floor((i=y+n+65535)/65536),y=i-65536*n,n=Math.floor((i=v+n+65535)/65536),v=i-65536*n,n=Math.floor((i=m+n+65535)/65536),m=i-65536*n,n=Math.floor((i=b+n+65535)/65536),b=i-65536*n,n=Math.floor((i=w+n+65535)/65536),w=i-65536*n,s+=n-1+37*(n-1),n=Math.floor((i=s+(n=1)+65535)/65536),s=i-65536*n,n=Math.floor((i=o+n+65535)/65536),o=i-65536*n,n=Math.floor((i=a+n+65535)/65536),a=i-65536*n,n=Math.floor((i=c+n+65535)/65536),c=i-65536*n,n=Math.floor((i=u+n+65535)/65536),u=i-65536*n,n=Math.floor((i=h+n+65535)/65536),h=i-65536*n,n=Math.floor((i=l+n+65535)/65536),l=i-65536*n,n=Math.floor((i=p+n+65535)/65536),p=i-65536*n,n=Math.floor((i=f+n+65535)/65536),f=i-65536*n,n=Math.floor((i=d+n+65535)/65536),d=i-65536*n,n=Math.floor((i=g+n+65535)/65536),g=i-65536*n,n=Math.floor((i=y+n+65535)/65536),y=i-65536*n,n=Math.floor((i=v+n+65535)/65536),v=i-65536*n,n=Math.floor((i=m+n+65535)/65536),m=i-65536*n,n=Math.floor((i=b+n+65535)/65536),b=i-65536*n,n=Math.floor((i=w+n+65535)/65536),w=i-65536*n,s+=n-1+37*(n-1),e[0]=s,e[1]=o,e[2]=a,e[3]=c,e[4]=u,e[5]=h,e[6]=l,e[7]=p,e[8]=f,e[9]=d,e[10]=g,e[11]=y,e[12]=v,e[13]=m,e[14]=b,e[15]=w}function v(e,t){let r=n(),i=n(),s=n(),o=n(),c=n(),u=n(),h=n(),l=n(),p=n();g(r,e[1],e[0]),g(p,t[1],t[0]),y(r,r,p),d(i,e[0],e[1]),d(p,t[0],t[1]),y(i,i,p),y(s,e[3],t[3]),y(s,s,a),y(o,e[2],t[2]),d(o,o,o),g(c,i,r),g(u,o,s),d(h,o,s),d(l,i,r),y(e[0],c,u),y(e[1],l,h),y(e[2],h,u),y(e[3],c,l)}function m(e,t,r){for(let i=0;i<4;i++)p(e[i],t[i],r)}function b(e,t){let r=n(),i=n(),s=n();(function(e,t){let r;let i=n();for(r=0;r<16;r++)i[r]=t[r];for(r=253;r>=0;r--)y(i,i,i),2!==r&&4!==r&&y(i,i,t);for(r=0;r<16;r++)e[r]=i[r]})(s,t[2]),y(r,t[0],s),y(i,t[1],s),f(e,i),e[31]^=function(e){let t=new Uint8Array(32);return f(t,e),1&t[0]}(r)<<7}function w(e,t){let r=[n(),n(),n(),n()];h(r[0],c),h(r[1],u),h(r[2],o),y(r[3],c,u),function(e,t,r){h(e[0],s),h(e[1],o),h(e[2],o),h(e[3],s);for(let i=255;i>=0;--i){let n=r[i/8|0]>>(7&i)&1;m(e,t,n),v(t,e),v(e,e),m(e,t,n)}}(e,r,t)}t._w=function(e){if(e.length!==t.aP)throw Error(`ed25519: seed must be ${t.aP} bytes`);let r=(0,i.hash)(e);r[0]&=248,r[31]&=127,r[31]|=64;let s=new Uint8Array(32),o=[n(),n(),n(),n()];w(o,r),b(s,o);let a=new Uint8Array(64);return a.set(e),a.set(s,32),{publicKey:s,secretKey:a}};let _=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function E(e,t){let r,i,n,s;for(i=63;i>=32;--i){for(r=0,n=i-32,s=i-12;n<s;++n)t[n]+=r-16*t[i]*_[n-(i-32)],r=Math.floor((t[n]+128)/256),t[n]-=256*r;t[n]+=r,t[i]=0}for(n=0,r=0;n<32;n++)t[n]+=r-(t[31]>>4)*_[n],r=t[n]>>8,t[n]&=255;for(n=0;n<32;n++)t[n]-=r*_[n];for(i=0;i<32;i++)t[i+1]+=t[i]>>8,e[i]=255&t[i]}function D(e){let t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let t=0;t<64;t++)e[t]=0;E(e,t)}t.Xx=function(e,t){let r=new Float64Array(64),s=[n(),n(),n(),n()],o=(0,i.hash)(e.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;let a=new Uint8Array(64);a.set(o.subarray(32),32);let c=new i.SHA512;c.update(a.subarray(32)),c.update(t);let u=c.digest();c.clean(),D(u),w(s,u),b(a,s),c.reset(),c.update(a.subarray(0,32)),c.update(e.subarray(32)),c.update(t);let h=c.digest();D(h);for(let e=0;e<32;e++)r[e]=u[e];for(let e=0;e<32;e++)for(let t=0;t<32;t++)r[e+t]+=h[e]*o[t];return E(a.subarray(32),r),a}},14997:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return void 0!==e.saveState&&void 0!==e.restoreState&&void 0!==e.cleanSavedState}},46590:function(e,t,r){"use strict";var i=r(87581),n=r(1076),s=function(){function e(e,t,r,n){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=n;var s=i.hmac(this._hash,r,t);this._hmac=new i.HMAC(e,s),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),r=0;r<t.length;r++)this._bufpos===this._buffer.length&&this._fillBuffer(),t[r]=this._buffer[this._bufpos++];return t},e.prototype.clean=function(){this._hmac.clean(),n.wipe(this._buffer),n.wipe(this._counter),this._bufpos=0},e}();t.t=s},87581:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(14997),n=r(11505),s=r(1076),o=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(r).clean():r.set(t);for(var n=0;n<r.length;n++)r[n]^=54;this._inner.update(r);for(var n=0;n<r.length;n++)r[n]^=106;this._outer.update(r),i.isSerializableHash(this._inner)&&i.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),s.wipe(r)}return e.prototype.reset=function(){if(!i.isSerializableHash(this._inner)||!i.isSerializableHash(this._outer))throw Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){i.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),i.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(e){return this._inner.update(e),this},e.prototype.finish=function(e){return this._finished?this._outer.finish(e):(this._inner.finish(e),this._outer.update(e.subarray(0,this.digestLength)).finish(e),this._finished=!0),this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(!i.isSerializableHash(this._inner))throw Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(e){if(!i.isSerializableHash(this._inner)||!i.isSerializableHash(this._outer))throw Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(e),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(e){if(!i.isSerializableHash(this._inner))throw Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(e)},e}();t.HMAC=o,t.hmac=function(e,t,r){var i=new o(e,t);i.update(r);var n=i.digest();return i.clean(),n},t.equal=n.equal},89525:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(11505),n=r(1076);t.DIGEST_LENGTH=16;var s=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=e[0]|e[1]<<8;this._r[0]=8191&r;var i=e[2]|e[3]<<8;this._r[1]=(r>>>13|i<<3)&8191;var n=e[4]|e[5]<<8;this._r[2]=(i>>>10|n<<6)&7939;var s=e[6]|e[7]<<8;this._r[3]=(n>>>7|s<<9)&8191;var o=e[8]|e[9]<<8;this._r[4]=(s>>>4|o<<12)&255,this._r[5]=o>>>1&8190;var a=e[10]|e[11]<<8;this._r[6]=(o>>>14|a<<2)&8191;var c=e[12]|e[13]<<8;this._r[7]=(a>>>11|c<<5)&8065;var u=e[14]|e[15]<<8;this._r[8]=(c>>>8|u<<8)&8191,this._r[9]=u>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,r){for(var i=this._fin?0:2048,n=this._h[0],s=this._h[1],o=this._h[2],a=this._h[3],c=this._h[4],u=this._h[5],h=this._h[6],l=this._h[7],p=this._h[8],f=this._h[9],d=this._r[0],g=this._r[1],y=this._r[2],v=this._r[3],m=this._r[4],b=this._r[5],w=this._r[6],_=this._r[7],E=this._r[8],D=this._r[9];r>=16;){var I,S=e[t+0]|e[t+1]<<8;n+=8191&S;var C=e[t+2]|e[t+3]<<8;s+=(S>>>13|C<<3)&8191;var P=e[t+4]|e[t+5]<<8;o+=(C>>>10|P<<6)&8191;var O=e[t+6]|e[t+7]<<8;a+=(P>>>7|O<<9)&8191;var x=e[t+8]|e[t+9]<<8;c+=(O>>>4|x<<12)&8191,u+=x>>>1&8191;var A=e[t+10]|e[t+11]<<8;h+=(x>>>14|A<<2)&8191;var R=e[t+12]|e[t+13]<<8;l+=(A>>>11|R<<5)&8191;var N=e[t+14]|e[t+15]<<8;p+=(R>>>8|N<<8)&8191,f+=N>>>5|i;var T=0;T=(I=0+n*d+5*D*s+5*E*o+5*_*a+5*w*c)>>>13,I&=8191,I+=5*b*u+5*m*h+5*v*l+5*y*p+5*g*f,T+=I>>>13,I&=8191;var k=T;k+=n*g+s*d+5*D*o+5*E*a+5*_*c,T=k>>>13,k&=8191,k+=5*w*u+5*b*h+5*m*l+5*v*p+5*y*f,T+=k>>>13,k&=8191;var j=T;j+=n*y+s*g+o*d+5*D*a+5*E*c,T=j>>>13,j&=8191,j+=5*_*u+5*w*h+5*b*l+5*m*p+5*v*f,T+=j>>>13,j&=8191;var L=T;L+=n*v+s*y+o*g+a*d+5*D*c,T=L>>>13,L&=8191,L+=5*E*u+5*_*h+5*w*l+5*b*p+5*m*f,T+=L>>>13,L&=8191;var M=T;M+=n*m+s*v+o*y+a*g+c*d,T=M>>>13,M&=8191,M+=5*D*u+5*E*h+5*_*l+5*w*p+5*b*f,T+=M>>>13,M&=8191;var q=T;q+=n*b+s*m+o*v+a*y+c*g,T=q>>>13,q&=8191,q+=u*d+5*D*h+5*E*l+5*_*p+5*w*f,T+=q>>>13,q&=8191;var U=T;U+=n*w+s*b+o*m+a*v+c*y,T=U>>>13,U&=8191,U+=u*g+h*d+5*D*l+5*E*p+5*_*f,T+=U>>>13,U&=8191;var z=T;z+=n*_+s*w+o*b+a*m+c*v,T=z>>>13,z&=8191,z+=u*y+h*g+l*d+5*D*p+5*E*f,T+=z>>>13,z&=8191;var $=T;$+=n*E+s*_+o*w+a*b+c*m,T=$>>>13,$&=8191,$+=u*v+h*y+l*g+p*d+5*D*f,T+=$>>>13,$&=8191;var H=T;H+=n*D+s*E+o*_+a*w+c*b,T=H>>>13,H&=8191,H+=u*m+h*v+l*y+p*g+f*d,T+=H>>>13,H&=8191,I=8191&(T=(T=(T<<2)+T|0)+I|0),T>>>=13,k+=T,n=I,s=k,o=j,a=L,c=M,u=q,h=U,l=z,p=$,f=H,t+=16,r-=16}this._h[0]=n,this._h[1]=s,this._h[2]=o,this._h[3]=a,this._h[4]=c,this._h[5]=u,this._h[6]=h,this._h[7]=l,this._h[8]=p,this._h[9]=f},e.prototype.finish=function(e,t){void 0===t&&(t=0);var r,i,n,s,o=new Uint16Array(10);if(this._leftover){for(s=this._leftover,this._buffer[s++]=1;s<16;s++)this._buffer[s]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,s=2;s<10;s++)this._h[s]+=r,r=this._h[s]>>>13,this._h[s]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,o[0]=this._h[0]+5,r=o[0]>>>13,o[0]&=8191,s=1;s<10;s++)o[s]=this._h[s]+r,r=o[s]>>>13,o[s]&=8191;for(o[9]-=8192,i=(1^r)-1,s=0;s<10;s++)o[s]&=i;for(s=0,i=~i;s<10;s++)this._h[s]=this._h[s]&i|o[s];for(s=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,n=this._h[0]+this._pad[0],this._h[0]=65535&n;s<8;s++)n=(this._h[s]+this._pad[s]|0)+(n>>>16)|0,this._h[s]=65535&n;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,r=0,i=e.length;if(this._leftover){(t=16-this._leftover)>i&&(t=i);for(var n=0;n<t;n++)this._buffer[this._leftover+n]=e[r+n];if(i-=t,r+=t,this._leftover+=t,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(i>=16&&(t=i-i%16,this._blocks(e,r,t),r+=t,i-=t),i){for(var n=0;n<i;n++)this._buffer[this._leftover+n]=e[r+n];this._leftover+=i}return this},e.prototype.digest=function(){if(this._finished)throw Error("Poly1305 was finished");var e=new Uint8Array(16);return this.finish(e),e},e.prototype.clean=function(){return n.wipe(this._buffer),n.wipe(this._r),n.wipe(this._h),n.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();t.Poly1305=s,t.oneTimeAuth=function(e,t){var r=new s(e);r.update(t);var i=r.digest();return r.clean(),i},t.equal=function(e,r){return e.length===t.DIGEST_LENGTH&&r.length===t.DIGEST_LENGTH&&i.equal(e,r)}},85919:function(e,t,r){"use strict";var i=r(61422),n=r(1076);t.k=32,t.cn=64;var s=function(){function e(){this.digestLength=t.k,this.blockSize=t.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){n.wipe(this._buffer),n.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw Error("SHA256: can't update because hash was finished.");var r=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&t>0;)this._buffer[this._bufferLength++]=e[r++],t--;this._bufferLength===this.blockSize&&(a(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(r=a(this._temp,this._state,e,r,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[r++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,n=t%64<56?64:128;this._buffer[r]=128;for(var s=r+1;s<n-8;s++)this._buffer[s]=0;i.writeUint32BE(t/536870912|0,this._buffer,n-8),i.writeUint32BE(t<<3,this._buffer,n-4),a(this._temp,this._state,this._buffer,0,n),this._finished=!0}for(var s=0;s<this.digestLength/4;s++)i.writeUint32BE(this._state[s],e,4*s);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){n.wipe(e.state),e.buffer&&n.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.mE=s;var o=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function a(e,t,r,n,s){for(;s>=64;){for(var a=t[0],c=t[1],u=t[2],h=t[3],l=t[4],p=t[5],f=t[6],d=t[7],g=0;g<16;g++){var y=n+4*g;e[g]=i.readUint32BE(r,y)}for(var g=16;g<64;g++){var v=e[g-2],m=(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10,b=((v=e[g-15])>>>7|v<<25)^(v>>>18|v<<14)^v>>>3;e[g]=(m+e[g-7]|0)+(b+e[g-16]|0)}for(var g=0;g<64;g++){var m=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&p^~l&f)|0)+(d+(o[g]+e[g]|0)|0)|0,b=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&c^a&u^c&u)|0;d=f,f=p,p=l,l=h+m|0,h=u,u=c,c=a,a=m+b|0}t[0]+=a,t[1]+=c,t[2]+=u,t[3]+=h,t[4]+=l,t[5]+=p,t[6]+=f,t[7]+=d,n+=64,s-=64}return n}t.vp=function(e){var t=new s;t.update(e);var r=t.digest();return t.clean(),r}},54336:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(61422),n=r(1076);t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var s=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){n.wipe(this._buffer),n.wipe(this._tempHi),n.wipe(this._tempLo),this.reset()},e.prototype.update=function(e,r){if(void 0===r&&(r=e.length),this._finished)throw Error("SHA512: can't update because hash was finished.");var i=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<t.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=e[i++],r--;this._bufferLength===this.blockSize&&(a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(i=a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,i,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=e[i++],r--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,n=t%128<112?128:256;this._buffer[r]=128;for(var s=r+1;s<n-8;s++)this._buffer[s]=0;i.writeUint32BE(t/536870912|0,this._buffer,n-8),i.writeUint32BE(t<<3,this._buffer,n-4),a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,n),this._finished=!0}for(var s=0;s<this.digestLength/8;s++)i.writeUint32BE(this._stateHi[s],e,8*s),i.writeUint32BE(this._stateLo[s],e,8*s+4);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){n.wipe(e.stateHi),n.wipe(e.stateLo),e.buffer&&n.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA512=s;var o=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function a(e,t,r,n,s,a,c){for(var u,h,l,p,f,d,g,y,v=r[0],m=r[1],b=r[2],w=r[3],_=r[4],E=r[5],D=r[6],I=r[7],S=n[0],C=n[1],P=n[2],O=n[3],x=n[4],A=n[5],R=n[6],N=n[7];c>=128;){for(var T=0;T<16;T++){var k=8*T+a;e[T]=i.readUint32BE(s,k),t[T]=i.readUint32BE(s,k+4)}for(var T=0;T<80;T++){var j=v,L=m,M=b,q=w,U=_,z=E,$=D,H=I,F=S,B=C,K=P,V=O,W=x,G=A,Y=R,J=N;if(u=I,f=65535&(h=N),d=h>>>16,g=65535&u,y=u>>>16,u=(_>>>14|x<<18)^(_>>>18|x<<14)^(x>>>9|_<<23),f+=65535&(h=(x>>>14|_<<18)^(x>>>18|_<<14)^(_>>>9|x<<23)),d+=h>>>16,g+=65535&u,y+=u>>>16,u=_&E^~_&D,f+=65535&(h=x&A^~x&R),d+=h>>>16,g+=65535&u,y+=u>>>16,u=o[2*T],f+=65535&(h=o[2*T+1]),d+=h>>>16,g+=65535&u,y+=u>>>16,u=e[T%16],f+=65535&(h=t[T%16]),d+=h>>>16,g+=65535&u,y+=u>>>16,d+=f>>>16,g+=d>>>16,y+=g>>>16,l=65535&g|y<<16,p=65535&f|d<<16,u=l,f=65535&(h=p),d=h>>>16,g=65535&u,y=u>>>16,u=(v>>>28|S<<4)^(S>>>2|v<<30)^(S>>>7|v<<25),f+=65535&(h=(S>>>28|v<<4)^(v>>>2|S<<30)^(v>>>7|S<<25)),d+=h>>>16,g+=65535&u,y+=u>>>16,u=v&m^v&b^m&b,f+=65535&(h=S&C^S&P^C&P),d+=h>>>16,g+=65535&u,y+=u>>>16,d+=f>>>16,g+=d>>>16,y+=g>>>16,H=65535&g|y<<16,J=65535&f|d<<16,u=q,f=65535&(h=V),d=h>>>16,g=65535&u,y=u>>>16,u=l,f+=65535&(h=p),d+=h>>>16,g+=65535&u,y+=u>>>16,d+=f>>>16,g+=d>>>16,y+=g>>>16,q=65535&g|y<<16,V=65535&f|d<<16,m=j,b=L,w=M,_=q,E=U,D=z,I=$,v=H,C=F,P=B,O=K,x=V,A=W,R=G,N=Y,S=J,T%16==15)for(var k=0;k<16;k++)u=e[k],f=65535&(h=t[k]),d=h>>>16,g=65535&u,y=u>>>16,u=e[(k+9)%16],f+=65535&(h=t[(k+9)%16]),d+=h>>>16,g+=65535&u,y+=u>>>16,u=((l=e[(k+1)%16])>>>1|(p=t[(k+1)%16])<<31)^(l>>>8|p<<24)^l>>>7,f+=65535&(h=(p>>>1|l<<31)^(p>>>8|l<<24)^(p>>>7|l<<25)),d+=h>>>16,g+=65535&u,y+=u>>>16,u=((l=e[(k+14)%16])>>>19|(p=t[(k+14)%16])<<13)^(p>>>29|l<<3)^l>>>6,f+=65535&(h=(p>>>19|l<<13)^(l>>>29|p<<3)^(p>>>6|l<<26)),d+=h>>>16,g+=65535&u,y+=u>>>16,d+=f>>>16,g+=d>>>16,y+=g>>>16,e[k]=65535&g|y<<16,t[k]=65535&f|d<<16}u=v,f=65535&(h=S),d=h>>>16,g=65535&u,y=u>>>16,u=r[0],f+=65535&(h=n[0]),d+=h>>>16,g+=65535&u,y+=u>>>16,d+=f>>>16,g+=d>>>16,y+=g>>>16,r[0]=v=65535&g|y<<16,n[0]=S=65535&f|d<<16,u=m,f=65535&(h=C),d=h>>>16,g=65535&u,y=u>>>16,u=r[1],f+=65535&(h=n[1]),d+=h>>>16,g+=65535&u,y+=u>>>16,d+=f>>>16,g+=d>>>16,y+=g>>>16,r[1]=m=65535&g|y<<16,n[1]=C=65535&f|d<<16,u=b,f=65535&(h=P),d=h>>>16,g=65535&u,y=u>>>16,u=r[2],f+=65535&(h=n[2]),d+=h>>>16,g+=65535&u,y+=u>>>16,d+=f>>>16,g+=d>>>16,y+=g>>>16,r[2]=b=65535&g|y<<16,n[2]=P=65535&f|d<<16,u=w,f=65535&(h=O),d=h>>>16,g=65535&u,y=u>>>16,u=r[3],f+=65535&(h=n[3]),d+=h>>>16,g+=65535&u,y+=u>>>16,d+=f>>>16,g+=d>>>16,y+=g>>>16,r[3]=w=65535&g|y<<16,n[3]=O=65535&f|d<<16,u=_,f=65535&(h=x),d=h>>>16,g=65535&u,y=u>>>16,u=r[4],f+=65535&(h=n[4]),d+=h>>>16,g+=65535&u,y+=u>>>16,d+=f>>>16,g+=d>>>16,y+=g>>>16,r[4]=_=65535&g|y<<16,n[4]=x=65535&f|d<<16,u=E,f=65535&(h=A),d=h>>>16,g=65535&u,y=u>>>16,u=r[5],f+=65535&(h=n[5]),d+=h>>>16,g+=65535&u,y+=u>>>16,d+=f>>>16,g+=d>>>16,y+=g>>>16,r[5]=E=65535&g|y<<16,n[5]=A=65535&f|d<<16,u=D,f=65535&(h=R),d=h>>>16,g=65535&u,y=u>>>16,u=r[6],f+=65535&(h=n[6]),d+=h>>>16,g+=65535&u,y+=u>>>16,d+=f>>>16,g+=d>>>16,y+=g>>>16,r[6]=D=65535&g|y<<16,n[6]=R=65535&f|d<<16,u=I,f=65535&(h=N),d=h>>>16,g=65535&u,y=u>>>16,u=r[7],f+=65535&(h=n[7]),d+=h>>>16,g+=65535&u,y+=u>>>16,d+=f>>>16,g+=d>>>16,y+=g>>>16,r[7]=I=65535&g|y<<16,n[7]=N=65535&f|d<<16,a+=128,c-=128}return a}t.hash=function(e){var t=new s;t.update(e);var r=t.digest();return t.clean(),r}},52642:function(e,t,r){"use strict";t.gi=t.Au=t.KS=t.kz=void 0;let i=r(51841),n=r(1076);function s(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}t.kz=32,t.KS=32;let o=new Uint8Array(32);o[0]=9;let a=s([56129,1]);function c(e){let t=1;for(let r=0;r<16;r++){let i=e[r]+t+65535;t=Math.floor(i/65536),e[r]=i-65536*t}e[0]+=t-1+37*(t-1)}function u(e,t,r){let i=~(r-1);for(let r=0;r<16;r++){let n=i&(e[r]^t[r]);e[r]^=n,t[r]^=n}}function h(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]+r[i]}function l(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]-r[i]}function p(e,t,r){let i,n,s=0,o=0,a=0,c=0,u=0,h=0,l=0,p=0,f=0,d=0,g=0,y=0,v=0,m=0,b=0,w=0,_=0,E=0,D=0,I=0,S=0,C=0,P=0,O=0,x=0,A=0,R=0,N=0,T=0,k=0,j=0,L=r[0],M=r[1],q=r[2],U=r[3],z=r[4],$=r[5],H=r[6],F=r[7],B=r[8],K=r[9],V=r[10],W=r[11],G=r[12],Y=r[13],J=r[14],Q=r[15];s+=(i=t[0])*L,o+=i*M,a+=i*q,c+=i*U,u+=i*z,h+=i*$,l+=i*H,p+=i*F,f+=i*B,d+=i*K,g+=i*V,y+=i*W,v+=i*G,m+=i*Y,b+=i*J,w+=i*Q,o+=(i=t[1])*L,a+=i*M,c+=i*q,u+=i*U,h+=i*z,l+=i*$,p+=i*H,f+=i*F,d+=i*B,g+=i*K,y+=i*V,v+=i*W,m+=i*G,b+=i*Y,w+=i*J,_+=i*Q,a+=(i=t[2])*L,c+=i*M,u+=i*q,h+=i*U,l+=i*z,p+=i*$,f+=i*H,d+=i*F,g+=i*B,y+=i*K,v+=i*V,m+=i*W,b+=i*G,w+=i*Y,_+=i*J,E+=i*Q,c+=(i=t[3])*L,u+=i*M,h+=i*q,l+=i*U,p+=i*z,f+=i*$,d+=i*H,g+=i*F,y+=i*B,v+=i*K,m+=i*V,b+=i*W,w+=i*G,_+=i*Y,E+=i*J,D+=i*Q,u+=(i=t[4])*L,h+=i*M,l+=i*q,p+=i*U,f+=i*z,d+=i*$,g+=i*H,y+=i*F,v+=i*B,m+=i*K,b+=i*V,w+=i*W,_+=i*G,E+=i*Y,D+=i*J,I+=i*Q,h+=(i=t[5])*L,l+=i*M,p+=i*q,f+=i*U,d+=i*z,g+=i*$,y+=i*H,v+=i*F,m+=i*B,b+=i*K,w+=i*V,_+=i*W,E+=i*G,D+=i*Y,I+=i*J,S+=i*Q,l+=(i=t[6])*L,p+=i*M,f+=i*q,d+=i*U,g+=i*z,y+=i*$,v+=i*H,m+=i*F,b+=i*B,w+=i*K,_+=i*V,E+=i*W,D+=i*G,I+=i*Y,S+=i*J,C+=i*Q,p+=(i=t[7])*L,f+=i*M,d+=i*q,g+=i*U,y+=i*z,v+=i*$,m+=i*H,b+=i*F,w+=i*B,_+=i*K,E+=i*V,D+=i*W,I+=i*G,S+=i*Y,C+=i*J,P+=i*Q,f+=(i=t[8])*L,d+=i*M,g+=i*q,y+=i*U,v+=i*z,m+=i*$,b+=i*H,w+=i*F,_+=i*B,E+=i*K,D+=i*V,I+=i*W,S+=i*G,C+=i*Y,P+=i*J,O+=i*Q,d+=(i=t[9])*L,g+=i*M,y+=i*q,v+=i*U,m+=i*z,b+=i*$,w+=i*H,_+=i*F,E+=i*B,D+=i*K,I+=i*V,S+=i*W,C+=i*G,P+=i*Y,O+=i*J,x+=i*Q,g+=(i=t[10])*L,y+=i*M,v+=i*q,m+=i*U,b+=i*z,w+=i*$,_+=i*H,E+=i*F,D+=i*B,I+=i*K,S+=i*V,C+=i*W,P+=i*G,O+=i*Y,x+=i*J,A+=i*Q,y+=(i=t[11])*L,v+=i*M,m+=i*q,b+=i*U,w+=i*z,_+=i*$,E+=i*H,D+=i*F,I+=i*B,S+=i*K,C+=i*V,P+=i*W,O+=i*G,x+=i*Y,A+=i*J,R+=i*Q,v+=(i=t[12])*L,m+=i*M,b+=i*q,w+=i*U,_+=i*z,E+=i*$,D+=i*H,I+=i*F,S+=i*B,C+=i*K,P+=i*V,O+=i*W,x+=i*G,A+=i*Y,R+=i*J,N+=i*Q,m+=(i=t[13])*L,b+=i*M,w+=i*q,_+=i*U,E+=i*z,D+=i*$,I+=i*H,S+=i*F,C+=i*B,P+=i*K,O+=i*V,x+=i*W,A+=i*G,R+=i*Y,N+=i*J,T+=i*Q,b+=(i=t[14])*L,w+=i*M,_+=i*q,E+=i*U,D+=i*z,I+=i*$,S+=i*H,C+=i*F,P+=i*B,O+=i*K,x+=i*V,A+=i*W,R+=i*G,N+=i*Y,T+=i*J,k+=i*Q,w+=(i=t[15])*L,_+=i*M,E+=i*q,D+=i*U,I+=i*z,S+=i*$,C+=i*H,P+=i*F,O+=i*B,x+=i*K,A+=i*V,R+=i*W,N+=i*G,T+=i*Y,k+=i*J,j+=i*Q,s+=38*_,o+=38*E,a+=38*D,c+=38*I,u+=38*S,h+=38*C,l+=38*P,p+=38*O,f+=38*x,d+=38*A,g+=38*R,y+=38*N,v+=38*T,m+=38*k,b+=38*j,n=Math.floor((i=s+(n=1)+65535)/65536),s=i-65536*n,n=Math.floor((i=o+n+65535)/65536),o=i-65536*n,n=Math.floor((i=a+n+65535)/65536),a=i-65536*n,n=Math.floor((i=c+n+65535)/65536),c=i-65536*n,n=Math.floor((i=u+n+65535)/65536),u=i-65536*n,n=Math.floor((i=h+n+65535)/65536),h=i-65536*n,n=Math.floor((i=l+n+65535)/65536),l=i-65536*n,n=Math.floor((i=p+n+65535)/65536),p=i-65536*n,n=Math.floor((i=f+n+65535)/65536),f=i-65536*n,n=Math.floor((i=d+n+65535)/65536),d=i-65536*n,n=Math.floor((i=g+n+65535)/65536),g=i-65536*n,n=Math.floor((i=y+n+65535)/65536),y=i-65536*n,n=Math.floor((i=v+n+65535)/65536),v=i-65536*n,n=Math.floor((i=m+n+65535)/65536),m=i-65536*n,n=Math.floor((i=b+n+65535)/65536),b=i-65536*n,n=Math.floor((i=w+n+65535)/65536),w=i-65536*n,s+=n-1+37*(n-1),n=Math.floor((i=s+(n=1)+65535)/65536),s=i-65536*n,n=Math.floor((i=o+n+65535)/65536),o=i-65536*n,n=Math.floor((i=a+n+65535)/65536),a=i-65536*n,n=Math.floor((i=c+n+65535)/65536),c=i-65536*n,n=Math.floor((i=u+n+65535)/65536),u=i-65536*n,n=Math.floor((i=h+n+65535)/65536),h=i-65536*n,n=Math.floor((i=l+n+65535)/65536),l=i-65536*n,n=Math.floor((i=p+n+65535)/65536),p=i-65536*n,n=Math.floor((i=f+n+65535)/65536),f=i-65536*n,n=Math.floor((i=d+n+65535)/65536),d=i-65536*n,n=Math.floor((i=g+n+65535)/65536),g=i-65536*n,n=Math.floor((i=y+n+65535)/65536),y=i-65536*n,n=Math.floor((i=v+n+65535)/65536),v=i-65536*n,n=Math.floor((i=m+n+65535)/65536),m=i-65536*n,n=Math.floor((i=b+n+65535)/65536),b=i-65536*n,n=Math.floor((i=w+n+65535)/65536),w=i-65536*n,s+=n-1+37*(n-1),e[0]=s,e[1]=o,e[2]=a,e[3]=c,e[4]=u,e[5]=h,e[6]=l,e[7]=p,e[8]=f,e[9]=d,e[10]=g,e[11]=y,e[12]=v,e[13]=m,e[14]=b,e[15]=w}function f(e,t){let r=new Uint8Array(32),i=new Float64Array(80),n=s(),o=s(),f=s(),d=s(),g=s(),y=s();for(let t=0;t<31;t++)r[t]=e[t];r[31]=127&e[31]|64,r[0]&=248,function(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}(i,t);for(let e=0;e<16;e++)o[e]=i[e];n[0]=d[0]=1;for(let e=254;e>=0;--e){let t=r[e>>>3]>>>(7&e)&1;u(n,o,t),u(f,d,t),h(g,n,f),l(n,n,f),h(f,o,d),l(o,o,d),p(d,g,g),p(y,n,n),p(n,f,n),p(f,o,g),h(g,n,f),l(n,n,f),p(o,n,n),l(f,d,y),p(n,f,a),h(n,n,d),p(f,f,n),p(n,d,y),p(d,o,i),p(o,g,g),u(n,o,t),u(f,d,t)}for(let e=0;e<16;e++)i[e+16]=n[e],i[e+32]=f[e],i[e+48]=o[e],i[e+64]=d[e];let v=i.subarray(32),m=i.subarray(16);!function(e,t){let r=s();for(let e=0;e<16;e++)r[e]=t[e];for(let e=253;e>=0;e--)p(r,r,r),2!==e&&4!==e&&p(r,r,t);for(let t=0;t<16;t++)e[t]=r[t]}(v,v),p(m,m,v);let b=new Uint8Array(32);return!function(e,t){let r=s(),i=s();for(let e=0;e<16;e++)i[e]=t[e];c(i),c(i),c(i);for(let e=0;e<2;e++){r[0]=i[0]-65517;for(let e=1;e<15;e++)r[e]=i[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=i[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,u(i,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&i[t],e[2*t+1]=i[t]>>8}(b,m),b}t.Au=function(e){let r=(0,i.randomBytes)(32,e),s=function(e){if(e.length!==t.KS)throw Error(`x25519: seed must be ${t.KS} bytes`);let r=new Uint8Array(e);return{publicKey:f(r,o),secretKey:r}}(r);return(0,n.wipe)(r),s},t.gi=function(e,r,i=!1){if(e.length!==t.kz)throw Error("X25519: incorrect secret key length");if(r.length!==t.kz)throw Error("X25519: incorrect public key length");let n=f(e,r);if(i){let e=0;for(let t=0;t<n.length;t++)e|=n[t];if(0===e)throw Error("X25519: invalid shared key")}return n}},19006:function(e,t,r){"use strict";let i;r.d(t,{EthereumProvider:function(){return nk}});var n=r(70180),s=r.n(n),o=r(70472);let a=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,c=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,u=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function h(e,t){if("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);return}return t}function l(e,t={}){if("string"!=typeof e)return e;let r=e.trim();if('"'===e[0]&&e.endsWith('"')&&!e.includes("\\"))return r.slice(1,-1);if(r.length<=9){let e=r.toLowerCase();if("true"===e)return!0;if("false"===e)return!1;if("undefined"===e)return;if("null"===e)return null;if("nan"===e)return Number.NaN;if("infinity"===e)return Number.POSITIVE_INFINITY;if("-infinity"===e)return Number.NEGATIVE_INFINITY}if(!u.test(e)){if(t.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(a.test(e)||c.test(e)){if(t.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,h)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}var p=r(73860).Buffer;function f(e,...t){try{var r;return(r=e(...t))&&"function"==typeof r.then?r:Promise.resolve(r)}catch(e){return Promise.reject(e)}}function d(e){if(function(e){let t=typeof e;return null===e||"object"!==t&&"function"!==t}(e))return String(e);if(function(e){let t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}(e)||Array.isArray(e))return JSON.stringify(e);if("function"==typeof e.toJSON)return d(e.toJSON());throw Error("[unstorage] Cannot stringify value!")}let g="base64:";function y(e){return e?e.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function v(e){return(e=y(e))?e+":":""}let m=()=>{let e=new Map;return{name:"memory",options:{},hasItem:t=>e.has(t),getItem:t=>e.get(t)??null,getItemRaw:t=>e.get(t)??null,setItem(t,r){e.set(t,r)},setItemRaw(t,r){e.set(t,r)},removeItem(t){e.delete(t)},getKeys:()=>Array.from(e.keys()),clear(){e.clear()},dispose(){e.clear()}}};function b(e,t,r){return e.watch?e.watch((e,i)=>t(e,r+i)):()=>{}}async function w(e){"function"==typeof e.dispose&&await f(e.dispose)}function _(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function E(e,t){let r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);let i=_(r);return(e,r)=>i.then(i=>r(i.transaction(t,e).objectStore(t)))}function D(){return i||(i=E("keyval-store","keyval")),i}function I(e,t=D()){return t("readonly",t=>_(t.get(e)))}let S=e=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString()+"n":t),C=e=>JSON.parse(e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3'),(e,t)=>"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t);function P(e){if("string"!=typeof e)throw Error(`Cannot safe json parse value of type ${typeof e}`);try{return C(e)}catch(t){return e}}function O(e){return"string"==typeof e?e:S(e)||""}var x=(e={})=>{let t;let r=e.base&&e.base.length>0?`${e.base}:`:"",i=e=>r+e;return e.dbName&&e.storeName&&(t=E(e.dbName,e.storeName)),{name:"idb-keyval",options:e,hasItem:async e=>!(typeof await I(i(e),t)>"u"),getItem:async e=>await I(i(e),t)??null,setItem:(e,r)=>(function(e,t,r=D()){return r("readwrite",r=>(r.put(t,e),_(r.transaction)))})(i(e),r,t),removeItem:e=>(function(e,t=D()){return t("readwrite",t=>(t.delete(e),_(t.transaction)))})(i(e),t),getKeys:()=>(function(e=D()){return e("readonly",e=>{var t;if(e.getAllKeys)return _(e.getAllKeys());let r=[];return(t=e=>r.push(e.key),e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},_(e.transaction)).then(()=>r)})})(t),clear:()=>(function(e=D()){return e("readwrite",e=>(e.clear(),_(e.transaction)))})(t)}};class A{constructor(){this.indexedDb=function(e={}){let t={mounts:{"":e.driver||m()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=e=>{for(let r of t.mountpoints)if(e.startsWith(r))return{base:r,relativeKey:e.slice(r.length),driver:t.mounts[r]};return{base:"",relativeKey:e,driver:t.mounts[""]}},i=(e,r)=>t.mountpoints.filter(t=>t.startsWith(e)||r&&e.startsWith(t)).map(r=>({relativeBase:e.length>r.length?e.slice(r.length):void 0,mountpoint:r,driver:t.mounts[r]})),n=(e,r)=>{if(t.watching)for(let i of(r=y(r),t.watchListeners))i(e,r)},s=async()=>{if(!t.watching)for(let e in t.watching=!0,t.mounts)t.unwatch[e]=await b(t.mounts[e],n,e)},o=async()=>{if(t.watching){for(let e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},a=(e,t,i)=>{let n=new Map,s=e=>{let t=n.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},n.set(e.base,t)),t};for(let i of e){let e="string"==typeof i,n=y(e?i:i.key),o=e?void 0:i.value,a=e||!i.options?t:{...t,...i.options},c=r(n);s(c).items.push({key:n,value:o,relativeKey:c.relativeKey,options:a})}return Promise.all([...n.values()].map(e=>i(e))).then(e=>e.flat())},c={hasItem(e,t={}){let{relativeKey:i,driver:n}=r(e=y(e));return f(n.hasItem,i,t)},getItem(e,t={}){let{relativeKey:i,driver:n}=r(e=y(e));return f(n.getItem,i,t).then(e=>l(e))},getItems:(e,t)=>a(e,t,e=>e.driver.getItems?f(e.driver.getItems,e.items.map(e=>({key:e.relativeKey,options:e.options})),t).then(t=>t.map(t=>({key:function(...e){return y(e.join(":"))}(e.base,t.key),value:l(t.value)}))):Promise.all(e.items.map(t=>f(e.driver.getItem,t.relativeKey,t.options).then(e=>({key:t.key,value:l(e)}))))),getItemRaw(e,t={}){let{relativeKey:i,driver:n}=r(e=y(e));return n.getItemRaw?f(n.getItemRaw,i,t):f(n.getItem,i,t).then(e=>"string"==typeof e&&e.startsWith(g)?p.from(e.slice(g.length),"base64"):e)},async setItem(e,t,i={}){if(void 0===t)return c.removeItem(e);let{relativeKey:s,driver:o}=r(e=y(e));o.setItem&&(await f(o.setItem,s,d(t),i),o.watch||n("update",e))},async setItems(e,t){await a(e,t,async e=>{if(e.driver.setItems)return f(e.driver.setItems,e.items.map(e=>({key:e.relativeKey,value:d(e.value),options:e.options})),t);e.driver.setItem&&await Promise.all(e.items.map(t=>f(e.driver.setItem,t.relativeKey,d(t.value),t.options)))})},async setItemRaw(e,t,i={}){if(void 0===t)return c.removeItem(e,i);let{relativeKey:s,driver:o}=r(e=y(e));if(o.setItemRaw)await f(o.setItemRaw,s,t,i);else{if(!o.setItem)return;await f(o.setItem,s,"string"==typeof t?t:g+p.from(t).toString("base64"),i)}o.watch||n("update",e)},async removeItem(e,t={}){"boolean"==typeof t&&(t={removeMeta:t});let{relativeKey:i,driver:s}=r(e=y(e));s.removeItem&&(await f(s.removeItem,i,t),(t.removeMeta||t.removeMata)&&await f(s.removeItem,i+"$",t),s.watch||n("remove",e))},async getMeta(e,t={}){"boolean"==typeof t&&(t={nativeOnly:t});let{relativeKey:i,driver:n}=r(e=y(e)),s=Object.create(null);if(n.getMeta&&Object.assign(s,await f(n.getMeta,i,t)),!t.nativeOnly){let e=await f(n.getItem,i+"$",t).then(e=>l(e));e&&"object"==typeof e&&("string"==typeof e.atime&&(e.atime=new Date(e.atime)),"string"==typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(s,e))}return s},setMeta(e,t,r={}){return this.setItem(e+"$",t,r)},removeMeta(e,t={}){return this.removeItem(e+"$",t)},async getKeys(e,t={}){let r=i(e=v(e),!0),n=[],s=[];for(let e of r){let r=(await f(e.driver.getKeys,e.relativeBase,t)).map(t=>e.mountpoint+y(t)).filter(e=>!n.some(t=>e.startsWith(t)));s.push(...r),n=[e.mountpoint,...n.filter(t=>!t.startsWith(e.mountpoint))]}return e?s.filter(t=>t.startsWith(e)&&!t.endsWith("$")):s.filter(e=>!e.endsWith("$"))},async clear(e,t={}){e=v(e),await Promise.all(i(e,!1).map(async e=>e.driver.clear?f(e.driver.clear,e.relativeBase,t):e.driver.removeItem?Promise.all((await e.driver.getKeys(e.relativeBase||"",t)).map(r=>e.driver.removeItem(r,t))):void 0))},async dispose(){await Promise.all(Object.values(t.mounts).map(e=>w(e)))},watch:async e=>(await s(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter(t=>t!==e),0===t.watchListeners.length&&await o()}),async unwatch(){t.watchListeners=[],await o()},mount(e,r){if((e=v(e))&&t.mounts[e])throw Error(`already mounted at ${e}`);return e&&(t.mountpoints.push(e),t.mountpoints.sort((e,t)=>t.length-e.length)),t.mounts[e]=r,t.watching&&Promise.resolve(b(r,n,e)).then(r=>{t.unwatch[e]=r}).catch(console.error),c},async unmount(e,r=!0){(e=v(e))&&t.mounts[e]&&(t.watching&&e in t.unwatch&&(t.unwatch[e](),delete t.unwatch[e]),r&&await w(t.mounts[e]),t.mountpoints=t.mountpoints.filter(t=>t!==e),delete t.mounts[e])},getMount(e=""){let t=r(e=y(e)+":");return{driver:t.driver,base:t.base}},getMounts:(e="",t={})=>i(e=y(e),t.parents).map(e=>({driver:e.driver,base:e.mountpoint}))};return c}({driver:x({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(e=>[e.key,e.value])}async getItem(e){let t=await this.indexedDb.getItem(e);if(null!==t)return t}async setItem(e,t){await this.indexedDb.setItem(e,O(t))}async removeItem(e){await this.indexedDb.removeItem(e)}}var R="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof r.g?r.g:"u">typeof self?self:{},N={exports:{}};function T(e){var t;return[e[0],P(null!=(t=e[1])?t:"")]}!function(){function e(){}e.prototype.getItem=function(e){return this.hasOwnProperty(e)?String(this[e]):null},e.prototype.setItem=function(e,t){this[e]=String(t)},e.prototype.removeItem=function(e){delete this[e]},e.prototype.clear=function(){let e=this;Object.keys(e).forEach(function(t){e[t]=void 0,delete e[t]})},e.prototype.key=function(e){return e=e||0,Object.keys(this)[e]},e.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),"u">typeof R&&R.localStorage?N.exports=R.localStorage:"u">typeof window&&window.localStorage?N.exports=window.localStorage:N.exports=new e}();class k{constructor(){this.localStorage=N.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(T)}async g